/* ==========================================================================
   FVH Modern Search Bar - organized replacement stylesheet
   ========================================================================== */

/* 1. Isolation / Design Tokens */
.fvh-ms,
.fvh-ms *,
.fvh-ms *::before,
.fvh-ms *::after { box-sizing: border-box; }

.fvh-ms {
    --fvh-ms-primary: #5c2bd9;
    --fvh-ms-primary-2: #7b4cff;
    --fvh-ms-text: #242228;
    --fvh-ms-muted: #74717a;
    --fvh-ms-border: #e7e4ec;
    --fvh-ms-bg: #fff;
    --fvh-ms-soft: #f6f4f8;
    --fvh-palette-on-primary: #fff;
    --fvh-palette-focus: #5c2bd9;
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    color: var(--fvh-ms-text);
}
/*
.fvh-ms__sticky {
    position: sticky;
    top: var(--fvh-header-offset, 0px);
    z-index: 900;
    padding: 14px 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    transition:
        box-shadow .25s ease,
        padding .25s ease,
        transform .25s ease;
}

.fvh-ms__sticky.is-stuck {
    padding: 10px 0;
    box-shadow: 0 12px 36px rgba(0,0,0,.10);
}
.fvh-ms__sticky.is-stuck .fvh-ms__bar {
    padding-top: 10px;
    padding-bottom: 10px;
}
*/
.fvh-ms button,
.fvh-ms input,
.fvh-ms select,
.fvh-ms label,
.fvh-ms strong,
.fvh-ms span,
.fvh-ms em {
    font: inherit;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
}

.fvh-ms button,
.fvh-ms select,
.fvh-ms input { box-shadow: none; outline: none; }

.fvh-ms button:focus-visible,
.fvh-ms select:focus-visible,
.fvh-ms input:focus-visible {
    outline: 2px solid var(--fvh-palette-focus, var(--fvh-ms-primary));
    outline-offset: 2px;
}

/* Protect buttons from theme hover styles. */
.fvh-ms__field,
.fvh-ms__field:hover,
.fvh-ms__field:focus,
.fvh-ms__field:active { color: var(--fvh-ms-text) !important; }

.fvh-ms__field *,
.fvh-ms__field:hover *,
.fvh-ms__field:focus *,
.fvh-ms__field:active * { color: inherit !important; }

/* 2. Search Bar Layout */
.fvh-ms__bar-wrap { position: relative; overflow: visible; }
.fvh-ms .fvh-ms__bar { margin-inline: auto; }

.fvh-ms__bar {
    display: grid;
    grid-template-columns:
        minmax(130px, 1fr)
        minmax(150px, 1fr)
        minmax(220px, 1.25fr)
        minmax(115px, .7fr)
        minmax(120px, .7fr)
        minmax(150px, .85fr)
        auto
        auto;

    gap: 0;
    align-items: stretch;
    background: var(--fvh-ms-bg);
    border: 1px solid var(--fvh-ms-border);
    border-radius: 999px;
    box-shadow: 0 16px 45px rgba(32,27,46,.12);
    overflow: hidden;
}

.fvh-ms__field {
    min-height: 70px;
    padding: 13px 18px;
    border: 0;
    border-right: 1px solid var(--fvh-ms-border);
    background: var(--fvh-ms-bg);
    text-align: left;
    color: var(--fvh-ms-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-decoration: none !important;
    box-shadow: none !important;
}

.fvh-ms__field span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fvh-ms-muted) !important;
}

.fvh-ms__field strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--fvh-ms-text) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fvh-ms__field--button { cursor: pointer; }
.fvh-ms__field--button:hover,
.fvh-ms__field:focus-within { background: var(--fvh-ms-soft) !important; }

.fvh-ms__filter,
.fvh-ms__submit {
    min-height: 70px;
    border: 0;
    padding: 0 24px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none !important;
}

.fvh-ms__filter {
    padding: 0 18px;
    background: var(--fvh-ms-bg);
    color: var(--fvh-ms-primary);
    border-right: 1px solid var(--fvh-ms-border);
}

.fvh-ms__filter em {
    font-style: normal;
    margin-left: 5px;
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--fvh-ms-primary);
    color: var(--fvh-palette-on-primary, #fff);
    font-size: 12px;
}

.fvh-ms__submit {
    position: relative;
    background: var(--fvh-ms-primary) !important;
    color: var(--fvh-palette-on-primary, #fff) !important;
    border-radius: 999px;
    margin: 8px;
    padding: 0 28px;
    min-width: 120px;
    min-height: 54px;
}

.fvh-ms__pending-help {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    padding: 8px 18px 10px;
    border-top: 1px solid var(--fvh-ms-border);
    background: var(--fvh-ms-soft);
    color: var(--fvh-ms-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
}

.fvh-ms__pending-help[hidden] {
    display: none !important;
}

.fvh-ms__submit.has-pending-filters {
    background: var(--fvh-ms-primary-2) !important;
    isolation: isolate;
}

/* Two gentle color cycles on entering Apply state; leave the text untouched.
   A background layer avoids competing with theme !important backgrounds. */
.fvh-ms__submit.has-pending-filters::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--fvh-ms-primary);
    pointer-events: none;
    opacity: 0;
    animation: fvh-ms-apply-color-pulse 1.4s ease-in-out 2;
}

