/*
 * GeekOut Property Page v2 compatibility stylesheet
 * Replaces the legacy property2.css for the redesigned property template.
 * Scoped to #propertyBackground.geekout-property-page so legacy theme CSS
 * can continue serving older/global components without controlling this page.
 */



/* ==========================================================================
   Property Page v41 — modern single-listing layout
   ========================================================================== */

#propertyBackground.geekout-property-page {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--e-global-color-8bb1958);
    color: var(--e-global-color-text);
}

.geekout-property-page,
.geekout-property-page * {
    box-sizing: border-box;
}

.geekout-property-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.geekout-property-hero-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.geekout-property-heading-copy {
    min-width: 0;
}

.geekout-property-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.geekout-property-status-pill,
.geekout-property-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.geekout-property-status-pill {
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    color: var(--e-global-color-text);
}

.geekout-property-badge-new {
    background: #eef8f1;
    color: #20733e;
}

.geekout-property-badge-openhouse {
    background: color-mix(
        in srgb,
        var(--e-global-color-primary) 11%,
        #fff
    );
    color: var(--e-global-color-primary);
}

.geekout-property-hero-header h1 {
    margin: 0;
    color: var(--e-global-color-text);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.geekout-property-location {
    margin: 8px 0 0;
    color: var(--e-global-color-361f472);
    font-size: 16px;
    line-height: 1.4;
}

.geekout-property-hero-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.geekout-property-price {
    color: var(--e-global-color-26a6a10);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.geekout-property-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--e-global-color-primary) !important;
    font-size: 20px;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.geekout-property-favorite-button:hover,
.geekout-property-favorite-button:focus-visible {
    border-color: color-mix(
        in srgb,
        var(--e-global-color-primary) 35%,
        rgba(0, 0, 0, .12)
    ) !important;
    transform: translateY(-1px);
}

/* Photo mosaic */
.geekout-property-gallery {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, .9fr);
    gap: 8px;
    height: clamp(420px, 52vw, 630px);
    max-height: 630px;
    overflow: hidden;
    border-radius: 18px;
    background: #e8eaed;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

.geekout-property-gallery button {
    appearance: none;
    -webkit-appearance: none;
}

.geekout-property-gallery-main,
.geekout-property-gallery-side button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: #e8eaed !important;
    cursor: zoom-in;
}

.geekout-property-gallery-main img,
.geekout-property-gallery-side img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center;
    transition: transform .28s ease;
}

.geekout-property-gallery-main:hover img,
.geekout-property-gallery-side button:hover img {
    transform: scale(1.012);
}

.geekout-property-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    min-width: 0;
}

.geekout-property-gallery-side-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.geekout-property-gallery-count-2 .geekout-property-gallery-side {
    grid-template-rows: 1fr;
}

.geekout-property-gallery-count-2 .geekout-property-gallery-side-bottom {
    display: none;
}

.geekout-property-gallery-count-3 .geekout-property-gallery-side {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.geekout-property-gallery-count-3 .geekout-property-gallery-side-bottom {
    grid-template-columns: 1fr;
}

.geekout-property-gallery-count-1 {
    grid-template-columns: 1fr;
}

.geekout-property-gallery-all {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    margin: 0 !important;
    padding: 9px 13px !important;
    border: 1px solid rgba(0, 0, 0, .14) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: var(--e-global-color-text) !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.geekout-property-gallery-all svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* Key stats */
.geekout-property-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 18px 0 26px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--e-global-color-text) 10%, transparent);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .055);
}

.geekout-property-stat {
    display: flex;
    min-width: 0;
    min-height: 92px;
    padding: 16px 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.geekout-property-stat + .geekout-property-stat {
    border-left: 1px solid rgba(0, 0, 0, .08);
}

.geekout-property-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
    color: var(--e-global-color-primary);
}

.geekout-property-stat-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.geekout-property-stat strong {
    display: block;
    color: var(--e-global-color-text);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.1;
}

.geekout-property-stat > span:last-child {
    margin-top: 3px;
    color: var(--e-global-color-361f472);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

/* Main content */
.geekout-property-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, .75fr);
    align-items: start;
    gap: 24px;
}

.geekout-property-main-column,
.geekout-property-sidebar {
    min-width: 0;
}

.geekout-property-section,
.geekout-property-showing-card {
    margin: 0 0 18px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--e-global-color-text) 10%, transparent);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .055);
}

