/* PropHerald shared page styles. Content pages (detail, transit, about, …)
   link this; the full-screen map keeps its own app styles. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #898781;
  --border: #e5e3da;
  --accent: #215199;
  --accent-dark: #1A4076;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 64rem;
  padding: 0 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ---- Site header ---- */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px 0 12px;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--text) !important;
}
.site-nav { font-size: 13.5px; }
.site-nav a { color: var(--text-2); }
.site-nav a:hover { color: var(--accent); }
.site-nav .sep { color: var(--border); margin: 0 7px; }

/* ---- Header search (every content page; the map has its own) ---- */
.hdr-search { position: relative; flex: 1 1 220px; max-width: 340px; min-width: 160px; }
.hdr-search input {
  width: 100%; box-sizing: border-box; padding: 7px 11px; font-size: 16px;
  border: 1px solid #c9c7bc; border-radius: 8px; background: var(--surface);
}
.hdr-search .drop {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  z-index: 1200; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 2px 8px rgba(11, 11, 11, 0.15);
  max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.hdr-search .drop.open { display: block; }
.hdr-search .hit { padding: 8px 12px; cursor: pointer; font-size: 13.5px; }
.hdr-search .hit:hover { background: #E9EFF7; }
.hdr-search .hit .k { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
@media (max-width: 640px) {
  .hdr-search { flex-basis: 100%; max-width: none; order: 9; }
}

/* ---- Typography ---- */
h1 { margin: 0 0 0.15rem; font-size: 24px; letter-spacing: -0.01em; }
.sub { color: var(--text-2); margin-top: 0; }
.meta { color: var(--muted); font-size: 13px; margin: 0.2rem 0 1rem; }
.muted { color: var(--muted); font-size: 12.5px; }
.context { color: var(--text-2); font-size: 13.5px; margin: 0.35rem 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Cards: one card per information group ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0.9rem 0;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.04);
}
.card > h2 {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.card h3 {
  font-size: 14.5px;
  font-weight: 650;
  margin: 1.2rem 0 0.4rem;
}
.card h3:first-of-type { margin-top: 0; }

/* ---- Facts grid (At a glance) ---- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 18px;
}
.facts .k {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}
.facts .v {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin: 1px 0 0;
  font-variant-numeric: tabular-nums;
}

/* ---- Tables ---- */
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td {
  text-align: left;
  padding: 0.38rem 0.6rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
th {
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border-bottom: 1.5px solid var(--border);
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Callouts ---- */
.warn {
  background: #fdf0ee; border: 1px solid #ec835a; color: #8a2f13;
  border-radius: 8px; padding: 9px 13px; margin: 0.8rem 0; font-size: 13.5px;
}
.note {
  background: #fdf6ec; border: 1px solid #eda100; color: #6b4600;
  border-radius: 8px; padding: 9px 13px; margin: 0.8rem 0; font-size: 13.5px;
}
.ok {
  background: #eefaf0; border: 1px solid #0ca30c; color: #0b5a0b;
  border-radius: 8px; padding: 9px 13px; margin: 0.8rem 0; font-size: 13.5px;
}
.error {
  background: #fdf0ee; border: 1px solid #ec835a; color: #8a2f13;
  border-radius: 8px; padding: 9px 13px; margin: 0.8rem 0; font-size: 13.5px;
}

/* ---- Controls ---- */
button, .btn {
  border: 1px solid #c9c7bc;
  background: var(--surface);
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
}
button:hover, .btn:hover { border-color: var(--muted); }
button.primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  font-weight: 600; padding: 9px 22px; font-size: 14px;
}
button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
input[type="email"], input[type="text"], textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  font-size: 16px; font-family: inherit;
  border: 1px solid #c9c7bc; border-radius: 7px; background: var(--surface);
}
label { display: block; font-size: 13px; color: var(--text-2); margin: 14px 0 4px; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 2.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
}
.site-footer a { color: var(--muted); text-decoration: underline; }

code {
  background: #efede6; padding: 0.1rem 0.35rem; border-radius: 4px;
  font-size: 0.92em;
}