@keyframes fvh-ms-apply-color-pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.fvh-ms__submit.has-pending-filters::after {
    content: none;
}

/* Pending changes should not add a row or distract with a pulsing border. */
.fvh-ms .fvh-ms__pending-help {
    position: absolute;
    width: 1px; height: 1px; min-width: 0;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.fvh-ms .fvh-ms__submit {
    transition: background-color .25s ease, color .25s ease;
}
@media (prefers-reduced-motion: reduce) {
    .fvh-ms .fvh-ms__submit { transition: none; }
    .fvh-ms__submit.has-pending-filters::before { animation: none; }
}

.fvh-ms__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 4px 0; }
.fvh-ms__chip {
    border: 1px solid var(--fvh-ms-border);
    background: var(--fvh-ms-bg);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    color: var(--fvh-ms-muted);
}

/* 3. Shared Popover Positioning
   JS should set --fvh-popover-top, --fvh-popover-left, --fvh-popover-width.
*/
.fvh-ms__area-popover,
.fvh-ms__date-popover,
.fvh-ms__guests-popover,
.fvh-ms__location-popover,
.fvh-ms__property-type-popover,
.fvh-ms__popover--small {
    position: absolute;
    top: var(--fvh-popover-top, calc(100% + 12px));
    left: var(--fvh-popover-left, 0);
    right: auto;
    width: var(--fvh-popover-width, min(420px, calc(100vw - 32px)));
    z-index: 120;
    background: var(--fvh-ms-bg);
    border: 1px solid var(--fvh-ms-border);
    box-shadow: 0 24px 80px rgba(32, 27, 46, .22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.fvh-ms__area-popover[hidden],
.fvh-ms__date-popover[hidden],
.fvh-ms__guests-popover[hidden],
.fvh-ms__location-popover[hidden],
.fvh-ms__property-type-popover[hidden],
.fvh-ms__popover--small[hidden] {
    display: none !important;
}
.fvh-ms__property-type-popover {
    display: flex;
    flex-direction: column;

    max-height: 620px;
}

.fvh-ms__property-type-popover .fvh-ms__area-list {
    overflow-y: auto;
    overflow-x: hidden;

    max-height: 420px;

    padding-right: 6px;
}

.fvh-ms__area-popover.is-open,
.fvh-ms__date-popover.is-open,
.fvh-ms__guests-popover.is-open,
.fvh-ms__location-popover.is-open,
.fvh-ms__property-type-popover.is-open,
.fvh-ms__popover--small.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fvh-ms__popover-head,
.fvh-ms__drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.fvh-ms__popover-head button,
.fvh-ms__drawer-head button {
    border: 0;
    background: transparent !important;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: var(--fvh-ms-muted) !important;
    box-shadow: none !important;
}

.fvh-ms__actions,
.fvh-ms__drawer-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; }

.fvh-ms__link { border: 0; background: transparent !important; color: var(--fvh-ms-primary) !important; font-weight: 800; cursor: pointer; box-shadow: none !important; }
.fvh-ms__done { border: 0; background: var(--fvh-ms-primary) !important; color: var(--fvh-palette-on-primary, #fff) !important; border-radius: 999px; padding: 13px 22px; font-weight: 800; cursor: pointer; box-shadow: none !important; }

/* 4. Area Popover */
.fvh-ms__area-popover { width: var(--fvh-popover-width, min(560px, calc(100vw - 32px))); padding: 28px 30px; border-radius: 32px; }
.fvh-ms__area-section-title { margin: 0 0 18px; font-size: 18px; font-weight: 800; color: var(--fvh-ms-muted); }
.fvh-ms__area-list { display: grid; gap: 18px; }

.fvh-ms__area-option,
.fvh-ms__area-option:hover,
.fvh-ms__area-option:focus,
.fvh-ms__area-option:active {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 10px 12px;
    border: 0 !important;
    border-radius: 18px;
    background: transparent !important;
    color: var(--fvh-ms-text) !important;
    text-align: left;
    cursor: pointer;
    box-shadow: none !important;
}
.fvh-ms__area-option:hover { background: var(--fvh-ms-soft) !important; }
.fvh-ms__property-type-popover .fvh-ms__area-option.is-selected {
    background: var(--fvh-ms-soft) !important;
    box-shadow: inset 0 0 0 1px var(--fvh-ms-primary) !important;
}
.fvh-ms__property-type-popover .fvh-ms__area-option.is-selected strong {
    color: var(--fvh-ms-primary) !important;
    font-weight: 700;
}
.fvh-ms__property-type-popover .fvh-ms__area-option:focus-visible {
    outline: 3px solid var(--fvh-palette-focus, var(--fvh-ms-primary));
    outline-offset: 2px;
}
.fvh-ms__area-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--fvh-ms-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--fvh-ms-text);
    flex: 0 0 auto;
}
.fvh-ms__area-option strong { display: block; font-size: 22px; font-weight: 500; color: var(--fvh-ms-text) !important; }
.fvh-ms__area-option em { display: block; margin-top: 3px; font-style: normal; font-size: 15px; color: var(--fvh-ms-muted) !important; }
.fvh-ms__area-option:hover strong { color: var(--fvh-ms-primary) !important; }

.fvh-ms__option-backdrop[hidden] { display: none !important; }
.fvh-ms__filter em:empty { display: none; }

@media (min-width: 1441px) and (min-height: 701px) {
    .fvh-ms__option-dialog-head { display: none; }
}

/* 5. Date Calendar */
.fvh-ms__date-popover { width: var(--fvh-popover-width, min(980px, calc(100vw - 32px))); padding: 34px 42px 28px; border-radius: 32px; }
.fvh-ms__date-calendar { position: relative; }
.fvh-ms__calendar-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.fvh-ms__calendar-title { margin-bottom: 22px; text-align: center; font-size: 26px; font-weight: 800; color: var(--fvh-ms-text); }
.fvh-ms__calendar-days,
.fvh-ms__calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.fvh-ms__calendar-days span { display: flex; align-items: center; justify-content: center; height: 34px; color: var(--fvh-ms-muted) !important; font-size: 14px; font-weight: 800; }
.fvh-ms__calendar-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--fvh-ms-text) !important;
    font-size: 16px;
    cursor: pointer;
    box-shadow: none !important;
}
.fvh-ms__calendar-cell:hover { background: var(--fvh-ms-soft) !important; }
.fvh-ms__calendar-cell.is-outside { color: #c9c5cf !important; }
.fvh-ms__calendar-cell.is-disabled,
.fvh-ms__calendar-cell.is-disabled:hover {
    background: color-mix(in srgb, var(--fvh-ms-text) 12%, var(--fvh-ms-bg)) !important;
    border: 2px solid var(--fvh-ms-bg) !important;
    border-radius: 9px !important;
    color: var(--fvh-ms-text) !important;
    opacity: 1;
    text-decoration: line-through !important;
    text-decoration-thickness: 2px;
    cursor: not-allowed;
}
.fvh-ms__calendar-cell.is-in-range { background: color-mix(in srgb, var(--fvh-ms-primary) 18%, var(--fvh-ms-bg)) !important; }
.fvh-ms__calendar-cell.is-selected { background: var(--fvh-ms-primary) !important; color: var(--fvh-palette-on-primary, #fff) !important; border-radius: 999px !important; }
.fvh-ms__calendar-cell.is-empty {
    display: block;
    height: 46px;
    pointer-events: none;
    background: transparent !important;
}
.fvh-ms__calendar-nav {
    position: absolute;
    top: 0;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--fvh-ms-soft) !important;
    color: var(--fvh-ms-text) !important;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}
.fvh-ms__calendar-nav.is-prev { left: 0; }
.fvh-ms__calendar-nav.is-next { right: 0; }
.fvh-ms__calendar-nav:hover { background: var(--fvh-ms-border) !important; }


/* 6. Guests Popover */
.fvh-ms__guests-popover { width: var(--fvh-popover-width, min(460px, calc(100vw - 32px))); padding: 28px; border-radius: 28px; }
.fvh-ms__guest-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.fvh-ms__guest-row > div:first-child strong { display: block; font-size: 20px; font-weight: 500; color: var(--fvh-ms-text); }
.fvh-ms__guest-row span { display: block; margin-top: 4px; color: var(--fvh-ms-muted) !important; }
.fvh-ms__guest-stepper { display: flex; align-items: center; gap: 28px; }
.fvh-ms__guest-stepper button {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--fvh-ms-soft) !important;
    color: var(--fvh-ms-primary) !important;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.fvh-ms__guest-stepper button:hover { background: var(--fvh-ms-primary) !important; color: var(--fvh-palette-on-primary, #fff) !important; transform: scale(1.06); box-shadow: 0 10px 28px rgba(0, 0, 0, .18) !important; }
.fvh-ms__guest-stepper button:active { transform: scale(.96); }
.fvh-ms__guest-stepper button:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none !important; }
.fvh-ms__guest-stepper strong { min-width: 34px; text-align: center; font-size: 34px; font-weight: 700; color: var(--fvh-ms-text); }
.fvh-ms__guest-help { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--fvh-ms-soft); color: var(--fvh-ms-muted); font-size: 14px; line-height: 1.5; }
.fvh-ms__guest-help strong { color: var(--fvh-ms-text); font-weight: 600; }

/* 7. Bedrooms Popover */
.fvh-ms__popover--small { width: var(--fvh-popover-width, min(360px, calc(100vw - 32px))); padding: 22px; border-radius: 26px; }
.fvh-ms__stepper { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--fvh-ms-border); border-radius: 18px; padding: 16px; }
.fvh-ms__stepper button { width: 40px; height: 40px; border-radius: 50% !important; border: 1px solid var(--fvh-ms-primary) !important; background: var(--fvh-ms-bg) !important; color: var(--fvh-ms-primary) !important; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: none !important; }
/* 8. Amenities Drawer */
.fvh-ms__amenity-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.fvh-ms__amenity-group { min-width: 0; }
.fvh-ms__amenity-group + .fvh-ms__amenity-group {
    border-top: 1px solid var(--fvh-ms-border);
    padding-top: 18px;
}
.fvh-ms__amenity-group .fvh-ms__amenity-group-title {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--fvh-ms-text);
    text-transform: none;
    letter-spacing: normal;
}
.fvh-ms__amenity-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 4px 18px;
}