.geekout-property-section h2,
.geekout-property-showing-card h2 {
    margin: 0;
    color: var(--e-global-color-text);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.geekout-property-description-copy {
    margin-top: 14px;
    color: #42464b;
    font-size: 15px;
    line-height: 1.75;
}

.geekout-property-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 14px 0 0;
}

.geekout-property-detail-row {
    display: grid;
    grid-template-columns: minmax(110px, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 14px;
    min-width: 0;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .075);
}

.geekout-property-detail-row dt,
.geekout-property-detail-row dd {
    min-width: 0;
    margin: 0;
}

.geekout-property-detail-row dt {
    color: var(--e-global-color-361f472);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.geekout-property-detail-row dd {
    color: var(--e-global-color-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.geekout-property-two-up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.geekout-property-two-up .geekout-property-section {
    margin-bottom: 18px;
}

.geekout-property-section-compact .geekout-property-detail-grid {
    grid-template-columns: 1fr;
}

.geekout-property-section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.geekout-property-section-heading-row p {
    margin: 5px 0 0;
    color: var(--e-global-color-361f472);
    font-size: 13px;
    line-height: 1.45;
}

/* Sticky contact card */
.geekout-property-sidebar {
    position: sticky;
    top: 24px;
}

.geekout-property-showing-card {
    margin: 0;
    padding: 24px;
}

.geekout-property-showing-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--e-global-color-primary);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.geekout-property-showing-card-heading p {
    margin: 10px 0 0;
    color: var(--e-global-color-361f472);
    font-size: 13px;
    line-height: 1.55;
}

.geekout-property-open-house-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid color-mix(
        in srgb,
        var(--e-global-color-primary) 22%,
        transparent
    );
    border-radius: 12px;
    background: color-mix(
        in srgb,
        var(--e-global-color-primary) 6%,
        #fff
    );
}

.geekout-property-open-house-label {
    color: var(--e-global-color-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.geekout-property-open-house-card strong {
    color: var(--e-global-color-text);
    font-size: 15px;
    line-height: 1.25;
}

.geekout-property-open-house-card > span:not(.geekout-property-open-house-label),
.geekout-property-open-house-card small {
    color: var(--e-global-color-361f472);
    font-size: 12px;
    line-height: 1.4;
}

.geekout-property-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 18px 0 0 !important;
    padding: 11px 18px !important;
    border: 1px solid var(--e-global-color-primary) !important;
    border-radius: 10px !important;
    background: var(--e-global-color-primary) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.1;
    cursor: pointer;
}

.geekout-property-primary-action:hover,
.geekout-property-primary-action:focus-visible {
    opacity: .91;
}

.geekout-property-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.geekout-property-secondary-actions > a,
.geekout-property-secondary-actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    margin: 0 !important;
    padding: 9px 10px !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--e-global-color-text) !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none !important;
    cursor: pointer;
}

.geekout-property-secondary-actions svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.geekout-property-secondary-actions > a:hover,
.geekout-property-secondary-actions > button:hover,
.geekout-property-secondary-actions > a:focus-visible,
.geekout-property-secondary-actions > button:focus-visible {
    border-color: color-mix(
        in srgb,
        var(--e-global-color-primary) 40%,
        rgba(0, 0, 0, .12)
    ) !important;
    color: var(--e-global-color-primary) !important;
}

.geekout-property-sidebar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    color: var(--e-global-color-361f472);
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.3;
}

/* Map */
#propertyBackground.geekout-property-page .geekout-property-map-loader {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    background: #eef0f2;
}

#propertyBackground.geekout-property-page #map {
    width: 100%;
    height: 460px !important;
    min-height: 460px !important;
    max-height: none !important;
    background: #eef0f2;
}

.geekout-property-map-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--e-global-color-361f472);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.geekout-property-map-loader.is-loading .geekout-property-map-placeholder span::after {
    content: '…';
}

.geekout-property-map-loader.is-ready .geekout-property-map-placeholder {
    opacity: 0;
    visibility: hidden;
}

/* Mortgage */
.geekout-property-mortgage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.geekout-property-mortgage-grid label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.geekout-property-mortgage-grid label > span {
    color: var(--e-global-color-361f472);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.2;
}

.geekout-property-mortgage-grid :is(input, select) {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin: 0 !important;
    padding: 9px 10px !important;
    border: 1px solid rgba(0, 0, 0, .14) !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--e-global-color-text) !important;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 700;
}

.geekout-property-input-suffix {
    position: relative;
}

.geekout-property-input-suffix input {
    padding-right: 30px !important;
}

