/* ==========================================================================
   Ankor Yachts Page — layout, sidebar, sliders, grid
   Card styles (.webth-ankor-card) live in custom.css
   ========================================================================== */

/* Hero
   ========================================================================== */
.webth-ay-hero {
    background: linear-gradient(135deg, #03045E 0%, #023e8a 40%, #0077b6 70%, #3791B7 100%);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px 40px;
    position: relative;
    overflow: hidden;
}
.webth-ay-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120"><path fill="rgba(255,255,255,0.03)" d="M0 60L48 55C96 50 192 40 288 45C384 50 480 70 576 75C672 80 768 70 864 60C960 50 1056 40 1152 42C1248 44 1344 58 1392 65L1440 72V120H0Z"/></svg>') bottom/cover no-repeat;
}
.webth-ay-hero__title {
    color: #fff !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    position: relative;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Wrapper
   ========================================================================== */
.webth-ay-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* Top bar
   ========================================================================== */
.webth-ay-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}
.webth-ay-topbar__count {
    font-size: 13px;
    color: #888;
    margin-right: auto;
}
.webth-ay-topbar label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.webth-ay-topbar select {
    border: 1px solid #dde3e8;
    border-radius: 4px;
    padding: 6px 28px 6px 10px;
    font-size: 13px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    min-width: 180px;
}
.webth-ay-topbar select:focus { outline: none; border-color: #3791B7; }

/* Two-column layout
   ========================================================================== */
.webth-ay-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar
   ========================================================================== */
.webth-ay-sidebar {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 6px;
    padding: 18px;
    position: sticky;
    top: 80px;
}
.webth-ay-sidebar__reset {
    display: block;
    text-align: center;
    background: #3791B7;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-bottom: 20px;
    transition: background 0.2s;
}
.webth-ay-sidebar__reset:hover { background: #03045E !important; color: #fff !important; }
.webth-ay-sidebar__group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f5;
}
.webth-ay-sidebar__group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.webth-ay-sidebar__label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px !important;
}
.webth-ay-sidebar__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    padding: 3px 0;
    line-height: 1.3;
}
.webth-ay-sidebar__check input[type="checkbox"] {
    accent-color: #3791B7;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}
.webth-ay-sidebar__check:hover { color: #3791B7; }

/* Range sliders
   ========================================================================== */
.webth-ay-slider-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f5;
}
.webth-ay-slider-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.webth-ay-slider-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}
.webth-ay-slider-tab {
    flex: 1;
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.webth-ay-slider-tab.is-active   { background: #03045E; color: #fff; }
.webth-ay-slider-tab.is-inactive { background: #caf0f8; color: #03045E; }
.webth-ay-slider-field-label {
    font-size: 11px;
    color: #555;
    margin: 0 0 6px !important;
}
.webth-ay-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #03045E;
    outline: none;
    cursor: pointer;
    margin-bottom: 4px;
}
.webth-ay-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #03045E;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #03045E;
}
.webth-ay-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #03045E;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #03045E;
}
.webth-ay-slider-vals {
    font-size: 11px;
    color: #555;
    text-align: center;
    margin: 2px 0 0 !important;
}

/* Grid
   ========================================================================== */
.webth-ay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.webth-ay-no-results {
    grid-column: 1/-1;
    text-align: center;
    color: #888;
    padding: 60px 0;
    font-size: 15px;
}

/* Pagination
   ========================================================================== */
#webth-ay-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 32px 0 16px;
    grid-column: 1 / -1;
}
.webth-ay-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}
.webth-ay-page-btn:hover:not(:disabled) {
    background: #f0f4ff;
    border-color: #0077b6;
    color: #0077b6;
}
.webth-ay-page-btn.is-active {
    background: #0077b6;
    border-color: #0077b6;
    color: #fff;
    cursor: default;
}
.webth-ay-page-btn.is-disabled,
.webth-ay-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.webth-ay-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    color: #667085;
    font-size: 14px;
    user-select: none;
}

/* Responsive
   ========================================================================== */
@media screen and (max-width: 1100px) {
    .webth-ay-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 768px) {
    .webth-ay-layout { grid-template-columns: 1fr; }
    .webth-ay-sidebar { position: static; }
    .webth-ay-grid { grid-template-columns: repeat(2, 1fr); }
    .webth-ay-hero__title { font-size: 26px !important; }
}
@media screen and (max-width: 540px) {
    .webth-ay-grid { grid-template-columns: 1fr; }
}