.fvh-ms__amenity-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 0;
    line-height: 1.4;
    cursor: pointer;
}
.fvh-ms__amenity-option span { min-width: 0; overflow-wrap: anywhere; }

.fvh-ms__amenity-option input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: var(--fvh-ms-primary);
}

/* 9. Location popover */
.fvh-ms__location-popover,
.fvh-ms__property-type-popover {
    padding: 28px 30px;
    border-radius: 32px;
}

.fvh-ms__location-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 520px;
    overflow: auto;
}

.fvh-ms__location-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--fvh-ms-border);
    border-radius: 16px;
    background: var(--fvh-ms-bg);
    cursor: pointer;
}

.fvh-ms__location-option:hover {
    background: var(--fvh-ms-soft);
}

.fvh-ms__location-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--fvh-ms-primary);
}

/* Bedrooms range slider */
.fvh-ms__popover--small {
    overflow: visible;
}

.fvh-ms__bedroom-range {
    padding: 40px 0 10px;
}

.fvh-ms__range-slider {
    position: relative;
    height: 70px;
    margin: 8px 0 8px;
    isolation: isolate;
    overflow: visible;
}

/* Visual track only. Native range tracks are hidden below. */
.fvh-ms__range-track,
.fvh-ms__range-fill {
    position: absolute;
    top: 31px;
    height: 10px;
    border-radius: 999px;
    pointer-events: none;
}

