/* Hotels results page — self-contained CSS so the page can ship without a Webpack rebuild.
   Restyled to share the Flight Price Tracker results design system: same page background,
   container width, typography, blue primary action color, radii and shadow language
   (see public/assets/v3/scss/_base.scss, flight-search-form.scss, _ch02_results.scss,
   components/_flight-card.scss, components/_filters-panel.scss). Class names/IDs are
   unchanged so hotelSearch/resultsPage.js and related scripts keep working as-is. */

.page-hotel-search-results {
    background: var(--bg-color-primary);
}

/* When html already uses scrollbar-gutter:stable, Bootstrap's modal-open
   padding-right is pure over-compensation (empty strip + content shift).
   Force it off for Hotels; scrollLock.js does the same for all Bootstrap
   modals and clears any fixed/sticky adjustments. */
@supports (scrollbar-gutter: stable) {
    body.page-hotel-search-results.modal-open {
        padding-right: 0 !important;
    }
}

/* ---------- Search section — rebuilt on the Flight Price Tracker's real
   components. The dark navy band + the white segmented panel are produced by
   the compiled `.price-predictor.result-page` and `.flight-search-form` /
   `.flight-search-form__search-params` styles (scss/main/_ch01_price-predictor.scss
   + flight-search-form.scss), which base.html.twig already loads. Sticky search
   is intentionally disabled on Hotels desktop; only hotel-specific glue lives
   here. ---------- */

/* Hotels has no Round-trip / One-way tabs. Restore the approved hero overlap:
   shared result-page padding is 40px; the previously shipped Hotels value is
   68px so the 110px dark band crosses near the segmented form midline. */
.page-hotel-search-results .price-predictor.result-page.hsr-hero {
    padding-top: 68px;
}

/* Desktop: keep the Hotels search form in document flow. Neutralize any
   leftover `.is-sticky` state (cached script / partial sticky chrome) so a
   thin fixed bar cannot appear over results. Flight tracker is unaffected. */
