/* Availoc demo -- Ka'an Tulum. Design tokens per docs/brand.md. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.woff2") format("woff2-variations"), url("../fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2-variations"), url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-ink: #0B2239;
  --brand-ink-soft: #16334D;
  --brand-copper: #C0803F;
  --brand-copper-soft: #E8C9A4;
  --sand-50: #FAF8F5;
  --sand-100: #F2EEE8;
  --sand-200: #E3DDD3;
  --stone-500: #7A756D;
  --stone-700: #4A463F;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-card: 8px;
  --radius-chip: 4px;
  --shadow-sm: 0 2px 10px rgba(11, 34, 57, .08);
  --shadow-md: 0 8px 28px rgba(11, 34, 57, .14);

  --bar-h: 40px;
  --header-h: 72px;
  --status-selected: #0B2239;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--sand-50);
  color: var(--stone-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--brand-ink); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(32px, 5vw, 60px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--brand-copper); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -50px; left: 8px; background: var(--brand-ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-chip); z-index: 200; transition: top .15s;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--brand-copper); outline-offset: 2px; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: var(--radius-card);
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-copper); color: #fff; }
.btn-primary:hover { background: #A8702F; }
.btn-secondary { background: transparent; border-color: var(--sand-200); color: var(--brand-ink); }
.btn-secondary:hover { border-color: var(--brand-copper); color: var(--brand-copper); }
.btn-ghost { background: transparent; color: var(--brand-ink); border-color: transparent; padding: 8px 12px; }
.btn-ghost:hover { background: var(--sand-100); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* -------------------------------------------------------- fictional bar -- */
.fictional-bar {
  position: sticky; top: 0; z-index: 100; background: var(--brand-ink); color: var(--sand-50);
  font-size: 13px; font-weight: 600; text-align: center; padding: 9px 12px;
  letter-spacing: .01em;
}
.fictional-bar strong { color: var(--brand-copper-soft); font-weight: 700; }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 90; background: rgba(250,248,245,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sand-200);
}
.site-header.no-fictional-offset { top: 0; }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-ink); }
.brand-logo-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-ink);
  border: 2px solid var(--brand-ink); border-radius: 6px; padding: 3px 8px; line-height: 1;
}
.brand-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-logo-text .name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--brand-ink); }
.brand-logo-text .sub { font-size: 11px; color: var(--stone-500); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a {
  color: var(--brand-ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px;
  border-radius: var(--radius-chip);
}
.main-nav a:hover { background: var(--sand-100); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang-btn { font-size: 13px; font-weight: 600; color: var(--brand-ink); background: none; border: 1px solid var(--sand-200); border-radius: var(--radius-chip); padding: 7px 10px; cursor: pointer; }
.lang-btn:hover { border-color: var(--brand-copper); }

/* Discreet cross-demo switcher (Ka'an Tulum lots <-> Plaza Esmeralda): same
   product, different industry preset. Deliberately understated -- it's a
   detail for whoever is already convinced, not a headline CTA. */
.demo-switch-link {
  font-size: 12.5px; font-weight: 600; color: var(--stone-500); text-decoration: none;
  border: 1px dashed var(--sand-200); border-radius: var(--radius-chip); padding: 6px 10px;
  white-space: nowrap;
}
.demo-switch-link:hover { color: var(--brand-copper); border-color: var(--brand-copper); }
.footer-note { font-size: 11.5px; color: var(--stone-500); width: 100%; order: 10; }

/* --------------------------------------------------------------- hero --- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,34,57,.55) 0%, rgba(11,34,57,.72) 60%, rgba(11,34,57,.88) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 88px 24px 64px; }
.hero-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-copper-soft); margin-bottom: 14px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--brand-copper-soft); margin-bottom: 18px; }
.hero-subtitle { max-width: 620px; font-size: 17px; color: rgba(255,255,255,.88); }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-cta .btn-secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-cta .btn-secondary:hover { color: var(--brand-copper-soft); border-color: var(--brand-copper-soft); }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: #fff; }
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------- map section - */
.map-section { padding: 56px 24px; max-width: 1440px; margin: 0 auto; }
.section-head { margin-bottom: 24px; }
.section-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-copper); }

.map-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.view-switch { display: inline-flex; background: var(--sand-100); border-radius: var(--radius-card); padding: 3px; }
.view-switch button {
  border: none; background: transparent; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: var(--stone-500); cursor: pointer;
}
.view-switch button.is-active { background: #fff; color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.zoom-controls { display: inline-flex; gap: 6px; margin-left: auto; }
.zoom-controls button {
  width: 36px; height: 36px; border-radius: var(--radius-chip); border: 1px solid var(--sand-200); background: #fff;
  font-size: 16px; cursor: pointer; color: var(--brand-ink);
}
.zoom-controls button:hover { border-color: var(--brand-copper); }

.map-layout { display: grid; grid-template-columns: 260px 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .map-layout { grid-template-columns: 240px 1fr; } .detail-col { display: none; } }
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; } .filters-col { order: 2; } .map-col { order: 1; } }