.fvh-ms__range-track {
    left: 0;
    right: 0;
    z-index: 1;
    background: var(--fvh-ms-border);
    box-shadow: inset 0 -2px 0 rgba(36, 34, 40, .10);
}

.fvh-ms__range-fill {
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(90deg, var(--fvh-ms-primary), var(--fvh-ms-primary-2));
}

/* Overlay inputs. They provide only the thumbs. */
.fvh-ms__range-slider input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 70px;

    margin: 0;
    padding: 0;

    appearance: none;
    -webkit-appearance: none;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    pointer-events: none;
}

/* Hide native tracks so browser active-track artifacts cannot appear. */
.fvh-ms__range-slider input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.fvh-ms__range-slider input[type="range"]::-moz-range-track {
    width: 100%;
    height: 10px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.fvh-ms__range-slider input[type="range"]::-moz-range-progress {
    background: transparent !important;
    border: 0 !important;
}

/* Remove browser focus/active backgrounds around range controls. */
.fvh-ms__range-slider input[type="range"]:focus,
.fvh-ms__range-slider input[type="range"]:active {
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Thumb styles */
.fvh-ms__range-slider input[type="range"]::-webkit-slider-thumb {
    width: 38px;
    height: 38px;

    margin-top: -14px;

    border: 0 !important;
    border-radius: 50%;

    appearance: none;
    -webkit-appearance: none;

    background: var(--fvh-ms-primary);
    cursor: pointer;
    pointer-events: auto;

    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.fvh-ms__range-slider input[type="range"]::-moz-range-thumb {
    width: 38px;
    height: 38px;

    border: 0 !important;
    border-radius: 50%;

    background: var(--fvh-ms-primary);
    cursor: pointer;
    pointer-events: auto;

    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

/* Stacking order. */
.fvh-ms__range-slider input[data-bedroom-min-range] {
    z-index: 4;
}

.fvh-ms__range-slider input[data-bedroom-max-range] {
    z-index: 5;
}

.fvh-ms__range-slider input[type="range"]:focus,
.fvh-ms__range-slider input[type="range"]:active {
    z-index: 8;
}

.fvh-ms__range-labels {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    margin-top: 4px;

    color: var(--fvh-ms-muted);
    font-size: 18px;
}

.fvh-ms__range-labels span:first-child {
    text-align: left;
}

.fvh-ms__range-labels span:last-child {
    text-align: right;
}

.fvh-ms__range-labels strong {
    color: var(--fvh-ms-text);
    font-size: 22px;
    font-weight: 800;
}

@media (max-width: 680px) {
    .fvh-ms__amenity-groups {
        grid-template-columns: 1fr;
    }
    .fvh-ms__calendar-cell.is-empty {
        height: 42px;
    }
}

/* 10. Drawers */
.fvh-ms__drawer[hidden],
.fvh-ms__drawer-backdrop[hidden] {
    display: none !important;
}
.fvh-ms__sticky.has-open-drawer { z-index: 10000; }
.fvh-ms__drawer { position: fixed; inset: 0; background: rgba(14,12,20,.48); z-index: 9999; display: flex; justify-content: flex-end; }
.fvh-ms__drawer-panel { width: min(620px,100%); height: 100%; overflow: auto; background: var(--fvh-ms-bg); padding: 28px; border-radius: 28px 0 0 28px; box-shadow: -24px 0 70px rgba(0,0,0,.22); }
.fvh-ms__section { border-top: 1px solid var(--fvh-ms-border); padding-top: 22px; margin-top: 22px; }
.fvh-ms__section-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.fvh-ms__options { display: grid; gap: 10px; }
.fvh-ms__options--grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.fvh-ms__options label { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--fvh-ms-border); border-radius: 16px; background: var(--fvh-ms-bg); cursor: pointer; }
.fvh-ms__options label:hover { background: var(--fvh-ms-soft); }
.fvh-ms__options input { width: 20px; height: 20px; accent-color: var(--fvh-ms-primary); }
.fvh-ms__drawer-actions { position: sticky; bottom: -28px; background: var(--fvh-ms-bg); padding: 18px 0 4px; }
.fvh-ms__popover--small { overflow: visible;}

/* Full filter dialog: fixed actions, with only the options scrolling. */
body.fvh-ms-filter-dialog-open { overflow: hidden; }
.fvh-ms__sticky.has-open-drawer {
    position: relative;
    z-index: 10050;
    backdrop-filter: none;
}
.fvh-ms .fvh-ms__drawer {
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.fvh-ms .fvh-ms__drawer-panel {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    height: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    padding: 0;
    border-radius: 24px;
}
.fvh-ms .fvh-ms__drawer-head {
    flex: 0 0 auto;
    margin: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--fvh-ms-border);
}
.fvh-ms .fvh-ms__drawer-head button {
    display: grid; place-items: center; flex: 0 0 44px;
    width: 44px; height: 44px; min-height: 44px; padding: 0;
    border: 1px solid var(--fvh-ms-border); border-radius: 50%;
    background: var(--fvh-ms-soft); color: var(--fvh-ms-text);
    font-size: 26px; line-height: 1; cursor: pointer;
}
.fvh-ms__drawer-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
}
.fvh-ms .fvh-ms__drawer-actions {
    flex: 0 0 auto;
    position: static;
    margin: 0;
    padding: 16px 24px;
    border-top: 1px solid var(--fvh-ms-border);
    background: var(--fvh-ms-bg);
}
.fvh-ms .fvh-ms__filter-basics { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fvh-ms__draft-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fvh-ms__draft-field > span,
.fvh-ms__draft-bedrooms legend { font-weight: 700; color: var(--fvh-ms-text); }
.fvh-ms__draft-field small { color: var(--fvh-ms-muted); font-size: 13px; }
.fvh-ms .fvh-ms__draft-field input,
.fvh-ms .fvh-ms__draft-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--fvh-ms-border);
    border-radius: 10px;
    background: var(--fvh-ms-bg);
    color: var(--fvh-ms-text);
    font-size: 16px;
}
.fvh-ms__draft-bedrooms { min-width: 0; border: 0; margin: 0; padding: 0; }
.fvh-ms__draft-bedrooms legend { margin-bottom: 8px; padding: 0; font-size: 16px; }
.fvh-ms__draft-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }


/* 11. Responsive */
@media (max-width: 1440px), (max-height: 700px) {
    body.fvh-ms-option-dialog-open { overflow: hidden; }

    .fvh-ms__sticky.has-open-option-dialog {
        position: relative;
        z-index: 10050;
        /* A backdrop filter would make fixed descendants relative to the sticky bar. */
        backdrop-filter: none;
    }

    .fvh-ms__option-backdrop {
        position: fixed;
        inset: 0;
        z-index: 119;
        background: rgba(14, 12, 20, .58);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    .fvh-ms__option-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .fvh-ms__option-dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        z-index: 120;
        display: flex;
        flex-direction: column;
        width: min(900px, calc(100vw - 32px));
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        padding: 24px;
        border-radius: 24px;
        overflow: hidden;
        transform: translate(-50%, calc(-50% + 8px));
    }

    .fvh-ms__option-dialog.is-open {
        transform: translate(-50%, -50%);
    }

    .fvh-ms__option-dialog .fvh-ms__popover-head,
    .fvh-ms__option-dialog .fvh-ms__actions {
        flex: 0 0 auto;
    }

    .fvh-ms__option-dialog .fvh-ms__popover-head button {
        min-width: 44px;
        min-height: 44px;
    }

    .fvh-ms__option-dialog .fvh-ms__area-list,
    .fvh-ms__option-dialog .fvh-ms__location-options {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 12px;
    }

    .fvh-ms__option-dialog .fvh-ms__area-option {
        min-width: 0;
    }
}