@media (min-width: 1025px) {
    .page-hotel-search-results .flight-search-form.is-sticky .flight-search-form__search-params {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
        z-index: auto;
        border-radius: 10px;
        border-left: 1px solid var(--form-border-color, #e5e7eb);
        border-right: 1px solid var(--form-border-color, #e5e7eb);
        border-top: 1px solid var(--form-border-color, #e5e7eb);
        box-shadow: none;
    }
}

/* The segmented panel wrapper must fill the column (`.price-predictor` makes
   `.container-wrapper` a flex column, so the single-child flex:1 rule no longer
   applies). */
.page-hotel-search-results .hsr-search-wrapper {
    width: 100%;
}

/* Destination validation states (set by locationAutocomplete.js on the input). */
.page-hotel-search-results .hsr-field--destination input.is-invalid {
    color: #dc2626;
}
.page-hotel-search-results .hsr-field--destination input.is-unresolved {
    color: #b45309;
}

/* Guests & Rooms trigger reads like the other segmented values. */
.page-hotel-search-results .hsr-field--guests input {
    cursor: pointer;
}

/* Results section shell: padding/gap/sidebar come from `.results-layout`
   (shared/resultsLayout.css → `--results-search-to-content-gap`). Keep the
   section padding-free so Hotels does not stack a second top gap. */
.hsr-results {
    padding: 0;
}

/* Mobile only: compact search → Where to Stay teaser. The shared layout stacks
   padding-top (18px) and column gap (18px) against an empty sidebar shell
   (filters are fixed; guide card is desktop-only) — collapse the duplicate. */
@media (max-width: 767px) {
    .page-hotel-search-results .hsr-results .results-layout {
        padding-top: 18px;
        gap: 0;
    }
}

/* ---------- Filters sidebar — rebuilt on the Flight Price Tracker's real
   .filters-desktop-panel / .filters-desktop-header / .filters-panel / .filters-section
   components (compiled into the `frontend` bundle base.html.twig already loads).
   Sections, headings, dividers, checkboxes and the header count inherit the tracker
   styles verbatim; only the outer container, hotel price slider and count alignment
   live here. The sidebar flows with
   the page (no sticky, no internal scroll) exactly like the tracker. ---------- */
.hsr-filters {
    position: relative;
    align-self: start;
    background: var(--bg-color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    box-sizing: border-box;
}
/* Header matches Flight Price Tracker: icon + title left, count right, one row. */
.hsr-filters .filters-desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 0;
    box-sizing: border-box;
}
.hsr-filters .filters-desktop-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}
.hsr-filters .filters-desktop-header__count {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    color: var(--color-skyBlue);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    text-align: right;
    white-space: nowrap;
}
.hsr-filters .filters-panel {
    display: flex;
    flex-direction: column;
}
.hsr-filters .filters-panel[hidden] {
    display: none !important;
}

/* Initial-search only: compact non-interactive placeholders for the first
   filter sections. Same card width as loaded filters; ~280–340px tall. */
.hsr-filters.is-preparing .hsr-filters-skeleton {
    pointer-events: none;
    user-select: none;
}
.hsr-filters-skeleton {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 280px;
    max-height: 340px;
    padding: 18px 16px 20px;
    box-sizing: border-box;
    overflow: hidden;
}
.hsr-filters-skeleton[hidden] {
    display: none !important;
}
.hsr-filters-skeleton__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hsr-filters-skeleton__title {
    width: 46%;
    height: 14px;
}
.hsr-filters-skeleton__slider {
    width: 100%;
    height: 6px;
    border-radius: 999px;
}
.hsr-filters-skeleton__values {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.hsr-filters-skeleton__value {
    width: 52px;
    height: 12px;
}
.hsr-filters-skeleton__checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hsr-filters-skeleton__row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hsr-filters-skeleton__box {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}
.hsr-filters-skeleton__line {
    flex: 0 1 auto;
    width: 68%;
    height: 12px;
}
.hsr-filters-skeleton__line--l { width: 78%; }
.hsr-filters-skeleton__line--m { width: 58%; }
.hsr-filters-skeleton__line--s { width: 48%; }

/* “Clear all” — small text action in the Filters header (desktop sidebar +
   mobile drawer). Same language as Flight Price Tracker `.filters-select-actions__btn`. */
.hsr-filters__clear {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-skyBlue);
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
    flex: 0 0 auto;
}
.hsr-filters__clear:hover {
    text-decoration: underline;
    color: #157dc4;
}
.hsr-filters__clear:focus-visible {
    outline: 2px solid var(--color-skyBlue);
    outline-offset: 2px;
    border-radius: 2px;
}
.hsr-filters__clear[hidden] {
    display: none !important;
}
.hsr-filters .filters-modal__header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Close X is the tracker `.filters-modal__close` (mobile only). Desktop hides it. */
.hsr-filters__empty {
    margin: 0;
    color: var(--color-gray-400);
    font-size: 12px;
}

/* Trailing option count on a tracker checkbox row (tracker has no counts). */
.filters-checkbox .hsr-checkbox__count {
    margin-left: auto;
    padding-left: 8px;
    color: var(--color-gray-400);
    font-size: 12px;
    flex-shrink: 0;
}
.hsr-filters .filters-checkbox {
    width: 100%;
    min-width: 0;
}
.hsr-filters .form-check-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ---------- Mobile filters: reuse Flight Price Tracker `.filters-modal` shell.
   Desktop: neutralize modal positioning so the same node stays a sidebar card. ---------- */
.hsr-filters-toggle {
    display: none;
}

@media (min-width: 1025px) {
    /* Sidebar card — override `.filters-modal.position-fixed` defaults. */
    .hsr-filters.filters-modal {
        display: block;
        position: relative !important;
        inset: auto;
        z-index: auto;
        overflow: hidden;
        background: var(--bg-color-white);
        border: 1px solid var(--color-gray-200);
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
        box-sizing: border-box;
    }
    .hsr-filters .filters-modal__backdrop,
    .hsr-filters .filters-modal__header,
    .hsr-filters .filters-modal__footer {
        display: none !important;
    }
    .hsr-filters .filters-modal__sheet {
        position: static !important;
        inset: auto;
        transform: none;
        transition: none;
        background: transparent;
        display: block;
    }
    .hsr-filters .filters-modal__body {
        flex: none;
        overflow: visible;
    }
}

@media (max-width: 1024px) {
    /* Tracker modal owns layout; strip the old sidebar card chrome. */
    .hsr-filters.filters-modal {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        align-self: auto;
    }
    .hsr-filters .filters-desktop-header {
        display: none;
    }
}

/* ---------- Quickbar (chip filters — same chip language as the rest of the design
   system: neutral default, blue active state, blue hover border). ---------- */
.hsr-quickbar {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: var(--results-col-stack-gap);
    background: var(--bg-color-white);
    border-radius: 10px;
    border: 1px solid var(--color-gray-200);
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}
.hsr-quickbar::-webkit-scrollbar {
    display: none;
}
.hsr-quickbar__inner {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
}
.hsr-quickbar__empty {
    color: var(--color-gray-400);
    margin: 0;
    font-size: 13px;
}
.hsr-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    background: var(--color-gray-100);
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    transition: all 0.15s ease;
}
.hsr-chip:hover { border-color: var(--color-skyBlue); background: var(--bg-color-white); }
.hsr-chip.is-active {
    background: var(--color-skyBlue);
    border-color: var(--color-skyBlue);
    color: var(--text-color-light);
}
.hsr-chip__label {
    font-weight: 700;
    font-size: 13px;
    color: inherit;
}
.hsr-chip__price {
    font-size: 11px;
    color: var(--color-gray-500);
}
.hsr-chip.is-active .hsr-chip__price { color: #e0f0fb; }
.hsr-quickbar__deals {
    display: none;
}

/* ---------- Results header / toolbar (result count + sort + Best deals). The
   Best deals toggle keeps a distinct amber semantic highlight per the design
   brief, everything else follows the shared blue/gray language. ---------- */
.hsr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--results-col-stack-gap);
    gap: 12px;
    flex-wrap: wrap;
}
.hsr-toolbar__count {
    margin: 0;
    color: var(--text-color-secondary);
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
}
.hsr-toolbar__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hsr-toolbar__sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-500);
}
.hsr-toolbar__sort-info,
.hsr-toolbar__sort-chevron {
    display: none;
}
.hsr-toolbar__sort select {
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--color-gray-200);
    /* Compact inset: 8px text → edge, 8px chevron → edge. */
    padding: 0 24px 0 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bg-color-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-tealBlue);
    cursor: pointer;
}
.hsr-toolbar__sort select:focus {
    outline: none;
    border-color: var(--color-skyBlue);
    box-shadow: 0 0 0 3px rgba(27, 145, 224, 0.15);
}
.hsr-toolbar__deals {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #78350f;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
}
.hsr-toolbar__deals input { accent-color: #d97706; }

@media (max-width: 1024px) {
    .hsr-main {
        min-width: 0;
    }
    .hsr-toolbar__count {
        display: none;
    }
    .hsr-toolbar {
        display: block;
        width: 100%;
    }
    .hsr-toolbar__controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    .hsr-filters-toggle,
    .hsr-toolbar__sort {
        /* Match Flight Price Tracker `.search-filters` / `.flight-options`
           mobile cards: min-height 50px, 8px radius, 8px 12px control padding. */
        min-width: 0;
        min-height: 50px;
        box-sizing: border-box;
        background: var(--bg-color-white);
        border: 1px solid var(--color-gray-200);
        border-radius: 8px;
        box-shadow: none;
    }
    .hsr-filters-toggle {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 8px 12px;
        color: var(--text-color-secondary);
        text-align: left;
        cursor: pointer;
    }
    .hsr-filters-toggle:hover,
    .hsr-filters-toggle[aria-expanded="true"] {
        border-color: var(--color-skyBlue);
        background: #f8fcff;
    }
    .hsr-filters-toggle:focus-visible,
    .hsr-toolbar__sort:focus-within {
        outline: 2px solid var(--color-skyBlue);
        outline-offset: 2px;
    }
    .hsr-filters-toggle .filters-mobile-btn__top {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .hsr-filters-toggle .filters-mobile-btn__icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    .hsr-filters-toggle .filters-mobile-btn__title,
    .hsr-toolbar__sort-card-label {
        color: var(--text-color-secondary);
        font-size: 14px;
        font-weight: 600;
        line-height: 21px;
    }
    .hsr-filters-toggle .filters-mobile-btn__count {
        color: var(--color-skyBlue);
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
    }
    .hsr-toolbar__sort {
        position: relative;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding: 8px 12px;
        color: var(--text-color-secondary);
        cursor: pointer;
    }
    .hsr-toolbar__sort-label {
        display: none;
    }
    .hsr-toolbar__sort-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }
    .hsr-toolbar__sort-value {
        color: var(--text-color-primary);
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        overflow-wrap: anywhere;
    }
    .hsr-toolbar__sort-chevron {
        display: block;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    .hsr-toolbar__sort select {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        opacity: 0;
        cursor: pointer;
    }
    .hsr-toolbar__sort select:focus {
        box-shadow: none;
    }
    .hsr-toolbar__deals {
        display: none;
    }
    .hsr-chip,
    .hsr-quickbar__deals {
        min-height: 56px;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    .hsr-quickbar__deals {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 14px;
        border: 1px solid #fde68a;
        border-radius: 999px;
        background: #fef3c7;
        color: #78350f;
        font-family: "Open Sans", sans-serif;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
    }
    .hsr-quickbar__deals:hover,
    .hsr-quickbar__deals.is-active {
        border-color: #f59e0b;
        background: #fde68a;
    }
    .hsr-quickbar__deals:focus-visible {
        outline: 2px solid #d97706;
        outline-offset: 2px;
    }
    .hsr-quickbar__deals-check {
        display: inline-block;
        width: 16px;
        height: 16px;
        box-sizing: border-box;
        border: 1px solid #9ca3af;
        border-radius: 3px;
        background: var(--bg-color-white);
        flex-shrink: 0;
    }
    .hsr-quickbar__deals.is-active .hsr-quickbar__deals-check {
        border-color: #d97706;
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-6' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
            center / 14px 14px no-repeat var(--bg-color-white);
    }
}

/* ---------- Cards (same white surface / border / radius / shadow language as the
   Flight Price Tracker result cards; see components/_flight-card.scss .fcard). ---------- */
.hsr-cards {
    display: flex;
    flex-direction: column;
    gap: var(--results-card-gap);
    width: 100%;
    min-width: 0;
}

/* Property search: section labels between exact match and nearby alternatives. */
.hsr-results-section-label {
    margin: 0;
    padding: 0 2px;
    color: var(--color-gray-500, #6b7280);
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}
.hsr-results-section-label--similar {
    margin-top: 4px;
}
/* “Show more hotels” — same treatment as the Flight Price Tracker “Show more result”
   control (see components/_flight-card.scss .flight-show-more__btn). */
.hsr-show-more-wrap {
    margin-top: 16px;
    width: 100%;
}
.hsr-show-more {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color-light);
    background: var(--color-tealBlue);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}
.hsr-show-more:hover {
    background: #0c2c3d;
}
.hsr-show-more:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 145, 224, 0.35);
}
.hsr-show-more:focus:not(:focus-visible) {
    box-shadow: none;
}
@media (max-width: 640px) {
    .hsr-show-more {
        padding: 16px 18px;
        font-size: 14px;
    }
}
.hsr-link {
    background: transparent;
    border: 0;
    color: var(--color-skyBlue);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.hsr-link:hover { text-decoration: underline; }

.hsr-card {
    display: grid;
    /* Fixed image + CTA columns; middle takes the remainder. minmax(0, 1fr)
       prevents long titles/prices from expanding the card past the results
       column (default 1fr ≡ minmax(auto, 1fr) lets content set the floor). */
    grid-template-columns: 240px minmax(0, 1fr) auto;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hsr-card:hover {
    border-color: var(--color-gray-300);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Confirmed searched property — light tint + product-blue border (not a solid fill). */
.hsr-card--exact-match {
    background: rgba(27, 145, 224, 0.05);
    border-color: rgba(27, 145, 224, 0.42);
}
.hsr-card--exact-match:hover {
    border-color: rgba(27, 145, 224, 0.58);
    box-shadow: 0 4px 14px rgba(27, 145, 224, 0.12);
}
.hsr-card__exact-match {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(27, 145, 224, 0.12);
    color: var(--color-skyBlue, #1b91e0);
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: middle;
}

.hsr-card__media {
    position: relative;
    width: 240px;
    max-width: 240px;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    background: var(--color-gray-100);
    overflow: hidden;
}
.hsr-card__media--carousel {
    touch-action: pan-y;
}
.hsr-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}
.hsr-card__carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Below Compare / badges / photo count so overlays stay clickable. */
    z-index: 2;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 0;
    font-size: 0;
    pointer-events: auto;
    transition: background 0.18s ease, opacity 0.18s ease;
}
.hsr-card__carousel-icon {
    display: block;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    /* Optical vertical center (icons read slightly high after SVG swap). */
    transform: translateY(1px);
}
.hsr-card__carousel-btn:hover:not(:disabled) {
    background: #fff;
}
.hsr-card__carousel-btn:focus-visible {
    outline: 2px solid var(--color-skyBlue);
    outline-offset: 2px;
    /* Always show the focused control, even if the card is not hovered. */
    opacity: 1;
    pointer-events: auto;
}
.hsr-card__carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.hsr-card__carousel-btn--prev { left: 8px; }
.hsr-card__carousel-btn--next { right: 8px; }
/* Right chevron: keep +1px horizontal optical correction. */
.hsr-card__carousel-btn--next .hsr-card__carousel-icon {
    transform: translate(1px, 1px);
}

/* Desktop / fine pointer: Kayak-style — arrows hidden until card hover or focus-within. */
@media (hover: hover) and (pointer: fine) {
    .hsr-card__carousel-btn:not([hidden]),
    .hsr-card__carousel-btn:not([hidden]):disabled {
        opacity: 0;
        pointer-events: none;
    }
    .hsr-card:hover .hsr-card__carousel-btn:not([hidden]):not(:disabled),
    .hsr-card:focus-within .hsr-card__carousel-btn:not([hidden]):not(:disabled),
    .hsr-card__carousel-btn:not([hidden]):focus-visible {
        opacity: 1;
        pointer-events: auto;
    }
    .hsr-card:hover .hsr-card__carousel-btn:not([hidden]):disabled,
    .hsr-card:focus-within .hsr-card__carousel-btn:not([hidden]):disabled {
        opacity: 0.35;
        pointer-events: none;
    }
}
/* Touch / coarse pointer: keep arrows visible (swipe is available, but arrows stay discoverable). */
.hsr-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--color-gray-300);
}
.hsr-card__compare {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hsr-card__compare input { accent-color: var(--color-skyBlue); }
.hsr-card__compare.is-active {
    background: var(--color-skyBlue);
    color: #fff;
    border-color: var(--color-skyBlue);
}
.hsr-card__image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
}
/* Kayak-style gallery dots — always visible, no dark pill behind them. */
.hsr-card__carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.hsr-card__carousel-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.hsr-card__carousel-dot.is-active {
    background: #fff;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hsr-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.hsr-card__head {
    width: 100%;
    min-width: 0;
}
.hsr-card__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-color-secondary);
    line-height: 27px;
    text-align: left;
}
.hsr-card__title-name {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hsr-card__title-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
}
.hsr-card__stars {
    color: #d97706;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}
.hsr-card__accom {
    white-space: nowrap;
    font-size: 11px;
    color: var(--color-skyBlue);
    font-weight: 700;
    line-height: 16px;
    text-transform: uppercase;
    background: var(--color-gray-100);
    padding: 3px 8px;
    border-radius: 999px;
}
.hsr-card__rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.hsr-card__rating {
    background: var(--color-tealBlue);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: "Open Sans", sans-serif;
}
.hsr-card__reviews {
    color: var(--color-gray-500);
    font-size: 12px;
}
.hsr-card__distance {
    color: var(--color-gray-500);
    font-size: 13px;
    font-family: "Open Sans", sans-serif;
    margin: 4px 0 0;
}
.hsr-card__room {
    color: var(--color-gray-500);
    font-size: 13px;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hsr-card__benefits {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    line-height: 15px;
}
.hsr-card__benefits li {
    display: flex;
    align-items: center;
    gap: 5px;
}
.hsr-card__benefit-check {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    display: block;
}
/* ---------- Best deals: compact per-card deal signal (replaces the old
   generic "Why this hotel?" yellow block). Shows one badge + one line, and
   only when the hotel actually qualifies as a deterministic deal. ---------- */
.hsr-card__deal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin: 6px 0 0;
}
.hsr-card__deal-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 6px;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}
.hsr-card__deal--standout .hsr-card__deal-badge {
    background: #e7f6ee;
    color: #0b762f;
}
.hsr-card__deal--great .hsr-card__deal-badge {
    background: #eaf4fd;
    color: #0b62b0;
}
.hsr-card__deal-support {
    color: var(--color-gray-500);
    font-size: 12px;
    line-height: 1.35;
}
.hsr-card__provider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    padding-top: 6px;
}
.hsr-card__provider {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
.hsr-card__provider-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 20px;
    max-width: 88px;
}
.hsr-card__provider-logo {
    display: block;
    height: 20px;
    width: auto;
    max-width: 88px;
    object-fit: contain;
    object-position: left center;
}
.hsr-card__provider-name {
    font-size: 12px;
    color: var(--color-gray-500);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Right price/action column mirrors .fcard__aside: price above, then
   bell + primary CTA in a row (same as .fcard__actions on desktop). */
.hsr-card__cta {
    width: auto;
    min-width: 200px;
    box-sizing: border-box;
    background: var(--bg-color-white);
    border-left: 1px solid var(--color-gray-200);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}
.hsr-card__price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.hsr-card__lowest-price {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.hsr-card__discount-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 18px;
}
.hsr-card__strike {
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: #a15c5c;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.hsr-card__discount-label {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(161, 92, 92, 0.1);
    color: #8f5050;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    white-space: nowrap;
}
.hsr-card__per-night {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 36px;
    color: var(--text-color-secondary);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.hsr-card__per-night-unit {
    font-size: 12px;
    color: var(--color-gray-500);
}
.hsr-card__total {
    font-size: 12px;
    color: var(--color-gray-500);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.hsr-card__taxes {
    font-size: 11px;
    color: var(--color-gray-500);
}
/* Bell + View deal — reuses .fcard__bell from the tracker; layout mirrors
   .fcard__actions at ≥1025px (row, 8px gap). */
.hsr-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
/* Primary CTA: reuses tracker `.fcard__select` for color, hover, focus,
   active, and transition. Hotels only keeps layout sizing here. */
.hsr-card__btn {
    max-width: 100%;
    box-sizing: border-box;
}
.hsr-card__booking-options {
    flex: 0 0 auto;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--color-skyBlue);
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}
.hsr-card__booking-options:hover {
    color: #157dc4;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hsr-card__booking-options:focus-visible {
    outline: 2px solid var(--color-skyBlue);
    outline-offset: 2px;
    border-radius: 2px;
}
/* Active price-alert bell (hotels + cars): light blue + blue icon + check badge.
   Stays secondary to the solid “View deal” CTA. */
.hsr-card__cta .fcard__bell.hsr-card__track:not(:disabled) {
    cursor: pointer;
}
.hsr-card__cta .fcard__bell.hsr-card__track.is-active {
    position: relative;
    border: 1px solid rgba(27, 145, 224, 0.35);
    background: rgba(27, 145, 224, 0.12);
    color: var(--color-skyBlue, #1b91e0);
    box-shadow: none;
    cursor: default;
    opacity: 1;
}
.hsr-card__cta .fcard__bell.hsr-card__track.is-active:hover,
.hsr-card__cta .fcard__bell.hsr-card__track.is-active:focus,
.hsr-card__cta .fcard__bell.hsr-card__track.is-active:focus-visible,
.hsr-card__cta .fcard__bell.hsr-card__track.is-active:active {
    border-color: rgba(27, 145, 224, 0.35);
    background: rgba(27, 145, 224, 0.12);
    box-shadow: none;
}
.hsr-card__cta .fcard__bell.hsr-card__track.is-active::after {
    content: '';
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-sizing: border-box;
    background-color: var(--color-skyBlue, #1b91e0);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px 9px;
    pointer-events: none;
}
.hsr-card__cta .fcard__bell.hsr-card__track:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.hsr-card__cta .fcard__bell.hsr-card__track:disabled:hover {
    background: #f4f7fc;
}

@media (max-width: 720px) {
    .hsr-card {
        grid-template-columns: 1fr;
    }
    .hsr-card__media {
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 9;
    }
    /* Mobile footer: price | (bell + View deal) — same compact action row
       as the tracker desktop actions, without the old text Track button. */
    .hsr-card__cta {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "price actions";
        align-items: center;
        column-gap: 12px;
        row-gap: 10px;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 14px 16px 16px;
        border-left: 0;
        border-top: 1px solid var(--color-gray-200);
        text-align: left;
    }
    .hsr-card__price-block {
        grid-area: price;
        align-items: flex-start;
        min-width: 0;
        gap: 2px;
    }
    .hsr-card__actions {
        grid-area: actions;
        justify-self: end;
        flex-shrink: 0;
        gap: 8px;
    }
    .hsr-card__btn {
        padding: 8px 20px;
        width: auto;
        max-width: none;
    }
    .hsr-card__per-night {
        font-size: 20px;
        line-height: 1.3;
        overflow-wrap: normal;
        white-space: nowrap;
    }
    .hsr-card__total,
    .hsr-card__taxes {
        overflow-wrap: normal;
        white-space: normal;
    }
}

/* Very narrow phones: stack the action row under the price. */
@media (max-width: 380px) {
    .hsr-card__cta {
        grid-template-columns: 1fr;
        grid-template-areas:
            "price"
            "actions";
    }
    .hsr-card__actions {
        justify-self: stretch;
        width: 100%;
    }
    .hsr-card__btn {
        flex: 1 1 auto;
        width: auto;
    }
}

/* ---------- Skeletons ---------- */
.hsr-card--skeleton { pointer-events: none; }
.hsr-sk {
    background: linear-gradient(90deg, #eef2f7 0%, #f7fafc 50%, #eef2f7 100%);
    background-size: 200% 100%;
    animation: hsr-shimmer 1.2s linear infinite;
    border-radius: 6px;
}
@keyframes hsr-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Loading status (message + forward-only progress line) ---------- */
.hsr-loading-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0 0 var(--results-col-stack-gap, 16px);
    padding: 0;
    box-sizing: border-box;
    --hsr-loading-progress: 0;
    transition: opacity 0.28s ease;
}
.hsr-loading-status[hidden] {
    display: none;
}
.hsr-loading-status.is-complete {
    opacity: 0;
}
.hsr-loading-status__message {
    margin: 0;
    min-height: 21px;
    color: var(--color-tealBlue, #10374c);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
}
.hsr-loading-status__track {
    position: relative;
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-gray-200, #e5e7eb);
}
.hsr-loading-status__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: var(--color-skyBlue, #1b91e0);
    transform: scaleX(var(--hsr-loading-progress, 0));
    transform-origin: left center;
    transition: transform 0.35s ease-out;
    will-change: transform;
}
.hsr-loading-status.is-finishing .hsr-loading-status__bar {
    transition: transform 0.22s ease-out;
}
.hsr-cards.is-updating {
    opacity: 0.55;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .hsr-loading-status,
    .hsr-loading-status__bar,
    .hsr-loading-status.is-finishing .hsr-loading-status__bar {
        transition: none;
    }
    .hsr-sk {
        animation: none;
    }
    .hsr-cards.is-updating {
        transition: none;
    }
}

/* ---------- States ---------- */
.hsr-state {
    background: var(--bg-color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    padding: 38px 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.hsr-state__title {
    margin: 0 0 6px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    color: var(--color-tealBlue);
    font-size: 18px;
}
.hsr-state__hint {
    margin: 0;
    color: var(--color-gray-500);
    font-size: 14px;
}
.hsr-state__actions {
    margin-top: 16px;
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.hsr-state--loading .hsr-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-skyBlue);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: hsr-spin 0.9s linear infinite;
}
@keyframes hsr-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Reusable Hotels empty state ---------- */
.hotels-empty-state {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 340px;
    padding: 54px 24px 64px;
    box-sizing: border-box;
}
.hotels-empty-state[hidden] {
    display: none;
}
.hotels-empty-state__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    text-align: center;
}
.hotels-empty-state__title {
    margin: 0;
    color: var(--color-tealBlue);
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}
.hotels-empty-state__message {
    max-width: 480px;
    margin: 8px 0 0;
    color: var(--color-gray-500);
    font-size: 14px;
    line-height: 1.55;
}
.hotels-empty-state__context {
    margin: 8px 0 0;
    color: var(--color-gray-400);
    font-size: 12px;
    line-height: 1.5;
}
.hotels-empty-state__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}
.hotels-empty-state__primary {
    min-width: 154px;
}
.hotels-empty-state__secondary {
    padding: 10px 6px;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    cursor: pointer;
}
.hotels-empty-state__secondary:hover {
    color: #157dc4;
    text-decoration: underline;
}
.hotels-empty-state__secondary:focus-visible {
    outline: 2px solid var(--color-skyBlue);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .hotels-empty-state {
        min-height: 320px;
        padding: 42px 16px 52px;
    }
    .hotels-empty-state__title {
        font-size: 18px;
    }
    .hotels-empty-state__actions {
        flex-direction: column;
        width: min(100%, 320px);
    }
    .hotels-empty-state__primary {
        width: 100%;
    }
}

/* Same pill button language as .search-button / .fcard__select: solid blue,
   normal-case label, darker blue on hover. */
.hsr-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: 0;
}
.hsr-btn--primary {
    background: var(--primary-color);
    color: #fff;
}
.hsr-btn--primary:hover { background: #157dc4; }
.hsr-btn--ghost {
    background: var(--bg-color-white);
    border: 1px solid var(--color-gray-300);
    color: var(--text-color-secondary);
}
.hsr-btn--sm {
    padding: 7px 14px;
    font-size: 12px;
}
.hsr-btn--primary[disabled],
.hsr-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

/* ---------- Compare tray ---------- */
.hsr-compare-tray {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-tealBlue);
    color: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.25);
    z-index: 1100;
    padding: 10px 0;
}
.hsr-compare-tray__inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.hsr-compare-tray__items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}
.hsr-compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 6px 8px;
    max-width: 220px;
    font-size: 12px;
    color: #e2e8f0;
}
.hsr-compare-chip img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex: 0 0 auto;
}
.hsr-compare-chip__name {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #fff;
}
.hsr-compare-chip__remove {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.hsr-compare-tray__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.hsr-compare-tray .hsr-link {
    color: #cbd5e1;
}

/* ---------- Compare modal ---------- */
/* Desktop sizing: compact, centered, not full-viewport. Mobile inherits the
   shared comparison-modal--bootstrap full-screen behaviour. */
@media (min-width: 1025px) {
    .comparison-modal--compare.comparison-modal--bootstrap .comparison-modal__dialog {
        width: min(1080px, calc(100% - 48px));
        max-width: 1080px;
        margin: 24px auto;
    }
    .comparison-modal--compare.comparison-modal--bootstrap.modal .comparison-modal__dialog {
        min-height: calc(100% - 48px);
    }
    .comparison-modal--compare.comparison-modal--bootstrap .comparison-modal__surface {
        max-height: calc(100dvh - 48px);
    }
    .comparison-modal--compare.comparison-modal--bootstrap .comparison-modal__body {
        padding: 20px 24px 24px;
    }
}

/* Hide the page-level compare tray while the modal is open so it can't
   compete with the modal chrome. Restored automatically on close. */
body:has(.hsr-compare-modal.show) .hsr-compare-tray {
    display: none !important;
}

/* AI recommendation insight card */
.hsr-compare-ai {
    margin-bottom: 16px;
}
.hsr-compare-ai__card {
    border: 1px solid #d6e6fb;
    border-radius: 12px;
    background: #f4f9ff;
    padding: 14px 16px;
}
.hsr-compare-ai__card--loading,
.hsr-compare-ai__card--error {
    background: #f8fafc;
    border-color: #e5e7eb;
}
.hsr-compare-ai__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}
.hsr-compare-ai__spark {
    flex: 0 0 auto;
}
.hsr-compare-ai__pick {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
}
.hsr-compare-ai__pick strong {
    color: var(--color-tealBlue);
    font-weight: 700;
}
.hsr-compare-ai__summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}
.hsr-compare-ai__reasons {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    font-size: 12px;
    line-height: 1.45;
    color: #4b5563;
}
.hsr-compare-ai__reasons li {
    margin-bottom: 3px;
}
.hsr-compare-ai__reasons li:last-child {
    margin-bottom: 0;
}
.hsr-compare-ai__loading,
.hsr-compare-ai__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