.filters-col {
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-card); padding: 18px;
  position: sticky; top: calc(var(--header-h) + var(--bar-h) + 12px);
}
.filter-group { margin-bottom: 18px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label, .filter-group .fg-label { display: block; font-size: 12px; font-weight: 700; color: var(--brand-ink); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input[type=number] {
  width: 100%; padding: 8px 9px; border: 1px solid var(--sand-200); border-radius: var(--radius-chip); font-size: 13px;
  font-family: var(--font-ui); color: var(--brand-ink);
}
.range-row span { color: var(--stone-500); font-size: 12px; }
select.select-field, .select-field {
  width: 100%; padding: 9px 10px; border: 1px solid var(--sand-200); border-radius: var(--radius-chip);
  font-size: 13px; font-family: var(--font-ui); background: #fff; color: var(--brand-ink);
}
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brand-ink); margin-top: 8px; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--brand-copper); }

.map-col { min-width: 0; }
.map-frame {
  position: relative; background: var(--sand-100); border: 1px solid var(--sand-200); border-radius: var(--radius-card);
  overflow: hidden; aspect-ratio: 1180 / 840;
}
.map-frame svg { width: 100%; height: 100%; display: block; cursor: grab; }
.map-frame svg:active { cursor: grabbing; }
.map-no-results {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: var(--brand-ink); color: #fff;
  font-size: 12.5px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-md); display: none; z-index: 5;
}
.map-no-results.is-visible { display: block; }

.map-tooltip {
  position: absolute; pointer-events: none; background: var(--brand-ink); color: #fff; font-size: 12px;
  padding: 7px 10px; border-radius: 6px; box-shadow: var(--shadow-md); z-index: 6; opacity: 0; transition: opacity .1s;
  max-width: 220px;
}
.map-tooltip.is-visible { opacity: 1; }
.map-tooltip .tt-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; margin-top: 2px; }
.map-tooltip .tt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot-color, #999); display: inline-block; }

