/* =========================================================================
 * css/bw-v2.css  (Phase 6B Phase 2.9)
 * -------------------------------------------------------------------------
 * Clean-room rewrite. Owns the booking widget rendered by
 *   site/resources/views/shared/guest/booking-widget.blade.php
 * and the floating sticky button + modal injected by js/bw-sticky.js.
 *
 * Apple-style visuals. Variant `.bw-v2--hero` is the anchor that
 * bw-sticky.js queries to enable its sticky/modal behaviour.
 * =========================================================================*/

/* ---------- tokens ---------- */
.bw-v2,
.bw-v2-sticky,
.bw-v2-overlay {
    --bw-radius: 14px;
    --bw-gap: 12px;
    --bw-pad: 18px;
    --bw-bg: #ffffff;
    --bw-bg-muted: #f5f5f7;
    --bw-border: #d2d2d7;
    --bw-border-focus: #0071e3;
    --bw-text: #1d1d1f;
    --bw-text-muted: #6e6e73;
    --bw-accent: #0071e3;
    --bw-accent-hover: #0077ed;
    --bw-shadow: 0 10px 40px rgba(0,0,0,.08);
    --bw-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- wrapper ---------- */
.bw-v2 {
    box-sizing: border-box;
    width: 100%;
    font-family: var(--bw-font);
    color: var(--bw-text);
    -webkit-font-smoothing: antialiased;
}

.bw-v2 *,
.bw-v2 *::before,
.bw-v2 *::after { box-sizing: border-box; }

.bw-v2--hero {
    background: var(--bw-bg);
    border-radius: var(--bw-radius);
    padding: var(--bw-pad);
    box-shadow: var(--bw-shadow);
    border: 1px solid rgba(0,0,0,.04);
}

.bw-v2--inline { background: transparent; padding: 0; }

/* ---------- form ---------- */
.bw-v2__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bw-v2__title {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bw-text);
}

/* ---------- grid: 6 fields in 2 rows of 3 (loc wider than date/time) ---------- */
.bw-v2__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--bw-gap);
    align-items: end;
}

.bw-v2__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bw-v2__label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--bw-text-muted);
    margin: 0 0 6px 2px;
}

.bw-v2__control { position: relative; }

/* tablet: collapse to 2-col grid (loc stays wider) */
@media (max-width: 1023px) {
    .bw-v2__grid {
        grid-template-columns: 1fr 1fr;
    }
    .bw-v2__field--pickup-location,
    .bw-v2__field--dropoff-location {
        grid-column: 1 / -1;
    }
}

/* mobile: single column */
@media (max-width: 640px) {
    .bw-v2__grid { grid-template-columns: 1fr; }
    .bw-v2__field--pickup-location,
    .bw-v2__field--dropoff-location { grid-column: auto; }
}

/* ---------- neo-select + neo-datepicker (Apple-style) ----------
 * Neo framework exposes three shadow parts on both components:
 *   wrapper — flex container that holds field + icon
 *   field   — the <input> inside
 *   icon    — the svg (chevron for select, calendar for datepicker)
 * Neo applies :host styles (bg, border, padding, flex-wrap) from inside
 * the shadow root; external class selectors override those. We treat
 * the HOST itself as the control surface (44px pill with Apple border),
 * and clear the internal part defaults so field + icon sit flush inside.
 * -------------------------------------------------------------------*/