/* Collapsible <details> shell. Desktop stays open and non-interactive so the
   card looks exactly as before; mobile collapses to a compact title. */
.hsr-compare-ai__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    list-style: none;
    cursor: default;
}
.hsr-compare-ai__toggle::-webkit-details-marker {
    display: none;
}
.hsr-compare-ai__toggle-text {
    flex: 1 1 auto;
    min-width: 0;
}
.hsr-compare-ai__chevron {
    display: none;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}
.hsr-compare-ai__content {
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .hsr-compare-ai {
        margin-bottom: 12px;
    }
    .hsr-compare-ai__toggle {
        cursor: pointer;
    }
    .hsr-compare-ai__chevron {
        display: inline-block;
    }
    .hsr-compare-ai__card[open] .hsr-compare-ai__chevron {
        transform: rotate(-135deg);
    }
    .hsr-compare-ai__card:not([open]) .hsr-compare-ai__content {
        display: none;
    }
}

/* Comparison matrix */
.hsr-compare-table {
    width: 100%;
}
.hsr-cmp__grid {
    display: grid;
    grid-template-columns: 160px repeat(var(--hsr-cmp-cols, 2), minmax(0, 1fr));
    align-items: stretch;
}
.hsr-cmp__c {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
    line-height: 1.4;
    color: #1f2937;
    min-width: 0;
}
.hsr-cmp__c--label,
.hsr-cmp__c--ctx-label,
.hsr-cmp__c--corner,
.hsr-cmp__c--cta-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-color-white);
}
.hsr-cmp__c--value {
    font-weight: 500;
}
.hsr-cmp__c--muted {
    color: #9ca3af;
}

