/**
 * HBX Promotion Showcase
 * Amsterdam timestamp: 2026-09-01 CEST
 *
 * Hotel shelf/card/media geometry intentionally remains owned by the existing
 * Geo/List CSS + Kadence bridge. This file contains promotion-page glue only.
 */

.hbx-promotion-showcase{
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hbx-promotion-showcase__header{
    margin: 0 0 22px;
}

.hbx-promotion-showcase__header > :first-child{
    margin-top: 0;
}

.hbx-promotion-showcase__header > :last-child,
.hbx-promotion-showcase__copy > :last-child{
    margin-bottom: 0;
}

.hbx-promotion-showcase__search{
    position: relative;
    z-index: 3;
    margin-bottom: 18px;
}

.hbx-promotion-showcase__status{
    min-height: 1.4em;
    margin: 14px 0 10px;
    font-size: 14px;
    line-height: 1.4;
}

.hbx-promotion-showcase__status[hidden]{
    display: none !important;
}

.hbx-promotion-showcase__status[data-tone="error"]{
    font-weight: 700;
}

.hbx-promotion-showcase__status[data-tone="loading"]::before{
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    vertical-align: -1px;
    animation: hbxPromotionSpin .75s linear infinite;
}

@keyframes hbxPromotionSpin{
    to{
        transform: rotate(360deg);
    }
}

/*
 * The shortcode deliberately owns the existing #list-view scope so the
 * already-QA'd List CSS remains authoritative. Do not recreate card geometry.
 */
.hbx-promotion-showcase #list-view.hbx-promotion-showcase__list{
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1;
}

.hbx-promotion-showcase.is-loading #list-view.hbx-promotion-showcase__list{
    opacity: .72;
}

.hbx-promotion-showcase .hbx-promotion-show-all[disabled]{
    opacity: .5 !important;
    pointer-events: none !important;
    cursor: wait !important;
}

.hbx-promotion-showcase .hbx-promotion-show-all{
    white-space: nowrap;
}

/*
 * Promotion cards deliberately omit the List hide/mask controls.
 * Defensive guard in case old/injected markup is ever reused.
 */
.hbx-promotion-showcase .hbx-list-mask-btn,
.hbx-promotion-showcase .hbx-list-hide-zone,
.hbx-promotion-showcase .hbx-list-swipe-coach{
    display: none !important;
}

/* Small campaign-specific badge only; the hotel-card layout is unchanged. */
.hbx-promotion-showcase .hbx-promotion-card-heading{
    min-width: 0;
}