.bw-v2__select,
.bw-v2__date {
    /* layout */
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
    box-sizing: border-box;
    /* visuals */
    background: var(--bw-bg) !important;
    border: 1px solid var(--bw-border) !important;
    border-radius: 10px !important;
    color: var(--bw-text) !important;
    font-family: var(--bw-font);
    font-size: 15px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bw-v2__select:hover,
.bw-v2__date:hover {
    border-color: #a1a1a6 !important;
}

.bw-v2__select:focus-within,
.bw-v2__date:focus-within {
    border-color: var(--bw-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(0,113,227,.18) !important;
    outline: none;
}

/* wrapper: inner flex row */
.bw-v2__select::part(wrapper),
.bw-v2__date::part(wrapper) {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
    overflow: hidden;
}

/* field: the actual input / displayed text */
.bw-v2__select::part(field),
.bw-v2__date::part(field) {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--bw-text);
    letter-spacing: inherit;
    box-shadow: none;
    width: 100%;
}

.bw-v2__select::part(field)::placeholder,
.bw-v2__date::part(field)::placeholder {
    color: var(--bw-text-muted);
    opacity: 1;
}

/* icon: chevron / calendar */
.bw-v2__select::part(icon),
.bw-v2__date::part(icon) {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: var(--bw-text-muted);
    pointer-events: none;
}

/* ===========================================================================
 * Apple-style OPEN-state popups (neo-datepicker + neo-select)
 *
 * Both components emit shadow parts:
 *   modal          – full-screen backdrop (fixed overlay)
 *   close-trigger  – backdrop dismiss region (tap-outside-to-close)
 *   close-icon     – visible close button
 *   content        – the actual popup card
 *   control        – header bar (datepicker: month/year nav; select: title)
 *   trigger        – back/forward arrow buttons (datepicker)
 *   content-icon   – chevron icons inside control arrows
 *   display        – "Month Year" text in datepicker header
 *   month          – month name in header (clickable for month-picker)
 *   year           – year in header (clickable for year-picker)
 *   day            – weekday labels row (S M T W T F S)
 *   date           – individual date cells (repeated for each day)
 *   items          – scrollable list container (select dropdown)
 * --------------------------------------------------------------------------*/

/* =====================================================================
 * DATEPICKER — anchored dropdown (drops under its field, mirrors select)
 * =====================================================================
 * Same pattern as .bw-v2__select::part(modal): reset neo's centered
 * overlay, pull the modal into an absolute box directly below the
 * field host (which has position:relative). close-trigger is pulled
 * behind the popup as a fullscreen tap-outside-to-close layer.
 * --------------------------------------------------------------------*/
.bw-v2__date::part(modal) {
    /* inset shorthand must come BEFORE individual top/right/bottom/left
       so those longhand values win; otherwise inset:auto wipes them out */
    inset: auto !important;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1000 !important;
    display: block !important;
    animation: bw-v2-pop-in .18s cubic-bezier(.2,.9,.3,1.2);
}

@keyframes bw-v2-pop-in {
    from { opacity: 0; transform: translateY(6px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bw-v2__date::part(content) {
    position: relative !important;
    background: #fff !important;
    color: var(--bw-text) !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.08) !important;
    padding: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 380px !important;
    overflow: auto !important;
    font-family: var(--bw-font) !important;
    letter-spacing: -0.01em;
    display: block !important;
    animation: none;
}

/* tap-outside-to-close: fullscreen invisible layer BEHIND the popup */
.bw-v2__date::part(close-trigger) {
    position: fixed !important;
    inset: 0 !important;
    background: transparent !important;
    border: 0 !important;
    cursor: default;
    z-index: -1 !important;
}

/* no explicit close button needed — tap outside closes it */
.bw-v2__date::part(close-icon) {
    display: none !important;
}

/* =====================================================================
 * SELECT — anchored dropdown (drops under its field, scrollable)
 * =====================================================================
 * We reset the centered-overlay behaviour neo uses by default and
 * reposition the modal to sit absolutely directly below the control.
 * The host (.bw-v2__select) already has position:relative so this
 * positions against the field itself. The close-trigger is pulled
 * out to a viewport-fixed invisible layer BEHIND the dropdown so
 * tap-outside-to-close still works without covering the popup.
 * --------------------------------------------------------------------*/
.bw-v2__select::part(modal) {
    /* inset shorthand must come BEFORE individual top/right/bottom/left
       so those longhand values win; otherwise inset:auto wipes them out */
    inset: auto !important;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    min-width: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1000 !important;
    display: block !important;
    animation: bw-v2-pop-in .15s cubic-bezier(.2,.9,.3,1.2);
}

.bw-v2__select::part(content) {
    position: relative !important;
    background: #fff !important;
    color: var(--bw-text) !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.08) !important;
    padding: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    font-family: var(--bw-font) !important;
    letter-spacing: -0.01em;
    animation: none;
}

/* tap-outside-to-close: fullscreen invisible layer BEHIND the popup */
.bw-v2__select::part(close-trigger) {
    position: fixed !important;
    inset: 0 !important;
    background: transparent !important;
    border: 0 !important;
    cursor: default;
    z-index: -1 !important;
}

/* no explicit close button needed — tap outside closes it */
.bw-v2__select::part(close-icon) {
    display: none !important;
}

/* header / nav bar (month-year + prev/next arrows).
   The DOM fact: control contains BOTH the header row (prev/display/next)
   AND the 7 weekday labels as direct children. We use display:contents
   so its children flow directly into the parent `items` grid. */
.bw-v2__date::part(control) {
    display: contents !important;
}

.bw-v2__select::part(control) {
    padding: 4px 4px 8px !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--bw-text) !important;
    font-weight: 600;
    font-size: 15px;
}

/* prev / next triggers. Because control uses display:contents, these
   prev/next buttons now sit directly in the items grid. Explicit
   grid placement keeps them pinned to row 1, columns 1 and 7. */
.bw-v2__date::part(trigger),
.bw-v2__select::part(trigger) {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,.04) !important;
    color: var(--bw-text) !important;
    border: 0 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    cursor: pointer;
    transition: background .15s ease;
}

