/*
 * Florida Vacation Homes
 * Search Results Template
 * Clean, organized stylesheet
 */

/* =========================================================
   1. Design tokens and page shell
========================================================= */
.fvh-search-page,
.fvh-modern-favorites {
    --fvh-results-accent: var(--fvh-ms-primary, #5c2bd9);
    --fvh-results-gold: #b78235;
    --fvh-results-gold-border: #c79a54;
    --fvh-results-text: #242228;
    --fvh-results-muted: #77727f;
    --fvh-results-soft: #f6f4f8;
    --fvh-results-border: #e7e4ec;
    --fvh-palette-on-primary: #fff;
    --fvh-palette-on-secondary: #242228;
    --fvh-palette-page-background: #fff;
    --fvh-palette-surface: #fff;
    --fvh-palette-secondary: #b78235;
    --fvh-palette-secondary-hover: #c79a54;
    --fvh-palette-favorite: #e3262e;
    --fvh-palette-focus: #5c2bd9;
    --fvh-results-map-gap: 24px;
    --fvh-results-map-top: calc(var(--fvh-header-offset, 0px) + 110px);

    /* Property grid column counts. */
    --fvh-grid-columns-desktop: 5;
    --fvh-grid-columns-wide: 4;
    --fvh-grid-columns-medium: 3;
    --fvh-grid-columns-with-map: 3;
    --fvh-grid-columns-with-map-wide: 2;
    --fvh-grid-columns-with-map-medium: 2;
    --fvh-grid-columns-compact: 2;
    --fvh-grid-columns-mobile: 1;

    /* Property card typography scale. */
    --fvh-card-title-font-size: 20px;
    --fvh-card-meta-font-size: 16px;
    --fvh-card-rating-font-size: 17px;
    --fvh-card-rating-star-font-size: 19px;
    --fvh-card-caption-font-size: 14px;
    --fvh-card-price-label-font-size: 17px;

    width: 100%;
    max-width: 100%;
    padding: 28px;
    background: var(--fvh-palette-page-background, #fff);
    color: var(--fvh-results-text);
}

.fvh-search-page *,
.fvh-search-page *::before,
.fvh-search-page *::after {
    box-sizing: border-box;
}

.fvh-results-toolbar,
.fvh-results-layout,
.fvh-property-grid,
.fvh-empty-results {
    width: 100%;
}
.fvh-results-main,
.fvh-results-list,
.fvh-map-panel {
    min-width: 0;
    width: 100%;
}
/* =========================================================
   2. Results toolbar
========================================================= */
.fvh-results-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 5px 0 10px;
}

.fvh-results-toolbar__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.fvh-results-count {
    color: var(--fvh-results-text);
    font-size: 15px;
    white-space: nowrap;
}

.fvh-results-toolbar__favorites {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.fvh-results-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
}

.fvh-results-actions label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fvh-results-muted);
    font-size: 14px;
}

