/* =============================================================================
   FYSH — Property detail page stylesheet
   CR: fysh-phase4-2026-06-22
   Public page, loaded on listing.php alongside base.css, components.css, layout.css.
   Also supplies .property-card__no-photo for listings.php cards.
============================================================================= */

/* ── Property card: no-photo placeholder (used in listings.php too) ──────── */
.property-card__no-photo {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #F0EEE9; color: #C5C9CF;
}

/* ── Gallery ────────────────────────────────────────────────────────────────── */
.listing-gallery {
    background: #1a1a1a;
    margin-bottom: 0;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-height: 480px;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-item {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}
.gallery-item img {
    width: 100%; height: 100%;
    max-height: 480px;
    object-fit: cover; display: block;
}

/* Dots indicator */
.gallery-dots {
    display: flex; justify-content: center; gap: 6px;
    padding: 10px 0;
    background: #1a1a1a;
}
.gallery-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none; padding: 0; cursor: pointer;
    transition: background 0.2s;
}
.gallery-dot.active,
.gallery-dot[aria-current="true"] { background: #C9A84C; }

/* Thumbnail strip (desktop) */
.gallery-thumbs {
    display: none;
    gap: 8px; padding: 12px 0;
    overflow-x: auto; scrollbar-width: thin;
}
@media (min-width: 768px) { .gallery-thumbs { display: flex; } }

.gallery-thumb {
    width: 80px; height: 56px; flex-shrink: 0;
    border-radius: 5px; overflow: hidden;
    cursor: pointer; border: 2px solid transparent;
    transition: border-color 0.15s; opacity: 0.7;
}
.gallery-thumb:hover,
.gallery-thumb.active { border-color: #C9A84C; opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* No-photo gallery placeholder */
.gallery-nophoto {
    width: 100%; height: 280px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #F0EEE9; color: #B0B8C4; gap: 10px;
}
.gallery-nophoto i { font-size: 48px; }
.gallery-nophoto p { font-size: 13px; }

/* ── Page layout ────────────────────────────────────────────────────────────── */
.listing-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) { .listing-layout { grid-template-columns: 1fr; } }

/* ── Content column ─────────────────────────────────────────────────────────── */
.listing-content {}

.listing-header { margin-bottom: 18px; }

.listing-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700; color: #0F2340;
    margin: 0 0 8px; line-height: 1.2;
}

.listing-location {
    display: flex; align-items: center; gap: 5px;
    font-size: 14px; color: #6B7A8D;
}
.listing-location i { font-size: 14px; }