.hbx-promotion-showcase .hbx-promotion-discount-badge{
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 5px;
    padding: 4px 7px;
    border: 1px solid rgba(0,47,167,.16);
    border-radius: 999px;
    background: rgba(0,47,167,.06);
    color: #002fa7;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

/*
 * V Score reuses the existing visual class. The full Geo tooltip controller is
 * deliberately not loaded on promotion pages.
 */
.hbx-promotion-showcase .hbx-promotion-v-score{
    cursor: default !important;
    pointer-events: none !important;
}

/*
 * =========================================================
 * Amsterdam timestamp: 2026-09-02 CEST
 * Active-card commercial offer below live metadata
 * =========================================================
 *
 * Price / stars / V Score retain the established one-line
 * List treatment.
 *
 * Promotion gets a dedicated second line so SAVE UP TO labels
 * cannot crowd the metadata on narrow cards.
 */

.hbx-promotion-showcase
#list-view
.hbx-promotion-card-offer-line{
    box-sizing:border-box !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;

    width:100% !important;
    min-width:0 !important;
    min-height:20px !important;

    margin:4px 0 0 !important;
    padding:0 !important;

    line-height:1 !important;
}


.hbx-promotion-showcase
#list-view
.hbx-promotion-card-offer{
    box-sizing:border-box !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    height:20px !important;
    min-height:20px !important;

    margin:0 !important;
    padding:2px 7px !important;

    border:
        1px solid
        rgba(0,47,167,.18) !important;

    border-radius:999px !important;

    background:
        rgba(0,47,167,.07) !important;

    color:#002fa7 !important;

    font-size:9.5px !important;
    line-height:1 !important;
    font-weight:850 !important;
    letter-spacing:.01em !important;

    white-space:nowrap !important;
}


@media screen and (max-width:430px){

    .hbx-promotion-showcase
    #list-view
    .hbx-promotion-card-offer-line{
        margin-top:3px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-promotion-card-offer{
        padding-left:6px !important;
        padding-right:6px !important;

        font-size:8.75px !important;
    }

}

/*
 * Promotion-card CTA hierarchy.
 *
 * VIEW RATES remains the main booking CTA.
 * Map 2D / Map 3D / Photo 3D are compact secondary navigation links.
 */
.hbx-promotion-showcase
#list-view
.hbx-promotion-card-actions{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;

    width: 100% !important;
    min-width: 0 !important;

    gap: 6px !important;

    align-items: stretch !important;
}


/* Main commercial CTA: preserve existing List button treatment. */
.hbx-promotion-showcase
#list-view
.hbx-promotion-card-actions
.hbx-promotion-view-rates{
    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
    text-decoration: none !important;
}


/* Secondary navigation row. */
.hbx-promotion-showcase
#list-view
.hbx-promotion-map-actions{
    display: grid !important;

    /*
     * Amsterdam timestamp: 2026-09-02 CEST
     *
     * Temporary Promotion Showcase state:
     *
     * View Map | Photo 3D
     *
     * Map 3D remains in the DOM/code for the upcoming deep-link fix,
     * but is temporarily hidden below.
     */
    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    width: 100% !important;
    min-width: 0 !important;

    gap: 5px !important;

    align-items: stretch !important;
}

/*
 * Amsterdam timestamp: 2026-09-02 CEST
 *
 * TEMPORARY:
 * Promotion Showcase → Map 3D deep-link currently lands in
 * regular 2D Map instead of entering hotel Map 3D.
 *
 * Keep the underlying JS/deep-link code intact so the bug can
 * be investigated without reconstructing this integration later.
 */
.hbx-promotion-showcase
#list-view
.hbx-promotion-map-link.hbx-promotion-view-map3d{
    display:none !important;
}

/*
 * Intentionally NOT a normal site button.
 * These are navigation affordances underneath the booking CTA.
 */
.hbx-promotion-showcase
#list-view
.hbx-promotion-map-link{
    box-sizing: border-box !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 29px !important;

    margin: 0 !important;
    padding: 4px 5px !important;

    border:
        1px solid rgba(0,47,167,.28) !important;

    border-radius: 999px !important;

    background:
        rgba(255,255,255,.86) !important;

    color: #002fa7 !important;

    box-shadow: none !important;

    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: .015em !important;

    text-align: center !important;
    text-decoration: none !important;

    text-transform: none !important;
    white-space: nowrap !important;

    cursor: pointer !important;
}


.hbx-promotion-showcase
#list-view
.hbx-promotion-map-link:hover,
.hbx-promotion-showcase
#list-view
.hbx-promotion-map-link:focus-visible{
    background:
        rgba(0,47,167,.07) !important;

    color: #002fa7 !important;

    border-color:
        rgba(0,47,167,.45) !important;

    text-decoration: none !important;
}


/*
 * Very narrow phones:
 * keep all three map choices on one line, but trim the typography slightly.
 */
@media screen and (max-width: 430px){

    .hbx-promotion-showcase
    #list-view
    .hbx-promotion-map-actions{
        gap: 4px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-promotion-map-link{
        min-height: 27px !important;

        padding:
            3px 2px !important;

        font-size:
            8.75px !important;
    }
}

/* Local fallback only when the static catalogue has no usable image. */
.hbx-promotion-showcase #list-view .hbx-promotion-media-empty{
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f4f5f8;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

/* Empty result message inherits the existing .hbx-list-empty styling. */
.hbx-promotion-showcase .hbx-promotion-empty{
    margin: 12px 0 20px;
}

/* Description modal is new promotion-specific behaviour. */
html.hbx-promotion-modal-open,
body.hbx-promotion-modal-open{
    overflow: hidden !important;
}

.hbx-promotion-description-modal[hidden]{
    display: none !important;
}

.hbx-promotion-description-modal{
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.hbx-promotion-description-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(8,16,38,.62);
}

.hbx-promotion-description-modal__dialog{
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 32px));
    max-height: min(78vh, 760px);
    overflow: auto;
    padding: 26px 28px 28px;
    border-radius: 20px;
    background: #fff;
    color: #1c1f26;
    box-shadow: 0 24px 80px rgba(0,0,0,.26);
    -webkit-overflow-scrolling: touch;
}

.hbx-promotion-description-modal__dialog h3{
    margin: 0 42px 14px 0;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.18;
}

.hbx-promotion-description-modal__dialog [data-hbx-promotion-description-body]{
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.6;
}

.hbx-promotion-description-modal__close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(20,36,76,.08);
    color: #14244c;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.hbx-promotion-description-modal__close:hover,
.hbx-promotion-description-modal__close:focus-visible{
    background: #002fa7;
    color: #fff;
}

/*
 * Existing List mobile card geometry remains authoritative.
 * Only make the dual CTA fit at very narrow widths.
 */
@media (max-width: 430px){
    .hbx-promotion-showcase #list-view .hbx-promotion-card-actions{
        gap: 6px !important;
    }

    .hbx-promotion-showcase #list-view .hbx-promotion-card-actions .hbx-list-view-btn{
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 12px !important;
    }

    .hbx-promotion-description-modal{
        padding: 12px;
    }

    .hbx-promotion-description-modal__dialog{
        width: calc(100vw - 24px);
        max-height: 84vh;
        padding: 22px 20px 24px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce){
    .hbx-promotion-showcase__status[data-tone="loading"]::before{
        animation-duration: 1.5s;
    }
}

