/*
 * BalkanBeds Modern Homepage — homepage-v2.css
 * Loaded only on pages using template/template-homepage-v2.php.
 * All rules scoped to .bb-hv2 except topbar overrides (output inline via PHP).
 *
 * --bb-primary, --bb-secondary, and --bb-type-scale are injected by PHP at runtime.
 * All font-size values use calc(Xrem * var(--bb-type-scale, 1)).
 */

/* ══════════════════════════════════════════════════════
   HEADER / TRANSPARENT OVERLAY APPROACH
   .nav-area stays in-flow (position:static) so Homey's scroll JS
   works normally — it adds sticky-nav-area on scroll and removes
   transparent-header from .nav-area.
   The hero gets a negative top margin equal to the nav height so it
   visually slides up behind the nav. Homey's transparent-header CSS
   (main.css line ~6528) already handles .header-nav transparency.
   We only need to add .header-top-bar transparency here.
══════════════════════════════════════════════════════ */

/* Pull the hero up so it fills behind the in-flow nav */
body.bb-hv2-page .bb-hv2-hero {
    margin-top: -120px;   /* approx combined topbar + header-nav height */
    padding-top: 120px;   /* keep inner content visually in same place */
}

/* Transparent state (at top of page — .transparent-header is on .nav-area) */
body.bb-hv2-page .transparent-header .header-top-bar {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: none !important;
}

body.bb-hv2-page .transparent-header .header-top-bar .top-bar-inner,
body.bb-hv2-page .transparent-header .header-top-bar a,
body.bb-hv2-page .transparent-header .header-top-bar li,
body.bb-hv2-page .transparent-header .header-top-bar span,
body.bb-hv2-page .transparent-header .header-top-bar .social-icons a,
body.bb-hv2-page .transparent-header .crncy-lang-block a {
    color: rgba(255,255,255,0.85) !important;
}

body.bb-hv2-page .transparent-header .header-top-bar .gt_switcher,
body.bb-hv2-page .transparent-header .header-top-bar .gt_selected a,
body.bb-hv2-page .transparent-header .header-top-bar .selectpicker,
body.bb-hv2-page .transparent-header .header-top-bar select {
    color: rgba(255,255,255,0.85) !important;
    background: transparent !important;
    border-color: rgba(255,255,255,0.2) !important;
}

/* ── GTranslate: no white background on hover (beats Customizer 0,3,0 with 0,5,0) ── */
body.bb-hv2-page .transparent-header .header-top-bar .gtranslate_wrapper .gt_switcher:hover,
body.bb-hv2-page .transparent-header .header-top-bar .gtranslate_wrapper .gt_switcher:focus {
    background: transparent !important;
    box-shadow: none !important;
}
/* Blue text when hovering the selected language */
body.bb-hv2-page .transparent-header .header-top-bar .gtranslate_wrapper .gt_switcher:hover .gt_selected a,
body.bb-hv2-page .transparent-header .header-top-bar .gtranslate_wrapper .gt_switcher .gt_selected a:hover {
    color: #2ec1db !important;
    background: transparent !important;
}
/* GT dropdown: push below the 47px switcher, not overlapping it */
body.bb-hv2-page .transparent-header .header-top-bar .gtranslate_wrapper .gt_option {
    top: 47px !important;
}

/* ── Currency switcher: transparent in all hover/focus/active states ── */
body.bb-hv2-page .transparent-header .header-top-bar .crncy-lang-block .currency-menu:hover,
body.bb-hv2-page .transparent-header .header-top-bar .crncy-lang-block li:hover {
    background: transparent !important;
    box-shadow: none !important;
}
body.bb-hv2-page .transparent-header .header-top-bar .crncy-lang-block #crn-dropdown:hover,
body.bb-hv2-page .transparent-header .header-top-bar .crncy-lang-block #crn-dropdown:focus,
body.bb-hv2-page .transparent-header .header-top-bar .crncy-lang-block #crn-dropdown:active {
    background: transparent !important;
    box-shadow: none !important;
    color: #2ec1db !important;
}
body.bb-hv2-page .transparent-header .header-top-bar .crncy-lang-block #crn-dropdown:hover span,
body.bb-hv2-page .transparent-header .header-top-bar .crncy-lang-block #crn-dropdown:hover i {
    color: #2ec1db !important;
}

/* ── Dropdown panels: white background, blue text ── */
body.bb-hv2-page .transparent-header .header-top-bar .gt_option a,
body.bb-hv2-page .transparent-header .header-top-bar #homey-currency-switcher-list a,
body.bb-hv2-page .transparent-header .header-top-bar #homey-currency-switcher-list li {
    color: #2ec1db !important;
    background: #fff !important;
}

