/* Haus Guidebooks — field-guide house manual. Mobile-first, navy + teal. */
:root {
  --navy: #17293C; --navy-2: #1F3A54; --navy-3: #0F1E2D;
  --teal: #70BBB4; --teal-deep: #2E6B64; --teal-wash: #E7F2F0;
  --stone: #EFEAE0; --paper: #FBFCFB; --pine: #243B2E;
  --ink: #17293C; --muted: #5C6B79; --line: #E5E8EA; --line-2: #EEF0F1;
  --accent: var(--teal);            /* per-property overridable */
  --accent-ink: var(--teal-deep);
  --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23,41,60,.05), 0 8px 24px rgba(23,41,60,.06);
  --shadow-lg: 0 12px 40px rgba(23,41,60,.16);
  --nav-h: 62px;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.55; font-size: 16.5px; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78svh; display: grid; place-items: center;
  text-align: center; color: #fff; padding: 40px 22px 56px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; transform: scale(1.03); }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,45,.42) 0%, rgba(15,30,45,.30) 40%, rgba(15,30,45,.72) 100%); }
.hero__inner { position: relative; z-index: 1; max-width: 560px; }
.hero__logo { width: 60px; height: auto; margin: 0 auto 18px; opacity: .96; }
.hero__eyebrow { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; opacity: .82; margin: 0 0 20px; }
.hero__name { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 8vw, 3.4rem);
  line-height: 1.02; margin: 0 0 18px; letter-spacing: -.01em; text-wrap: balance; }
.hero__addr { font-size: 15px; opacity: .9; margin: 0 auto 26px; display: inline-flex; gap: 7px;
  align-items: center; }
.hero__addr svg { width: 15px; height: 15px; opacity: .85; }
.hero__cta { display: inline-flex; align-items: center; gap: 9px; background: var(--accent);
  color: var(--navy-3); font-family: var(--sans); font-weight: 700; font-size: 15px;
  border: 0; border-radius: 999px; padding: 13px 26px; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s ease; }
.hero__cta:hover { transform: translateY(-1px); }
.hero__cta svg { width: 17px; height: 17px; }
.hero__contacts { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.hero__contacts a { display: inline-flex; align-items: center; gap: 7px; color: #fff;
  text-decoration: none; font-size: 13.5px; font-weight: 600; opacity: .92;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 8px 15px;
  backdrop-filter: blur(4px); background: rgba(255,255,255,.06); }
.hero__contacts svg { width: 14px; height: 14px; }
.hero__scroll { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 1; opacity: .6; animation: bob 2.4s ease-in-out infinite; }
.hero__scroll svg { width: 24px; height: 24px; color: #fff; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* ---------- Shell ---------- */
main { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.panel { display: none; }
.panel.is-active { display: block; }
.section-head { padding: 30px 4px 10px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 0;
  color: var(--navy); letter-spacing: -.01em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Category accordion ---------- */
.cat { border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  margin: 12px 0; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 12px; }
.cat__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 18px;
  background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--sans);
  color: var(--navy); }
.cat__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid;
  place-items: center; background: var(--teal-wash); color: var(--teal-deep); }
.cat__icon svg { width: 22px; height: 22px; }
.cat__title { flex: 1; font-weight: 700; font-size: 16.5px; }
.cat__count { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.cat__chev { flex: none; color: var(--muted); transition: transform .22s ease; display: grid; }
.cat__chev svg { width: 18px; height: 18px; }
.cat[open] .cat__chev, .cat.is-open .cat__chev { transform: rotate(180deg); }
.cat__body { padding: 0 18px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease; }
.cat.is-open .cat__body { max-height: none; padding: 0 18px 6px; }

/* ---------- Topic ---------- */
.topic { padding: 16px 0; border-top: 1px solid var(--line-2); }
.topic:first-child { border-top: 0; }
.topic__title { font-weight: 700; font-size: 15.5px; margin: 0 0 8px; color: var(--navy);
  display: flex; gap: 8px; align-items: baseline; }
.topic__photo { border-radius: var(--r-sm); margin: 0 0 12px; width: 100%; height: auto;
  aspect-ratio: 16/10; object-fit: cover; background: var(--stone); }
.topic__body { font-size: 15px; color: #2a3a48; }
.topic__body p { margin: 0 0 10px; } .topic__body p:last-child { margin-bottom: 0; }
.topic__body ul, .topic__body ol { margin: 8px 0; padding-left: 20px; }
.topic__body li { margin: 4px 0; }
.topic__body a { color: var(--accent-ink); font-weight: 600; }
.topic__body h3, .topic__body h4 { font-size: 15px; margin: 12px 0 6px; color: var(--navy); }
.topic__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.topic__link svg { width: 13px; height: 13px; }

/* ---------- Quick facts strip (Start Here) ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 2px; }
.fact { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--paper); }
.fact__k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact__v { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 2px; }

/* ---------- Map ---------- */
#map-view { height: 56svh; min-height: 340px; border-radius: var(--r); overflow: hidden;
  margin: 8px 0 14px; border: 1px solid var(--line); z-index: 0; }
.poi-filter { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.poi-filter button { flex: none; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.poi-filter button.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.poi-list { list-style: none; margin: 0 0 20px; padding: 0; }
.poi { display: flex; gap: 12px; align-items: flex-start; padding: 13px 2px; border-top: 1px solid var(--line-2); }
.poi__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.poi__main { flex: 1; min-width: 0; }
.poi__name { font-weight: 700; font-size: 15px; color: var(--navy); }
.poi__meta { font-size: 12.5px; color: var(--muted); text-transform: capitalize; }
.poi__go { flex: none; align-self: center; font-size: 12.5px; font-weight: 700; color: var(--accent-ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.poi__go svg { width: 13px; height: 13px; }

/* ---------- Search ---------- */
#search-panel .search-box { position: sticky; top: 0; background: var(--paper); padding: 18px 0 10px; z-index: 2; }
#search-panel input { width: 100%; font-family: var(--sans); font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
#search-panel input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.result { display: block; padding: 14px 4px; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.result__crumb { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; }
.result__title { font-weight: 700; font-size: 15px; color: var(--navy); margin: 2px 0; }
.result__snip { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 15px; }

/* ---------- Bottom compass nav ---------- */
.compass { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: rgba(23,41,60,.97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08); }
.compass button { flex: 1; background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer;
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 0; }
.compass button svg { width: 21px; height: 21px; }
.compass button.is-on { color: var(--accent); }
.compass button.is-on svg { stroke: var(--accent); }

/* ---------- misc ---------- */
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 26px 16px 34px; }
.foot svg { width: 26px; height: auto; opacity: .5; margin-bottom: 8px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}