/* =========================================================
   Amsterdam timestamp: 2026-09-01 CEST
   Promotion showcase controls + external campaign/rate tabs
   ========================================================= */

.hbx-promotion-showcase{
    --hbx-promotion-card-border:
        rgba(28,31,38,.12);
}


/* ---------------------------------------------------------
   Main display controls
   --------------------------------------------------------- */

.hbx-promotion-shelf-controls{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;

    width:100%;
    margin:10px 0 12px;
}


/*
 * Native radios / checkboxes remain in the accessibility tree,
 * but their labels provide the visible toggle UI.
 */
.hbx-promotion-control-input{
    position:absolute !important;

    width:1px !important;
    height:1px !important;

    margin:-1px !important;
    padding:0 !important;

    overflow:hidden !important;

    clip:rect(0 0 0 0) !important;
    clip-path:inset(50%) !important;

    white-space:nowrap !important;

    border:0 !important;
}


.hbx-promotion-view-switch{
    display:inline-flex;
    flex:0 0 auto;

    padding:2px;

    border:1px solid rgba(0,47,167,.22);
    border-radius:999px;

    background:rgba(255,255,255,.94);
}


.hbx-promotion-view-switch label,
.hbx-promotion-filter-choice label{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:32px;

    margin:0;
    padding:7px 12px;

    border:0;
    border-radius:999px;

    background:transparent;
    color:#002fa7;

    font-size:11px;
    line-height:1;
    font-weight:800;
    letter-spacing:.015em;

    white-space:nowrap;

    cursor:pointer;

    transition:
        background-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease;
}


/*
 * Hover is deliberately subtle.
 * Blue means selected — not merely "mouse still sitting here".
 */
.hbx-promotion-view-switch label:hover,
.hbx-promotion-filter-choice label:hover{
    background:rgba(0,47,167,.06);
    color:#002fa7;
}


.hbx-promotion-view-switch
.hbx-promotion-control-input:checked + label,
.hbx-promotion-view-switch
.hbx-promotion-control-input:checked + label:hover,
.hbx-promotion-filter-choice
.hbx-promotion-control-input:checked + label,
.hbx-promotion-filter-choice
.hbx-promotion-control-input:checked + label:hover{
    background:#002fa7;
    color:#fff;
}


.hbx-promotion-view-switch
.hbx-promotion-control-input:focus-visible + label,
.hbx-promotion-filter-choice
.hbx-promotion-control-input:focus-visible + label{
    outline:2px solid rgba(0,47,167,.35);
    outline-offset:2px;
}