.geekout-property-input-suffix > span {
    position: absolute;
    top: 50%;
    right: 11px;
    color: var(--e-global-color-361f472);
    font-size: 12px;
    font-weight: 800;
    transform: translateY(-50%);
    pointer-events: none;
}

.geekout-property-mortgage-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f7f7f8;
}

.geekout-property-mortgage-result > span {
    color: var(--e-global-color-361f472);
    font-size: 11px;
    font-weight: 750;
}

.geekout-property-mortgage-result strong {
    color: var(--e-global-color-text);
    font-size: 28px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.geekout-property-mortgage-result small {
    margin-top: 3px;
    color: var(--e-global-color-361f472);
    font-size: 10.5px;
    line-height: 1.4;
}

/* Gallery + video dialogs */
.geekout-property-gallery-dialog,
.geekout-property-video-dialog {
    box-sizing: border-box;
    width: min(1180px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #101113;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.geekout-property-video-dialog {
    width: min(980px, calc(100vw - 32px));
}

.geekout-property-gallery-dialog::backdrop,
.geekout-property-video-dialog::backdrop {
    background: rgba(8, 9, 11, .82);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.geekout-property-gallery-dialog-inner {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;
    min-height: min(82dvh, 820px);
    padding: 32px 12px 18px;
}

.geekout-property-gallery-dialog figure {
    display: flex;
    min-width: 0;
    min-height: 0;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.geekout-property-gallery-dialog figure img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(82dvh - 90px) !important;
    object-fit: contain !important;
}

.geekout-property-gallery-dialog figcaption {
    min-height: 20px;
    margin-top: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 700;
}

.geekout-property-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .10) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.geekout-property-gallery-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    cursor: pointer;
}

.geekout-property-gallery-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.geekout-property-video-dialog-inner {
    position: relative;
    padding: 50px 18px 18px;
}

.geekout-property-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.geekout-property-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1020px) {
    .geekout-property-gallery {
        grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
        height: clamp(390px, 56vw, 560px);
    }

    .geekout-property-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .geekout-property-stat:nth-child(4) {
        border-left: 0;
    }

    .geekout-property-stat:nth-child(n + 4) {
        border-top: 1px solid rgba(0, 0, 0, .08);
    }

    .geekout-property-content-layout {
        grid-template-columns: 1fr;
    }

    .geekout-property-sidebar {
        position: static;
        order: -1;
    }

    .geekout-property-showing-card {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(240px, .8fr);
        gap: 16px 22px;
        align-items: start;
    }

    .geekout-property-showing-card-heading {
        grid-column: 1;
    }

    .geekout-property-open-house-card {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-top: 0;
    }

    .geekout-property-primary-action,
    .geekout-property-secondary-actions,
    .geekout-property-sidebar-meta {
        grid-column: 1;
    }
}