/* Datepicker header placement inside the 7-col items grid:
   row 1 has [prev] [----display (spans 5)----] [next]
   prev/next are identified by their aria-label attrs. */
.bw-v2__date::part(trigger) {
    grid-row: 1 !important;
    justify-self: center !important;
    margin: 0 !important;
}

.bw-v2__date::part(trigger):hover,
.bw-v2__select::part(trigger):hover {
    background: rgba(0,0,0,.08) !important;
}

.bw-v2__date::part(content-icon),
.bw-v2__select::part(content-icon) {
    width: 14px !important;
    height: 14px !important;
    color: var(--bw-text) !important;
}

/* month / year labels in header — make them feel tappable.
   Placed in the 7-col grid, this spans columns 2-6 on row 1. */
.bw-v2__date::part(display) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: var(--bw-text) !important;
    grid-row: 1 !important;
    grid-column: 2 / 7 !important;
    justify-self: center !important;
    padding: 4px 0 !important;
}

.bw-v2__date::part(month),
.bw-v2__date::part(year) {
    padding: 4px 8px !important;
    border-radius: 8px !important;
    cursor: pointer;
    color: var(--bw-text) !important;
    background: transparent !important;
    transition: background .15s ease;
}

.bw-v2__date::part(month):hover,
.bw-v2__date::part(year):hover {
    background: rgba(0,0,0,.05) !important;
}

/* date grid container — holds both the weekday header row and the
   date cells. neo renders them as siblings inside ::part(items), so
   a single 7-column grid lays everything out naturally. */
.bw-v2__date::part(items) {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* weekday label row (S M T W T F S). neo outputs full "Sunday"/
   "Monday"/... text in each day cell. We hide the full text and
   render just the first letter via the ::first-letter pseudo trick
   (font-size:0 on the element; font-size on ::first-letter).
   They auto-flow into row 2 of the items grid. */
.bw-v2__date::part(day) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 28px !important;
    margin: 2px 0 4px !important;
    font-size: 0 !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    color: var(--bw-text-muted) !important;
    background: transparent !important;
    border: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    grid-row: 2 !important;
}

.bw-v2__date::part(day)::first-letter {
    font-size: 11px !important;
    letter-spacing: 0 !important;
}

/* individual date cells */
.bw-v2__date::part(date) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--bw-text) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    cursor: pointer;
    box-sizing: border-box !important;
    transition: background .12s ease, color .12s ease, transform .08s ease;
}

/* neo renders blank leading/trailing grid cells as <button disabled>
   with text "00" and data-value="00-00-0000". Real dates (including
   past dates) are never disabled, so the :disabled pseudo-class
   targets only these placeholder cells. Attribute selectors after
   ::part() are not cross-browser, but pseudo-classes after ::part()
   are spec-compliant. Hide the number but keep the cell so the
   7-column grid stays aligned. */
.bw-v2__date::part(date):disabled {
    visibility: hidden !important;
    pointer-events: none !important;
}

.bw-v2__date::part(date):hover {
    background: rgba(0,0,0,.06) !important;
}

.bw-v2__date::part(date active),
.bw-v2__date::part(date selected),
.bw-v2__date::part(date current) {
    background: var(--bw-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.bw-v2__date::part(date disabled),
.bw-v2__date::part(date inactive) {
    color: rgba(0,0,0,.22) !important;
    cursor: default;
    pointer-events: none;
}

/* items container (neo-select dropdown list) */
.bw-v2__select::part(items) {
    max-height: 280px !important;
    overflow-y: auto !important;
    padding: 4px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    scrollbar-width: thin;
}

.bw-v2__select::part(items)::-webkit-scrollbar { width: 6px; }
.bw-v2__select::part(items)::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 3px;
}

/* ---------- dropdown menu (neo-select-item rows) ----------
 * neo-select items are in the light DOM as <neo-select-item>. They
 * pop into a positioned layer when the select is expanded. Style
 * them directly.
 * -----------------------------------------------------------*/
neo-select-item {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--bw-font);
    color: var(--bw-text);
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: -0.01em;
    margin: 2px 0;
}

neo-select-item:hover,
neo-select-item[hover] {
    background: var(--bw-bg-muted);
}

neo-select-item[active],
neo-select-item[selected] {
    background: rgba(0,113,227,.10);
    color: var(--bw-accent);
    font-weight: 500;
}

