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

/* =========================================================
   1. Design tokens and page shell
========================================================= */
.fvh-search-page {
    --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-results-map-gap: 24px;
    --fvh-results-map-top: calc(var(--fvh-header-offset, 0px) + 110px);

    width: 100%;
    max-width: 100%;
    padding: 28px;
    background: #fff;
}

.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: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0;
}

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

.fvh-results-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.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 #ddd;
    background: #fff;
    color: var(--fvh-results-text);
}

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

.fvh-map-toggle:hover,
.fvh-map-toggle:focus-visible {
    background: var(--fvh-results-gold-border);
    color: #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-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(5, minmax(0, 1fr));
    gap: 70px 24px;
}

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

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

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

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

@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: 18px;
    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-results-gold);
}

.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;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;

    color: #77747d;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.fvh-property-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fvh-property-card__stat-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.fvh-property-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: #45414a;
    font-size: 14px;
    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;
}
*/

.fvh-property-card__favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 30;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    padding: 0;

    background: transparent;
    border: 0;

    color: #fff;
    font-size: 30px;

    text-shadow:
        0 1px 3px rgba(0,0,0,.55);

    cursor: pointer;

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

.fvh-property-card__favorite:hover {
    transform: scale(1.12);
}

.fvh-property-card__favorite:hover,
.fvh-property-card__favorite:focus-visible {
    background: #fff;
    color: var(--fvh-results-gold);
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.fvh-property-card__favorite:focus-visible {
    outline: 2px solid var(--fvh-results-accent);
    outline-offset: 3px;
}

.fvh-property-card__favorite span {
    display: block;
    transform: translateY(-1px);
}

/* =========================================================
   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: #4b4b4b;
    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: 14px;
    line-height: 1.2;
}

.fvh-property-card__rating-star {
    color: var(--fvh-results-gold);
    font-size: 16px;
    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__content {
    position: relative;
}

.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-results-accent);
    outline-offset: 3px;
}

/* =========================================================
   6. Property card carousel
========================================================= */
.fvh-card-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 2.7;
    overflow: hidden;
    background: #eee;
}

.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: nowrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    margin: 0;
    overflow: hidden;
}

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

    min-width: 0;
    min-height: 24px;
    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: 92px;
    margin-top: 8px;
}

.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: 10px;
    line-height: 1.2;
}

.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;
}

/* =========================================================
   7. Pricing states
========================================================= */
.fvh-property-card__pricing {
    min-height: 66px;
    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: 13px;
    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: #615c68;
    font-size: 12px;
    line-height: 1.35;
}

.fvh-property-card__price-tax {
    color: #8a8590;
    font-size: 11px;
    line-height: 1.35;
}

.fvh-property-card__price-original {
    color: #88838d;
    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: #706a78;
    font-size: 13px;
}

.fvh-property-card__price-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd8e5;
    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;
    width: fit-content;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3ecff;
    color: var(--fvh-results-accent);
    font-size: 12px;
    font-weight: 700;
}

.fvh-property-card__sale-badge[hidden] { display: none; }
.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;
}

/* =========================================================
   8. 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-results-gold-border);
    background: #fff;
    color: var(--fvh-results-gold);
    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-results-gold-border);
    color: #fff;
}

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

/* =========================================================
   9. 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: #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: #fff !important;
    text-decoration: none;
    font-weight: 800;
}

/* =========================================================
   10. 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 #eee;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}

.fvh-search-bar label {
    display: grid;
    gap: 6px;
    color: #777;
    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 #ddd;
    background: #fff;
}

.fvh-search-bar button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--fvh-results-gold-border);
    background: #fff;
    color: var(--fvh-results-gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    cursor: pointer;
}

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

/* =========================================================
   11. 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 #ddd;
    color: #333;
    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: #fff !important;
    color: #222 !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: #777 !important;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.fvh-map-price-marker__amount {
    display: block;
    color: #222 !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: #222 !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: #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: #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: #fff !important;
}

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

    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);

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

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 20px;

    background: #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: 170px;
    background: #eee;
}

.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: rgba(255, 255, 255, .94);
    color: #222;
    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: 110px minmax(0, 1fr);
        width: auto;
    }

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

    .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: 9px;
    }
}

/* =========================================================
   12. Responsive behavior
========================================================= */
@media (max-width: 1600px) {
    .fvh-property-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

@media (max-width: 1024px) {
    .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-results-layout.is-map-open .fvh-property-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

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

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

    .fvh-results-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .fvh-results-actions {
        justify-content: space-between;
    }
}

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

    .fvh-property-card__title a {
        font-size: 16px;
    }

    .fvh-property-card__rating,
    .fvh-property-card__stats {
        font-size: 13px;
    }

    .fvh-property-card__rating-star {
        font-size: 15px;
    }

    .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-property-grid,
    .fvh-results-layout.is-map-open .fvh-property-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fvh-results-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

@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 {
        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: 13px;
    }
}


/* =========================================================
   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;
}