/* Hotel header cells (images not sticky) */
.hsr-cmp__c--corner {
    border-bottom: 0;
}
.hsr-cmp__c--hotel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 0;
    padding-bottom: 12px;
}
.hsr-cmp__media {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}
.hsr-cmp__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hsr-cmp__name {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hsr-cmp__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 12px;
    color: #4b5563;
}
.hsr-cmp__stars {
    color: #f5a623;
    letter-spacing: 1px;
}
.hsr-cmp__rating b {
    color: var(--color-tealBlue);
    font-weight: 700;
}
.hsr-cmp__reviews {
    color: #9ca3af;
}

/* Sticky compact context row (names only) */
.hsr-cmp__c--ctx-label,
.hsr-cmp__c--ctx-name {
    position: sticky;
    top: 0;
    z-index: 3;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.hsr-cmp__c--ctx-name {
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA row */
.hsr-cmp__c--cta-label {
    border-bottom: 0;
}
.hsr-cmp__c--cta {
    border-bottom: 0;
    padding-top: 14px;
}
.hsr-cmp__c--cta .comparison-button {
    width: 100%;
    min-height: 42px;
}

/* Desktop shows the side-by-side grid; the stacked mobile layout is hidden. */
.hsr-cmpm--mobile {
    display: none;
}

@media (max-width: 1024px) {
    /* Mobile: drop the desktop grid entirely and use the dedicated column layout
       below, which owns its own horizontal scroll. */
    .hsr-cmp--desktop {
        display: none;
    }
    .hsr-cmpm--mobile {
        display: block;
    }
    /* Keep this visible so the mobile column scroller (not the table) owns
       horizontal scrolling and the sticky footer can pin to the modal body. */
    .hsr-compare-table {
        overflow: visible;
        width: 100%;
        min-width: 0;
    }
    /* The modal itself must never scroll horizontally — only the columns do.
       Add spacing below the header before the AI block (kept even when the AI
       block is hidden/collapsed); preserves the existing horizontal padding. */
    .hsr-compare-modal .comparison-modal__body {
        overflow-x: hidden;
        padding-top: 16px;
    }
}

/* ---------- Mobile comparison layout (one horizontal table scroller) ----------
 * Hotel headers, labels, values, dividers, and the CTA row live in a single CSS
 * grid inside one overflow-x wrapper. Rows grow with wrapped content. CTA is
 * the last grid row (not sticky) and scrolls with the table. */
.hsr-cmpm {
    --hsr-cmpm-cols: 2;
    /* 2 hotels: equal columns that fill the width, no horizontal scroll. */
    --hsr-cmpm-colw: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
/* 3 hotels: comfortable fixed column width -> table wider than viewport. */
.hsr-cmpm[data-cols="3"] {
    --hsr-cmpm-colw: 200px;
}

.hsr-cmpm__viewport {
    position: relative;
    min-width: 0;
}
/* Right-edge fade hints there is more to scroll; hidden once at the end. */
.hsr-cmpm[data-cols="3"] .hsr-cmpm__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--bg-color-white));
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.18s ease;
}
.hsr-cmpm__viewport.is-scroll-end::after {
    opacity: 0;
}

