/* ==========================================================================
   Section Shop — availability map + development/lot listing components
   (spec §7). Loaded by development.php, developments.php, lot.php,
   regions.php, region.php. Extends the tokens in style.css — do not
   redefine tokens here.
   Map status shading (owner request 2026-07, refined 2026-07-27):
     available       GREEN  thick #16A34A outline (stroke-width 6) + light
                            fill rgba(34,197,94,.16) so the printed plan number
                            shows through; the number is repeated in a top
                            SVG label layer so it is never covered
     under_offer     amber  (--status-under-offer)
     under_contract  blue   (--status-under-contract)
     sold            grey   (--status-sold)
   The --status-available token stays gold for badges elsewhere; the map
   legend swatch + hotspot shading intentionally override it to green.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Map toolbar: filter chips + selects, legend, lot count
   -------------------------------------------------------------------------- */
.ssmap__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 0;
    padding: 10px 14px;
}

.ssmap__filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ssmap__filter-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.ssmap__chip {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.ssmap__chip:hover { border-color: var(--gold); color: var(--gold-dark); }
.ssmap__chip[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.ssmap__select {
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 5px 8px;
}
.ssmap__select:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--gold-dark); }

.ssmap__legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-left: auto;
}

.ssmap__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
}

.ssmap__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex: none;
}
.ssmap__dot--available      { background: rgba(34, 197, 94, .22); box-shadow: inset 0 0 0 2px #16A34A; }
.ssmap__dot--under-offer    { background: var(--status-under-offer); }
.ssmap__dot--under-contract { background: var(--status-under-contract); }
.ssmap__dot--sold           { background: var(--status-sold); }

/* --------------------------------------------------------------------------
   2. Map stage (spm pattern: responsive img + SVG overlay, transform zoom/pan)
   -------------------------------------------------------------------------- */
.ssmap__wrap {
    position: relative;
    background: #26313D;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ssmap__stage {
    position: relative;
    width: 100%;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.ssmap__stage--dragging { cursor: grabbing; }
.ssmap__stage:focus { outline: none; }
.ssmap__stage:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
    border-radius: 2px;
}

.ssmap__world {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
    will-change: transform;
}
.ssmap__world img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: filter .3s ease;
}
.ssmap__world svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ssmap__hint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(11, 25, 44, .82);
    color: #E2E8F0;
    font-size: .72rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.ssmap__zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}
/* Directional pan pad (server-rendered in development.php, adopted into the
   wrap by map.js). Hidden until the map initialises and moves it into place. */