/* ---------- submit ---------- */
.bw-v2__submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.bw-v2__btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bw-accent);
    color: #fff;
    border: 0;
    border-radius: 980px;
    height: 44px;
    padding: 0 28px;
    font-family: var(--bw-font);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background .15s ease, transform .08s ease;
}

.bw-v2__btn:hover { background: var(--bw-accent-hover); }
.bw-v2__btn:active { transform: translateY(1px); }
.bw-v2__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,113,227,.30);
}

@media (max-width: 640px) {
    .bw-v2__submit { justify-content: stretch; }
    .bw-v2__btn { width: 100%; padding: 0 20px; }
}

/* =========================================================================
 * Floating sticky button + modal (injected by js/bw-sticky.js)
 *   .bw-v2-anchor    – placeholder inserted before the hero widget
 *   .bw-v2-sticky    – the floating "Book a car" button
 *   .bw-v2-overlay   – modal overlay containing a copy of the form
 *   .bw-v2-close     – close button inside the modal
 * =========================================================================*/

/* floating Book button */
.bw-v2-sticky {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9998;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 22px;
    background: #1d1d1f;
    color: #fff;
    border: 0;
    border-radius: 980px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transition: background .15s ease, transform .15s ease, opacity .2s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.bw-v2-sticky[data-visible="true"],
.bw-v2-sticky.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bw-v2-sticky:hover { background: #000; transform: translateY(-1px); }
.bw-v2-sticky:active { transform: translateY(0); }

@media (max-width: 640px) {
    .bw-v2-sticky { right: 12px; bottom: 76px; height: 44px; padding: 0 18px; font-size: 14px; }
}

/* =========================================================================
 * Modal overlay — FULL-VIEWPORT FOCUS MODE
 * -------------------------------------------------------------------------
 * The sticky-button opens the widget in a full-screen overlay. Because
 * there's room, every field sits in its own row (single column) and the
 * datepicker / select popups drop INLINE (position:static) so they push
 * following fields down instead of overlaying them. This guarantees no
 * part of any field is ever covered by a popup — not even one character.
 * =========================================================================*/
.bw-v2-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.bw-v2-overlay[data-open="true"],
.bw-v2-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* the hero widget copy inside the overlay — fills the viewport, keeps
   the Apple look (white bg, antialiased type) while giving the form
   breathing room so popups never need to overlap other fields */
.bw-v2-overlay > .bw-v2 {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bw-bg);
    border-radius: 0;
    box-shadow: none;
    padding: 64px clamp(16px, 5vw, 64px) 40px;
    transform: translateY(8px);
    transition: transform .2s ease;
}

.bw-v2-overlay[data-open="true"] > .bw-v2,
.bw-v2-overlay.is-open > .bw-v2 {
    transform: translateY(0);
}

/* center the form in a readable column so it doesn't stretch on desktop */
.bw-v2-overlay .bw-v2__form {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    gap: 18px;
}

/* single column - every field is full-width, no horizontal squishing */
.bw-v2-overlay .bw-v2__grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

.bw-v2-overlay .bw-v2__field--pickup-location,
.bw-v2-overlay .bw-v2__field--dropoff-location {
    grid-column: auto !important;
}

/* Field cells must be AUTO-HEIGHT so the host can grow vertically when a
   popup opens (otherwise the fixed 67px container clips the calendar). */
.bw-v2-overlay .bw-v2__field {
    height: auto !important;
    min-height: 67px !important;
    align-items: flex-start !important;
}

/* ROOT CAUSE: neo-datepicker / neo-select hosts default to display:
   inline-flex, laying out their shadow children in a single row. The
   popup [part=modal] becomes a flex item, gets vertically centred
   on the input, and visually floats above the form.
   Fix: force the host into a WRAPPING flex container so the modal
   breaks onto its own line below the input and the host grows to fit. */
.bw-v2-overlay .bw-v2__date,
.bw-v2-overlay .bw-v2__select {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    position: relative !important;
}

/* Popup becomes a full-width flex item on its own wrapped row (order: 99
   pushes it past input/icon). position:static + width:100% + flex-basis
   guarantees inline flow - it PUSHES the next field down, never covers it. */
.bw-v2-overlay .bw-v2__date::part(modal),
.bw-v2-overlay .bw-v2__select::part(modal) {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    order: 99 !important;
    margin-top: 8px !important;
    z-index: auto !important;
    animation: none !important;
    transform: none !important;
}

/* ROOT FIX: Neo uses a @media (min-width: 1024px) rule in its shadow-DOM CSS
   to hide mobile-modal chrome. BELOW 1024px, Neo shows a redundant header
   label ([part=content-label] "Choose a location"), a visible close-X button
   ([part=close-icon]), and treats the popup as a full-screen overlay. In
   our overlay context the popup is already INLINE (flex-wrap + order:99),
   so we hide the mobile-modal chrome at all widths so the popup renders as
   a simple list right below the input with no duplicate heading. */
.bw-v2-overlay .bw-v2__select::part(content-label),
.bw-v2-overlay .bw-v2__select::part(close-icon),
.bw-v2-overlay .bw-v2__date::part(content-label),
.bw-v2-overlay .bw-v2__date::part(close-icon) {
    display: none !important;
}

/* Below 1024px Neo also applies backdrop-filter blur + slide-on animation
   + dark transparent modal bg which all fight with our inline positioning.
   Reset those so the popup looks like a clean card attached to the input. */
.bw-v2-overlay .bw-v2__select::part(modal),
.bw-v2-overlay .bw-v2__date::part(modal) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
}
.bw-v2-overlay .bw-v2__select::part(content),
.bw-v2-overlay .bw-v2__date::part(content) {
    animation: none !important;
    max-height: 320px !important;
    padding: 4px !important;
    border: 1px solid var(--bw-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
    background: #fff !important;
}

/* full-width submit button for a strong CTA in focus mode */
.bw-v2-overlay .bw-v2__submit { justify-content: stretch; margin-top: 8px; }
.bw-v2-overlay .bw-v2__btn { width: 100%; height: 48px; font-size: 16px; }

/* close button */
.bw-v2-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .15s ease;
}