.legend {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-card); font-size: 13px;
}
.legend-title { font-weight: 700; color: var(--brand-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-ink); }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--sw-color, #999); flex: none; }
.legend-count { color: var(--stone-500); font-variant-numeric: tabular-nums; }
.legend-live { margin-left: auto; font-size: 11px; color: var(--stone-500); display: inline-flex; gap: 5px; align-items: center; }
.legend-live .pulse { width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* map svg painting -- state channel = fill/dot; brand accent never used here */
.map-frame svg .bm-boundary { fill: var(--sand-100); stroke: var(--brand-ink); stroke-width: 2.4; }
.map-frame svg .bm-green { fill: #CFE3CF; stroke: none; }
.map-frame svg .bm-amenities { fill: var(--brand-copper-soft); stroke: none; }
.map-frame svg .bm-roads { fill: #D6D1C9; stroke: none; }
.map-frame svg .bm-cenote-buffer { fill: #CFE3CF; }
.map-frame svg .bm-cenote { fill: #8FC3D9; stroke: #5E9FBE; stroke-width: 1; }
.map-frame svg .bm-filler { fill: #E9E4DB; stroke: none; }
.map-frame svg .bm-street-label { font-size: 8.5px; fill: var(--stone-500); font-family: var(--font-ui); }
.map-frame svg .bm-poi-label { font-size: 9px; fill: var(--brand-ink); font-weight: 700; font-family: var(--font-ui); }

.map-frame svg .lot { cursor: pointer; }
.map-frame svg .lot-fill { stroke: none; transition: fill-opacity .12s; }
.map-frame svg .lot-outline { fill: none; stroke: var(--brand-ink); stroke-width: .7; stroke-opacity: .35; vector-effect: non-scaling-stroke; }
/* El punto lleva SIEMPRE un contorno de tinta: es lo que garantiza que la marca
   se distinga sobre cualquier fondo (incluida una foto aerea en modo solo-punto)
   sin importar que color elija el cliente para el estado. */
.map-frame svg .lot-dot { fill: var(--status-color, #999); stroke: var(--brand-ink); stroke-opacity: .5; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
/* Oculta por default; se muestra solo con zoom suficiente (.zoom-near). */
.map-frame svg .lot-id-label { font-size: 7.4px; fill: var(--brand-ink); opacity: 0; text-anchor: middle; font-family: var(--font-ui); pointer-events: none; paint-order: stroke; stroke: var(--sand-50); stroke-width: 2.5px; stroke-linejoin: round; transition: opacity .15s ease; }
.map-frame svg.zoom-near .lot-id-label { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .map-frame svg .lot-id-label { transition: none; } }

.map-frame svg.mode-tinte .lot-fill { fill: var(--status-color, #999); fill-opacity: .22; }
.map-frame svg.mode-punto .lot-fill { fill: var(--sand-100); fill-opacity: 1; }
.map-frame svg.mode-punto .lot-dot { r: 6.5; }
.map-frame svg.mode-solido .lot-fill { fill: var(--status-color, #999); fill-opacity: .9; }
.map-frame svg.mode-solido .lot-dot { display: none; }
.map-frame svg.mode-solido .lot-id-label { fill: #fff; stroke: rgba(11,34,57,.55); }
.map-frame svg.mode-solido.zoom-near .lot-id-label { opacity: .95; }

.map-frame svg .lot:hover .lot-outline, .map-frame svg .lot:focus-visible .lot-outline {
  stroke: var(--brand-copper); stroke-width: 2.2; stroke-opacity: 1;
}
.map-frame svg .lot:focus-visible { outline: none; }
.map-frame svg .lot.is-selected .lot-outline { stroke: var(--status-selected); stroke-width: 2.6; stroke-opacity: 1; }
.map-frame svg .lot.is-dimmed { opacity: .18; }
.map-frame svg .lot.is-dimmed:hover { opacity: .5; }

/* ---------------------------------------------------------- detail panel */
.detail-col { position: sticky; top: calc(var(--header-h) + var(--bar-h) + 12px); }
.detail-panel {
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-card); padding: 20px;
  max-height: calc(100vh - var(--header-h) - var(--bar-h) - 40px); overflow-y: auto;
}
.detail-empty { color: var(--stone-500); font-size: 14px; text-align: center; padding: 32px 12px; }
.detail-empty svg { display: block; margin: 0 auto 12px; opacity: .4; }
.detail-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-chip); margin-bottom: 14px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.detail-head h3 { margin: 0; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--sand-100); color: var(--brand-ink); white-space: nowrap; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chip-color, #999); }
.detail-stage { font-size: 12.5px; color: var(--stone-500); margin-bottom: 14px; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0; }
.spec-item .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--stone-500); margin-bottom: 3px; }
.spec-item .v { font-size: 15px; font-weight: 600; color: var(--brand-ink); }
.price-block { background: var(--sand-100); border-radius: var(--radius-card); padding: 14px 16px; margin: 16px 0; }
.price-block .price { font-family: var(--font-display); font-size: 28px; color: var(--brand-ink); font-weight: 600; }
.price-block .per-m2 { font-size: 12.5px; color: var(--stone-500); margin-top: 2px; }
.price-block.is-sold { opacity: .6; }

.reserve-banner { background: #FFF4E1; border: 1px solid #F5A524; color: #7A4E0C; border-radius: var(--radius-chip); padding: 10px 12px; font-size: 12.5px; margin-bottom: 14px; }
.reserve-banner strong { display: block; font-variant-numeric: tabular-nums; font-size: 14px; margin-top: 2px; }

.detail-actions { display: flex; gap: 8px; margin: 16px 0; }

details.calc-details, details.lead-details { border-top: 1px solid var(--sand-200); padding-top: 14px; margin-top: 14px; }
details.calc-details summary, details.lead-details summary {
  cursor: pointer; font-weight: 700; color: var(--brand-ink); font-size: 14px; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
details.calc-details summary::-webkit-details-marker, details.lead-details summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 18px; color: var(--brand-copper); }
details[open] summary::after { content: "\2212"; }

.calc-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin: 10px 0; font-size: 13px; }
.calc-row input[type=range] { grid-column: 1 / -1; accent-color: var(--brand-copper); }
.calc-result { background: var(--sand-100); border-radius: var(--radius-chip); padding: 12px; margin-top: 10px; }
.calc-result .amount { font-family: var(--font-display); font-size: 22px; color: var(--brand-ink); }
.calc-result .fine { font-size: 11.5px; color: var(--stone-500); margin-top: 6px; }

.lead-form .field { margin-bottom: 10px; }
.lead-form label { display: block; font-size: 12px; font-weight: 600; color: var(--brand-ink); margin-bottom: 5px; }
.lead-form input {
  width: 100%; padding: 9px 10px; border: 1px solid var(--sand-200); border-radius: var(--radius-chip); font-size: 13.5px;
  font-family: var(--font-ui);
}
.lead-form input.has-error { border-color: #C0392B; }
.form-notice { font-size: 11.5px; color: var(--stone-500); margin-top: 8px; }
.form-success { background: #EAF6EE; border: 1px solid #2E9E5B; color: #1F6B3D; border-radius: var(--radius-chip); padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.form-error { color: #C0392B; font-size: 12.5px; margin-top: 6px; }

/* ---------------------------------------------------- mobile bottom sheet */
.bottom-sheet-backdrop { position: fixed; inset: 0; background: rgba(11,34,57,.4); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .18s; }
.bottom-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.bottom-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 151; background: #fff; border-radius: 16px 16px 0 0;
  max-height: 85vh; overflow-y: auto; transform: translateY(100%); transition: transform .22s ease; box-shadow: var(--shadow-md);
  padding: 10px 20px 28px;
}
.bottom-sheet.is-open { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; background: var(--sand-200); border-radius: 2px; margin: 8px auto 14px; }
@media (prefers-reduced-motion: reduce) { .bottom-sheet, .bottom-sheet-backdrop { transition: none; } }

/* ------------------------------------------------------------ table view */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-card); }
table.lots-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.lots-table th { text-align: left; padding: 12px 14px; background: var(--sand-100); color: var(--brand-ink); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; white-space: nowrap; position: sticky; top: 0; }
table.lots-table th:hover { color: var(--brand-copper); }
table.lots-table th .arrow { opacity: .5; font-size: 10px; }
table.lots-table td { padding: 11px 14px; border-top: 1px solid var(--sand-200); color: var(--brand-ink); white-space: nowrap; }
table.lots-table tbody tr:hover { background: var(--sand-100); cursor: pointer; }
table.lots-table .status-chip { font-size: 11px; padding: 4px 8px; }

/* ---------------------------------------------------------- info sections */
.info-section { padding: 56px 24px; max-width: 1280px; margin: 0 auto; }
.info-section.alt { background: var(--sand-100); max-width: none; }
.info-section.alt .info-inner { max-width: 1280px; margin: 0 auto; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.info-grid img { border-radius: var(--radius-card); box-shadow: var(--shadow-sm); aspect-ratio: 4/3; object-fit: cover; }
.info-grid.reverse { direction: rtl; } .info-grid.reverse > * { direction: ltr; }

.contact-card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-card); padding: 28px; max-width: 560px; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--sand-200); padding: 28px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--stone-500); }
.footer-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--stone-500); text-decoration: none; }
.footer-links a:hover { color: var(--brand-copper); }
.availoc-credit { display: inline-flex; align-items: center; gap: 6px; }
.availoc-credit .mark { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ toast */
.toast-stack { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--brand-ink); color: #fff; font-size: 13px; padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ------------------------------------------------------------------ modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,34,57,.55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #fff; border-radius: var(--radius-card); padding: 28px; max-width: 400px; width: 100%; box-shadow: var(--shadow-md); }
.modal-card h2 { font-size: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); margin-bottom: 6px; }
.field input { width: 100%; padding: 10px 11px; border: 1px solid var(--sand-200); border-radius: var(--radius-chip); font-size: 14px; font-family: var(--font-ui); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 480px) {
  .hero-content { padding: 64px 18px 40px; }
  .map-section, .info-section { padding: 36px 16px; }
  .legend { font-size: 12px; }
}