.ssmap__navpad { display: none; }
.ssmap__wrap .ssmap__navpad {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(3, 38px);
    grid-auto-rows: 38px;
    gap: 5px;
    z-index: 5;
}
.ssmap__wrap .ssmap__navpad #panUp    { grid-column: 2; grid-row: 1; }
.ssmap__wrap .ssmap__navpad #panLeft  { grid-column: 1; grid-row: 2; }
.ssmap__wrap .ssmap__navpad #panRight { grid-column: 3; grid-row: 2; }
.ssmap__wrap .ssmap__navpad #panDown  { grid-column: 2; grid-row: 3; }
.ssmap__zoom button,
.ssmap__navpad button {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(11, 25, 44, .85);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}
.ssmap__navpad button { font-size: .72rem; line-height: 1; }
.ssmap__zoom button:hover,
.ssmap__navpad button:hover { background: var(--navy-700); }
.ssmap__zoom button.ssmap__zoom-reset { font-size: .62rem; font-weight: 700; letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   3. Lot hotspots — per-status fills/strokes. Available = green (owner
   request); other statuses keep amber/blue/grey. The cloned
   .ssmap-lot__halo shape is excluded from every generic shape rule via
   :not() so only the dedicated halo rules at the bottom style it.
   -------------------------------------------------------------------------- */
.ssmap-lot { cursor: pointer; }
.ssmap-lot rect:not(.ssmap-lot__halo),
.ssmap-lot polygon:not(.ssmap-lot__halo) {
    fill: rgba(34, 197, 94, .16);
    stroke: rgba(22, 163, 74, .8);
    stroke-width: 3;
    transition: fill .15s ease, stroke .15s ease;
}
/* Available lots: bold saturated green outline tracing the whole lot
   perimeter so available sections pop at a glance (owner request). The
   width is in viewBox units and scales with zoom; tune via this class.
   Fill stays light (above) so the printed plan number shows through. */
.ssmap-lot.st-available rect:not(.ssmap-lot__halo),
.ssmap-lot.st-available polygon:not(.ssmap-lot__halo) {
    stroke: #16A34A;
    stroke-width: 6;
}
.ssmap-lot:hover rect:not(.ssmap-lot__halo),
.ssmap-lot:hover polygon:not(.ssmap-lot__halo),
.ssmap-lot:focus-visible rect:not(.ssmap-lot__halo),
.ssmap-lot:focus-visible polygon:not(.ssmap-lot__halo),
.ssmap-lot--row-hover rect:not(.ssmap-lot__halo),
.ssmap-lot--row-hover polygon:not(.ssmap-lot__halo) {
    fill: rgba(34, 197, 94, .52);
    stroke: rgba(21, 128, 61, 1);
}
.ssmap-lot:focus { outline: none; }

.ssmap-lot.st-under-offer rect:not(.ssmap-lot__halo),
.ssmap-lot.st-under-offer polygon:not(.ssmap-lot__halo) { fill: rgba(245, 158, 11, .38); stroke: rgba(245, 158, 11, .9); }
.ssmap-lot.st-under-contract rect:not(.ssmap-lot__halo),
.ssmap-lot.st-under-contract polygon:not(.ssmap-lot__halo) { fill: rgba(59, 130, 246, .34); stroke: rgba(59, 130, 246, .92); }
.ssmap-lot.st-sold rect:not(.ssmap-lot__halo),
.ssmap-lot.st-sold polygon:not(.ssmap-lot__halo) { fill: rgba(148, 163, 184, .30); stroke: rgba(148, 163, 184, .85); }

/* Selected lot: keep the status fill, add a distinct gold outline + glow.
   Declared after the status rules so it wins the specificity tie. */
.ssmap-lot.ssmap-lot--selected rect:not(.ssmap-lot__halo),
.ssmap-lot.ssmap-lot--selected polygon:not(.ssmap-lot__halo) {
    stroke: #F3CD46;
    stroke-width: 6;
    filter: drop-shadow(0 0 8px rgba(243, 205, 70, .8));
}

/* Ping halo: cloned shape playing an expanding-stroke ripple (~600ms,
   twice) each time the lot is selected. */
.ssmap-lot__halo {
    fill: none;
    stroke: #F3CD46;
    stroke-width: 4;
    opacity: 0;
    pointer-events: none;
}
.ssmap-lot.ssmap-lot--selected .ssmap-lot__halo { animation: ssmapLotPing .6s ease-out 2; }
@keyframes ssmapLotPing {
    0%   { opacity: .85; stroke-width: 4; }
    100% { opacity: 0;   stroke-width: 30; }
}
@media (prefers-reduced-motion: reduce) {
    .ssmap-lot.ssmap-lot--selected .ssmap-lot__halo { animation: none; }
}

/* --------------------------------------------------------------------------
   3b. Lot-number labels — separate top SVG layer (map.js #lotLabels) painted
   above every hotspot, so the lot number is never covered by a fill. Dark
   green for available, dark slate otherwise; white halo (paint-order stroke)
   keeps text readable over plan + fill. Hidden below zoom ~1.4 (map.js
   toggles .ssmap__wrap--labels); hovered/selected labels always show.
   -------------------------------------------------------------------------- */
.ssmap-labels { pointer-events: none; }
.ssmap-label {
    pointer-events: none;
    font-weight: 700;
    fill: #334155;                 /* dark slate — non-available statuses */
    stroke: #fff;
    stroke-width: 3;
    stroke-opacity: .85;
    paint-order: stroke;
    opacity: 0;
    transition: opacity .2s ease;
}
.ssmap-label--available { fill: #15803D; } /* dark green */
.ssmap__wrap--labels .ssmap-label,
.ssmap-label--hover,
.ssmap-label--selected { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .ssmap-label { transition: none; }
}

/* Filtering: dim the plan, non-matches go inert, matches pulse (spm rules) */
.ssmap__wrap--filtering .ssmap__world img { filter: brightness(.42) saturate(.7); }
.ssmap__wrap--filtering .ssmap-lot rect:not(.ssmap-lot__halo),
.ssmap__wrap--filtering .ssmap-lot polygon:not(.ssmap-lot__halo) {
    fill: transparent;
    stroke: none;
    pointer-events: none;
    cursor: default;
}
.ssmap__wrap--filtering .ssmap-lot--match rect:not(.ssmap-lot__halo),
.ssmap__wrap--filtering .ssmap-lot--match polygon:not(.ssmap-lot__halo) {
    fill: rgba(212, 175, 55, .45);
    stroke: #F3CD46;
    stroke-width: 6;
    cursor: pointer;
    pointer-events: auto;
    animation: ssmapLotPulse 1.7s ease-in-out infinite;
}
.ssmap__wrap--filtering .ssmap-lot--match:hover rect:not(.ssmap-lot__halo),
.ssmap__wrap--filtering .ssmap-lot--match:hover polygon:not(.ssmap-lot__halo),
.ssmap__wrap--filtering .ssmap-lot--match:focus-visible rect:not(.ssmap-lot__halo),
.ssmap__wrap--filtering .ssmap-lot--match:focus-visible polygon:not(.ssmap-lot__halo) {
    fill: rgba(212, 175, 55, .68);
    stroke: #FFE37E;
    animation: none;
}
.ssmap__wrap--filtering .ssmap-lot.ssmap-lot--selected rect:not(.ssmap-lot__halo),
.ssmap__wrap--filtering .ssmap-lot.ssmap-lot--selected polygon:not(.ssmap-lot__halo) {
    fill: rgba(243, 205, 70, .30);
    stroke: #F3CD46;
    stroke-width: 6;
    filter: drop-shadow(0 0 8px rgba(243, 205, 70, .8));
    animation: none;
}
@keyframes ssmapLotPulse {
    0%, 100% { fill: rgba(212, 175, 55, .30); }
    50%      { fill: rgba(212, 175, 55, .62); }
}
/* Filtering dims the number labels of non-matching lots too; matching (and
   hovered/selected) labels keep theirs. Declared after the zoom rule above
   so dimming wins when both classes are on the wrap. */
.ssmap__wrap--filtering .ssmap-label { opacity: .12; }
.ssmap__wrap--filtering .ssmap-label--match,
.ssmap__wrap--filtering .ssmap-label--hover,
.ssmap__wrap--filtering .ssmap-label--selected { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .ssmap__wrap--filtering .ssmap-lot--match rect:not(.ssmap-lot__halo),
    .ssmap__wrap--filtering .ssmap-lot--match polygon:not(.ssmap-lot__halo) { animation: none; }
}

/* --------------------------------------------------------------------------
   4. Lot details panel — rendered below the map stage (development.php
   #lot-panel), populated by map.js. Replaces the old floating popup /
   mobile bottom sheet. Content animates in (fade/slide-up, reduced-motion
   safe) via a fresh .ssmap-panel__inner node on every selection.
   -------------------------------------------------------------------------- */
.ssmap-panel {
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    scroll-margin-top: 12px;
}
.ssmap-panel__hint {
    margin: 0;
    padding: 26px 20px;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
    background: var(--surface-alt);
}
.ssmap-panel__inner { animation: ssmapPanelIn .25s ease-out both; }
@keyframes ssmapPanelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .ssmap-panel__inner { animation: none; }
}

.ssmap-panel__head {
    background: var(--navy);
    color: #fff;
    padding: 14px 16px 13px;
    position: relative;
}
.ssmap-panel__kicker {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #94A3B8;
}
.ssmap-panel__title { font-size: 1.45rem; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.ssmap-panel__address { font-size: .9rem; font-weight: 600; color: #CBD5E1; margin-top: 2px; }
.ssmap-panel__address-label { color: #94A3B8; font-weight: 700; }
.ssmap-panel__badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.ssmap-panel__nav {
    position: absolute;
    top: 11px;
    right: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.ssmap-panel__nav button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ssmap-panel__nav button:hover { background: rgba(255, 255, 255, .14); }

.ssmap-panel__body { padding: 16px 18px 18px; }
@media (min-width: 761px) {
    .ssmap-panel__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 8px 28px;
        align-items: start;
    }
}
.ssmap-panel__side { margin-top: 14px; }
@media (min-width: 761px) {
    .ssmap-panel__side { margin-top: 0; }
}

.ssmap-panel__price { display: flex; align-items: baseline; gap: 8px; }
.ssmap-panel__price .amount { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.ssmap-panel__price .note { font-size: .75rem; font-weight: 600; color: var(--muted); }

.ssmap__fact-list {
    list-style: none;
    margin: 10px 0 0;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
}
.ssmap__fact-list li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
    padding: 2px 0;
}
.ssmap__fact-list li::before { content: '✓'; font-weight: 800; color: var(--gold); flex: none; }

.ssmap__spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 14px;
}
.ssmap__spec {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 9px;
}
.ssmap__spec .v { font-size: .88rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.ssmap__spec .k {
    font-size: .6rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 2px;
}

.ssmap__detail-table { margin-top: 14px; border-top: 1px solid var(--line); }
.ssmap__detail-row {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: .8rem;
    align-items: baseline;
}
.ssmap__detail-row .k {
    flex: none;
    width: 96px;
    font-weight: 700;
    color: var(--muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ssmap__detail-row .v { font-weight: 500; color: var(--ink); word-break: break-word; }
.ssmap__detail-row .v--small { font-size: .72rem; color: var(--muted); }

.ssmap-panel__ctas { display: grid; gap: 8px; }
.ssmap-panel__ctas .btn { padding: 10px 12px; font-size: .85rem; text-align: center; }

.ssmap-panel__share-feedback { font-size: .75rem; font-weight: 600; color: var(--success); margin-top: 8px; min-height: 1em; }

@media (max-width: 760px) {
    .ssmap__hint { display: none; }
    .ssmap__legend { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   5. Status badges on dark surfaces (panel head) — extends .badge in style.css
   -------------------------------------------------------------------------- */
.badge--available-dark {
    background: rgba(34, 197, 94, .18);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, .55);
}
.badge--under-offer-dark {
    background: rgba(245, 158, 11, .18);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, .55);
}
.badge--under-contract-dark {
    background: rgba(59, 130, 246, .18);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, .5);
}
.badge--sold-dark {
    background: rgba(148, 163, 184, .18);
    color: #CBD5E1;
    border: 1px solid rgba(148, 163, 184, .5);
}
.badge--stage-dark {
    background: rgba(148, 163, 184, .14);
    color: #E2E8F0;
    border: 1px solid rgba(148, 163, 184, .38);
}

/* --------------------------------------------------------------------------
   6. Breadcrumb, stats strip, share row, agent card, doc cards, lot table
   -------------------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 14px;
    padding: 20px 0 0;
    font-size: .85rem;
    color: var(--muted);
}
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

.dev-head { margin-bottom: 8px; }
.dev-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 4px; }
.dev-head__meta { color: var(--muted); font-size: .95rem; margin: 0; }
.dev-head__meta-label { font-weight: 600; }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0 8px;
}
@media (min-width: 760px) {
    .stat-strip { grid-template-columns: repeat(4, 1fr); }
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
}
.stat__value { font-size: 1.3rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.stat__label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 3px;
}

.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-row .btn { padding: 9px 16px; font-size: .85rem; }
.share-row__feedback { font-size: .8rem; font-weight: 600; color: var(--success); min-height: 1em; }

.agent-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--navy);
    color: #C9D6E6;
    border-radius: var(--radius);
    padding: 20px;
    flex-wrap: wrap;
}
.agent-card__badge {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.agent-card__name { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0; }
.agent-card__legal { color: var(--gold); font-size: .82rem; font-weight: 600; margin: 2px 0 6px; }
.agent-card__contact { font-size: .9rem; margin: 0; }
.agent-card__contact a { color: #C9D6E6; }
.agent-card__contact a:hover { color: var(--gold); }
.agent-card .btn { margin-left: auto; }

.doc-group { margin-bottom: 24px; }
.doc-group__title { font-size: 1rem; margin-bottom: 10px; }
.doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 760px) {
    .doc-grid { grid-template-columns: repeat(2, 1fr); }
}
.doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.doc-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.doc-card__icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    color: var(--navy);
    font-size: .62rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.doc-card__label { font-size: .88rem; font-weight: 600; color: var(--navy); word-break: break-word; }
.doc-card__hint { font-size: .72rem; color: var(--muted); }

/* Availability table (same data as the map; rows deep-link to lot.php) */
.lot-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lot-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lot-table th {
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-alt);
    white-space: nowrap;
}
.lot-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lot-table tbody tr:last-child td { border-bottom: 0; }
.lot-table tbody tr { cursor: pointer; transition: background-color .12s ease; }
.lot-table tbody tr:hover,
.lot-table tbody tr.lot-table__row--hover { background: rgba(212, 175, 55, .08); }
.lot-table td.num { text-align: right; white-space: nowrap; }
.lot-table .lot-link { font-weight: 700; color: var(--navy); text-decoration: none; }
.lot-table .lot-link:hover { color: var(--gold-dark); }

/* Development listing cards (developments.php / region.php) */
.dev-card__media { position: relative; display: block; }
.dev-card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-alt); }
.dev-card__count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 25, 44, .85);
    color: #F3CD46;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.dev-card__stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: .82rem;
    color: var(--muted);
}
.dev-card__stats strong { color: var(--navy); }