.fvh-results-actions select {
    min-height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--fvh-ms-border, #e7e4ec);
    background: var(--fvh-ms-bg, #fff);
    color: var(--fvh-ms-text, #242228);
}

.fvh-map-toggle {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--fvh-palette-secondary-hover, #c79a54);
    background: var(--fvh-palette-surface, #fff);
    color: var(--fvh-palette-secondary, #b78235);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    cursor: pointer;
}

.fvh-map-toggle:hover,
.fvh-map-toggle:focus-visible {
    background: var(--fvh-palette-secondary-hover, #c79a54);
    color: var(--fvh-palette-on-secondary, #fff);
}

/* =========================================================
   3. Results and map layout
========================================================= */
.fvh-results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px; /*var(--fvh-results-map-gap);*/
    width: 100%;
}

.fvh-results-list,
.fvh-map-panel {
    min-width: 0;
    width: 100%;
}

.fvh-results-layout.is-map-open {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
}

.fvh-map-panel {
    position: sticky;
    top: var(--fvh-results-map-top);
    width: 100%;
    height: calc(100vh - var(--fvh-results-map-top) - 20px);
    min-height: 520px;
    overflow: hidden;
}

.fvh-map-panel[hidden] {
    display: none !important;
}

.fvh-mobile-map-controls {
    display: none;
}

.fvh-search-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    border-radius: 24px;
    background: #f3f1f6;
}

/* =========================================================
   4. Property grid
========================================================= */
.fvh-property-grid {
    display: grid;
    grid-template-columns: repeat(
        var(--fvh-grid-columns-desktop),
        minmax(0, 1fr)
    );
    gap: 70px 24px;
}

.fvh-results-layout.is-map-open .fvh-property-grid {
    grid-template-columns: repeat(
        var(--fvh-grid-columns-with-map),
        minmax(0, 1fr)
    );
}

/* =========================================================
   5. Property card
========================================================= */
.fvh-property-card {
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    width: 100%;
    min-width: 0;
    height: 100%;

    overflow: hidden;
    border: 1px solid var(--fvh-results-border);
    border-radius: 16px;
    background: var(--fvh-palette-surface, #fff);
    box-shadow: 0 3px 14px rgba(32, 27, 46, .055);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

/* =========================================================
   Property card favorite button
   Background-free heart icon
========================================================= */
.fvh-property-card__favorite {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 30;

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

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

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

    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;

    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;

    transition: transform 180ms ease, filter 180ms ease;
}

.fvh-property-card__favorite-icon {
    display: block;
    width: 30px;
    height: 30px;
    color: currentColor;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .48));
    text-shadow:
        0 2px 6px rgba(0, 0, 0, .5),
        0 1px 2px rgba(0, 0, 0, .35);
    transition:
        color 180ms ease,
        transform 180ms ease,
        text-shadow 180ms ease;
}

.fvh-property-card__favorite:hover,
.fvh-property-card__favorite:focus,
.fvh-property-card__favorite:focus-visible,
.fvh-property-card__favorite:active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.fvh-property-card__favorite:hover,
.fvh-property-card__favorite:focus-visible {
    color: var(--fvh-results-gold, #b78235) !important;
    transform: scale(1.08);
}

.fvh-property-card__favorite:hover .fvh-property-card__favorite-icon,
.fvh-property-card__favorite:focus-visible .fvh-property-card__favorite-icon {
    transform: translateY(-1px) scale(1.08);
    text-shadow:
        0 3px 10px rgba(0, 0, 0, .5),
        0 1px 3px rgba(0, 0, 0, .35);
}

.fvh-property-card__favorite.is-active,
.fvh-property-card__favorite[aria-pressed="true"],
.fvh-property-card__favorite.is-active:hover,
.fvh-property-card__favorite[aria-pressed="true"]:hover,
.fvh-property-card__favorite.is-active:focus,
.fvh-property-card__favorite[aria-pressed="true"]:focus {
    border: 0 !important;
    background: transparent !important;
    color: var(--fvh-palette-favorite, #e3262e) !important;
    box-shadow: none !important;
}

.fvh-property-card__favorite.is-active .fvh-property-card__favorite-icon,
.fvh-property-card__favorite[aria-pressed="true"] .fvh-property-card__favorite-icon {
    color: var(--fvh-palette-favorite, #e3262e);
    fill: currentColor;
    stroke: #fff;
    stroke-width: 1.25;
    transform: translateY(-1px) scale(1.12);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .36));
    text-shadow:
        0 3px 10px rgba(0, 0, 0, .36),
        0 1px 3px rgba(0, 0, 0, .28);
}

.fvh-property-card__favorite:active {
    transform: scale(.92);
}

.fvh-property-card__favorite:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (hover: none) {
    .fvh-property-card__favorite:hover {
        color: #fff !important;
        transform: none;
    }

    .fvh-property-card__favorite.is-active:hover,
    .fvh-property-card__favorite[aria-pressed="true"]:hover {
        color: var(--fvh-palette-favorite, #e3262e) !important;
    }
}

@media (max-width: 800px), (pointer: coarse) {
    .fvh-property-card__favorite {
        top: 10px !important;
        right: 10px !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        border-radius: 50% !important;
        background: rgba(22, 19, 28, .32) !important;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .fvh-property-card__favorite-icon {
        width: 32px;
        height: 32px;
        stroke-width: 2;
    }

    .fvh-property-card__favorite.is-active,
    .fvh-property-card__favorite[aria-pressed="true"],
    .fvh-property-card__favorite.is-active:hover,
    .fvh-property-card__favorite[aria-pressed="true"]:hover,
    .fvh-property-card__favorite.is-active:focus,
    .fvh-property-card__favorite[aria-pressed="true"]:focus {
        background: rgba(255, 255, 255, .92) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fvh-property-card__favorite,
    .fvh-property-card__favorite-icon,
    .fvh-favorites-link {
        transition: none;
    }
}

/* =========================================================
   6. Favorites link
========================================================= */

.fvh-favorites-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--fvh-results-border);
    border-radius: 999px;
    background: var(--fvh-palette-surface, #fff);
    color: inherit;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.fvh-favorites-link:hover {
    border-color: rgba(20, 32, 48, 0.3);
    box-shadow: 0 4px 14px rgba(20, 32, 48, 0.08);
    transform: translateY(-1px);
}

.fvh-favorites-link__icon {
    color: var(--fvh-palette-favorite, #d62828);
    font-size: 1.05rem;
}

.fvh-favorites-link__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--fvh-palette-favorite, #d62828);
    color: var(--fvh-palette-on-primary, #fff);
    font-size: 0.75rem;
    font-weight: 700;
}

.fvh-favorites-link__count[hidden] {
    display: none;
}


/* =========================================================
   7. Modern Favorites page
========================================================= */
.fvh-modern-favorites {
    --fvh-favorites-text: var(--fvh-results-text, #242228);
    --fvh-favorites-muted: var(--fvh-results-muted, #77727f);
    --fvh-favorites-border: var(--fvh-results-border, #e7e4ec);
    --fvh-favorites-accent: var(--fvh-results-accent, #5c2bd9);

    min-height: 70vh;
    padding: 40px 24px 64px;
    background: var(--fvh-palette-page-background, #f7f8fa);
    color: var(--fvh-results-text);/*var(--fvh-favorites-text);*/
}

.fvh-modern-favorites *,
.fvh-modern-favorites *::before,
.fvh-modern-favorites *::after {
    box-sizing: border-box;
}

.fvh-modern-favorites__container {
    width: min(100%, 1440px);
    margin-inline: auto;
}

.fvh-modern-favorites__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px 28px;
    border: 1px solid var(--fvh-favorites-border);
    border-radius: 18px;
    background: var(--fvh-palette-surface, #fff);
    box-shadow: 0 6px 22px rgba(20, 32, 48, .05);
}

.fvh-modern-favorites__heading {
    min-width: 0;
}

.fvh-modern-favorites__eyebrow {
    margin: 0 0 6px;
    color: var(--fvh-favorites-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.fvh-modern-favorites__title {
    margin: 0;
    color: var(--fvh-favorites-text);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 800;
    line-height: 1.1;
}

.fvh-modern-favorites__count {
    margin: 10px 0 0;
    color: var(--fvh-favorites-muted);
    font-size: 15px;
    line-height: 1.4;
}

.fvh-modern-favorites__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.fvh-modern-favorites__back,
.fvh-modern-favorites__search-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}

.fvh-modern-favorites__back {
    border: 1px solid rgba(20, 32, 48, .16);
    background: var(--fvh-palette-surface, #fff);
    color: var(--fvh-favorites-text);
}

.fvh-modern-favorites__back:hover,
.fvh-modern-favorites__back:focus-visible {
    border-color: rgba(20, 32, 48, .3);
    box-shadow: 0 4px 14px rgba(20, 32, 48, .08);
    transform: translateY(-1px);
}

.fvh-modern-favorites__status {
    padding: 32px 24px;
    border: 1px solid var(--fvh-favorites-border);
    border-radius: 16px;
    background: var(--fvh-palette-surface, #fff);
    color: var(--fvh-favorites-muted);
    text-align: center;
}

.fvh-modern-favorites__results {
    width: 100%;
}

.fvh-modern-favorites__results[hidden],
.fvh-modern-favorites__empty[hidden],
.fvh-modern-favorites__status[hidden] {
    display: none !important;
}

.fvh-modern-favorites__results .fvh-property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    width: 100%;
}

.fvh-modern-favorites__results .fvh-property-card {
    width: 100%;
    max-width: none;
}

.fvh-modern-favorites__empty {
    width: min(620px, 100%);
    margin: 48px auto;
    padding: 42px 34px;
    border: 1px solid var(--fvh-favorites-border);
    border-radius: 20px;
    background: var(--fvh-palette-surface, #fff);
    text-align: center;
    box-shadow: 0 10px 30px rgba(20, 32, 48, .06);
}

.fvh-modern-favorites__empty-title {
    margin: 0 0 10px;
    color: var(--fvh-favorites-text);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.fvh-modern-favorites__empty-text {
    margin: 0;
    color: var(--fvh-favorites-muted);
    font-size: 16px;
    line-height: 1.6;
}

.fvh-modern-favorites__search-link {
    margin-top: 20px;
    border: 1px solid var(--fvh-favorites-accent);
    background: var(--fvh-favorites-accent);
    color: var(--fvh-palette-on-primary, #fff);
}

.fvh-modern-favorites__search-link:hover,
.fvh-modern-favorites__search-link:focus-visible {
    box-shadow: 0 6px 18px rgba(20, 32, 48, .14);
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .fvh-modern-favorites__results .fvh-property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fvh-modern-favorites {
        padding: 24px 16px 48px;
    }

    .fvh-modern-favorites__header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 22px 20px;
    }

    .fvh-modern-favorites__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .fvh-modern-favorites__results .fvh-property-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fvh-modern-favorites__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fvh-modern-favorites__actions .fvh-favorites-link,
    .fvh-modern-favorites__back {
        width: 100%;
    }

    .fvh-modern-favorites__empty {
        margin: 32px auto;
        padding: 34px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fvh-modern-favorites__back,
    .fvh-modern-favorites__search-link {
        transition: none;
    }
}

@media (hover: hover) {
    .fvh-property-card:hover {
        border-color: #dedee5;
        box-shadow: 0 10px 28px rgba(32, 27, 46, .11);
        transform: translateY(-2px);
    }
}

/* Temporary map hover/click highlight */
.fvh-property-card.is-map-highlighted,
.fvh-property-card.is-map-badge-hovered {
    position: relative;
    z-index: 2;

    box-shadow:
        0 0 0 2px var(--fvh-results-accent, #5c2bd9),
        0 10px 28px rgba(32, 27, 46, .14);

    transform: translateY(-2px);
}

/* Persistent selected property */
.fvh-property-card.is-selected {
    position: relative;
    z-index: 3;

    box-shadow:
        0 0 0 4px var(--fvh-results-accent, #5c2bd9),
        0 16px 40px rgba(32, 27, 46, .20);

    transform: translateY(-4px);
}

.fvh-property-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 14px 14px;
}

.fvh-property-card__header {
    display: block;
    min-width: 0;
}

.fvh-property-card__title {
    min-width: 0;
    margin: 0;
}

.fvh-property-card__title a {
    display:block;
    overflow: hidden;

    color: inherit;
    text-decoration: none;

    font-size: var(--fvh-card-title-font-size);
    font-weight: 600;
    line-height: 1.25;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.fvh-property-card__title a:hover,
.fvh-property-card__title a:focus-visible {
    color: var(--fvh-palette-secondary, #b78235);
}

.fvh-property-card__meta {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;

    min-width: max-content;
    white-space: nowrap;
}

.fvh-property-card__info {
    display: grid;
    grid-template-rows: auto auto 28px;
    gap: 6px;
    margin-top: 7px;
}

.fvh-property-card__stats {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    margin: 0;

    color: var(--fvh-results-muted);
    font-size: var(--fvh-card-meta-font-size);
    font-size: clamp(13px, 5cqi, var(--fvh-card-meta-font-size));
    line-height: 1.2;
    white-space: nowrap;
}

.fvh-property-card__stat {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.fvh-property-card__stats-separator {
    flex: 0 0 auto;
    color: #b0adb5;
}

.fvh-property-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: var(--fvh-results-text);
    font-size: var(--fvh-card-meta-font-size);
    font-weight: 500;
    line-height: 1.3;
}

.fvh-property-card__location-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fvh-property-card__location-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*
.fvh-property-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
}
*/

/* =========================================================
   Property highlights
   Examples: Pool, Game Room, Theater, Arcade
   ========================================================= */

.fvh-property-card__highlights {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    gap: 10px 18px;

    min-height: 54px;
    margin-top: 18px;
}

.fvh-property-card__highlight {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;

    color: var(--fvh-results-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.fvh-property-card__highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    font-size: 18px;
    line-height: 1;
}

.fvh-property-card__highlight-label {
    overflow: hidden;
    text-overflow: ellipsis;
}


/*
.fvh-property-card__details {
    padding: 14px 28px;
    border: 1px solid var(--fvh-results-gold-border);
    color: var(--fvh-results-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
}

.fvh-property-card__details:hover,
.fvh-property-card__details:focus-visible {
    background: var(--fvh-results-gold-border);
    color: #fff;
}
*/

/* Rating
--------------------------------------------------------- */

.fvh-property-card__rating {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;

    margin: 0;
    font-size: var(--fvh-card-rating-font-size);
    line-height: 1.2;
}

.fvh-property-card__rating-star {
    color: var(--fvh-results-gold);
    font-size: var(--fvh-card-rating-star-font-size);
    line-height: 1;
}

.fvh-property-card__rating-value {
    color: var(--fvh-results-text);
    font-weight: 700;
}

.fvh-property-card__rating-count {
    color: var(--fvh-results-muted);
    font-weight: 400;
}

.fvh-property-card__rating.is-empty .fvh-property-card__rating-star,
.fvh-property-card__rating.is-unscored .fvh-property-card__rating-star {
    color: #aaa5af;
    font-weight: 400;
}

.fvh-property-card__rating-review-summary {
    color: var(--fvh-results-muted);
    font-size: var(--fvh-card-caption-font-size);
    font-weight: 700;
    white-space: nowrap;
}

.fvh-property-card__content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.fvh-property-card__content-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.fvh-property-card__call-link {
    position: relative;
    z-index: 2;
}
.fvh-property-card__call-link:focus-visible,
.fvh-property-card__content-link:focus-visible {
    outline: 2px solid var(--fvh-palette-focus, var(--fvh-results-accent));
    outline-offset: 3px;
}

/* =========================================================
   8. Property card carousel
========================================================= */
.fvh-card-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 2.7;
    overflow: hidden;
    background: var(--fvh-results-soft);
}

.fvh-card-carousel__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fvh-card-carousel__container {
    display: flex;
    height: 100%;
    touch-action: pan-y pinch-zoom;
}

.fvh-card-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
}

.fvh-card-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fvh-card-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;

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

    appearance: none;
    -webkit-appearance: none;

    color: rgba(255, 255, 255, .68);
cursor: pointer;
    opacity: .45;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(-50%);

    transition:
        opacity .18s ease,
        color .18s ease,
        transform .18s ease;
}

.fvh-card-carousel__nav.is-prev {
    left: 10px;
}

.fvh-card-carousel__nav.is-next {
    right: 10px;
}

.fvh-card-carousel:hover .fvh-card-carousel__nav,
.fvh-card-carousel:focus-within .fvh-card-carousel__nav {
    opacity: 1;
}

.fvh-card-carousel__nav:hover,
.fvh-card-carousel__nav:focus-visible {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff;
    transform: translateY(-50%) scale(1.10);
}

.fvh-card-carousel__nav:active {
    transform: translateY(-50%) scale(.95);
}

.fvh-card-carousel__nav:disabled {
    opacity: .48;
    cursor: default;
    pointer-events: none;
}

.fvh-card-carousel__nav:disabled:hover {
    transform: translateY(-50%);
}

.fvh-property-card__special-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 5px;
    min-width: 0;
    height: auto;
    min-height: 28px;
    margin: 0;
    overflow: visible;
}

.fvh-property-card__special-feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    max-width: 100%;
    min-height: 24px;
    flex: 0 0 auto;
    padding: 4px 8px;

    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .045em;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fvh-property-card__special-feature.is-membership {
    color: #39a96b;
    background: rgba(57, 169, 107, .06);
}

.fvh-property-card__special-feature.is-recommended {
    color: #2fa9b9;
    background: rgba(47, 169, 185, .06);
}

.fvh-property-card__special-feature.is-flex30 {
    color: #ed087d;
    background: rgba(237, 8, 125, .05);
}

/* =========================================================
   Compact review + pricing row
========================================================= */
.fvh-property-card__commerce-row {
    display: grid;
    grid-template-columns: minmax(82px, .72fr) minmax(0, 1.28fr);
    align-items: end;
    gap: 12px;
    min-height: 76px;
    margin-top: auto;
    padding-top: 8px;
}

/* Keep property facts, ratings, and prices on a consistent numeral baseline. */
.fvh-property-card__stats,
.fvh-property-card__rating,
.fvh-property-card__pricing {
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.fvh-property-card__action-row {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 12px;
}

.fvh-property-card__book-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--fvh-results-accent);
    border-radius: 12px;
    background: var(--fvh-results-accent);
    color: var(--fvh-palette-on-primary, #fff) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition:
        box-shadow 160ms ease,
        filter 160ms ease,
        transform 160ms ease;
}

.fvh-property-card__book-now:hover {
    color: var(--fvh-palette-on-primary, #fff) !important;
    filter: brightness(.92);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transform: translateY(-1px);
}

.fvh-property-card__book-now:focus-visible {
    color: var(--fvh-palette-on-primary, #fff) !important;
    outline: 3px solid var(--fvh-palette-focus, var(--fvh-results-accent));
    outline-offset: 3px;
}

.fvh-property-card__book-now:active {
    transform: translateY(0);
}

.fvh-property-card__review-column {
    align-self: end;
    min-width: 0;
    padding-bottom: 3px;
}

.fvh-property-card__rating-label {
    display: block;
    margin-top: 3px;
    color: var(--fvh-results-muted);
    font-size: var(--fvh-card-caption-font-size);
    line-height: 1.2;
}

.fvh-property-card__rating-label.is-empty,
.fvh-property-card__rating-label.is-unscored {
    color: #8a8590;
}

.fvh-property-card__price-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
}

.fvh-property-card__price-column .fvh-property-card__pricing {
    width: 100%;
}

.fvh-property-card__price-column .fvh-property-card__price-state {
    align-items: flex-end;
    text-align: right;
}

.fvh-property-card__price-column .fvh-property-card__price-line {
    justify-content: flex-end;
    width: 100%;
}

.fvh-property-card__price-column .fvh-property-card__sale-badge {
    align-self: flex-end;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =========================================================
   9. Pricing states
========================================================= */
.fvh-property-card__pricing {
    min-height: 50px;
    margin-top: 0;
}

.fvh-property-card__price-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.fvh-property-card__price-label {
    color: var(--fvh-results-muted);
    font-size: var(--fvh-card-price-label-font-size);
    line-height: 1.35;
}

.fvh-property-card__price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    min-height: 28px;
    white-space: nowrap;
}

.fvh-property-card__price-line .fvh-property-card__price-original {
    flex: 0 1 auto;
    min-width: 0;
}

.fvh-property-card__price-line .fvh-property-card__price-main {
    flex: 0 0 auto;
}

.fvh-property-card__price-main {
    color: var(--fvh-results-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.fvh-property-card__price-note {
    color: var(--fvh-results-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.fvh-property-card__price-original {
    color: var(--fvh-results-muted);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: line-through;
    white-space: nowrap;
}

.fvh-property-card__price-state.is-calculating {
    min-height: 48px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: var(--fvh-results-muted);
    font-size: 13px;
}

.fvh-property-card__price-loader {
    width: 18px;
    height: 18px;
    border: 2px solid var(--fvh-results-border);
    border-top-color: var(--fvh-results-accent);
    border-radius: 50%;
    animation: fvh-price-spin .75s linear infinite;
}

@keyframes fvh-price-spin {
    to { transform: rotate(360deg); }
}

.fvh-property-card__sale-badge {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    box-sizing: border-box;
    width: fit-content;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--fvh-results-soft);
    color: var(--fvh-results-accent);
    font-size: 12px;
    font-weight: 700;
}

/*
 * Preserve the promotion row when no discount applies so prices remain on
 * the same baseline across every card. The hidden slot has no visual or
 * accessibility content; it only maintains consistent vertical geometry.
 */
.fvh-property-card__sale-badge[hidden] {
    display: inline-flex !important;
    visibility: hidden;
}
.fvh-property-card__price-state.is-unavailable { gap: 7px; }

.fvh-property-card__call-link {
    color: var(--fvh-results-accent);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.fvh-property-card__call-link:hover,
.fvh-property-card__call-link:focus-visible {
    text-decoration: underline;
}

/* =========================================================
   10. Load More
========================================================= */
.fvh-load-more {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 50px 0 20px;
}

.fvh-load-more__button {
    min-height: 48px;
    padding: 0 36px;
    border: 1px solid var(--fvh-palette-secondary-hover, #c79a54);
    background: var(--fvh-palette-surface, #fff);
    color: var(--fvh-palette-secondary, #b78235);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    cursor: pointer;
}

.fvh-load-more__button:hover,
.fvh-load-more__button:focus-visible {
    background: var(--fvh-palette-secondary-hover, #c79a54);
    color: var(--fvh-palette-on-secondary, #fff);
}

.fvh-load-more__button:disabled {
    opacity: .6;
    cursor: wait;
}

/* =========================================================
   11. Empty state
========================================================= */
.fvh-empty-results {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
}

.fvh-empty-results__card {
    width: min(560px, 100%);
    padding: 42px 36px;
    border: 1px solid var(--fvh-results-border);
    border-radius: 28px;
    background: var(--fvh-palette-surface, #fff);
    box-shadow: 0 18px 50px rgba(32, 27, 46, .08);
    text-align: center;
}

.fvh-empty-results__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--fvh-results-soft);
    font-size: 30px;
}

.fvh-empty-results__title {
    margin: 0 0 10px;
    color: var(--fvh-results-text);
    font-size: 24px;
    font-weight: 800;
}

.fvh-empty-results__text {
    margin: 0 0 22px;
    color: var(--fvh-results-muted);
    font-size: 16px;
}

.fvh-empty-results__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--fvh-results-accent);
    color: var(--fvh-palette-on-primary, #fff) !important;
    text-decoration: none;
    font-weight: 800;
}

/* =========================================================
   12. Legacy/simple search bar styles
========================================================= */
.fvh-search-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    align-items: end;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--fvh-ms-border, #e7e4ec);
    background: var(--fvh-ms-bg, #fff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}

.fvh-search-bar label {
    display: grid;
    gap: 6px;
    color: var(--fvh-ms-muted, #74717a);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fvh-search-bar input,
.fvh-search-bar select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--fvh-ms-border, #e7e4ec);
    background: var(--fvh-ms-bg, #fff);
    color: var(--fvh-ms-text, #242228);
}

.fvh-search-bar button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--fvh-palette-secondary-hover, #c79a54);
    background: var(--fvh-ms-bg, #fff);
    color: var(--fvh-palette-secondary, #b78235);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    cursor: pointer;
}

.fvh-inline-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* =========================================================
   13. Miscellaneous
========================================================= */
.fvh-ms__section-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.fvh-alert {
    margin: 30px 0;
    padding: 18px;
    border: 1px solid #f0d68a;
    background: #fff8e6;
}

.fvh-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 42px 0;
}

.fvh-pagination a {
    padding: 10px 14px;
    border: 1px solid var(--fvh-results-border);
    color: var(--fvh-results-text);
    text-decoration: none;
}

.fvh-pagination a.is-current {
    border-color: var(--fvh-results-gold-border);
    color: var(--fvh-results-gold);
}


.fvh-map-price-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 42px;
    padding: 6px 14px;
    border: 0 !important;
    border-radius: 999px;
    outline: 0;
    background: var(--fvh-palette-surface, #fff) !important;
    color: var(--fvh-results-text) !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18) !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
    user-select: none;
    pointer-events: auto;
}

.fvh-map-price-marker:hover,
.fvh-map-price-marker:focus-visible {
    transform: scale(1.08);
}

.fvh-map-price-marker__label {
    display: block;
    margin-bottom: 3px;
    color: var(--fvh-results-muted) !important;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.fvh-map-price-marker__amount {
    display: block;
    color: var(--fvh-results-text) !important;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fvh-map-price-marker__discount {
    display: block;
    margin-top: 4px;
    color: #2e8b57 !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.fvh-map-price-marker__loading {
    display: block;
    color: var(--fvh-results-text) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.fvh-map-price-marker.is-priced {
    opacity: 1;
}

.fvh-map-price-marker.is-promotional {
    min-height: 50px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.fvh-map-price-marker.is-unavailable {
    min-width: 68px;
}

.fvh-map-price-marker.is-loading {
    opacity: .75;
    cursor: wait;
}

.fvh-map-price-marker.is-card-hovered,
.fvh-map-price-marker.is-card-hovered:hover,
.fvh-map-price-marker.is-card-hovered:focus,
.fvh-map-price-marker.is-card-hovered:focus-visible {
    background: var(--fvh-results-accent) !important;
    color: var(--fvh-palette-on-primary, #fff) !important;
    transform: scale(1.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28) !important;
}

.fvh-map-price-marker.is-selected,
.fvh-map-price-marker.is-selected:hover,
.fvh-map-price-marker.is-selected:focus,
.fvh-map-price-marker.is-selected:focus-visible,
.fvh-map-price-marker.is-selected:active {
    background: var(--fvh-results-accent) !important;
    color: var(--fvh-palette-on-primary, #fff) !important;
    transform: scale(1.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .32) !important;
}

.fvh-map-price-marker.is-card-hovered .fvh-map-price-marker__label,
.fvh-map-price-marker.is-card-hovered .fvh-map-price-marker__amount,
.fvh-map-price-marker.is-card-hovered .fvh-map-price-marker__discount,
.fvh-map-price-marker.is-card-hovered .fvh-map-price-marker__loading,
.fvh-map-price-marker.is-selected .fvh-map-price-marker__label,
.fvh-map-price-marker.is-selected .fvh-map-price-marker__amount,
.fvh-map-price-marker.is-selected .fvh-map-price-marker__discount,
.fvh-map-price-marker.is-selected .fvh-map-price-marker__loading {
    color: var(--fvh-palette-on-primary, #fff) !important;
}

.fvh-map-preview {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;

    display: grid;
    grid-template-columns:
        clamp(180px, 40%, 220px)
        minmax(0, 1fr);

    width: min(520px, calc(100% - 36px));

    overflow: hidden;

    border: 1px solid var(--fvh-results-border);
    border-radius: 20px;

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

    box-shadow:
        0 18px 48px rgba(25, 22, 32, .24);

    opacity: 0;

    transition:
        opacity .16s ease,
        transform .16s ease;
}

.fvh-map-preview.is-positioned {
    opacity: 1;
}

.fvh-map-preview[hidden] {
    display: none;
}

.fvh-map-preview__media {
    min-height: 190px;
    background: var(--fvh-results-soft);
}

.fvh-map-preview__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fvh-map-preview__content {
    min-width: 0;
    padding: 18px;
}

.fvh-map-preview__close {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--fvh-palette-surface, #fff);
    color: var(--fvh-results-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

.fvh-map-preview__title {
    padding-right: 26px;
    color: var(--fvh-results-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.fvh-map-preview__location,
.fvh-map-preview__facts {
    margin-top: 5px;
    color: var(--fvh-results-muted);
    font-size: 12px;
}

.fvh-map-preview__rating {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
}

.fvh-map-preview__stars {
    display: inline-flex;
    gap: 1px;
}

.fvh-map-preview__star {
    color: #d7d3dc;
    font-size: 14px;
}

.fvh-map-preview__star.is-filled {
    color: var(--fvh-results-gold);
}

.fvh-map-preview__rating-value {
    color: var(--fvh-results-text);
    font-size: 12px;
    font-weight: 700;
}

.fvh-map-preview__pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 12px;
}

.fvh-map-preview__price-label {
    color: var(--fvh-results-muted);
    font-size: 11px;
}

.fvh-map-preview__price {
    color: var(--fvh-results-text);
    font-size: 18px;
}

.fvh-map-preview__discount {
    color: #2e8b57;
    font-size: 10px;
    font-weight: 800;
}

.fvh-map-preview__details {
    display: inline-flex;
    margin-top: 12px;
    color: var(--fvh-results-accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 600px) {
    .fvh-map-preview {
        left: 12px;
        right: 12px;
        bottom: 12px;
        grid-template-columns:
            clamp(132px, 38vw, 170px)
            minmax(0, 1fr);
        width: auto;
    }

    .fvh-map-preview__media {
        min-height: 170px;
    }

    .fvh-map-preview__content {
        padding: 14px;
    }

    .fvh-property-card__special-features {
        gap: 5px;
        margin-top: 0;
    }

    .fvh-property-card__special-feature {
        min-height: 24px;
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* =========================================================
   14. Responsive behavior
========================================================= */
@media (min-width: 1025px) {
    .fvh-search-page.is-viewport-shell {
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        box-sizing: border-box;
        height: var(--fvh-search-shell-height, 100dvh);
        min-height: 520px;
        overflow: hidden;
    }

    .fvh-search-page.is-viewport-shell > .fvh-results-layout,
    .fvh-search-page.is-viewport-shell > .fvh-results-main {
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .fvh-search-page.is-viewport-shell .fvh-results-layout {
        align-items: stretch;
    }

    .fvh-search-page.is-viewport-shell .fvh-results-main,
    .fvh-search-page.is-viewport-shell .fvh-results-list {
        min-height: 0;
        height: 100%;
    }

    .fvh-search-page.is-viewport-shell .fvh-results-list {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color:
            var(--fvh-results-border)
            transparent;
        padding-right: 8px;
        padding-bottom: 28px;
    }

    .fvh-search-page.is-viewport-shell .fvh-results-list:focus-visible {
        outline: 2px solid var(--fvh-palette-focus, var(--fvh-results-accent));
        outline-offset: -2px;
    }

    .fvh-search-page.is-viewport-shell .fvh-results-list::-webkit-scrollbar {
        width: 10px;
    }

    .fvh-search-page.is-viewport-shell .fvh-results-list::-webkit-scrollbar-thumb {
        border: 3px solid transparent;
        border-radius: 999px;
        background: var(--fvh-results-border);
        background-clip: padding-box;
    }

    .fvh-search-page.is-viewport-shell .fvh-results-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .fvh-search-page.is-viewport-shell .fvh-map-panel,
    .fvh-search-page.is-viewport-shell .fvh-search-map {
        top: auto;
        height: 100%;
        min-height: 0;
    }

    .fvh-search-page.is-viewport-shell .fvh-map-panel {
        position: relative;
    }

    .fvh-search-page.is-viewport-shell .fvh-empty-results {
        height: 100%;
        min-height: 0;
    }
}

/* Extra-wide desktop: keep map-side cards usable below 2500px. */
@media (min-width: 2100px) and (max-width: 2499px) {
    .fvh-results-layout.is-map-open .fvh-property-grid {
        grid-template-columns: repeat(
            var(--fvh-grid-columns-with-map-wide),
            minmax(0, 1fr)
        );
    }
}

/* Wide desktop: preserve a comfortable card width below the 5-card range. */
@media (min-width: 1601px) and (max-width: 2099px) {
    .fvh-property-grid {
        grid-template-columns: repeat(
            var(--fvh-grid-columns-wide),
            minmax(0, 1fr)
        );
    }

    .fvh-results-layout.is-map-open .fvh-property-grid {
        grid-template-columns: repeat(
            var(--fvh-grid-columns-with-map-wide),
            minmax(0, 1fr)
        );
    }
}

/* Standard desktop and large tablet landscape. */
@media (min-width: 1025px) and (max-width: 1600px) {
    .fvh-property-grid {
        grid-template-columns: repeat(
            var(--fvh-grid-columns-medium),
            minmax(0, 1fr)
        );
    }

    .fvh-results-layout.is-map-open .fvh-property-grid {
        grid-template-columns: repeat(
            var(--fvh-grid-columns-with-map-medium),
            minmax(0, 1fr)
        );
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    .fvh-results-layout.is-map-open .fvh-property-grid {
        grid-template-columns: repeat(
            1,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 1024px) {
    html.fvh-mobile-map-open,
    body.fvh-mobile-map-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    /* Prevent a configured desktop default map from flashing on mobile. */
    .fvh-results-layout.is-map-default-open .fvh-map-panel {
        display: none;
    }

    .fvh-results-layout.is-map-open {
        grid-template-columns: minmax(0, 1fr);
    }

    .fvh-map-panel {
        position: static;
        top: auto;
        height: 480px;
        min-height: 480px;
    }

    .fvh-property-grid,
    .fvh-results-layout.is-map-open .fvh-property-grid {
        grid-template-columns: repeat(
            var(--fvh-grid-columns-compact),
            minmax(0, 1fr)
        );
    }

    .fvh-map-panel.is-mobile-modal {
        position: fixed;
        inset: 0;
        z-index: 1000000;
        width: 100%;
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        background: var(--fvh-palette-surface, #fff);
    }

    .fvh-map-panel.is-mobile-modal .fvh-search-map {
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    .fvh-map-panel.is-mobile-modal .fvh-mobile-map-controls {
        position: absolute;
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        left: 14px;
        z-index: 100;
        display: block;
        pointer-events: none;
    }

    .fvh-mobile-map-title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .fvh-mobile-map-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 46px;
        padding: 0 16px;
        border: 1px solid var(--fvh-results-border);
        border-radius: 999px;
        background: var(--fvh-palette-surface, #fff) !important;
        color: var(--fvh-results-text) !important;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: 0 5px 18px rgba(20, 32, 48, .2);
    }

    .fvh-mobile-map-close > span[aria-hidden="true"] {
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
    }

    .fvh-mobile-map-close:focus-visible {
        outline: 3px solid var(--fvh-results-accent);
        outline-offset: 3px;
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview {
        top: auto !important;
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
        left: 12px !important;
        grid-template-columns:
            clamp(132px, 38vw, 170px)
            minmax(0, 1fr);
        width: auto;
        max-height: min(42dvh, 320px);
        overflow-y: auto;
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview__media {
        min-height: 170px;
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview__content {
        padding: 14px;
    }
}

/* Compact map preview for phone-sized landscape viewports. */
@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
    .fvh-map-panel.is-mobile-modal .fvh-map-preview {
        right: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        left: 50% !important;
        grid-template-columns:
            clamp(150px, 22vw, 185px)
            minmax(0, 1fr);
        width: min(620px, calc(100% - 24px));
        max-width: 620px;
        max-height: min(50dvh, 210px);
        transform: translateX(-50%);
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview__media {
        height: auto;
        min-height: 0;
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview__content {
        padding: 12px 44px 12px 14px;
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview__title {
        font-size: 15px;
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview__location,
    .fvh-map-panel.is-mobile-modal .fvh-map-preview__facts {
        margin-top: 3px;
        font-size: 11px;
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview__rating {
        margin-top: 5px;
    }

    .fvh-map-panel.is-mobile-modal .fvh-map-preview__pricing,
    .fvh-map-panel.is-mobile-modal .fvh-map-preview__details {
        margin-top: 7px;
    }
}

@media (max-width: 800px) {
    .fvh-search-page { padding: 16px; }

    .fvh-search-bar {
        position: relative;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 720px) {
    .fvh-results-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 20px 0;
    }

    .fvh-results-toolbar__meta {
        width: 100%;
        gap: 10px;
    }

    .fvh-results-toolbar__controls {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(132px, auto);
        align-items: end;
        gap: 12px;
        width: 100%;
    }

    .fvh-results-toolbar__controls .fvh-results-toolbar__sort {
        display: grid;
        align-items: stretch;
        gap: 6px;
        min-width: 0;
    }

    .fvh-results-toolbar__sort > span {
        font-size: 12px;
        font-weight: 700;
    }

    .fvh-results-toolbar__sort select,
    .fvh-results-toolbar__controls .fvh-map-toggle {
        min-height: 48px;
    }

    .fvh-results-toolbar__sort select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .fvh-property-card__header {
        gap: 8px 12px;
    }

    .fvh-property-card__title a {
        font-size: var(--fvh-card-title-font-size);
    }

    .fvh-property-card__rating {
        font-size: var(--fvh-card-rating-font-size);
    }

    .fvh-property-card__stats {
        font-size: var(--fvh-card-meta-font-size);
    }

    .fvh-property-card__rating-star {
        font-size: var(--fvh-card-rating-star-font-size);
    }

    .fvh-property-card__location {
        margin-top: 0;
    }

    .fvh-property-card__highlights {
        min-height: 48px;
        gap: 9px 14px;
        margin-top: 15px;
    }

    .fvh-property-card__highlight {
        font-size: 14px;
    }

    .fvh-property-card__highlight-icon {
        width: 20px;
        height: 20px;
        font-size: 17px;
    }

    .fvh-property-card__highlights + .fvh-property-card__pricing {
        margin-top: 16px;
    }
}

@media (max-width: 600px) {
    .fvh-property-card__header {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 8px 10px;
    }

    .fvh-property-card__meta {
        gap: 4px;
    }

    .fvh-map-toggle,
    .fvh-results-actions label,
    .fvh-results-actions select {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .fvh-results-toolbar__controls {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) and (orientation: portrait) {
    .fvh-property-grid,
    .fvh-results-layout.is-map-open .fvh-property-grid {
        grid-template-columns: repeat(
            var(--fvh-grid-columns-mobile),
            minmax(0, 1fr)
        );
    }
}

@media (hover: none) {
    .fvh-card-carousel__nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fvh-property-card,
    .fvh-card-carousel__nav,
    .fvh-map-price-marker,
    .fvh-property-card__book-now {
        transition: none;
    }

    .fvh-property-card__price-loader {
        animation-duration: 1.5s;
    }
}

@media (max-width: 420px) {
    .fvh-property-card__price-line {
        gap: 8px;
    }

    .fvh-property-card__price-original {
        font-size: 12px;
    }

    .fvh-property-card__price-main {
        font-size: 20px;
    }
}

/* Phase 3 responsive fallback */
@media (max-width: 420px) {
    .fvh-property-card__commerce-row {
        grid-template-columns: minmax(72px, .65fr) minmax(0, 1.35fr);
        gap: 8px;
    }

    .fvh-property-card__rating {
        gap: 3px;
        font-size: var(--fvh-card-rating-font-size);
    }
}


/* =========================================================
   EMBLA PROPERTY CARD DOTS
   ========================================================= */

.fvh-card-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 40;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    max-width: calc(100% - 110px);

    transform: translateX(-50%);
}

.fvh-card-carousel__dots[hidden] {
    display: none;
}

.fvh-card-carousel__dot {
    display: block;
    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
    opacity: 1;
    visibility: visible;

    transform: scale(1);

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.fvh-card-carousel__dot:hover,
.fvh-card-carousel__dot:focus-visible {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.15);
}

.fvh-card-carousel__dot.is-selected {
    background: #fff;
    transform: scale(1.35);
}

.fvh-card-carousel__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* =========================================================
   EMBLA SVG NAVIGATION ICONS
   ========================================================= */

.fvh-card-carousel__nav-icon {
    display: block;
    width: 42px;
    height: 42px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}