/* Spec strip */
.spec-strip {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 24px;
}
.spec-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #0F2340; font-weight: 500;
    white-space: nowrap;
}
.spec-item i { font-size: 16px; color: #6B7A8D; }
.spec-sep { color: #D1D5DB; font-size: 16px; }

/* Detail group: reception, tenure, EPC, council tax — wraps as a unit on desktop */
.spec-group--detail {
    display: inline-flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}

/* Mobile: show only the three core specs (beds · baths · sq ft) */
@media (max-width: 640px) {
    .spec-strip         { flex-wrap: nowrap; }
    .spec-sep--group,
    .spec-group--detail { display: none; }
}


/* Tags (badges) for property meta */
.listing-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.listing-tag {
    font-size: 11px; font-weight: 500;
    padding: 3px 10px; border-radius: 20px;
    background: #E6F1FB; color: #0C447C;
}
.listing-tag--green { background: #EAF3DE; color: #3B6D11; }
.listing-tag--gold  { background: #FAEEDA; color: #633806; }
.listing-tag--under-offer { background: #FEF3CD; color: #7A5700; font-weight: 600; }

/* Description */
.listing-desc-heading {
    font-size: 16px; font-weight: 600; color: #0F2340;
    margin: 0 0 10px; font-family: 'Playfair Display', Georgia, serif;
}
.listing-desc-body {
    font-size: 14px; color: #374151;
    line-height: 1.7; white-space: pre-line;
    margin-bottom: 24px;
}

/* Features */
.listing-features-heading {
    font-size: 16px; font-weight: 600; color: #0F2340;
    margin: 0 0 12px; font-family: 'Playfair Display', Georgia, serif;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}
.feature-tag {
    display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; color: #374151;
    padding: 7px 10px; background: #F0EEE9;
    border-radius: 6px;
}
.feature-tag i { font-size: 14px; color: #6B7A8D; }

/* Location note */
.listing-location-note {
    background: #F9F7F4;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px; color: #6B7A8D;
    margin-bottom: 24px;
}
.listing-location-note strong { color: #0F2340; }

/* ── Sidebar ────────────────────────────────────────────────────────────────── */
.listing-sidebar {
    position: sticky;
    /* 68px sticky .site-header height + 12px breathing gap. Keeps the
       popularity card (top child of the sidebar) clear of the navbar
       instead of letting it scroll behind it. */
    top: 80px;
}

.listing-sidebar-card {
    background: #fff;
    border: 0.5px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.listing-sidebar-card:last-child { margin-bottom: 0; }

.listing-price-card {
    padding: 20px;
}
.listing-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px; font-weight: 700; color: #0F2340;
    margin: 0 0 4px; line-height: 1;
}
.listing-price-sub { font-size: 12px; color: #6B7A8D; }

/* Save button */
.btn-save {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; padding: 10px;
    border: 1px solid #E2E8F0; border-radius: 6px;
    background: none; cursor: pointer;
    font-size: 13px; font-weight: 500; color: #6B7A8D;
    font-family: 'Inter', system-ui, sans-serif;
    margin-top: 12px; transition: all 0.14s;
}
.btn-save:hover { border-color: #C9A84C; color: #0F2340; }
.btn-save.is-saved { background: #FAEEDA; border-color: #C9A84C; color: #633806; }
.btn-save i { font-size: 16px; }

/* Contact / EOI card — one even vertical rhythm so every CTA is equally spaced
   with room to breathe. The flex `gap` is the single source of spacing; the
   markup no longer sets ad-hoc inline margins between these elements. */
.listing-contact-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.listing-contact-card > form { margin: 0; }
.listing-contact-card h3 {
    font-size: 15px; font-weight: 600; color: #0F2340;
    margin: 0; font-family: 'Playfair Display', Georgia, serif;
}
/* Nested single-wrapper states inherit the same even rhythm */
.listing-owner-card,
.listing-signin-prompt {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.eoi-textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #E2E8F0; border-radius: 6px;
    font-size: 13px; line-height: 1.5;
    font-family: 'Inter', system-ui, sans-serif;
    resize: vertical; min-height: 90px;
    margin-bottom: 10px;
    transition: border-color 0.14s;
}
.eoi-textarea:focus { outline: none; border-color: #1E5BA8; }
.eoi-hint { font-size: 11px; color: #9BA8B4; margin: 6px 0 0; }

/* EOI status states */
.eoi-status-box {
    padding: 14px; border-radius: 8px;
    font-size: 13px; line-height: 1.5;
}
.eoi-status-box--pending  { background: #E6F1FB; color: #0C447C; }
.eoi-status-box--opened   { background: #EAF3DE; color: #3B6D11; }
.eoi-status-box--declined { background: #FCEBEB; color: #A32D2D; }

/* Sign-in prompt */
.listing-signin-prompt {
    text-align: center; padding: 4px 0;
}
.listing-signin-prompt p {
    font-size: 13px; color: #6B7A8D; margin: 0;
}
.listing-signin-prompt .btn-row {
    display: flex; gap: 8px; flex-direction: column;
}

/* Owner badge */
.listing-owner-card {
    padding: 16px 20px; text-align: center;
    font-size: 13px; color: #6B7A8D;
}

/* Mobile: show sidebar above spec strip */
@media (max-width: 900px) {
    .listing-sidebar { position: static; }
    .listing-layout {
        display: flex; flex-direction: column-reverse;
    }
}

/* ── Lightbox / fullscreen photo modal (added 2026-06-22, desktop only) ──────
   Activated by lightbox.js on click of any .gallery-item or .gallery-expand-btn
   when viewport ≥ 900px. Below that breakpoint, the trigger handlers no-op
   AND the dialog itself is hidden via CSS — defence in depth in case the JS
   guard slips.
*/

/* Desktop-only — never show the modal or the expand affordance on mobile */
@media (max-width: 899px) {
    .lightbox,
    .gallery-expand-btn {
        display: none !important;
    }
}

/* ── Expand affordance on the gallery (desktop only) ───────────────────── */
@media (min-width: 900px) {
    .listing-gallery { position: relative; }
    .gallery-item { cursor: zoom-in; }

    .gallery-expand-btn {
        position: absolute;
        top: 18px;
        right: 18px;
        z-index: 5;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 14px 9px 12px;
        background: rgba(15, 35, 64, 0.78);
        color: #FFFFFF;
        border: 0;
        border-radius: 22px;
        cursor: pointer;
        font-family: var(--font-body);
        font-size: 12.5px;
        font-weight: 500;
        letter-spacing: 0.02em;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }
    .gallery-expand-btn:hover,
    .gallery-expand-btn:focus-visible {
        background: var(--gold);
        color: var(--navy);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
    }
    .gallery-expand-btn:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 2px;
    }
    .gallery-expand-btn .ti { font-size: 16px; }
}

/* ── Lightbox dialog ─────────────────────────────────────────────────── */

.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(15, 35, 64, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Top bar with counter + close */
.lightbox__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.lightbox__count {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.55);
    padding: 8px 16px;
    border-radius: 18px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox__close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
    background: var(--gold);
    color: var(--navy);
    transform: scale(1.05);
}
.lightbox__close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
.lightbox__close .ti { font-size: 22px; }

/* Prev / Next arrows */
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lightbox__nav--prev { left: 28px; }
.lightbox__nav--next { right: 28px; }

.lightbox__nav:hover:not(:disabled),
.lightbox__nav:focus-visible:not(:disabled) {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-50%) scale(1.06);
}
.lightbox__nav:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
.lightbox__nav:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    transform: translateY(-50%);
}
.lightbox__nav .ti { font-size: 30px; }

/* Image stage — figure with padding, image centered */
.lightbox__stage {
    margin: 0;
    width: 100%;
    height: 100%;
    padding: 90px 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out; /* click on padding area closes */
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55),
                0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: default;
}

/* Subtle entry animation on open */
.lightbox[open] {
    animation: lb-fade-in 200ms ease-out;
}
.lightbox[open]::backdrop {
    animation: lb-fade-in 240ms ease-out;
}
@keyframes lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Smaller-screen desktop tightening (<= 1100px wide) */
@media (min-width: 900px) and (max-width: 1099px) {
    .lightbox__stage    { padding: 70px 84px; }
    .lightbox__nav      { width: 48px; height: 48px; }
    .lightbox__nav .ti  { font-size: 26px; }
    .lightbox__nav--prev { left: 18px; }
    .lightbox__nav--next { right: 18px; }
}

/* ── Listing popularity card (updated 2026-06-22) ───────────────────────────
   Card-style strip above the price card on listing pages. Mirrors the
   .listing-sidebar-card styling (white bg, light border, 12px radius, padding)
   so it reads as a sibling card to the asking-price card immediately below.
   All three elements (badge + views + saves) sit in a single row.
*/

.listing-popularity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #fff;
    border: 0.5px solid #E2E8F0;
    border-radius: 12px;
}

.listing-popularity__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill, 999px);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}
.listing-popularity__badge .ti { font-size: 13px; }

.listing-popularity__badge--new {
    background: rgba(30, 91, 168, 0.10);
    color: var(--blue, #1E5BA8);
}
.listing-popularity__badge--popular {
    background: rgba(201, 168, 76, 0.15);
    color: var(--navy, #0F2340);
}
.listing-popularity__badge--high_demand {
    background: var(--gold, #C9A84C);
    color: var(--navy, #0F2340);
}

.listing-popularity__counters {
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted, #6B7A8D);
    flex-shrink: 0;
}
.listing-popularity__counters li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.listing-popularity__counters .ti { font-size: 15px; }

/* When the badge is absent, counters keep their right-aligned auto-margin
   (already set above on .listing-popularity__counters). */

@media (max-width: 559px) {
    .listing-popularity { padding: 12px 14px; gap: 10px; }
    .listing-popularity__counters { gap: 12px; font-size: 12px; }
}

/* ── Back to results link ────────────────────────────────────────────────── */
.listing-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6B7A8D;
    text-decoration: none;
    margin-bottom: 14px;
    transition: color 0.15s;
}

.listing-back-link:hover {
    color: #0F2340;
}

.listing-back-link .ti {
    font-size: 14px;
}

/* ── Nearby listings carousel ─────────────────────────────────────────────── */
.listing-nearby {
    background: var(--cream);
    padding: 4rem 0 4.5rem;
    border-top: 1px solid var(--border);
}

.listing-nearby__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.listing-nearby__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.45rem;
}
.listing-nearby__eyebrow .ti { font-size: 12px; }

.listing-nearby__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin: 0;
}

.listing-nearby__all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    transition: background var(--ease), color var(--ease);
}
.listing-nearby__all:hover { background: var(--navy); color: var(--white); }
.listing-nearby__all .ti { font-size: 14px; }

/* ── Carousel stage ───────────────────────────────────────────────────────── */
.listing-nearby__stage { position: relative; }

.listing-nearby__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
}
.listing-nearby__track::-webkit-scrollbar { display: none; }

.listing-nearby__item {
    flex: 0 0 240px;
    scroll-snap-align: start;
}
@media (min-width: 640px)  { .listing-nearby__item { flex: 0 0 260px; } }
@media (min-width: 1024px) {
    .listing-nearby__item {
        flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
    }
    .listing-nearby__track {
        overflow-x: auto;
        padding-top: 8px;
        padding-bottom: 14px;
    }
    /* Contain hover lift + shadow within track padding clearance */
    .listing-nearby .property-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(15,35,64,.13);
    }
}

.listing-nearby__card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.listing-nearby__card .property-card__placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    color: var(--muted);
    font-size: 2rem;
}

/* ── Nav arrows ───────────────────────────────────────────────────────────── */
.listing-nearby__nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 18px;
    transition: background var(--ease), border-color var(--ease), transform 0.15s;
    z-index: 2;
}
.listing-nearby__nav:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.listing-nearby__nav:active { transform: translateY(-50%) scale(0.93); }
.listing-nearby__nav--prev { left: -20px; }
.listing-nearby__nav--next { right: -20px; }
@media (min-width: 640px) { .listing-nearby__nav { display: flex; } }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.listing-nearby__empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--white);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
}
.listing-nearby__empty-icon {
    font-size: 2.5rem;
    color: var(--border);
    display: block;
    margin-bottom: 0.75rem;
}
.listing-nearby__empty-title { font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.listing-nearby__empty-sub { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ── Location privacy disclosure ─────────────────────────────────────────── */
.listing-location-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    font-size: 0.74rem;
    color: var(--muted);
    line-height: 1.45;
}
.listing-location-privacy .ti {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--blue);
}
.listing-location-privacy a {
    color: var(--blue);
    text-decoration: underline;
}
.listing-location-privacy a:hover { color: var(--navy); }

/* ── Featured listing banner text — inline single-line layout ────────────── */
p.listing-featured-banner__text {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--muted);
}
p.listing-featured-banner__text strong {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.82rem;
}

/* ── Floor plan display on listing page ──────────────────────────── */
.listing-floorplan { margin: 32px 0; }

.listing-floorplan__wrap {
    background: #FAFAF8;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;          /* scroll on mobile if plan is wide */
    -webkit-overflow-scrolling: touch;
}

/* Scale SVG to fit container on smaller screens */
.listing-floorplan__wrap svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* ── Property reference chip ──────────────────────────────────────────────────
   CR: fysh_listing_ref_chip 2026-07-17
   Small, muted reference pill that sits under the sidebar CTA stack. Uses the
   same white card / border language as .listing-sidebar-card so it reads as
   part of the sidebar rhythm rather than orphaned text. */
.listing-ref {
    display: flex;                    /* flex + fit-content + auto margin = centred pill */
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 4px auto 0;
    padding: 6px 12px;
    background: #fff;
    border: 0.5px solid var(--border, #E2E8F0);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    color: var(--muted, #6B7A8D);
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 35, 64, 0.03);
}
.listing-ref i { font-size: 13px; color: #9BA8B4; }
.listing-ref__code {
    font-weight: 600;
    color: #0F2340;
    letter-spacing: 0.04em;
}
.listing-ref__sep { color: #C5CCD4; }
.listing-ref__date { color: var(--muted, #6B7A8D); }

@media (max-width: 480px) {
    .listing-ref { font-size: 10.5px; padding: 5px 10px; }
    .listing-ref i { font-size: 12px; }
}