.bw-v2-close:hover { background: #e8e8ed; }

/* anchor is invisible ONLY when empty (JS-injected sentinel). Airport
 * Blade templates wrap the hero widget in a div with this class, so we
 * must NOT hide it when it has children — only the empty placeholder. */
.bw-v2-anchor:empty { display: none; }

/* modal on small screens — keep full-viewport, tighten horizontal padding */
@media (max-width: 640px) {
    .bw-v2-overlay > .bw-v2 {
        padding: 56px 16px 32px;
    }
    .bw-v2-overlay .bw-v2__form { gap: 14px; }
}

/* =========================================================================
 * Floating WhatsApp button (paired with the sticky book button)
 *   .bw-v2-whatsapp  – anchor <a> that js/bw-sticky.js injects
 * =========================================================================*/
.bw-v2-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37,211,102,.35);
    transition: transform .15s ease, background .15s ease;
}

.bw-v2-whatsapp:hover { background: #1fbe58; transform: translateY(-2px); }
.bw-v2-whatsapp svg { width: 26px; height: 26px; fill: currentColor; }

@media (max-width: 640px) {
    .bw-v2-whatsapp { right: 12px; bottom: 14px; width: 46px; height: 46px; }
    .bw-v2-whatsapp svg { width: 24px; height: 24px; }
}
/* === GLOBAL: hide mobile-modal chrome on ALL bw-v2 widgets (overlay + inline) ===
   Neo @media (min-width:1024px) hides content-label/close-trigger; below that
   they appear by default. Hide unconditionally so popups always render as a
   clean card under the input on every .bw-v2 instance (hero + overlay). */
.bw-v2 .bw-v2__date::part(content-label),
.bw-v2 .bw-v2__date::part(close-icon),
.bw-v2 .bw-v2__select::part(content-label),
.bw-v2 .bw-v2__select::part(close-icon) {
    display: none !important;
}

/* === Below Neo's 1024px breakpoint: kill backdrop + animation + force the
   popup to flow INLINE (push next field down) on ALL bw-v2 widgets, not just
   .bw-v2-overlay. Fixes /fleet inline-widget mobile chrome bleed. === */
@media (max-width: 1023px) {
    .bw-v2 .bw-v2__field {
        height: auto !important;
        min-height: 67px !important;
        align-items: flex-start !important;
    }
    .bw-v2 .bw-v2__date,
    .bw-v2 .bw-v2__select {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        position: relative !important;
    }
    .bw-v2 .bw-v2__date::part(modal),
    .bw-v2 .bw-v2__select::part(modal) {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        order: 99 !important;
        margin-top: 8px !important;
        z-index: auto !important;
        animation: none !important;
        transform: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .bw-v2 .bw-v2__date::part(content),
    .bw-v2 .bw-v2__select::part(content) {
        animation: none !important;
        max-height: 320px !important;
        padding: 4px !important;
        border: 1px solid var(--bw-border) !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
        background: #fff !important;
    }
}