/* Staybooking — accommodation catalogue
   Flat visual system. Maximum component corner radius: 3px. */
:root {
    --sb-navy: #102a53;
    --sb-blue: #245fb5;
    --sb-blue-soft: #eef4fb;
    --sb-orange: #d76b35;
    --sb-orange-dark: #c45d2d;
    --sb-gold: #dba94e;
    --sb-ink: #1c2b3d;
    --sb-muted: #68768a;
    --sb-line: #d8e0e8;
    --sb-line-dark: #c6d0dc;
    --sb-bg: #f7f9fb;
    --sb-green: #167a45;
    --sb-white: #fff;
}

.hotels-page {
    background: #fff;
    color: var(--sb-ink);
}

.hotels-page button,
.hotels-page input,
.hotels-page select {
    font: inherit;
}

.hotels-page button,
.hotels-page select,
.hotels-page input {
    border-radius: 3px;
}

.hotels-page a {
    text-decoration: none;
}

.hotels-search-panel {
    display: grid;
    gap: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 3px;
    overflow: hidden;
}

.search-field {
    min-width: 0;
    border-right: 1px solid var(--sb-line);
    background: #fff;
}

.search-field label {
    display: block;
    margin-bottom: 6px;
    color: #6d7b8e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.search-icon {
    flex: 0 0 auto;
    color: var(--sb-blue);
    font-size: 16px;
    line-height: 1;
}

.search-field select,
.search-field input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 2px;
    border: 0;
    outline: 0;
    background: #fff;
    color: var(--sb-ink);
    font-size: 13px;
    font-weight: 700;
}

.search-field select:focus,
.search-field input:focus {
    box-shadow: none;
}

.search-field select option,
.search-field select optgroup {
    font-weight: 600;
}