@media (max-width: 1100px) {
    .fvh-ms__bar { grid-template-columns: repeat(3,1fr); border-radius: 28px; }
    .fvh-ms__field,
    .fvh-ms__filter,
    .fvh-ms__submit { border-bottom: 1px solid var(--fvh-ms-border); border-radius: 0; }
    .fvh-ms__submit { grid-column: span 3; }
    .fvh-ms__pending-help {
        grid-column: 1 / -1;
        grid-row: auto;
        text-align: center;
    }
    .fvh-ms__filter { border-right: 0; }
}
@media (min-width: 1025px) {
    .fvh-ms__sticky {
        position: sticky;
        top: var(--fvh-header-offset, 0px);
        z-index: 900;
        padding: 14px 0;
        background: var(--fvh-palette-page-background, #fff);
        backdrop-filter: blur(12px);
        transition: box-shadow .25s ease, padding .25s ease;
    }

    .fvh-ms__sticky.is-stuck {
        padding: 10px 0;
        box-shadow: 0 12px 36px rgba(0,0,0,.10);
    }
    .fvh-ms__sticky.is-stuck .fvh-ms__bar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 1024px) {
    .fvh-ms__sticky {
        position: static;
        top: auto;
        z-index: auto;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }

    .fvh-ms__sticky.is-stuck {
        padding: 0;
        box-shadow: none;
    }
    .fvh-ms__sticky.is-stuck .fvh-ms__bar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 680px) {
    .fvh-ms:has(.fvh-ms__date-popover.is-open) { z-index: 10000; }
    .fvh-ms { padding: 10px; }
    .fvh-ms__bar { grid-template-columns: 1fr; border-radius: 24px; overflow: visible; box-shadow: 0 12px 35px rgba(32,27,46,.12); }
    .fvh-ms__field,
    .fvh-ms__filter,
    .fvh-ms__submit { width: 100%; min-height: 62px; border-right: 0; border-bottom: 1px solid var(--fvh-ms-border); border-radius: 0; }
    .fvh-ms__field:first-child { border-radius: 24px 24px 0 0; }
    .fvh-ms__submit {
        grid-column: auto;
        width: auto;
        margin: 10px;
        border: 0;
        border-radius: 18px;
    }
    .fvh-ms__area-popover,
    .fvh-ms__date-popover,
    .fvh-ms__guests-popover,
    .fvh-ms__popover--small { left: var(--fvh-popover-left, 0); width: var(--fvh-popover-width, 100%); max-width: calc(100vw - 32px); }
    .fvh-ms__option-dialog {
        top: 0;
        left: 0;
        width: 100vw;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        padding: calc(20px + env(safe-area-inset-top))
            calc(18px + env(safe-area-inset-right))
            calc(20px + env(safe-area-inset-bottom))
            calc(18px + env(safe-area-inset-left));
        border-radius: 0;
        transform: translateY(8px);
    }
    .fvh-ms__option-dialog.is-open { transform: translateY(0); }
    .fvh-ms__option-dialog .fvh-ms__area-list,
    .fvh-ms__option-dialog .fvh-ms__location-options {
        grid-template-columns: 1fr;
    }
    .fvh-ms__date-popover {
        position: fixed;
        top: 50%;
        left: 50%;
        width: calc(100vw - 32px);
        max-width: 440px;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
        padding: 24px;
        transform: translate(-50%, calc(-50% + 8px));
    }
    .fvh-ms__date-popover.is-open { transform: translate(-50%, -50%); }
    .fvh-ms__date-popover .fvh-ms__actions {
        position: sticky;
        bottom: -24px;
        z-index: 6;
        background: var(--fvh-ms-bg);
        padding: 14px 0 24px;
        margin-bottom: -24px;
    }
    .fvh-ms__amenity-groups {
        grid-template-columns: 1fr;
    }
    .fvh-ms__calendar-months { grid-template-columns: 1fr; gap: 28px; }
    .fvh-ms__calendar-title { font-size: 22px; }
    .fvh-ms__calendar-cell { height: 42px; }
    .fvh-ms__drawer { align-items: flex-end; }
    .fvh-ms__drawer-panel { width: 100%; height: min(88vh,760px); border-radius: 28px 28px 0 0; padding: 22px; }
    .fvh-ms__options--grid { grid-template-columns: 1fr; }
    .fvh-ms__chips { margin-left: 0; }
    
}

@media (max-width: 1100px) and (orientation: landscape) and (max-height: 600px) {
    .fvh-ms__option-dialog .fvh-ms__area-list,
    .fvh-ms__option-dialog .fvh-ms__location-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .fvh-ms__submit.has-pending-filters::after {
        animation: none;
        opacity: .65;
    }

    .fvh-ms__option-dialog,
    .fvh-ms__option-backdrop {
        transition: none;
    }
}

@media (min-width: 1025px) {
    .fvh-ms__sticky {
        position: sticky;
        top: var(--fvh-header-offset, 0px);
        z-index: 900;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 14px 0;

        background: var(--fvh-palette-page-background, #fff);

        transition:
            box-shadow .25s ease,
            padding .25s ease;
    }

    .fvh-ms__sticky.is-stuck {
        padding: 10px 0;
        box-shadow: 0 12px 36px rgba(0, 0, 0, .10);
    }
}

/* Iteration 2: single-line fields at EVERY size; preserve accessible names. */
.fvh-ms .fvh-ms__field > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.fvh-ms .fvh-ms__field { min-width: 0; min-height: 52px; padding: 10px 14px; gap: 0; }
.fvh-ms .fvh-ms__filter,
.fvh-ms .fvh-ms__submit { min-height: 52px; }
.fvh-ms .fvh-ms__field strong { font-size: 15px; }
.fvh-ms .fvh-ms__drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fvh-ms .fvh-ms__drawer-head > strong { font-size: 22px; color: var(--fvh-ms-text); }
.fvh-ms .fvh-ms__drawer-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fvh-ms .fvh-ms__drawer-secondary-actions { display: flex; align-items: center; gap: 16px; }
.fvh-ms .fvh-ms__drawer-secondary-actions button { min-height: 44px; margin: 0; }
.fvh-ms .fvh-ms__draft-field { margin: 0; }
.fvh-ms .fvh-ms__draft-guests .fvh-ms__guest-stepper { gap: 24px; }
.fvh-ms .fvh-ms__draft-guests .fvh-ms__guest-stepper strong { min-width: 32px; text-align: center; }
.fvh-ms .fvh-ms__draft-guests .fvh-ms__guest-stepper button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.fvh-ms .fvh-ms__type-dropdown {
    min-width: 0; border: 1px solid var(--fvh-ms-border); border-radius: 14px;
    background: var(--fvh-ms-bg); color: var(--fvh-ms-text); overflow: hidden;
}
.fvh-ms .fvh-ms__type-dropdown summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 48px; padding: 12px 14px; box-sizing: border-box;
    list-style: none; cursor: pointer; font-size: 16px;
}
.fvh-ms .fvh-ms__type-dropdown summary::-webkit-details-marker { display: none; }
.fvh-ms .fvh-ms__type-dropdown summary:focus-visible { outline: 2px solid var(--fvh-ms-primary); outline-offset: -3px; }
.fvh-ms .fvh-ms__type-dropdown[open] summary { border-bottom: 1px solid var(--fvh-ms-border); }
.fvh-ms .fvh-ms__type-options { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.fvh-ms .fvh-ms__type-option {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    min-height: 44px; box-sizing: border-box; margin: 0; border-radius: 8px;
    color: var(--fvh-ms-text); font-size: 16px; cursor: pointer;
}
.fvh-ms .fvh-ms__type-option:hover,
.fvh-ms .fvh-ms__type-option:focus-within,
.fvh-ms .fvh-ms__type-option:has(input:checked) { background: var(--fvh-ms-soft); }
.fvh-ms .fvh-ms__type-option input[type="radio"] {
    appearance: auto; width: 18px; height: 18px; min-height: 0;
    flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--fvh-ms-primary);
}
.fvh-ms .fvh-ms__draft-field input,
.fvh-ms .fvh-ms__draft-field select { box-sizing: border-box; box-shadow: none; font-family: inherit; }
.fvh-ms .fvh-ms__draft-field input:focus-visible,
.fvh-ms .fvh-ms__draft-field select:focus-visible { outline: 2px solid var(--fvh-ms-primary); outline-offset: 2px; }
.fvh-ms .fvh-ms__filter-basics + .fvh-ms__section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--fvh-ms-border); }