@media (max-width: 800px) {
    .geekout-property-shell {
        width: min(100% - 24px, 1240px);
        padding-top: 20px;
    }

    .geekout-property-hero-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .geekout-property-hero-actions {
        width: 100%;
        justify-content: space-between;
    }

    .geekout-property-gallery {
        display: block;
        height: auto;
        max-height: none;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .geekout-property-gallery-main {
        height: auto;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: 14px !important;
        box-shadow: 0 7px 22px rgba(0, 0, 0, .10);
    }

    .geekout-property-gallery-side {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: 1fr;
        gap: 6px;
        margin-top: 6px;
    }

    .geekout-property-gallery-side-top,
    .geekout-property-gallery-side-bottom > button {
        aspect-ratio: 1 / 1;
    }

    .geekout-property-gallery-side-bottom {
        display: contents;
    }

    .geekout-property-gallery-count-2 .geekout-property-gallery-side,
    .geekout-property-gallery-count-3 .geekout-property-gallery-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .geekout-property-gallery-count-2 .geekout-property-gallery-side-bottom {
        display: none;
    }

    .geekout-property-gallery-count-3 .geekout-property-gallery-side-top {
        display: block;
    }

    .geekout-property-gallery-count-3 .geekout-property-gallery-side-bottom {
        display: contents;
    }

    .geekout-property-gallery-side button {
        border-radius: 9px !important;
    }

    .geekout-property-gallery-all {
        right: 10px;
        bottom: 10px;
    }

    .geekout-property-two-up {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .geekout-property-detail-grid {
        grid-template-columns: 1fr;
    }

    .geekout-property-mortgage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .geekout-property-showing-card {
        display: block;
    }

    .geekout-property-open-house-card {
        margin-top: 18px;
    }
}

@media (max-width: 560px) {
    .geekout-property-shell {
        width: calc(100% - 18px);
        padding: 15px 0 42px;
    }

    .geekout-property-hero-header h1 {
        font-size: 30px;
    }

    .geekout-property-location {
        font-size: 14px;
    }

    .geekout-property-price {
        font-size: 28px;
    }

    .geekout-property-gallery-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .geekout-property-gallery-all {
        max-width: calc(100% - 20px);
        min-height: 38px;
        padding: 8px 10px !important;
        font-size: 11px;
    }

    .geekout-property-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }

    .geekout-property-stat {
        min-height: 82px;
        padding: 13px 8px;
    }

    .geekout-property-stat:nth-child(3),
    .geekout-property-stat:nth-child(5) {
        border-left: 0;
    }

    .geekout-property-stat:nth-child(3),
    .geekout-property-stat:nth-child(4),
    .geekout-property-stat:nth-child(5),
    .geekout-property-stat:nth-child(6) {
        border-top: 1px solid rgba(0, 0, 0, .08);
    }

    .geekout-property-stat:nth-child(4) {
        border-left: 1px solid rgba(0, 0, 0, .08);
    }

    .geekout-property-section,
    .geekout-property-showing-card {
        margin-bottom: 12px;
        padding: 18px;
        border-radius: 13px;
    }

    .geekout-property-section h2,
    .geekout-property-showing-card h2 {
        font-size: 20px;
    }

    .geekout-property-description-copy {
        font-size: 14px;
        line-height: 1.65;
    }

    .geekout-property-detail-row {
        grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
        gap: 10px;
    }

    .geekout-property-secondary-actions {
        grid-template-columns: 1fr;
    }

    #propertyBackground.geekout-property-page #map {
        height: 400px !important;
        min-height: 400px !important;
    }

    .geekout-property-mortgage-grid {
        grid-template-columns: 1fr;
    }

    .geekout-property-gallery-dialog,
    .geekout-property-video-dialog {
        width: calc(100vw - 14px);
        max-height: calc(100dvh - 14px);
        border-radius: 12px;
    }

    .geekout-property-gallery-dialog-inner {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        min-height: calc(100dvh - 14px);
        padding: 42px 2px 14px;
    }

    .geekout-property-gallery-nav {
        width: 36px;
        height: 36px;
    }

    .geekout-property-gallery-dialog figure img {
        max-height: calc(100dvh - 110px) !important;
    }
}


/* ========================================================================== 
   Compatibility shield for legacy GeekOut style.css / Elementor rules
   ========================================================================== */

/* style.css globally forces button text white and supplies hover backgrounds. */
#propertyBackground.geekout-property-page button {
    font-family: inherit;
}

#propertyBackground.geekout-property-page .geekout-property-gallery-main,
#propertyBackground.geekout-property-page .geekout-property-gallery-side button {
    color: inherit !important;
    background: #e8eaed !important;
}

#propertyBackground.geekout-property-page .geekout-property-gallery-all {
    color: var(--e-global-color-text) !important;
    background: rgba(255, 255, 255, .94) !important;
}

#propertyBackground.geekout-property-page .geekout-property-favorite-button {
    color: var(--e-global-color-primary) !important;
    background: #fff !important;
}

#propertyBackground.geekout-property-page .geekout-property-favorite-button i,
#propertyBackground.geekout-property-page .geekout-property-favorite-button .fa-heart,
#propertyBackground.geekout-property-page .geekout-property-favorite-button .fa-heart-o {
    margin: 0 !important;
    line-height: 1 !important;
}

#propertyBackground.geekout-property-page .geekout-property-dialog-close,
#propertyBackground.geekout-property-page .geekout-property-gallery-nav {
    color: #fff !important;
}

#propertyBackground.geekout-property-page .geekout-property-primary-action {
    color: #fff !important;
    background: var(--e-global-color-primary) !important;
}

#propertyBackground.geekout-property-page .geekout-property-secondary-actions > a,
#propertyBackground.geekout-property-page .geekout-property-secondary-actions > button {
    color: var(--e-global-color-text) !important;
    background: #fff !important;
}

#propertyBackground.geekout-property-page .geekout-property-secondary-actions > a:hover,
#propertyBackground.geekout-property-page .geekout-property-secondary-actions > button:hover,
#propertyBackground.geekout-property-page .geekout-property-secondary-actions > a:focus-visible,
#propertyBackground.geekout-property-page .geekout-property-secondary-actions > button:focus-visible {
    color: var(--e-global-color-primary) !important;
    background: #f7fafb !important;
}