/* ── Social icons: teal on hover ── */
body.bb-hv2-page .transparent-header .header-top-bar .social-icons a:hover,
body.bb-hv2-page .transparent-header .header-top-bar .social-icons a:hover i {
    color: #2ec1db !important;
    background: transparent !important;
}

/* ── Account dropdown: restore dark text/icons ──
   Must match specificity of .transparent-header .header-comp-right a (0,3,1)
   since account-dropdown lives inside header-comp-right. */
body.bb-hv2-page .header-comp-right .account-dropdown,
body.bb-hv2-page .header-comp-right .account-dropdown a,
body.bb-hv2-page .header-comp-right .account-dropdown li,
body.bb-hv2-page .header-comp-right .account-dropdown span,
body.bb-hv2-page .header-comp-right .account-dropdown i {
    color: #1e293b !important;
}

body.bb-hv2-page .header-comp-right .account-dropdown a:hover,
body.bb-hv2-page .header-comp-right .account-dropdown a:hover i {
    color: var(--bb-primary, #2EC2DB) !important;
}

/* Ensure main nav links + become-a-host button are white when transparent */
body.bb-hv2-page .transparent-header .navi > .main-menu > li > a,
body.bb-hv2-page .transparent-header .login-register a,
body.bb-hv2-page .transparent-header .btn-add-new-listing,
body.bb-hv2-page .transparent-header .header-comp-right a,
body.bb-hv2-page .transparent-header .header-comp-right span {
    color: #fff !important;
}
body.bb-hv2-page .transparent-header .btn-add-new-listing {
    border-color: rgba(255,255,255,0.7) !important;
    background: transparent !important;
}

/* Lift the nav-area above the hero.
   The hero has margin-top:-120px which causes it to physically overlap the nav.
   With position:relative;z-index:0 on the hero, it would otherwise cover the nav,
   intercepting pointer events and burying top-bar widgets. z-index:5 ensures the
   entire nav (top-bar + header-nav) renders and receives clicks above the hero. */
body.bb-hv2-page .nav-area {
    position: relative;
    z-index: 5;
}

/* Sticky state (on scroll — Homey removes transparent-header, adds sticky-nav-area
   to #homey_nav_sticky and sets position:fixed. Give it a white background.) */
body.bb-hv2-page #homey_nav_sticky.sticky-nav-area {
    background: #fff !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10) !important;
}

/* ══════════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════════ */
.bb-hv2 *,
.bb-hv2 *::before,
.bb-hv2 *::after {
    box-sizing: border-box;
}

.bb-hv2 {
    font-size: calc(1.125rem * var(--bb-type-scale, 1));
    line-height: 1.65;
    color: #1a1a2e;
}

/* ══════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════ */
.bb-hv2-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.bb-hv2-section {
    padding: 96px 0;
}

.bb-hv2-section__hdr {
    margin-bottom: 56px;
}

.bb-hv2-section__hdr--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.bb-hv2-section__hdr--center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.bb-hv2-section__title {
    font-size: calc(2.75rem * var(--bb-type-scale, 1));
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    color: #0f172a;
}