/* Guests stays in the bar above 1440px; height affects only existing layout rules. */
@media (min-width: 1441px) {
    .fvh-ms .fvh-ms__draft-guests { display: none; }
    .fvh-ms [data-open-filters][data-has-desktop-filters="false"] { display: none; }
}
@media (max-width: 1440px) {
    .fvh-ms .fvh-ms__field[data-open-guests] { display: none; }
}
@media (min-width: 1441px) and (min-height: 701px) {
    .fvh-ms .fvh-ms__bar { display: flex; }
    .fvh-ms .fvh-ms__field { flex: 1 1 0; }
    .fvh-ms .fvh-ms__field[data-open-dates] { flex-grow: 1.4; }
}

/* Includes landscape iPad Pro (1376 x 1032) and short laptops (1600 x 569). */
@media (max-width: 1440px), (max-height: 700px) {
    .fvh-ms .fvh-ms__filter-basics { display: grid; }
    .fvh-ms .fvh-ms__filter-basics + .fvh-ms__section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--fvh-ms-border); }
    .fvh-ms__sticky,
    .fvh-ms__sticky.is-stuck { padding: 6px 0; }
    .fvh-ms .fvh-ms__bar {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        border-radius: 18px;
        overflow: hidden;
    }
    .fvh-ms__sticky.is-stuck .fvh-ms__bar { padding-top: 0; padding-bottom: 0; }
    .fvh-ms .fvh-ms__field {
        flex: 1 1 0;
        min-width: 0;
        min-height: 52px;
        padding: 10px 14px;
        border-bottom: 0;
        justify-content: center;
    }
    .fvh-ms .fvh-ms__field[data-open-dates] { flex-grow: 1.4; }
    /* Keep field names accessible without adding a second visible text line. */
    .fvh-ms .fvh-ms__field > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .fvh-ms .fvh-ms__field strong { font-size: 15px; }
    .fvh-ms .fvh-ms__filter,
    .fvh-ms .fvh-ms__submit {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        min-height: 44px;
        padding: 10px 16px;
        margin: 4px;
        border: 0;
        border-radius: 14px;
        font-size: 15px;
    }
    .fvh-ms .fvh-ms__pending-help { flex: 1 0 100%; }
    .fvh-ms__chips { margin-top: 8px; }
    .fvh-ms__chip { padding: 4px 9px; }
    .fvh-ms__date-popover.fvh-ms__option-dialog {
        overflow: hidden;
        padding: 24px;
    }
    .fvh-ms__date-popover.fvh-ms__option-dialog .fvh-ms__date-calendar {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .fvh-ms__date-popover.fvh-ms__option-dialog .fvh-ms__actions {
        position: static;
        margin: 16px 0 0;
        padding: 0;
    }
}