/* Filter bar (developments.php) */
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 28px;
}
.filter-bar__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 760px) {
    .filter-bar__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; align-items: end; }
}
.filter-bar label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 4px;
}
.filter-bar input,
.filter-bar select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: .9rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.filter-bar input:focus,
.filter-bar select:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--gold-dark); }

.results-count { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }

.empty-state {
    background: var(--surface-alt);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
}

/* Lot page (lot.php) */
.lot-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 760px) {
    .lot-layout { grid-template-columns: 2fr 1fr; }
}
.lot-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.lot-panel h2 { font-size: 1.05rem; margin-bottom: 12px; }
.lot-hero { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-alt); }
.lot-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 0; }
.lot-cta-stack { display: grid; gap: 10px; margin-top: 16px; }

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--muted); font-weight: 600; }
.spec-list .v { color: var(--navy); font-weight: 600; text-align: right; word-break: break-word; }

/* --------------------------------------------------------------------------
   7. Print: hide interactive map chrome (spec §7 print-hide)
   -------------------------------------------------------------------------- */
@media print {
    .ssmap__toolbar,
    .ssmap__zoom,
    .ssmap__navpad,
    .ssmap__hint,
    .share-row,
    .filter-bar { display: none !important; }
    .ssmap__wrap { box-shadow: none; }
}
