/* =============================================================
   FAU — Tom's property history (homepage proof module and the
   /tom/property-history/ page). Presentation for the server-rendered
   markup of [fau_property_history] plus the surrounding compositions.
   Everything Leaflet generates at runtime is styled by the plugin's
   on-demand property-map.css. Loaded only on the two surfaces that
   render the module. Tokens come from fau.css.
   ============================================================= */

/* ---------- Homepage proof module ---------- */
.section--history{position:relative;overflow:hidden}
.section--history::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(60% 50% at 78% 30%,rgba(47,102,196,.16),transparent 70%),
    radial-gradient(40% 40% at 10% 90%,rgba(217,42,56,.10),transparent 70%)}
.history-proof{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto 1fr;gap:var(--sp-50) var(--sp-70);align-items:start}
.history-proof__copy{grid-column:1;grid-row:1}
.history-proof__map{grid-column:2;grid-row:1 / span 2}
.history-proof__photo{grid-column:1;grid-row:2;align-self:end}
.history-proof__copy .lead{max-width:52ch}
.history-proof__actions{margin-top:var(--sp-50);gap:var(--sp-30)}
.history-proof__photo{margin:0;aspect-ratio:auto;max-width:none;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
.history-proof__photo img{aspect-ratio:900/681;object-fit:cover;border:1px solid var(--bd);border-radius:var(--r-xl);box-shadow:var(--sh-2)}
.history-proof__photo figcaption{padding:.625rem 0 0;font-size:var(--fs-caption);color:var(--tx-3)}
.history-proof__map{min-width:0}
.history-proof__foot{margin-top:var(--sp-50)}
@media (max-width:1024px){
  .history-proof{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:var(--sp-50)}
  .history-proof__copy,.history-proof__map,.history-proof__photo{grid-column:auto;grid-row:auto}
  .history-proof__photo{max-width:560px}
}

/* ---------- Module chrome (filters, status, map frame) ---------- */
.property-history{display:flex;flex-direction:column;gap:var(--sp-30);min-width:0}
.property-history__filters{gap:var(--sp-20)}
.property-history__filters--asset{padding-top:var(--sp-10)}
.chip--decade,.chip--asset{min-height:40px;padding:.375rem .875rem;font-size:.875rem;gap:.5rem}
.chip--decade .chip__count,.chip--asset .chip__count{font-variant-numeric:tabular-nums;color:var(--tx-2);font-weight:500;font-size:.75rem;opacity:1}
.chip--decade[aria-pressed="true"] .chip__count,.chip--asset[aria-pressed="true"] .chip__count{color:inherit;opacity:.85}
.decade-dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--decade-color,var(--tx-3));
  box-shadow:0 0 0 1px rgba(244,241,232,.45);flex-shrink:0}
.chip--decade[aria-pressed="true"] .decade-dot{box-shadow:0 0 0 2px var(--bg-page)}
.property-history__status{margin:0;font-size:var(--fs-small);color:var(--tx-2);min-height:1.5em}
.property-map{position:relative;border:1px solid var(--bd);border-radius:var(--r-xl);overflow:hidden;background:
  linear-gradient(rgba(84,103,140,.16) 1px,transparent 1px) 0 0/40px 40px,
  linear-gradient(90deg,rgba(84,103,140,.16) 1px,transparent 1px) 0 0/40px 40px,
  radial-gradient(70% 70% at 50% 40%,#16233B,#0B1220);box-shadow:var(--sh-2)}
.property-map__canvas{width:100%;aspect-ratio:4/3;min-height:340px;max-height:640px;outline:none}
.property-history--full .property-map__canvas{aspect-ratio:16/9;min-height:420px;max-height:720px}
.property-map__fallback,.property-map__hint{margin:0;max-width:none;padding:.625rem 1rem;font-size:var(--fs-caption);color:var(--tx-2);
  background:var(--ink-900);border-top:1px solid var(--bd-subtle)}
.property-map__fallback a{color:var(--link)}
.property-map.is-failed .property-map__canvas{display:flex;align-items:center;justify-content:center;min-height:220px;aspect-ratio:auto}
.property-history__list-link{margin:0;font-size:var(--fs-small)}
.property-history__list-link a{font-weight:600}
.property-history--unavailable p{color:var(--tx-2)}
@media (max-width:768px){
  .property-map__canvas{aspect-ratio:1/1;min-height:300px;max-height:480px}
  .property-history--full .property-map__canvas{aspect-ratio:1/1;min-height:360px;max-height:560px}
}
@media (max-width:480px){
  .chip--decade,.chip--asset{padding:.375rem .75rem;font-size:.8125rem}
}

/* ---------- Synchronized list (full page) ---------- */
.property-history__list{margin-top:var(--sp-50)}
.property-history__list-title{font-size:var(--fs-h3);margin-bottom:var(--sp-20)}
.property-history__list-status{margin:0 0 var(--sp-30)}
.property-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-30)}
.property-card{position:relative;display:flex;flex-direction:column;gap:.375rem;background:var(--bg-card);border:1px solid var(--bd-subtle);
  border-radius:var(--r-lg);padding:var(--sp-40) var(--sp-40) var(--sp-40) calc(var(--sp-40) + 6px);overflow:hidden}