/* style.css uses label display:inline-block !important. Restore the calculator grid. */
#propertyBackground.geekout-property-page .geekout-property-mortgage-grid label {
    display: grid !important;
    margin: 0 !important;
}

/* Keep the redesigned map dimensions despite the legacy #map rule. */
#propertyBackground.geekout-property-page #map {
    width: 100% !important;
}

/* Legacy Leaflet link rules use !important. Keep modern popup actions legible. */
#propertyBackground.geekout-property-page .leaflet-container .geekout-property-map-view {
    color: var(--e-global-color-primary) !important;
}

#propertyBackground.geekout-property-page .leaflet-container .geekout-property-map-media > a {
    color: inherit !important;
}

/* Avoid inherited Bootstrap/theme image sizing from older property CSS. */
#propertyBackground.geekout-property-page .geekout-property-gallery img,
#propertyBackground.geekout-property-page .geekout-property-map-photo,
#propertyBackground.geekout-property-page .geekout-property-gallery-dialog img {
    border: 0 !important;
}

/* Elementor kit focus rules should not turn dialog/gallery controls white. */
#propertyBackground.geekout-property-page button:focus {
    outline-offset: 2px;
}

#propertyBackground.geekout-property-page .geekout-property-gallery-main:focus,
#propertyBackground.geekout-property-page .geekout-property-gallery-side button:focus {
    background: #e8eaed !important;
}

#propertyBackground.geekout-property-page .geekout-property-gallery-nav:focus,
#propertyBackground.geekout-property-page .geekout-property-dialog-close:focus {
    color: #fff !important;
    background: rgba(0, 0, 0, .72) !important;
}


/* ========================================================================== 
   Property Page v4 — Elementor semantic color palette
   ========================================================================== */

/* Hero + section titles */
#propertyBackground.geekout-property-page .geekout-property-hero-header h1,
#propertyBackground.geekout-property-page .geekout-property-section h2,
#propertyBackground.geekout-property-page .geekout-property-showing-card h2 {
    color: var(--e-global-color-secondary) !important;
}

/* Sub-titles, labels, metadata */
#propertyBackground.geekout-property-page .geekout-property-location,
#propertyBackground.geekout-property-page .geekout-property-stat > span:last-child,
#propertyBackground.geekout-property-page .geekout-property-detail-row dt,
#propertyBackground.geekout-property-page .geekout-property-section-heading-row p,
#propertyBackground.geekout-property-page .geekout-property-showing-card-heading p,
#propertyBackground.geekout-property-page .geekout-property-mortgage-grid label > span,
#propertyBackground.geekout-property-page .geekout-property-mortgage-result > span,
#propertyBackground.geekout-property-page .geekout-property-mortgage-result small {
    color: var(--e-global-color-361f472) !important;
}

/* Body copy + property data */
#propertyBackground.geekout-property-page .geekout-property-description-copy,
#propertyBackground.geekout-property-page .geekout-property-detail-row dd,
#propertyBackground.geekout-property-page .geekout-property-stat strong {
    color: var(--e-global-color-text) !important;
}

/* Top property-page price */
#propertyBackground.geekout-property-page .geekout-property-price {
    color: var(--e-global-color-26a6a10) !important;
}

/* Other positive emphasis */
#propertyBackground.geekout-property-page .geekout-property-mortgage-result strong {
    color: var(--e-global-color-accent) !important;
}

/* Icon color */
#propertyBackground.geekout-property-page .geekout-property-stat-icon {
    color: var(--e-global-color-154d4a3) !important;
}

/* New / Open House badges */
#propertyBackground.geekout-property-page .geekout-property-badge-new {
    background: var(--e-global-color-2e19aeb) !important;
    color: #fff !important;
}

#propertyBackground.geekout-property-page .geekout-property-badge-openhouse {
    background: var(--e-global-color-98ce957) !important;
    color: #fff !important;
}

/* Status pill uses explicit MLS-state classes emitted by property2.php. */
#propertyBackground.geekout-property-page .geekout-property-status-pill {
    border-color: rgba(0, 0, 0, .08) !important;
    color: #fff !important;
    background: var(--e-global-color-361f472) !important;
}

#propertyBackground.geekout-property-page .geekout-property-status-active {
    background: var(--e-global-color-d1aa4da) !important;
}