@media (max-width: 680px) {
    .fvh-ms { padding: 0; }
    .fvh-ms .fvh-ms__bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 6px;
        background: var(--fvh-ms-soft);
    }
    .fvh-ms .fvh-ms__field,
    .fvh-ms .fvh-ms__field:first-child {
        min-height: 48px;
        border-radius: 10px;
        border: 1px solid var(--fvh-ms-border);
        background: var(--fvh-ms-bg);
        padding: 10px 12px;
    }
    .fvh-ms__sticky.is-stuck .fvh-ms__bar { padding: 6px; }
    .fvh-ms .fvh-ms__field[data-open-dates] { grid-column: auto; }
    .fvh-ms .fvh-ms__filter { grid-column: 1; }
    .fvh-ms .fvh-ms__submit { grid-column: 2; }
    .fvh-ms .fvh-ms__drawer { padding: 0; }
    .fvh-ms .fvh-ms__drawer-panel {
        box-sizing: border-box;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        padding-top: env(safe-area-inset-top);
    }
    /* WordPress's mobile admin toolbar sits above our dialog's stacking context. */
    body.admin-bar .fvh-ms .fvh-ms__drawer { top: 46px; }
    body.admin-bar .fvh-ms .fvh-ms__drawer-panel {
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
    .fvh-ms .fvh-ms__drawer-head { padding: 12px 16px; }
    .fvh-ms .fvh-ms__drawer-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px 16px;
    }
    .fvh-ms .fvh-ms__drawer-secondary-actions { justify-content: space-between; }
    .fvh-ms .fvh-ms__drawer-actions > .fvh-ms__done { width: 100%; min-height: 44px; margin: 0; }
    .fvh-ms .fvh-ms__drawer-actions { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .fvh-ms .fvh-ms__filter-basics { grid-template-columns: 1fr; }
    .fvh-ms__drawer-body { flex: 1 1 auto; padding: 20px; }
    .fvh-ms__date-popover.fvh-ms__option-dialog {
        top: 0;
        left: 0;
        width: 100vw;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
        transform: translateY(8px);
    }
    .fvh-ms__date-popover.fvh-ms__option-dialog.is-open { transform: translateY(0); }
}

/* Content-sized fields avoid large empty gaps after short labels. */
@media (min-width: 681px) {
    .fvh-ms .fvh-ms__bar { width: fit-content; max-width: 100%; }
    .fvh-ms .fvh-ms__field { flex: 0 1 auto; padding-inline: 18px; }
    .fvh-ms .fvh-ms__field[data-open-areas] { max-width: 290px; }
    .fvh-ms .fvh-ms__field[data-open-locations] { max-width: 220px; }
    .fvh-ms .fvh-ms__field[data-open-dates] { flex: 0 1 auto; }
    .fvh-ms .fvh-ms__submit { flex: 0 0 auto; min-width: 96px; }
}
@media (min-width: 681px) and (max-width: 1100px) {
    .fvh-ms .fvh-ms__field { padding-inline: 12px; }
    .fvh-ms .fvh-ms__field[data-open-areas] { max-width: 200px; }
    .fvh-ms .fvh-ms__field[data-open-locations] { max-width: 150px; }
}
