/* House Guide — mobile-first, no framework */

:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #2b2925;
  --ink-soft: #6b675f;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --accent-soft: #e4efeb;
  --border: #e7e2d8;
  --shadow: 0 1px 3px rgba(43, 41, 37, 0.08);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191a;
    --card: #212426;
    --ink: #ece9e3;
    --ink-soft: #a5a19a;
    --accent: #7fc7ae;
    --accent-ink: #10231d;
    --accent-soft: #24332e;
    --border: #33373a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--accent);
  color: var(--accent-ink);
  padding: max(20px, env(safe-area-inset-top)) 16px 18px;
}
.header-inner { max-width: 720px; margin: 0 auto; }
.site-header h1 { margin: 0; font-size: 1.55rem; letter-spacing: -0.01em; }
.tagline { margin: 2px 0 0; opacity: 0.85; font-size: 0.95rem; }

/* ---------- search ---------- */
.searchbar-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
#search {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
}
#search:focus { border-color: var(--accent); }

/* ---------- draft banner ---------- */
.draft-banner {
  background: #fdf3d7;
  color: #6b5620;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}
@media (prefers-color-scheme: dark) {
  .draft-banner { background: #3a3320; color: #e5d191; }
}

/* ---------- quick facts ---------- */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 6px;
}
@media (min-width: 540px) {
  .quick-facts { grid-template-columns: repeat(4, 1fr); }
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
}
.fact-icon { font-size: 1.3rem; }
.fact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.fact-value { font-weight: 650; font-size: 0.98rem; }

/* ---------- section nav chips ---------- */
.section-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- sections ---------- */
.guide-section { margin-top: 26px; scroll-margin-top: 76px; }
.guide-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.18rem;
  margin: 0 0 10px;
}
.section-icon { font-size: 1.25rem; }
.section-intro { margin: -4px 0 10px; color: var(--ink-soft); font-size: 0.95rem; }
.section-body { display: flex; flex-direction: column; gap: 10px; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 76px;
}
.static-card { padding: 14px 16px; }

details.card > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 40px 14px 16px;
  font-weight: 600;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
details.card[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
details.card .answer { padding: 0 16px 14px; color: var(--ink); }
details.card .answer a { color: var(--accent); }

/* ---------- wifi ---------- */
.wifi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.wifi-label {
  flex: 0 0 78px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.wifi-row code {
  flex: 1;
  font-size: 1rem;
  font-weight: 650;
  word-break: break-all;
}
.copy-btn {
  flex: 0 0 auto;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- checklist ---------- */
.checklist-note { margin: 0 0 10px; }
.checklist { display: flex; flex-direction: column; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.check-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.check-row input:checked + span {
  text-decoration: line-through;
  color: var(--ink-soft);
}
.ghost-btn {
  margin-top: 10px;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- places ---------- */
.place-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.place-head strong { font-size: 1.02rem; }
.place-meta { color: var(--ink-soft); font-size: 0.85rem; }
.place-note { margin: 4px 0 8px; font-size: 0.95rem; }
.place-links { display: flex; gap: 14px; }
.map-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* ---------- no results ---------- */
.no-results {
  margin: 24px 0;
  padding: 16px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.no-results a { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 22px 16px 8px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer h2 { font-size: 1.1rem; margin: 0 0 6px; }
.site-footer p { color: var(--ink-soft); font-size: 0.93rem; margin: 4px 0 14px; }
.contact-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
}
.btn-secondary {
  background: var(--accent-soft);
  color: var(--ink);
}
.address { font-size: 0.85rem; }