#propertyBackground.geekout-property-page .geekout-property-status-pending,
#propertyBackground.geekout-property-page .geekout-property-status-active-under-contract {
    background: var(--e-global-color-b6f3e78) !important;
}

/* Open-house info card uses the Open House global color rather than primary. */
#propertyBackground.geekout-property-page .geekout-property-open-house-card {
    border-color: color-mix(in srgb, var(--e-global-color-98ce957) 34%, transparent) !important;
    background: color-mix(in srgb, var(--e-global-color-98ce957) 8%, #fff) !important;
}

#propertyBackground.geekout-property-page .geekout-property-open-house-label {
    color: var(--e-global-color-98ce957) !important;
}

/* Brand actions */
#propertyBackground.geekout-property-page .geekout-property-primary-action {
    border-color: var(--e-global-color-primary) !important;
    background: var(--e-global-color-primary) !important;
    color: #fff !important;
}

#propertyBackground.geekout-property-page .geekout-property-favorite-button {
    color: var(--e-global-color-primary) !important;
}


/* ========================================================================== 
   Property Page v4.2 — compact Nearby Listings popup + taller property map
   Scope is intentionally limited to the single-property page.
   ========================================================================== */

/* Give popup cards substantially more vertical room without changing search maps. */
#propertyBackground.geekout-property-page #map {
    height: 640px !important;
    min-height: 640px !important;
    max-height: none !important;
}

/* The property-page nearby card is deliberately simpler than search-result cards. */
#propertyBackground.geekout-property-page #map .geekout-property-nearby-popup .leaflet-popup-content,
#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact {
    width: 300px !important;
}

#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-media {
    aspect-ratio: 16 / 9;
}

#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-body {
    padding: 12px 13px 11px;
}

#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-price {
    margin-bottom: 3px;
    font-size: 20px;
}

#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-address {
    font-size: 14px;
}

#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-location {
    margin-top: 2px;
    font-size: 12px;
}

/* Prominent action lives high in the card, before the compact facts row. */
#propertyBackground.geekout-property-page #map .leaflet-container .geekout-property-map-view,
#propertyBackground.geekout-property-page #map .geekout-property-map-view {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    margin-top: 10px;
    padding: 8px 12px !important;
    border-radius: 8px;
    background: var(--e-global-color-primary) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
}

#propertyBackground.geekout-property-page #map .leaflet-container .geekout-property-map-view:hover,
#propertyBackground.geekout-property-page #map .leaflet-container .geekout-property-map-view:focus-visible,
#propertyBackground.geekout-property-page #map .geekout-property-map-view:hover,
#propertyBackground.geekout-property-page #map .geekout-property-map-view:focus-visible {
    background: var(--e-global-color-accent) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* No icon strip or MLS metadata: keep only three compact text facts. */
#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-features {
    margin-top: 9px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    border-bottom: 0;
}

#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-feature {
    padding: 0 4px;
    font-size: 9.5px;
}

#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-feature strong {
    margin-bottom: 1px;
    font-size: 11.5px;
}

/* Favorite was intentionally removed, so the close control can return to top-right. */
#propertyBackground.geekout-property-page #map .geekout-property-nearby-popup .leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
}

@media (max-width: 700px) {
    #propertyBackground.geekout-property-page #map {
        height: 680px !important;
        min-height: 680px !important;
        max-height: none !important;
    }

    #propertyBackground.geekout-property-page #map .geekout-property-nearby-popup .leaflet-popup-content,
    #propertyBackground.geekout-property-page #map .geekout-property-map-card--compact {
        width: min(270px, calc(100vw - 62px)) !important;
    }

    #propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-body {
        padding: 10px 11px 10px;
    }
}

/* ==========================================================================
   Property Page v4.4 — keep page stat icons; remove Nearby Map popup icons
   Scope is intentionally limited to the single-property Nearby Listings map.
   ========================================================================== */
#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-feature::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    flex-basis: 0 !important;
    margin: 0 !important;
}

#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-feature {
    gap: 0 !important;
    min-height: 0 !important;
}


/* ========================================================================== 
   Property Page v4.6 — Nearby Listings popup text color cleanup
   --------------------------------------------------------------------------
   Keep the compact property-page nearby popup text black. The View Property
   button remains untouched and continues using its existing primary button
   treatment.
   ========================================================================== */
#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-price,
#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-address,
#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-location,
#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-feature,
#propertyBackground.geekout-property-page #map .geekout-property-map-card--compact .geekout-property-map-feature strong {
    color: #000 !important;
}