.property-card[hidden],.property-card__locate[hidden],.property-history__empty[hidden],.property-map__fallback[hidden],.property-map__hint[hidden]{display:none!important}
.property-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--decade-color,var(--tx-3))}
.property-card{scroll-margin-top:var(--sp-60)}
#methodology,#map{scroll-margin-top:var(--sp-40)}
.property-card:focus{outline:3px solid var(--focus-ring);outline-offset:2px}
.property-card.is-current{border-color:var(--focus-ring);box-shadow:0 0 0 1px var(--focus-ring)}
.property-card__head{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between}
.badge--decade{background:var(--bg-raised);color:var(--tx);font-weight:700;letter-spacing:.02em;font-size:.8125rem}
.property-card__type{font-size:var(--fs-caption);color:var(--tx-3)}
.property-card__title{font-size:1.125rem;line-height:1.25;margin:0}
.property-card__location{margin:0;font-size:var(--fs-small);color:var(--tx-2)}
.property-card__facts{margin:.25rem 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:.375rem}
.property-card__facts li{font-size:var(--fs-caption);padding:.125rem .5rem;border:1px solid var(--bd);border-radius:var(--r-pill);color:var(--tx)}
.property-card__profit{margin:.375rem 0 0;font-size:var(--fs-small)}
.property-card__profit-label{color:var(--tx-3)}
.property-card__profit .num{font-family:var(--font-display);font-weight:800;font-variant-numeric:tabular-nums}
.property-card__note{margin:.375rem 0 0;font-size:var(--fs-caption);color:var(--tx-2);max-width:none}
.property-card__locate{margin-top:auto;align-self:flex-start;padding-top:.25rem;padding-bottom:.25rem}
.property-card>:nth-last-child(2){margin-bottom:var(--sp-30)}
.property-history__empty{margin:0}
@media (max-width:1024px){.property-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.property-list{grid-template-columns:minmax(0,1fr)}}

/* ---------- Full page compositions ---------- */
.history-hero__lead{max-width:60ch}
.history-hero__title{max-width:20ch}
/* Why the map + the one action, beside Tom at his own property (2026-10-09). */
.history-why{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:var(--sp-70);align-items:center}
.history-why .stack p{max-width:65ch}
.history-why__next{margin-top:var(--sp-60);padding-top:var(--sp-50);border-top:1px solid var(--bd)}
.history-why__next h3{margin-bottom:var(--sp-20)}
.history-why__photo{margin:0}
.history-why__photo .tom-photo{aspect-ratio:4/3}
.history-why__photo figcaption{margin-top:var(--sp-30)}
@media (max-width:1024px){.history-why{grid-template-columns:minmax(0,1fr);gap:var(--sp-60)}.history-why__photo{max-width:620px}}
@media (max-width:480px){.history-why__next .btn--primary{width:100%}}