.hbx-promotion-preselection-options{
    display:flex;
    align-items:center;
    gap:6px;

    flex:1 1 auto;

    min-width:0;

    overflow-x:auto;
    overflow-y:hidden;

    padding:2px 1px;

    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

.hbx-promotion-preselection-options::-webkit-scrollbar{
    display:none;
}


.hbx-promotion-filter-choice{
    flex:0 0 auto;
}

.hbx-promotion-filter-choice label{
    border:
        1px solid
        rgba(0,47,167,.22);
}


/* ---------------------------------------------------------
   Country selector + LOAD MORE action group
   --------------------------------------------------------- */

.hbx-promotion-control-actions{
    display:inline-flex;
    align-items:center;
    gap:8px;

    flex:0 0 auto;

    margin-left:auto;
}


/*
 * Country is styled as one pill:
 *
 * Countries: | All ▾
 *
 * Individual dropdown options contain only the country name.
 */
.hbx-promotion-country-control{
    display:inline-flex;
    align-items:center;

    min-height:36px;

    border:
        1px solid
        rgba(0,47,167,.22);

    border-radius:999px;

    background:#fff;
    color:#002fa7;

    box-sizing:border-box;
}


.hbx-promotion-country-label{
    flex:0 0 auto;

    padding-left:12px;

    font-size:11px;
    line-height:1;
    font-weight:800;

    white-space:nowrap;
}


.hbx-promotion-country-select-wrap{
    position:relative;

    display:inline-flex;
    align-items:center;

    min-width:72px;
}


/*
 * Custom arrow gives us deterministic spacing from the right edge.
 */
.hbx-promotion-country-select-wrap::after{
    content:"⌄";

    position:absolute;

    right:12px;
    top:50%;

    transform:
        translateY(-54%);

    color:#002fa7;

    font-size:13px;
    line-height:1;
    font-weight:800;

    pointer-events:none;
}


.hbx-promotion-country-control select{
    appearance:none !important;
    -webkit-appearance:none !important;

    min-width:72px;
    max-width:180px;
    min-height:34px;
    height:34px;

    margin:0 !important;

    /*
     * 34px right padding keeps the selected text well clear
     * of the custom arrow.
     */
    padding:
        0
        34px
        0
        5px !important;

    border:0 !important;
    border-radius:999px !important;

    background:transparent !important;
    color:#002fa7 !important;

    box-shadow:none !important;
    outline:none !important;

    font-size:11px !important;
    line-height:1 !important;
    font-weight:800 !important;

    cursor:pointer;
}


/*
 * No large persistent focus halo.
 * Keyboard/mouse focus is communicated by the pill border only.
 */
.hbx-promotion-country-control:focus-within{
    border-color:
        rgba(0,47,167,.48);
}


.hbx-promotion-country-control select:focus,
.hbx-promotion-country-control select:focus-visible{
    outline:none !important;
    box-shadow:none !important;
}


/* Same restrained hover treatment as the filter controls. */
.hbx-promotion-country-control:hover{
    background:
        rgba(0,47,167,.06);
}


/*
 * Global LOAD MORE visually matches the country pill.
 * Shelf-specific Show all / Load more buttons remain unchanged.
 */
.hbx-promotion-showcase
.hbx-promotion-load-more{
    appearance:none !important;
    -webkit-appearance:none !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    min-height:36px !important;
    height:36px !important;

    margin:0 !important;
    padding:
        0
        14px !important;

    border:
        1px solid
        rgba(0,47,167,.22) !important;

    border-radius:999px !important;

    background:#fff !important;
    color:#002fa7 !important;

    box-shadow:none !important;
    outline:none !important;

    font-size:11px !important;
    line-height:1 !important;
    font-weight:800 !important;
    letter-spacing:.015em !important;

    text-transform:none !important;
    white-space:nowrap !important;

    cursor:pointer !important;
}


.hbx-promotion-showcase
.hbx-promotion-load-more:hover{
    border-color:
        rgba(0,47,167,.22) !important;

    background:
        rgba(0,47,167,.06) !important;

    color:#002fa7 !important;

    box-shadow:none !important;
}


.hbx-promotion-showcase
.hbx-promotion-load-more:focus,
.hbx-promotion-showcase
.hbx-promotion-load-more:focus-visible{
    border-color:
        rgba(0,47,167,.48) !important;

    background:#fff !important;
    color:#002fa7 !important;

    outline:none !important;
    box-shadow:none !important;
}


.hbx-promotion-showcase
.hbx-promotion-show-all{
    white-space:nowrap !important;
}


.hbx-promotion-showcase
.hbx-promotion-load-more[disabled],
.hbx-promotion-showcase
.hbx-promotion-show-all[disabled]{
    opacity:.5 !important;
    pointer-events:none !important;
    cursor:wait !important;
}


/* ---------------------------------------------------------
   Promotion + live rate tab

   The tab belongs to the WHOLE hotel card rather than its body.
   It therefore remains visible on rear perspective cards.

   Border construction:
   - card and tab use exactly the same 1px border;
   - tab has no independent bottom border;
   - the card's top border is the tab's shared bottom edge.
   --------------------------------------------------------- */

.hbx-promotion-showcase
#list-view
.hbx-list-stack-card[data-promotion-tab]{
    box-sizing:border-box !important;

    overflow:visible !important;

    border:
        1px solid
        var(
            --hbx-promotion-card-border
        ) !important;
}


.hbx-promotion-showcase
#list-view
.hbx-list-stack-card[data-promotion-tab]::before{
    content:
        attr(
            data-promotion-tab
        );

    position:absolute;

    top:1px;

    z-index:45;

    display:inline-flex;
    align-items:center;

    min-height:24px;

    padding:5px 9px;

    transform:
        translateY(-100%);

    border:
        1px solid
        var(
            --hbx-promotion-card-border
        );

    border-bottom:0;

    border-radius:
        9px 9px 0 0;

    background:#fff;
    color:#002fa7;

    font-size:9.5px;
    line-height:1;
    font-weight:900;
    letter-spacing:.025em;

    white-space:nowrap;

    pointer-events:none;
}


/*
 * On the landscape card, start the tab over the copy/rate column.
 * Rear-card rotation then exposes the neighbouring rate tabs in
 * the same direction as the existing List perspective.
 */
@media screen and (min-width:1280px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card[data-promotion-tab]::before{
        left:
            calc(
                60%
            );
    }
}


/* ---------------------------------------------------------
   Promotion location line.

   Normal desktop List suppresses this line; campaign cards need
   destination / country visible.
   --------------------------------------------------------- */

.hbx-promotion-showcase
#list-view
.hbx-list-stack-card.is-active
.hbx-list-card-address{
    display:block !important;

    margin:3px 0 2px !important;

    color:#6b7280 !important;

    font-size:10.5px !important;
    line-height:1.25 !important;
    font-weight:600 !important;

    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}


/* ---------------------------------------------------------
   CTA fit
   --------------------------------------------------------- */

.hbx-promotion-showcase
#list-view
.hbx-promotion-card-actions
.hbx-list-view-btn{
    padding-left:7px !important;
    padding-right:7px !important;

    font-size:11px !important;
    letter-spacing:.015em !important;

    white-space:nowrap !important;
}


/* ---------------------------------------------------------
   Amsterdam timestamp: 2026-09-01 CEST

   Promotion-only wide desktop stack geometry.

   The regular List keeps left:50%.
   The standalone promotion showcase has no right-hand
   Guided Discovery rail, therefore centre the card group
   farther left and let the rear cards occupy the empty space.

   Rear cards are also lifted slightly so Hotel 2's promotion /
   rate tab is visible above the active card, with a smaller
   glimpse of Hotel 3.
   --------------------------------------------------------- */

@media screen and (min-width:1280px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card{
        left:40% !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-behind-1{
        transform:
            translateX(-50%)
            translate3d(
                70px,
                -8px,
                -85px
            )
            scale(.965)
            rotateY(-8deg) !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-behind-2{
        transform:
            translateX(-50%)
            translate3d(
                128px,
                -13px,
                -170px
            )
            scale(.925)
            rotateY(-13deg) !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-behind-3{
        transform:
            translateX(-50%)
            translate3d(
                182px,
                -18px,
                -260px
            )
            scale(.885)
            rotateY(-18deg) !important;
    }
}


/* ---------------------------------------------------------
   Compact screens
   --------------------------------------------------------- */

@media screen and (max-width:768px){

    .hbx-promotion-shelf-controls{
        align-items:flex-start;
    }

    .hbx-promotion-view-switch{
        flex:0 0 auto;
    }

    .hbx-promotion-preselection-options{
        order:3;
        width:100%;
        flex-basis:100%;
    }

    /*
     * Country + Load more stay together as one unit.
     * The complete unit may wrap to another line, but the two
     * controls do not become separated from each other.
     */
    .hbx-promotion-control-actions{
        margin-left:0;

        flex:0 0 auto;

        max-width:100%;
    }


    .hbx-promotion-country-control{
        flex:0 1 auto;
        min-width:150px;
    }


    .hbx-promotion-country-control select{
        max-width:150px;
    }
}

/* ---------------------------------------------------------
   Amsterdam timestamp: 2026-09-01 CEST

   Tablet/mobile promotion tab:
   extend a small white tail BEHIND the actual card image.

   This fills the visual void created by the image's rounded
   top corner without allowing the tab to cover the picture.
   --------------------------------------------------------- */

@media screen and (max-width:1279px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card[data-promotion-tab]{
        isolation:isolate !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card[data-promotion-tab]::before{
        left:0 !important;
        top:0 !important;

        min-height:32px !important;

        padding:
            7px
            10px
            11px !important;

        /*
         * Roughly 8px of the white tab continues behind the
         * photograph/card rather than ending exactly at its border.
         */
        transform:
            translateY(
                calc(
                    -100%
                    + 8px
                )
            ) !important;

        z-index:0 !important;

        border-radius:
            10px
            10px
            0
            0 !important;
    }


    /*
     * Actual image/copy stay above the tab's overlapping white tail.
     */
    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card[data-promotion-tab]
    > .hbx-list-card-media,

    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card[data-promotion-tab]
    > .hbx-list-card-body{
        position:relative !important;
        z-index:1 !important;
    }


    /*
     * The taller external tab needs its own vertical reservation.
     * Prevents the tab touching/overlapping the shelf subtitle.
     */
    .hbx-promotion-showcase
    #list-view
    .hbx-list-shelf-stack{
        margin-top:40px !important;
    }
}

/* Amsterdam timestamp: 2026-09-01 CEST
 * Promotion showcase mobile carousel gestures.
 *
 * Preserve normal vertical page scrolling while JS owns
 * intentional horizontal hotel/photo gestures.
 */
@media (hover: none), (pointer: coarse){
    .hbx-promotion-showcase #list-view [data-shelf-stack],
    .hbx-promotion-showcase #list-view [data-shelf-stack] .hbx-list-stack-rail,
    .hbx-promotion-showcase #list-view [data-promo-media-stack],
    .hbx-promotion-showcase #list-view [data-promo-media-stack] .hbx-media-stack__rail{
        touch-action: pan-y !important;
    }

    .hbx-promotion-showcase #list-view [data-promo-media-stack],
    .hbx-promotion-showcase #list-view [data-promo-media-stack] *{
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
}

/* =========================================================
   2026-09-01 CEST
   PROMOTION SHOWCASE — TABLET COPY HEIGHT

   The new Map 2D / Map 3D / Photo 3D row needs a little more
   vertical room at portrait-tablet / narrow-desktop widths.

   IMPORTANT:
   - promotion showcase only;
   - image remains exactly 276px;
   - normal List cards are untouched;
   - additional height belongs entirely to the copy/body.
   ========================================================= */

@media screen and (min-width:769px) and (max-width:1279px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-shelf-stack{
        height:650px !important;
        min-height:650px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-rail{
        height:610px !important;
        min-height:610px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card{
        height:570px !important;
        min-height:570px !important;
        max-height:570px !important;
    }


    /*
     * Explicitly preserve the existing tablet image dimensions.
     */
    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-media{
        flex:0 0 276px !important;

        height:276px !important;
        min-height:276px !important;
        max-height:276px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-media
    .hbx-media-stack,

    .hbx-promotion-showcase
    #list-view
    .hbx-media-stack--list,

    .hbx-promotion-showcase
    #list-view
    .hbx-media-stack--list
    .hbx-media-stack__rail{
        height:276px !important;
        min-height:276px !important;
        max-height:276px !important;
    }


    /*
     * 570 total - 276 media = 294px available to the copy.
     */
    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-body{
        flex:1 1 auto !important;

        min-height:294px !important;
        max-height:none !important;

        overflow:hidden !important;
    }
}

/*
 * =========================================================
 * Amsterdam timestamp: 2026-09-02 CEST
 * Promotion showcase compositor containment
 * =========================================================
 *
 * Shared List CSS puts will-change on every List card.
 *
 * Promotion shelves can represent hundreds/thousands of logical
 * hotels, so never promote dormant/buffer cards unnecessarily.
 *
 * Only cards which are currently visible/moving in the 3D stack
 * receive the compositor hint.
 */

.hbx-promotion-showcase
#list-view
.hbx-list-stack-card{
    will-change:auto !important;
}


.hbx-promotion-showcase
#list-view
.hbx-list-stack-card.is-active,

.hbx-promotion-showcase
#list-view
.hbx-list-stack-card.is-behind-1,

.hbx-promotion-showcase
#list-view
.hbx-list-stack-card.is-behind-2,

.hbx-promotion-showcase
#list-view
.hbx-list-stack-card.is-behind-3,

.hbx-promotion-showcase
#list-view
.hbx-list-stack-card.is-promoting{
    will-change:
        transform,
        opacity !important;
}


.hbx-promotion-showcase
#list-view
.hbx-list-stack-card.hbx-list-stack-card--hidden{
    will-change:auto !important;
}

/*
 * =========================================================
 * Amsterdam timestamp: 2026-09-02 CEST
 * PROMOTION SHOWCASE — additional copy room
 *
 * Wide desktop:
 * - regular List remains 720x280;
 * - promotion card becomes 820x320;
 * - 60/40 image/copy ratio remains;
 * - increasing width together with height preserves the
 *   established landscape image proportion closely.
 *
 * Mobile:
 * - image remains exactly 276px;
 * - extra 50px goes entirely to copy / promotion / CTA room.
 *
 * Tablet 769–1279px is deliberately untouched here because
 * its current 570px promotion geometry is already validated.
 * =========================================================
 */


/* ---------------------------------------------------------
   Wide desktop — promotion only
   --------------------------------------------------------- */

@media screen and (min-width:1280px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-shelf-stack{
        height:410px !important;
        min-height:410px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-rail{
        height:340px !important;
        min-height:340px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card{
        width:
            min(
                820px,
                calc(100vw - 180px)
            ) !important;

        height:320px !important;
        min-height:320px !important;
        max-height:320px !important;

        grid-template-columns:
            minmax(0, 60%)
            minmax(0, 40%) !important;

        grid-template-rows:
            320px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-media{
        height:320px !important;
        min-height:320px !important;
        max-height:320px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-media
    .hbx-media-stack,

    .hbx-promotion-showcase
    #list-view
    .hbx-media-stack--list,

    .hbx-promotion-showcase
    #list-view
    .hbx-media-stack--list
    .hbx-media-stack__rail{
        height:320px !important;
        min-height:320px !important;
        max-height:320px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-body{
        height:320px !important;
        min-height:320px !important;
        max-height:320px !important;

        padding:
            18px
            20px
            16px !important;
    }


    /*
     * Promotion cards have no List hide button.
     * Do not waste 40px of hotel-name width reserving its zone.
     */
    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-title{
        padding-right:0 !important;
    }

}


/* ---------------------------------------------------------
   Mobile — promotion only
   --------------------------------------------------------- */

@media screen and (max-width:768px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-shelf-stack{
        height:650px !important;
        min-height:650px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-rail{
        height:610px !important;
        min-height:610px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card{
        height:570px !important;
        min-height:570px !important;
        max-height:570px !important;
    }


    /*
     * Keep the validated mobile image exactly as it is.
     * All additional height belongs to the body.
     */
    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-media{
        flex:0 0 276px !important;

        height:276px !important;
        min-height:276px !important;
        max-height:276px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-media
    .hbx-media-stack,

    .hbx-promotion-showcase
    #list-view
    .hbx-media-stack--list,

    .hbx-promotion-showcase
    #list-view
    .hbx-media-stack--list
    .hbx-media-stack__rail{
        height:276px !important;
        min-height:276px !important;
        max-height:276px !important;
    }


    /*
     * 570 total - 276 media = 294px of copy/CTA room.
     * This matches the already-valid promotion tablet body budget.
     */
    .hbx-promotion-showcase
    #list-view
    .hbx-list-card-body{
        flex:1 1 auto !important;

        min-height:294px !important;
        max-height:none !important;

        overflow:hidden !important;
    }

}

/*
 * =========================================================
 * Amsterdam timestamp: 2026-09-02 CEST
 * Promotion rear-card tab visibility
 *
 * Promotion tabs sit above each hotel card.
 *
 * Regular List perspective moves rear cards downward, which
 * hides those tabs behind the active card on portrait layouts.
 *
 * For Promotion Showcase only:
 * - reduce depth / scale / rotation;
 * - move rear cards slightly UP rather than down;
 * - retain enough horizontal displacement for each rear tab
 *   to peek out from behind the active card.
 * =========================================================
 */


/* ---------------------------------------------------------
   Tablet / narrow desktop
   --------------------------------------------------------- */

@media screen and (min-width:769px) and (max-width:1279px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-rail{
        perspective:1200px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-behind-1{
        opacity:.72 !important;

        transform:
            translateX(-50%)
            translate3d(
                42px,
                -7px,
                -80px
            )
            scale(.97)
            rotateY(-4deg) !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-behind-2{
        opacity:.50 !important;

        transform:
            translateX(-50%)
            translate3d(
                82px,
                -13px,
                -150px
            )
            scale(.94)
            rotateY(-7deg) !important;
    }


    /*
     * Used at 1024–1279px where the shared stack exposes
     * a third rear card.
     */
    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-behind-3{
        opacity:.34 !important;
        visibility:visible !important;

        transform:
            translateX(-50%)
            translate3d(
                118px,
                -18px,
                -210px
            )
            scale(.91)
            rotateY(-9deg) !important;
    }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media screen and (max-width:768px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-rail{
        perspective:1200px !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-behind-1{
        opacity:.70 !important;

        transform:
            translateX(-50%)
            translate3d(
                26px,
                -6px,
                -65px
            )
            scale(.975)
            rotateY(-3deg) !important;
    }


    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-behind-2{
        opacity:.48 !important;

        transform:
            translateX(-50%)
            translate3d(
                50px,
                -11px,
                -125px
            )
            scale(.95)
            rotateY(-5deg) !important;
    }

}

/*
 * =========================================================
 * Amsterdam timestamp: 2026-09-02 CEST
 * Promotion CTA handover
 *
 * The shared List staged promotion intentionally keeps the
 * outgoing active card above the incoming card until the
 * incoming shell reaches active geometry.
 *
 * On wide desktop and mobile that made VIEW RATES / Map controls
 * look visually fixed while the hotel changed.
 *
 * Fade the outgoing promotion CTA group during that short handover.
 * Tablet keeps the currently validated behaviour.
 * =========================================================
 */

@media screen and (min-width:1280px),
       screen and (max-width:768px){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-retiring
    .hbx-promotion-card-actions{
        opacity:0 !important;

        transform:
            translateY(4px) !important;

        pointer-events:none !important;

        transition:
            opacity 90ms ease,
            transform 90ms ease !important;
    }

}


/*
 * Reduced-motion users should not get the small CTA movement.
 */
@media (prefers-reduced-motion:reduce){

    .hbx-promotion-showcase
    #list-view
    .hbx-list-stack-card.is-retiring
    .hbx-promotion-card-actions{
        opacity:0 !important;

        transform:none !important;

        transition:none !important;
    }

}