.hotels-search-button {
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: var(--sb-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.hotels-search-button:hover {
    background: var(--sb-orange-dark);
}

/* CATALOG */
.hotels-main {
    padding: 34px 0 72px;
    background: #fff;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.catalog-header h2 {
    margin: 0;
    color: var(--sb-navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.15;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.catalog-sort label {
    color: var(--sb-muted);
    font-size: 11px;
    font-weight: 700;
}

.catalog-sort select {
    min-width: 190px;
    height: 38px;
    padding: 0 34px 0 10px;
    border: 1px solid var(--sb-line);
    background: #fff;
    color: var(--sb-ink);
    font-size: 12px;
    font-weight: 700;
    outline: 0;
}

/* LAYOUT */
.catalog-layout {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    gap: 20px;
}

.filters-card {
    min-width: 0;
    border: 1px solid var(--sb-line);
    border-radius: 3px;
    background: #fff;
}

.filters-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 16px 15px;
    border-bottom: 1px solid var(--sb-line);
}

.filters-heading p {
    margin: 0 0 3px;
    color: #7a8798;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filters-heading h3 {
    margin: 0;
    color: var(--sb-navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    line-height: 1.15;
}

.filters-heading button {
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--sb-blue);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.filter-group {
    padding: 16px;
    border-bottom: 1px solid var(--sb-line);
}

.filter-group:last-child {
    border-bottom: 0;
}

.filter-title {
    margin: 0 0 11px;
    color: var(--sb-ink);
    font-size: 12px;
    font-weight: 800;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.price-inputs label {
    display: block;
    color: #788598;
    font-size: 9px;
    font-weight: 700;
}

.price-inputs input {
    width: 100%;
    height: 35px;
    margin-top: 5px;
    padding: 0 8px;
    border: 1px solid var(--sb-line);
    background: #fff;
    color: var(--sb-ink);
    font-size: 11px;
    outline: 0;
}

.price-inputs input:focus {
    border-color: var(--sb-blue);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    color: #526176;
    font-size: 12px;
    cursor: pointer;
}

.filter-option + .filter-option {
    margin-top: 3px;
}

.filter-option input {
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid #b8c5d3;
    border-radius: 3px;
    background: #fff;
    flex: 0 0 16px;
    cursor: pointer;
}

.filter-option input:checked {
    border-color: var(--sb-blue);
    background: var(--sb-blue);
    box-shadow: inset 0 0 0 3px #fff;
}

.filter-option:hover {
    color: var(--sb-blue);
}

.star-symbol {
    color: var(--sb-gold);
    font-weight: 700;
}

.hotels-list {
    display: grid;
    gap: 12px;
}

.hotel-card {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    min-width: 0;
    border: 1px solid var(--sb-line);
    border-radius: 3px;
    background: #fff;
    overflow: hidden;
}

.hotel-card-image-wrap {
    position: relative;
    background: #edf1f5;
    border-right: 1px solid var(--sb-line);
}

.hotel-card-image-link,
.hotel-card-image {
    display: block;
    width: 100%;
    height: 100%;
}

.hotel-card-image {
    object-fit: cover;
}

.hotel-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 3px;
    background: rgba(16,42,83,.9);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.hotel-card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 3px;
    background: rgba(255,255,255,.96);
    color: var(--sb-navy);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.hotel-card-favorite.active {
    color: #b43737;
}

.hotel-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 17px 18px 15px;
}

.hotel-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.hotel-card-title-wrap {
    min-width: 0;
}

.hotel-card-title-link {
    color: inherit;
}

.hotel-card-title {
    margin: 0;
    color: var(--sb-blue);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    line-height: 1.18;
}

.hotel-card-title-link:hover .hotel-card-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hotel-card-stars {
    margin-top: 5px;
    color: var(--sb-gold);
    font-size: 12px;
    letter-spacing: 1px;
}

.hotel-card-rating {
    min-width: 38px;
    padding: 6px 7px;
    border-radius: 3px;
    background: var(--sb-blue);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.hotel-card-location {
    margin-top: 9px;
    color: #53657b;
    font-size: 11px;
    font-weight: 700;
}

.hotel-card-location::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 6px 2px 0;
    border-radius: 50%;
    background: var(--sb-blue);
}

.hotel-card-description {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: #68768a;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hotel-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 11px;
}

.hotel-card-amenity {
    color: var(--sb-green);
    font-size: 10px;
    font-weight: 700;
}

.hotel-card-amenity::before {
    content: "✓";
    margin-right: 4px;
}

.hotel-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--sb-line);
}

.hotel-card-price-label {
    color: #7a8798;
    font-size: 9px;
    line-height: 1.4;
}

.hotel-card-price {
    margin: 2px 0;
    color: var(--sb-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

.hotel-card-price span {
    font-size: 11px;
    font-weight: 800;
}

.hotel-buttons {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
}

.hotel-secondary-button,
.hotel-button {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sb-blue);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 800;
}

.hotel-secondary-button {
    background: #fff;
    color: var(--sb-blue);
}

.hotel-button {
    background: var(--sb-blue);
    color: #fff;
}

.hotel-secondary-button:hover {
    background: var(--sb-blue-soft);
}

.hotel-button:hover {
    background: #1d529d;
}

/* STATES */
.hotels-loading,
.hotels-error,
.hotels-empty {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid var(--sb-line);
    border-radius: 3px;
    background: #fff;
    text-align: center;
}

.hotels-loading,
.hotels-error {
    color: var(--sb-muted);
    font-size: 12px;
}

.hotels-empty .empty-title {
    color: var(--sb-navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
}

.hotels-empty p {
    max-width: 420px;
    margin: 8px 0 17px;
    color: var(--sb-muted);
    font-size: 12px;
    line-height: 1.5;
}

.empty-button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--sb-blue);
    border-radius: 3px;
    background: #fff;
    color: var(--sb-blue);
    font-size: 11px;
    font-weight: 800;
}

/* FOOTER — keep the existing flat Staybooking language */
.hotels-page .footer {
    border-radius: 0;
}

/* RESPONSIVE */
@media (max-width: 1050px) {

    .hotels-search-button {
        grid-column: 1 / -1;
        min-height: 42px;
        border-top: 1px solid #c95f30;
    }
    .catalog-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    .hotel-card {
        grid-template-columns: 230px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {

    .catalog-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .catalog-sort {
        width: 100%;
    }
    .catalog-sort select {
        flex: 1;
    }
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .hotel-card {
        grid-template-columns: 210px minmax(0, 1fr);
    }
    .hotel-card-image-wrap,
    .hotel-card-image {
        min-height: 230px;
    }
}

@media (max-width: 620px) {
    .hotels-search-area {
        padding: 98px 0 16px;
    }

    .search-field {
        border-right: 0;
        border-bottom: 1px solid var(--sb-line);
    }
    .search-field-destination,
    .search-field-guests {
        grid-column: 1 / -1;
    }
    .hotels-search-button {
        grid-column: 1 / -1;
    }
    .hotels-main {
        padding-top: 26px;
    }

    .hotel-card {
        grid-template-columns: 1fr;
    }
    .hotel-card-image-wrap,
    .hotel-card-image {
        min-height: 220px;
        height: 220px;
        border-right: 0;
        border-bottom: 1px solid var(--sb-line);
    }
    .hotel-card-content {
        padding: 15px;
    }
    .hotel-card-title {
        font-size: 21px;
    }
    .hotel-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }
    .hotel-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .hotel-secondary-button,
    .hotel-button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .hotels-search-panel {
        grid-template-columns: 1fr;
    }
    .search-field-destination,
    .search-field-guests,
    .hotels-search-button {
        grid-column: auto;
    }
    .search-field {
        border-right: 0;
    }
    .price-inputs {
        grid-template-columns: 1fr;
    }
}

/* Header on the catalogue follows the same strict flat geometry. */
.hotels-page .login-btn,
.hotels-page .language-menu,
.hotels-page .language-menu button,
.hotels-page .mobile-menu-toggle,
.hotels-page .mobile-navigation-links a {
    border-radius: 3px;
}

.search-field-dates { position: relative; }
.date-range-wrap { position: relative; }
.date-range-trigger {
    width: 100%;
    text-align: left;
}
.date-range-text {
    overflow: hidden;
    color: var(--sb-ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.date-range-popover {
    position: absolute;
}
.date-range-popover[hidden] { display: none; }

.date-range-summary {
    margin-top: 10px;
    padding: 9px 10px;
    border-left: 3px solid var(--sb-blue);
    background: var(--sb-blue-soft);
    color: var(--sb-blue);
    font-size: 11px;
    font-weight: 800;
}

/* PRICE RANGE — native dual slider, no decorative controls */
.price-slider {
    position: relative;
}
.price-slider-track,
.price-slider-fill {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 2px;
}

.price-slider-fill { left: 0; right: auto; width: 100%; }
.price-slider input[type="range"] {
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.price-slider input[type="range"]::-moz-range-track { height: 4px; background: transparent; }

.price-slider input[type="range"]:focus-visible { outline: 1px solid var(--sb-blue); }
#price-range-min { z-index: 3; }
#price-range-max { z-index: 4; }
.price-slider-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--sb-muted);
    font-weight: 700;
}

.filter-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filter-title-row .filter-title { margin-bottom: 11px; }
.filter-count {
    min-width: 20px;
    color: var(--sb-muted);
    font-size: 9px;
    font-weight: 700;
    text-align: right;
}
.amenities-filter-groups { display: grid; gap: 12px; }
.amenity-filter-group { padding-top: 2px; }
.amenity-filter-group + .amenity-filter-group { padding-top: 11px; border-top: 1px solid #edf1f5; }
.amenity-filter-group-title {
    margin-bottom: 5px;
    color: #7a8798;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.amenity-filter-group .filter-option { position: relative; padding-right: 22px; }
.amenity-filter-group .filter-option em {
    position: absolute;
    right: 0;
    color: #9aa6b4;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}
.filter-option.is-unavailable { color: #a9b2bd; cursor: default; }
.filter-option.is-unavailable input { cursor: not-allowed; background: #f4f6f8; }

.hotel-card-image-wrap { min-height: 250px; }
.hotel-card-image { min-height: 250px; }
.hotel-card-amenity-more {
    color: var(--sb-muted);
    font-size: 10px;
    font-weight: 700;
}
.hotel-card-amenity-more::before { content: "·"; margin-right: 5px; color: #a4afbc; }

@media (max-width: 1050px) {
    .hotels-search-panel { grid-template-columns: minmax(190px, 1.2fr) minmax(220px, 1.3fr) minmax(150px, 1fr) 120px; }
}

@media (max-width: 820px) {
    .hotels-search-panel { grid-template-columns: 1fr 1fr; }
    .search-field-destination { grid-column: span 2; }
    .search-field-dates { grid-column: span 1; }
    .hotels-search-button { min-height: 54px; }
    .date-range-popover { left: 0; }
}

@media (max-width: 620px) {
    .hotels-search-panel { grid-template-columns: 1fr; }
    .search-field-destination,
    .search-field-dates { grid-column: auto; }
    .hotels-search-button { min-height: 48px; }
    .date-range-popover { width: calc(100vw - 28px); }
}

/* ===== v5 interaction refinements ===== */
.visually-hidden-select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.hotels-search-area{border-bottom:0}

.hotels-search-panel{grid-template-columns:minmax(260px,1.45fr) minmax(280px,1.15fr) minmax(235px,1fr) 132px}
.search-field{padding:13px 15px 14px}
.search-field-destination,.search-field-dates,.search-field-guests{position:relative}
.destination-picker,.guest-picker,.date-range-wrap{position:relative}
.destination-trigger,.guest-trigger{display:flex;align-items:center;gap:9px;width:100%;height:34px;padding:0;border:0;background:#fff;color:var(--sb-ink);font-size:13px;font-weight:700;text-align:left;cursor:pointer}
.destination-value,.guest-trigger span:nth-child(2),.date-range-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.search-chevron{margin-left:auto;color:#1c2b3d;font-size:17px;line-height:1}
.destination-popover,.guest-popover{position:absolute;top:calc(100% + 10px);left:-15px;width:calc(100% + 30px);min-width:360px;border:1px solid #c8d2de;border-radius:3px;background:#fff;box-shadow:0 14px 30px rgba(16,42,83,.16)}
.destination-popover[hidden],.guest-popover[hidden],.date-range-popover[hidden]{display:none}
.destination-search-wrap{padding:10px;border-bottom:1px solid var(--sb-line)}
.destination-search-wrap input{height:38px!important;padding:0 10px!important;border:1px solid var(--sb-line-dark)!important;border-radius:3px!important;background:#fff!important;font-size:13px!important;font-weight:500!important}
.destination-options{overflow:auto;padding:5px 0}

.destination-option{display:block;width:100%;padding:8px 20px 8px 42px;border:0;border-radius:0;background:#fff;color:#203653;font-size:13px;font-weight:500;text-align:left;cursor:pointer}
.destination-option:hover,.destination-option:focus{background:#2167c8;color:#fff;outline:0}
.destination-option[hidden],.destination-region[hidden]{display:none}

/* One compact date field, with an overlay calendar. */
.date-range-trigger{height:34px;min-height:34px;display:flex;align-items:center;gap:9px;padding:0;border:0;background:#fff;color:var(--sb-ink);font-size:13px;font-weight:700;cursor:pointer}
.date-range-popover{top:calc(100% + 10px);left:0;padding:14px;background:#fff;border:1px solid var(--sb-line-dark);border-radius:3px;box-shadow:0 14px 32px rgba(16,42,83,.18)}
.date-picker-summary{display:grid;grid-template-columns:1fr 24px 1fr;align-items:stretch;border:1px solid var(--sb-line);margin-bottom:13px}
.date-summary-cell{padding:10px 12px;background:#fff}
.date-summary-cell span{display:block;margin-bottom:4px;color:#738096;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.date-summary-cell strong{font-size:15px;color:var(--sb-navy)}
.date-summary-arrow{display:flex;align-items:center;justify-content:center;color:#8c99a9;font-size:18px;background:#fff}
.calendar-head{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;margin:2px 0 12px;text-align:center}
.calendar-head strong{font-size:14px;color:var(--sb-navy);text-transform:capitalize}
.calendar-nav{width:34px;height:34px;padding:0;border:0;background:#fff;color:var(--sb-blue);font-size:28px;line-height:1;cursor:pointer}
.calendar-nav:hover{background:var(--sb-blue-soft)}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.calendar-weekdays span{text-align:center;padding:5px 0;color:#8b97a7;font-size:10px;font-weight:800}
.calendar-day{position:relative;height:38px;padding:0;border:0;border-radius:0;background:#fff;color:#263b58;font-size:12px;font-weight:700;cursor:pointer}
.calendar-day:hover:not(:disabled){background:#edf4fd;color:var(--sb-blue)}
.calendar-day:disabled{color:#c6cdd6;cursor:not-allowed}
.calendar-day.is-between{background:#e8f0fb;color:#17375f}
.calendar-day.is-start,.calendar-day.is-end{background:var(--sb-blue);color:#fff}
.calendar-day.is-start{border-top-left-radius:3px;border-bottom-left-radius:3px}
.calendar-day.is-end{border-top-right-radius:3px;border-bottom-right-radius:3px}
.calendar-day.is-today:not(.is-start):not(.is-end){box-shadow:inset 0 0 0 1px var(--sb-blue);color:var(--sb-blue)}
.calendar-blank{pointer-events:none}
.date-picker-footer{align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding-top:11px;border-top:1px solid var(--sb-line)}
.date-picker-footer span{color:var(--sb-muted);font-size:10px;font-weight:600}
.date-picker-apply{height:32px;padding:0 16px;border:0;border-radius:3px;background:var(--sb-blue);color:#fff;font-size:11px;font-weight:800;cursor:pointer}

/* Guest popover — only rooms and guests, no children. */
.guest-trigger{height:34px}
.guest-popover{left:auto;right:-15px;padding:8px 14px 14px}
.guest-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--sb-line)}
.guest-row strong{color:var(--sb-ink);font-size:13px}
.counter{display:flex;align-items:center;gap:13px}
.counter button{width:34px;height:34px;padding:0;border:1px solid #b9c9dc;border-radius:50%!important;background:#fff;color:var(--sb-blue);font-size:20px;line-height:1;cursor:pointer}
.counter button:hover{border-color:var(--sb-blue);background:var(--sb-blue-soft)}
.counter span{min-width:18px;text-align:center;color:var(--sb-ink);font-size:15px;font-weight:800}
.guest-apply{width:100%;height:40px;margin-top:14px;border:0;border-radius:3px;background:var(--sb-blue);color:#fff;font-size:12px;font-weight:800;cursor:pointer}

/* Result header is deliberately compact — no extra catalog title or quick chips. */
.catalog-header{align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--sb-line)}
.catalog-results-title{color:var(--sb-ink);font-size:13px;font-weight:800}
.catalog-results-title strong{font-size:15px}

/* Guest-rating filter as compact visual cards instead of a text-heavy list. */
.rating-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.rating-filter-card{position:relative;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:7px;align-items:center;min-height:48px;padding:7px 8px;border:1px solid var(--sb-line);border-radius:3px;background:#fff;cursor:pointer}
.rating-filter-card:hover{border-color:#9eb8d9;background:#f8fbff}
.rating-filter-card input{position:absolute;opacity:0;pointer-events:none}
.rating-filter-card:has(input:checked){border-color:var(--sb-blue);background:var(--sb-blue-soft);box-shadow:inset 0 0 0 1px var(--sb-blue)}
.rating-filter-score{grid-row:1/3;color:var(--sb-blue);font-size:17px;font-weight:900;line-height:1}
.rating-filter-text{color:var(--sb-muted);font-size:9px;font-weight:700;line-height:1.2}
.rating-filter-count{color:#91a0b2;font-size:9px;font-style:normal;font-weight:700}

/* Native range inputs remain real controls, with a simple classic track. */
.price-slider{height:34px;margin:10px 5px 0;cursor:pointer;touch-action:none}
.price-slider-track,.price-slider-fill{top:15px;height:4px;border-radius:0}
.price-slider-track{background:#cfd7e1}
.price-slider-fill{background:var(--sb-blue)}
.price-slider input[type="range"]{top:3px;height:28px;width:calc(100% + 10px);left:-5px}
.price-slider input[type="range"]::-webkit-slider-thumb{width:16px;height:16px;margin-top:-6px;border:2px solid #fff;border-radius:50%;background:var(--sb-blue);box-shadow:0 0 0 1px var(--sb-blue);appearance:none;pointer-events:auto;cursor:pointer}
.price-slider input[type="range"]::-moz-range-thumb{width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:var(--sb-blue);box-shadow:0 0 0 1px var(--sb-blue);pointer-events:auto;cursor:pointer}
.price-slider-labels{margin-top:3px;font-size:10px}

@media(max-width:900px){
  .hotels-search-panel{grid-template-columns:1fr 1fr}
  .hotels-search-button{min-height:52px}
  .destination-popover{min-width:0;width:100%;left:0}
  .date-range-popover{left:0}
  .guest-popover{right:auto;left:0}
}
@media(max-width:620px){
  .hotels-search-area{padding:12px 0 14px}
  .hotels-search-panel{grid-template-columns:1fr}
  .search-field{border-right:0;border-bottom:1px solid var(--sb-line)}
  .hotels-search-button{min-height:48px}
  .date-range-popover,.guest-popover,.destination-popover{width:calc(100vw - 28px);max-width:none;min-width:0;left:0;right:auto}
  .catalog-header{align-items:flex-start;gap:10px}
  .catalog-sort{width:100%;justify-content:space-between}
  .catalog-sort select{min-width:0;flex:1}
}

/* =========================================================
   V6 — header/search separation + stable sticky filters
   ========================================================= */
.hotels-search-area {
    /* Header is 76px tall on desktop. Keep the search panel below it. */
    padding: 94px 0 18px;
    position: relative;
    z-index: 1;
    background: var(--sb-navy);
}

.hotels-search-panel {
    position: relative;
    z-index: 2;
    min-height: 76px;
}

/* The catalogue starts cleanly after the blue search band. */
.hotels-main {
    position: relative;
    z-index: 0;
    padding-top: 28px;
}

/* Keep the filter column visually anchored while the result list moves. */
.catalog-layout {
    align-items: start;
}

.filters-card::-webkit-scrollbar {
    width: 5px;
}

.filters-card::-webkit-scrollbar-track {
    background: transparent;
}

.filters-card::-webkit-scrollbar-thumb {
    background: #c7d2df;
    border-radius: 3px;
}

/* Prevent filter controls from changing the column geometry while checked. */
.filter-option,
.rating-filter-card {
    min-width: 0;
}

@media (max-width: 820px) {
    .hotels-search-area {
        padding-top: 82px;
    }

}

@media (max-width: 620px) {
    .hotels-search-area {
        padding-top: 70px;
    }
}

/* =========================================================
   V7 — stable filtering + viewport-level search popovers
   ========================================================= */
html,
body {
    overflow-anchor: none;
}

.catalog-layout,
.hotels-results,
.filters-card,
.hotels-list,
.hotel-card {
    overflow-anchor: none;
}

.filters-card {
    position: sticky;
    top: 16px;
    align-self: start;
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    will-change: auto;
}

/* Search popovers are moved to <body> and positioned against the viewport.
   This prevents clipping by the search panel and guarantees they sit above the page. */
.destination-popover,
.date-range-popover,
.guest-popover {
    position: fixed !important;
    z-index: 9999 !important;
    margin: 0 !important;
    max-height: calc(100vh - 24px);
}

.destination-popover {
    min-width: 360px;
    max-width: calc(100vw - 24px);
}

.destination-options {
    max-height: 380px;
}

.date-range-popover {
    width: 470px;
    max-width: calc(100vw - 24px);
}

.guest-popover {
    width: 310px;
    min-width: 310px;
    max-width: calc(100vw - 24px);
}

@media (max-width: 820px) {
    .filters-card {
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 620px) {
    .destination-popover,
    .date-range-popover,
    .guest-popover {
        width: calc(100vw - 24px) !important;
        min-width: 0;
        max-width: calc(100vw - 24px);
    }
}

/* =========================================================
   V8 — stable filter transitions, selectable regions, and loading state
   ========================================================= */
.destination-region {
    border-radius: 0;
}

.destination-region:hover,
.destination-region:focus-visible {
    background: #f1f5fa;
    color: var(--sb-blue);
    outline: 0;
}

/* Keep the results area geometrically stable while a filter is recalculated. */
.hotels-results {
    position: relative;
    min-width: 0;
}

.hotels-list {
    position: relative;
    min-height: 0;
}

.hotels-list.is-filtering {
    min-height: 260px;
}

.hotels-list.is-filtering .hotel-card {
    filter: grayscale(.2);
    transition: opacity .12s ease;
}

.filtering-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding-top: 28px;
    color: var(--sb-navy);
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

.filtering-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid #cbd8e7;
    border-top-color: var(--sb-blue);
    border-radius: 50%;
    animation: staybooking-filter-spin .65s linear infinite;
}

@keyframes staybooking-filter-spin {
    to { transform: rotate(360deg); }
}

/* Do not let the browser invent its own scroll-anchor correction during result updates. */
.hotels-page,
.hotels-page * {
    overflow-anchor: none;
}

/* The date range is completed by the second calendar click. */
.date-picker-apply {
    display: none !important;
}

/* Reset controls must remain visually and geometrically stable. */
#reset-filters,
#reset-empty {
    position: relative;
    z-index: 2;
    cursor: pointer;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .filtering-spinner { animation: none; }
}

/* V9 — selectable major destinations and stable filter loading */
.destination-region {
    display:block; width:100%; border:0; background:#fff; color:var(--sb-ink);
    padding:12px 20px 7px; text-align:left; font:inherit; font-size:13px;
    font-weight:800; line-height:1.25; cursor:pointer;
}
.destination-region:hover,.destination-region:focus-visible { background:#f3f6fa; color:var(--sb-blue); outline:0; }
.destination-region:active { background:#e8eef7; }

/* Keep the loading veil temporary; JS removes it after each render. */
.hotels-list.is-filtering .hotel-card { opacity:.28; pointer-events:none; }
.filtering-overlay { background:rgba(255,255,255,.72); }

/* The date picker is a two-click range: no visible apply action. */
.date-picker-footer { display:none; }
.date-range-popover { z-index:10000 !important; }
.destination-popover,.guest-popover { z-index:10000 !important; }