.bb-hv2-section__sub {
    font-size: calc(1.1875rem * var(--bb-type-scale, 1));
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.bb-hv2-section__cta {
    text-align: center;
    margin-top: 56px;
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.bb-hv2-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: calc(1.0625rem * var(--bb-type-scale, 1));
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    white-space: nowrap;
}

.bb-hv2-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.bb-hv2-btn--primary {
    background: var(--bb-primary, #2a9d8f);
    color: #fff;
    border-color: var(--bb-primary, #2a9d8f);
    box-shadow: 0 8px 24px rgba(42, 157, 143, 0.35);
}

.bb-hv2-btn--primary:hover {
    box-shadow: 0 12px 32px rgba(42, 157, 143, 0.45);
    color: #fff;
    opacity: 0.92;
}

.bb-hv2-btn--outline {
    background: transparent;
    color: var(--bb-primary, #2a9d8f);
    border-color: var(--bb-primary, #2a9d8f);
}

.bb-hv2-btn--outline:hover {
    background: var(--bb-primary, #2a9d8f);
    color: #fff;
}

.bb-hv2-btn--light {
    background: #fff;
    color: #0f172a;
    border-color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.bb-hv2-btn--light:hover {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    box-shadow: none;
}

.bb-hv2-link-more {
    font-size: calc(1rem * var(--bb-type-scale, 1));
    font-weight: 700;
    color: var(--bb-primary, #2a9d8f);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    align-self: center;
}

.bb-hv2-link-more:hover {
    border-bottom-color: var(--bb-primary, #2a9d8f);
    text-decoration: none;
    color: var(--bb-primary, #2a9d8f);
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.bb-hv2-hero {
    position: relative;
    z-index: 0;          /* keep hero below the header stacking context so top-bar dropdowns aren't buried */
    min-height: 130vh;
    display: flex;
    align-items: center;
    background-color: var(--bb-secondary, #264653);
    background-size: cover;
    background-position: center top;
    overflow: visible;
    /* Extra bottom padding shifts the flex centre-point upward,
       keeping content in the upper portion of the taller hero */
    padding-bottom: 180px;
}

.bb-hv2-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.48) 50%,
        rgba(0, 0, 0, 0.70) 100%
    );
    z-index: 1;
}

.bb-hv2-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 140px 32px 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
}

.bb-hv2-hero__copy {
    max-width: 780px;
}

.bb-hv2-hero__eyebrow {
    font-size: calc(0.875rem * var(--bb-type-scale, 1));
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bb-primary, #2a9d8f);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bb-hv2-hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--bb-primary, #2a9d8f);
    flex-shrink: 0;
}

.bb-hv2-hero__heading {
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 24px;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.bb-hv2-hero__heading-accent {
    color: var(--bb-primary, #2a9d8f);
    display: block;
}

/* Hero subtitle — larger, bold, white, scales with type toggle */
.bb-hv2-hero__sub {
    font-size: calc(1.625rem * var(--bb-type-scale, 1));
    color: #fff;
    margin: 0;
    font-weight: 700;
    line-height: 1.45;
    max-width: 640px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}

/* ── Search bar ──────────────────────────────────── */
.bb-hv2-hero__search {
    width: 100%;
    max-width: 1100px;
}

/* Wrap the theme's search in a white card.
   overflow:visible is critical — the date-picker and guest-count
   dropdowns are absolutely-positioned children that extend below
   the bar; overflow:hidden would clip them. */
.bb-hv2-hero__search .search-wrap.search-banner.search-banner-desktop {
    background: #fff;
    border-radius: 50px;
    box-shadow:
        0 32px 80px rgba(0,0,0,0.30),
        0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 6px 6px 0;
    border: none;
    margin: 0;
    overflow: visible;
}

.bb-hv2-hero__search .search-wrap.search-banner.search-banner-desktop form {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0;
    height: 60px;
}

/* Individual search fields */
.bb-hv2-hero__search .search-banner-desktop .search-destination,
.bb-hv2-hero__search .search-banner-desktop .search-date-range,
.bb-hv2-hero__search .search-banner-desktop .search-guests,
.bb-hv2-hero__search .search-banner-desktop .search-type {
    background: transparent;
    border: none;
    border-right: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    min-width: 0;
    flex: 1;
}

/* Location narrower; guests matches a single date field */
.bb-hv2-hero__search .search-banner-desktop .search-destination {
    flex: 1.5;
}

.bb-hv2-hero__search .search-banner-desktop .search-guests {
    flex: 0.7;
    padding-right: 8px;
}

.bb-hv2-hero__search .search-banner-desktop .search-date-range {
    display: flex;
    flex-direction: row;
    flex: 1.4;
}

.bb-hv2-hero__search .search-banner-desktop .search-date-range-arrive,
.bb-hv2-hero__search .search-banner-desktop .search-date-range-depart {
    flex: 1;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    position: relative;
}

.bb-hv2-hero__search .search-banner-desktop .search-date-range-depart {
    border-right: none;
}

/* Hide animated floating labels */
.bb-hv2-hero__search .search-banner-desktop .animated-label {
    display: none !important;
}

/* Input styling */
.bb-hv2-hero__search .search-banner-desktop .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 14px 0 44px;
    height: 100%;
    font-size: calc(1.125rem * var(--bb-type-scale, 1));
    font-weight: 500;
    color: #0f172a;
    border-radius: 0;
    line-height: 60px;
}

.bb-hv2-hero__search .search-banner-desktop .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.bb-hv2-hero__search .search-banner-desktop .form-control:focus {
    outline: none;
    background: #f8fafc !important;
}

/* ── SVG icons replacing Homey icon font ─────────────
   The theme uses :after pseudo-elements on the field containers.
   We override them with modern inline SVG data URIs.
   font-family/content overrides prevent the icon font from rendering.
*/
.bb-hv2-hero__search .search-banner-desktop .search-destination:after,
.bb-hv2-hero__search .search-banner-desktop .search-date-range-arrive:after,
.bb-hv2-hero__search .search-banner-desktop .search-date-range-depart:after,
.bb-hv2-hero__search .search-banner-desktop .search-guests:after {
    content: '' !important;
    font-family: none !important;
    display: block !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    line-height: 1 !important;
    font-size: 0 !important;
}

/* Location / destination — map pin */
.bb-hv2-hero__search .search-banner-desktop .search-destination:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") !important;
}

/* Arrive date — calendar */
.bb-hv2-hero__search .search-banner-desktop .search-date-range-arrive:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
}

/* Depart date — calendar with arrow */
.bb-hv2-hero__search .search-banner-desktop .search-date-range-depart:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cpolyline points='9 15 12 18 15 15'/%3E%3C/svg%3E") !important;
}

/* Guests — people icon */
.bb-hv2-hero__search .search-banner-desktop .search-guests:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") !important;
}

/* Guest picker + date calendar popups must appear BELOW the search bar.
   align-self:stretch makes these containers fill the full form height (60px),
   so top:100% on their children anchors to the true bottom of the search bar. */
.bb-hv2-hero__search .search-banner-desktop .search-guests,
.bb-hv2-hero__search .search-banner-desktop .search-date-range {
    position: relative;
    align-self: stretch;
}

.bb-hv2-hero__search .search-banner-desktop .search-guests-wrap {
    position: absolute !important;
    top: calc(100% + 16px) !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 0 !important;
    z-index: 200 !important;
    min-width: 260px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18) !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}


/* Calendar popup — override Homey's default which has no top value */
.bb-hv2-hero__search .search-banner-desktop .search-calendar {
    top: calc(100% + 8px) !important;
    transform: none !important;
    left: 50% !important;
    right: auto !important;
    margin-left: -300px !important; /* centre the 600px-wide calendar */
    z-index: 200 !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18) !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Bootstrap select overrides for the listing type field */
.bb-hv2-hero__search .search-banner-desktop .bootstrap-select,
.bb-hv2-hero__search .search-banner-desktop .selectpicker {
    width: 100% !important;
}

.bb-hv2-hero__search .search-banner-desktop .bootstrap-select .dropdown-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 20px 0 44px;
    height: 60px;
    font-size: calc(1.125rem * var(--bb-type-scale, 1));
    font-weight: 500;
    color: #0f172a;
    border-radius: 0;
    display: flex;
    align-items: center;
    position: relative;
}

/* House icon for property type dropdown */
.bb-hv2-hero__search .search-banner-desktop .search-type::after {
    content: '' !important;
    font-family: none !important;
    display: block !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    pointer-events: none;
    z-index: 1;
}

.bb-hv2-hero__search .search-banner-desktop .bootstrap-select .dropdown-toggle .caret {
    margin-left: auto;
    color: #94a3b8;
}

/* Clear button */
.bb-hv2-hero__search .search-banner-desktop .clear-input-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 4px;
    font-size: calc(0.75rem * var(--bb-type-scale, 1));
    cursor: pointer;
    z-index: 2;
}

/* Search button — Homey sets display:table-cell + vertical-align:top.
   The form is now flex, so the button div is a flex child.
   align-self:center vertically centers it in the 60px flex row.
   body.bb-hv2-page prefix raises specificity to 0,4,1 — beats parent theme's
   .search-banner.search-banner-desktop :is(.search-guests,.search-button)
   which is 0,3,0 and sets padding:0 !important */
body.bb-hv2-page .bb-hv2-hero__search .search-banner-desktop .search-button {
    display: flex !important;
    flex-shrink: 0;
    align-items: center !important;
    align-self: center !important;
    justify-content: center;
    vertical-align: middle !important;
    padding: 0 6px 0 14px !important;
}

.bb-hv2-hero__search .search-banner-desktop .search-button .btn.btn-primary {
    background: var(--bb-primary, #2EC2DB) !important;
    border-color: var(--bb-primary, #2EC2DB) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 0 42px;
    font-weight: 700;
    font-size: calc(1rem * var(--bb-type-scale, 1));
    height: 52px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(46,194,219,0.4);
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.bb-hv2-hero__search .search-banner-desktop .search-button .btn.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(42,157,143,0.5);
    transform: translateY(-1px);
}

/* Mobile search — scoped to ≤768px so the parent's display:none hides it on desktop */
@media (max-width: 768px) {
    .bb-hv2-hero__search .search-banner-mobile {
        background: #fff;
        border-radius: 42px;
        border: none;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        display: flex;
        align-items: center;
        height: 54px;
    }

    /* form and .search-destination must fill the 54px flex container */
    .bb-hv2-hero__search .search-banner-mobile form {
        height: 100%;
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    .bb-hv2-hero__search .search-banner-mobile .search-destination {
        flex: 1;
        height: 100%;
        display: flex;
        align-items: center;
        position: relative;
    }

    /* height:100% !important beats parent's height:40px !important via cascade (our sheet loads last) */
    .bb-hv2-hero__search .search-banner-mobile .form-control {
        background: transparent;
        border: none;
        color: #0f172a;
        font-size: calc(1rem * var(--bb-type-scale, 1));
        padding: 0 20px 0 44px;
        height: 100% !important;
        line-height: normal;
        width: 100%;
        display: block;
    }

    .bb-hv2-hero__search .search-banner-mobile .form-control::placeholder {
        color: #94a3b8;
    }

    /* Centre the magnifying glass icon vertically in the mobile pill */
    .bb-hv2-hero__search .search-banner-mobile .search-destination:after {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 16px !important;
        margin-top: 0 !important;
    }
}

/* ══════════════════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════════════════ */
.bb-hv2-stats {
    background: linear-gradient(135deg, #052e39 0%, #0d6273 40%, var(--bb-primary, #2EC2DB) 100%);
    padding: 22px 0;
}

.bb-hv2-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.bb-hv2-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 24px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.bb-hv2-stat:last-child {
    border-right: none;
}

.bb-hv2-stat__num {
    font-size: calc(2.25rem * var(--bb-type-scale, 1));
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.bb-hv2-stat__label {
    font-size: calc(0.875rem * var(--bb-type-scale, 1));
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* ══════════════════════════════════════════════════════
   CATEGORY QUICK SEARCH — CSS GRID LAYOUT
══════════════════════════════════════════════════════ */
.bb-hv2-categories {
    background: #f8fafc;
    padding-top: 48px;
    padding-bottom: 80px;
    position: relative;
}

.bb-hv2-categories::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #eef2f7);
    pointer-events: none;
    z-index: 0;
}

.bb-hv2-categories > .bb-hv2-container {
    position: relative;
    z-index: 1;
}

.bb-hv2-categories .bb-hv2-section__hdr {
    margin-bottom: 40px;
}

/* 4-column grid matching production layout.
   Pattern: wide(2)-narrow-narrow | narrow-narrow-wide(2) | wide(2)-narrow-narrow */
.bb-hv2-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 264px;
    gap: 12px;
}

.bb-hv2-type-tile:nth-child(1),
.bb-hv2-type-tile:nth-child(6),
.bb-hv2-type-tile:nth-child(7) {
    grid-column: span 2;
}

.bb-hv2-type-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 4px;
    padding: 24px 24px 20px;
    border-radius: 40px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.bb-hv2-type-tile:hover {
    transform: scale(1.03);
    box-shadow: 0 24px 56px rgba(46,194,219,0.18), 0 8px 24px rgba(0,0,0,0.18);
    text-decoration: none;
}

.bb-hv2-type-tile:hover .bb-hv2-type-tile__name {
    transform: translateY(-5px);
}

.bb-hv2-type-tile:hover .bb-hv2-type-tile__explore {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient fallback palettes */
.bb-hv2-type-tile[data-index="0"] { background: linear-gradient(145deg, #1a3a4a 0%, #2a9d8f 100%); }
.bb-hv2-type-tile[data-index="1"] { background: linear-gradient(145deg, #2d1b69 0%, #5e35b1 100%); }
.bb-hv2-type-tile[data-index="2"] { background: linear-gradient(145deg, #7b3f00 0%, #c0694d 100%); }
.bb-hv2-type-tile[data-index="3"] { background: linear-gradient(145deg, #1a4a2a 0%, #2e7d52 100%); }
.bb-hv2-type-tile[data-index="4"] { background: linear-gradient(145deg, #0d2137 0%, #1565c0 100%); }
.bb-hv2-type-tile[data-index="5"] { background: linear-gradient(145deg, #4a1a2a 0%, #a0364a 100%); }
.bb-hv2-type-tile[data-index="6"] { background: linear-gradient(145deg, #2a2a1a 0%, #8d8c52 100%); }
.bb-hv2-type-tile[data-index="7"] { background: linear-gradient(145deg, #1a2a4a 0%, #4d6fa6 100%); }
.bb-hv2-type-tile[data-index="8"] { background: linear-gradient(145deg, #1a3a4a 0%, #2a9d8f 100%); }

/* Bottom scrim for gradient tiles */
.bb-hv2-type-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Photo tiles */
.bb-hv2-type-tile--has-img {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a3a4a;
}

.bb-hv2-type-tile--has-img::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.20) 50%,
        rgba(0, 0, 0, 0.0) 100%
    );
    transition: background 0.3s ease;
}

.bb-hv2-type-tile:hover.bb-hv2-type-tile--has-img::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(10, 80, 90, 0.25) 55%,
        rgba(0, 0, 0, 0.0) 100%
    );
}

.bb-hv2-type-tile__name {
    position: relative;
    font-size: calc(1.125rem * var(--bb-type-scale, 1));
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.04em;
    z-index: 1;
    transition: transform 0.3s ease;
}

.bb-hv2-type-tile__explore {
    position: relative;
    z-index: 1;
    font-size: calc(0.8125rem * var(--bb-type-scale, 1));
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bb-hv2-type-tile__count {
    position: relative;
    font-size: calc(0.8125rem * var(--bb-type-scale, 1));
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════
   FEATURED LISTINGS CAROUSEL
══════════════════════════════════════════════════════ */
.bb-hv2-featured {
    background: #eef2f7;
    padding-bottom: 28px !important;
    position: relative;
}

.bb-hv2-featured::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
    pointer-events: none;
    z-index: 0;
}

.bb-hv2-featured > .bb-hv2-container {
    position: relative;
    z-index: 1;
}

.bb-hv2-carousel {
    margin: 0 -12px;
    padding-bottom: 10px;
    overflow: visible; /* allows arrows at -60px to sit outside without clipping */
}

/* Keep Slick's default clip on slides; padding-bottom gives hover shadow some room */
.bb-hv2-carousel .slick-list {
    overflow: hidden;
    padding-bottom: 12px;
}

.bb-hv2-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}

.bb-hv2-carousel .slick-slide {
    padding: 0 12px;
    height: inherit;
    display: flex !important;
    flex-direction: column;
}

.bb-hv2-carousel .slick-slide > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bb-hv2-carousel .slick-dots {
    bottom: -8px;
}

.bb-hv2-carousel .slick-dots li button:before {
    color: #cbd5e1;
    font-size: 9px;
    opacity: 1;
}

.bb-hv2-carousel .slick-dots li.slick-active button:before {
    color: var(--bb-primary, #2a9d8f);
    opacity: 1;
}

.bb-hv2-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 20px));
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    font-size: calc(1.0625rem * var(--bb-type-scale, 1));
    color: #0f172a;
}

.bb-hv2-arrow:hover {
    background: var(--bb-primary, #2a9d8f);
    border-color: var(--bb-primary, #2a9d8f);
    color: #fff;
    box-shadow: 0 6px 20px rgba(42,157,143,0.35);
}

.bb-hv2-arrow--prev { left: -60px; }
.bb-hv2-arrow--next { right: -60px; }

.bb-hv2-arrow.slick-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ── Card ─────────────────────────────────────────── */
.bb-hv2-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
    /* whole-card link resets */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.bb-hv2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 56px rgba(0,0,0,0.11);
    border-color: transparent;
    text-decoration: none;
    color: inherit;
}

.bb-hv2-card__img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 200px;
    background: #e2e8f0;
    /* Inset from card edges so all 4 corners are visibly rounded */
    margin: 10px 10px 0 10px;
    border-radius: 14px;
}

.bb-hv2-card__img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.bb-hv2-card:hover .bb-hv2-card__img {
    transform: scale(1.06);
}

.bb-hv2-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.bb-hv2-card__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.bb-hv2-card__badges .label-wrap { position: static; }

.bb-hv2-card__img-wrap .label-wrap.top-left {
    top: 4px !important;
    left: 4px !important;
}

.bb-hv2-card__rating-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: calc(0.875rem * var(--bb-type-scale, 1));
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.bb-hv2-card__rating-badge .homey-icon {
    color: #fbbf24;
    font-size: calc(0.8rem * var(--bb-type-scale, 1));
}

.bb-hv2-card__body {
    padding: 8px 18px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bb-hv2-card__location {
    font-size: calc(0.9375rem * var(--bb-type-scale, 1));
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide the map-pin icon so location text aligns flush-left with the title below */
.bb-hv2-card__location .homey-icon {
    display: none;
}

/* Single-line title with ellipsis — matches the confirmed child-theme fix
   for .item-card-view but scoped to our custom cards */
.bb-hv2-card__title {
    font-size: calc(1.25rem * var(--bb-type-scale, 1));
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.bb-hv2-card__title span,
.bb-hv2-card__title a {
    color: #0f172a;
    text-decoration: none;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bb-hv2-card:hover .bb-hv2-card__title span,
.bb-hv2-card:hover .bb-hv2-card__title a {
    color: var(--bb-primary, #2EC2DB);
}

.bb-hv2-card__amenities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bb-hv2-card__amenities li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: calc(1rem * var(--bb-type-scale, 1));
    color: #64748b;
    font-weight: 500;
}

.bb-hv2-card__amenities .homey-icon {
    font-size: calc(1.0625rem * var(--bb-type-scale, 1));
    color: #94a3b8;
}

.bb-hv2-card__price {
    margin-top: 2px;
    margin-bottom: 0;
    padding-bottom: 18px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: calc(1.375rem * var(--bb-type-scale, 1));
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.bb-hv2-card__price-label {
    font-size: calc(1rem * var(--bb-type-scale, 1));
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0;
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.bb-hv2-how {
    background: #eef2f7;
    padding-top: 48px;
}

.bb-hv2-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    position: relative;
    counter-reset: bb-steps;
}

/* Connecting dashed line between the three icons */
.bb-hv2-steps::before {
    content: '';
    position: absolute;
    top: 44px; /* vertically centred on the 88px icon */
    left: calc(16.67% + 44px);
    right: calc(16.67% + 44px);
    height: 0;
    border-top: 2px dashed rgba(46, 194, 219, 0.4);
    pointer-events: none;
    z-index: 0;
}

.bb-hv2-step {
    position: relative;
    text-align: center;
    padding: 0 20px;
    counter-increment: bb-steps;
}

.bb-hv2-step__num {
    display: none;
}

.bb-hv2-step__icon {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(46, 194, 219, 0.3);
    box-shadow: 0 4px 20px rgba(46, 194, 219, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    transition: all 0.3s ease;
}

/* Step number badge — hidden */
.bb-hv2-step__icon::after {
    display: none;
}

.bb-hv2-step:hover .bb-hv2-step__icon {
    background: var(--bb-primary, #2EC2DB);
    border-color: var(--bb-primary, #2EC2DB);
    box-shadow: 0 12px 32px rgba(46,194,219,0.35);
    transform: translateY(-4px);
}

.bb-hv2-step__icon .homey-icon {
    font-size: calc(1.875rem * var(--bb-type-scale, 1));
    color: var(--bb-primary, #2EC2DB);
    transition: color 0.25s;
}

.bb-hv2-step:hover .bb-hv2-step__icon .homey-icon {
    color: #fff;
}


.bb-hv2-step__title {
    font-size: calc(1.375rem * var(--bb-type-scale, 1));
    font-weight: 800;
    margin: 0 0 12px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.bb-hv2-step__text {
    font-size: calc(1rem * var(--bb-type-scale, 1));
    color: #64748b;
    line-height: 1.75;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════════════════ */
.bb-hv2-trust {
    background: #f8fafc;
    padding: 72px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.bb-hv2-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.bb-hv2-trust-item {
    text-align: center;
}

.bb-hv2-trust-item > .homey-icon {
    font-size: calc(2.5rem * var(--bb-type-scale, 1));
    color: var(--bb-primary, #2a9d8f);
    display: block;
    margin-bottom: 20px;
}

.bb-hv2-trust-item h4 {
    font-size: calc(1.25rem * var(--bb-type-scale, 1));
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.bb-hv2-trust-item p {
    font-size: calc(1.0625rem * var(--bb-type-scale, 1));
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   HOST CTA — thin horizontal strip
══════════════════════════════════════════════════════ */
.bb-hv2-host-cta {
    background: linear-gradient(135deg, var(--bb-primary, #2EC2DB) 0%, #0d6273 45%, #052e39 100%);
    padding: 44px 0;
}

.bb-hv2-host-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.bb-hv2-host-cta__copy {
    flex: 1;
    min-width: 0;
}

.bb-hv2-host-cta__action {
    flex-shrink: 0;
}

.bb-hv2-host-cta__eyebrow {
    font-size: calc(0.8125rem * var(--bb-type-scale, 1));
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin: 0 0 8px;
}

.bb-hv2-host-cta__title {
    font-size: calc(1.75rem * var(--bb-type-scale, 1));
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bb-hv2-host-cta__text {
    font-size: calc(1rem * var(--bb-type-scale, 1));
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   PRE-FOOTER QUICK NAV
══════════════════════════════════════════════════════ */
.bb-hv2-prefooter {
    background: #fff;
    padding: 32px 0 20px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.bb-hv2-prefooter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.bb-hv2-prefooter__brand {
    flex-shrink: 0;
}

.bb-hv2-prefooter__logo-img {
    height: 66px;
    width: auto;
    display: block;
    margin-bottom: 14px;
}

.bb-hv2-prefooter__site-name {
    font-size: calc(1.25rem * var(--bb-type-scale, 1));
    font-weight: 800;
    color: #0f172a;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.bb-hv2-prefooter__tagline {
    font-size: calc(0.9375rem * var(--bb-type-scale, 1));
    font-style: italic;
    color: #334155;
    margin: 0;
    line-height: 1.55;
    max-width: none;
    white-space: nowrap;
}

/* Nav links — horizontal row across the bottom right */
.bb-hv2-prefooter__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bb-hv2-prefooter__links,
.bb-hv2-prefooter__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bb-hv2-prefooter__links li,
.bb-hv2-prefooter__nav ul li {
    display: block;
}

.bb-hv2-prefooter__links a,
.bb-hv2-prefooter__nav ul li a {
    display: block;
    padding: 6px 16px;
    font-size: calc(0.9375rem * var(--bb-type-scale, 1));
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: color 0.18s;
    white-space: nowrap;
    border-right: 1px solid #e2e8f0;
}

.bb-hv2-prefooter__links li:last-child a,
.bb-hv2-prefooter__nav ul li:last-child a {
    border-right: none;
    padding-right: 0;
}

.bb-hv2-prefooter__links a::before,
.bb-hv2-prefooter__nav ul li a::before {
    content: '> ';
    color: var(--bb-primary, #2EC2DB);
    font-weight: 700;
}

.bb-hv2-prefooter__links a:hover,
.bb-hv2-prefooter__nav ul li a:hover {
    color: var(--bb-primary, #2EC2DB);
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Large tablet (≤1100px)
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .bb-hv2-arrow--prev { left: -8px; }
    .bb-hv2-arrow--next { right: -8px; }

    .bb-hv2-host-cta__inner {
        gap: 32px;
    }

    .bb-hv2-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .bb-hv2-prefooter__inner {
        gap: 32px;
    }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .bb-hv2-section {
        padding: 72px 0;
    }

    .bb-hv2-section__title {
        font-size: calc(2rem * var(--bb-type-scale, 1));
    }

    .bb-hv2-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bb-hv2-stat:nth-child(2) {
        border-right: none;
    }

    .bb-hv2-stat:nth-child(3),
    .bb-hv2-stat:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    /* Category grid: 2 columns on tablet */
    .bb-hv2-type-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .bb-hv2-type-tile:nth-child(1),
    .bb-hv2-type-tile:nth-child(6),
    .bb-hv2-type-tile:nth-child(7) {
        grid-column: span 1; /* reset span on smaller grids */
    }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .bb-hv2-container {
        padding: 0 20px;
    }

    .bb-hv2-section {
        padding: 56px 0;
    }

    .bb-hv2-hero {
        min-height: 120vh;
    }

    .bb-hv2-hero__inner {
        padding: 120px 20px 60px;
        align-items: flex-start;
        gap: 36px;
    }

    .bb-hv2-hero__sub {
        font-size: calc(1.25rem * var(--bb-type-scale, 1));
    }

    .bb-hv2-section__hdr--split {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bb-hv2-steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Hide the horizontal connector line — doesn't make sense in single-column layout */
    .bb-hv2-steps::before {
        display: none;
    }

    /* Allow tagline to wrap on small screens */
    .bb-hv2-prefooter__tagline {
        white-space: normal;
    }

    .bb-hv2-step {
        text-align: left;
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        column-gap: 24px;
    }

    .bb-hv2-step__num { display: none; }

    .bb-hv2-step__icon {
        grid-row: 1 / 3;
        margin: 0;
        width: 72px;
        height: 72px;
    }

    .bb-hv2-step__title {
        align-self: end;
        font-size: calc(1.25rem * var(--bb-type-scale, 1));
    }
    .bb-hv2-step__text { align-self: start; grid-column: 2; }

    .bb-hv2-trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* Category grid: single column on mobile */
    .bb-hv2-type-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
    }

    .bb-hv2-host-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .bb-hv2-prefooter__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .bb-hv2-prefooter__nav {
        justify-content: flex-start;
        width: 100%;
    }

    .bb-hv2-prefooter__links,
    .bb-hv2-prefooter__nav ul {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .bb-hv2-prefooter__links a,
    .bb-hv2-prefooter__nav ul li a {
        padding-left: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
    }

    .bb-hv2-prefooter__links li:last-child a,
    .bb-hv2-prefooter__nav ul li:last-child a {
        border-bottom: none;
        padding-right: 0;
    }

    /* Search bar: stack vertically on mobile */
    .bb-hv2-hero__search .search-wrap.search-banner.search-banner-desktop {
        border-radius: 50px;
    }

    .bb-hv2-hero__search .search-banner-desktop form {
        flex-direction: column;
        height: auto;
    }

    .bb-hv2-hero__search .search-banner-desktop .search-destination,
    .bb-hv2-hero__search .search-banner-desktop .search-date-range,
    .bb-hv2-hero__search .search-banner-desktop .search-guests,
    .bb-hv2-hero__search .search-banner-desktop .search-type {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        min-height: 52px;
    }

    .bb-hv2-hero__search .search-banner-desktop .search-date-range {
        flex-direction: column;
    }

    .bb-hv2-hero__search .search-banner-desktop .search-date-range-arrive,
    .bb-hv2-hero__search .search-banner-desktop .search-date-range-depart {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        min-height: 52px;
    }

    .bb-hv2-hero__search .search-banner-desktop .search-button {
        padding: 6px;
    }

    .bb-hv2-hero__search .search-banner-desktop .search-button .btn.btn-primary {
        width: 100%;
        height: 48px;
        border-radius: 10px;
        font-size: calc(1rem * var(--bb-type-scale, 1));
    }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Small mobile (≤480px)
══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .bb-hv2-trust-grid {
        grid-template-columns: 1fr;
    }

    .bb-hv2-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bb-hv2-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .bb-hv2-stat:last-child {
        border-bottom: none;
    }

    .bb-hv2-type-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 150px;
    }
}