/* The only horizontal scroller for the comparison table. */
.hsr-cmpm__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hsr-cmpm__scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Single grid: hotel headers, attribute labels + values, then CTA as last row. */
.hsr-cmpm__grid {
    display: grid;
    grid-template-columns: repeat(var(--hsr-cmpm-cols, 2), var(--hsr-cmpm-colw, minmax(0, 1fr)));
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.hsr-cmpm[data-cols="2"] .hsr-cmpm__grid {
    width: 100%;
}

.hsr-cmpm__hotel {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    height: auto;
    padding: 12px;
    box-sizing: border-box;
    overflow: visible;
    scroll-snap-align: start;
}
/* No vertical dividers between hotel columns (spacing separates them). */
.hsr-cmpm__thumb {
    flex: 0 0 auto;
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}
.hsr-cmpm__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hsr-cmpm__hotel-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hsr-cmpm__name {
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    min-width: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hsr-cmpm__hotel-meta {
    font-size: 12px;
    color: #4b5563;
    min-width: 0;
}
.hsr-cmpm__stars {
    color: #f5a623;
    letter-spacing: 1px;
}
.hsr-cmpm__rating b {
    color: var(--color-tealBlue);
    font-weight: 700;
}
.hsr-cmpm__reviews {
    color: #9ca3af;
}
.hsr-cmpm__type {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-skyBlue);
}

/* Label spans all hotel columns — part of the same grid, no own scroll. */
.hsr-cmpm__row-label {
    grid-column: 1 / -1;
    height: auto;
    padding: 10px 12px 4px;
    border-top: 1px solid #eef2f7;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    overflow: visible;
}
.hsr-cmpm__val {
    min-width: 0;
    height: auto;
    max-height: none;
    padding: 0 12px 10px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.4;
    color: #1f2937;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    scroll-snap-align: start;
}
.hsr-cmpm__val--muted {
    color: #9ca3af;
}
.hsr-cmpm__val--better {
    color: #15803d;
    font-weight: 600;
}
.hsr-cmpm__check {
    color: #16a34a;
    font-weight: 700;
    flex: 0 0 auto;
}

/* CTA — last row of the same grid; scrolls with the table (not sticky). */
.hsr-cmpm__cta-cell {
    min-width: 0;
    height: auto;
    padding: 12px;
    box-sizing: border-box;
    border-top: 1px solid #e5e7eb;
    overflow: visible;
    scroll-snap-align: start;
}
.hsr-cmpm__cta {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    white-space: nowrap;
}

/* ---------- Provider offers modal (same hotel, multiple sites) ---------- */
.hsr-offers-modal__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 210px);
    gap: 24px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}
.hsr-offers-modal__row:last-child {
    border-bottom: 0;
}
.hsr-offers-modal__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.hsr-offers-modal__prov {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.hsr-offers-modal__logo {
    height: 28px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
}
.hsr-offers-modal__logo-fallback {
    font-size: 22px;
    line-height: 1;
    opacity: 0.75;
}
.hsr-offers-modal__prov-text {
    font-size: 14px;
    color: #111827;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hsr-offers-modal__conditions {
    min-width: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
}
.hsr-offers-modal__conditions-line {
    margin: 0;
    overflow-wrap: anywhere;
}
.hsr-offers-modal__conditions-line + .hsr-offers-modal__conditions-line {
    margin-top: 2px;
}
.hsr-offers-modal__action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 210px;
    justify-self: end;
}
.hsr-offers-modal__price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    min-width: 0;
}
.hsr-offers-modal__strike {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.hsr-offers-modal__best {
    margin-bottom: 4px;
}
.hsr-offers-modal__total {
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--color-tealBlue);
    line-height: 1.2;
}
.hsr-offers-modal__pn {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.hsr-offers-modal__taxes {
    font-size: 11px;
    color: #6b7280;
    margin: 4px 0 0;
    line-height: 1.35;
}
.hsr-offers-modal__cta-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
.hsr-offers-modal__cta {
    width: 150px;
    max-width: 150px;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(27, 145, 224, 0.2);
}
.hsr-offers-modal__cta--check-on-bcom {
    box-shadow: none;
}

/* Booking.com destination search: same row grid as partner offers, no price (see resultsPage.js). */
.hsr-offers-modal__row--booking-fallback {
    padding-top: 14px;
}
.hsr-offers-modal__fallback-label {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hsr-offers-modal__price-block--empty {
    min-height: 1px;
}

@media (max-width: 640px) {
    .hsr-offers-modal__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px 0;
    }
    .hsr-offers-modal__action {
        width: 100%;
        max-width: none;
        justify-self: stretch;
        align-items: flex-start;
    }
    .hsr-offers-modal__price-block {
        align-items: flex-start;
        text-align: left;
    }
    .hsr-offers-modal__cta-wrap {
        justify-content: flex-start;
    }
    .hsr-offers-modal__cta {
        width: 150px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .hsr-offers-modal__cta {
        width: 100%;
        max-width: 100%;
    }
}
