:root {
  --ink: #1c2430;
  --ink-soft: #3d4a5c;
  --muted: #5e6b7a;
  --cream: #f4efe6;
  --paper: #fffcf7;
  --card: #ffffff;
  --line: #e4d9c8;
  --navy: #1a3a4a;
  --navy-deep: #122832;
  --teal: #2a5f78;
  --coral: #c45c4a;
  --gold: #c4a574;
  --gold-soft: #e8d5b5;
  --ok: #2f6b4f;
  --ok-bg: #e8f4ee;
  --warn: #8a5a18;
  --warn-bg: #f6ecd8;
  --shadow: 0 16px 40px rgba(18, 40, 50, 0.10);
  --radius: 22px;
  --font: "Source Sans 3", "Noto Sans", sans-serif;
  --serif: "Cormorant Garamond", "Source Serif 4", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 40, 50, 0.94);
  backdrop-filter: blur(12px);
  color: #f7f1e6;
  border-bottom: 1px solid rgba(196, 165, 116, 0.25);
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px;
}
.logo {
  color: inherit; text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em;
}
.logo span { color: var(--gold-soft); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #f7f1e6; text-decoration: none;
  font-size: 0.92rem; padding: 6px 10px; border-radius: 999px;
  opacity: 0.88;
}
.nav a:hover { background: rgba(255,255,255,0.08); opacity: 1; }

.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196,165,116,0.22), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(42,95,120,0.28), transparent 45%),
    var(--navy-deep);
  color: #f8f3ea;
  overflow: hidden;
  padding: 56px 20px 72px;
}
.hero svg.thames {
  position: absolute; right: -80px; bottom: -20px;
  width: min(720px, 90vw); opacity: 0.18; pointer-events: none;
}
.hero-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.kicker {
  display: inline-block;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.75rem; color: var(--gold-soft); margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.lede {
  max-width: 640px;
  font-size: 1.12rem;
  color: #e8e0d2;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; text-decoration: none;
  border-radius: 999px; padding: 12px 20px;
  font-weight: 600;
}
.btn-gold { background: var(--gold-soft); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(247,241,230,0.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section-intro { color: var(--ink-soft); max-width: 680px; margin: 0 0 28px; }

.map-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.filters label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.filters select {
  min-width: 160px; background: var(--cream);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 10px;
}
#map {
  height: min(68vh, 620px);
  width: 100%;
  background: #dfe8e4;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  padding: 12px 16px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.swatch {
  display: inline-flex; align-items: center; gap: 6px;
}
.swatch i {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}

.quiz {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}
.quiz fieldset {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0;
  background: var(--cream);
}
.quiz legend { font-weight: 700; padding: 0 4px; }
.quiz label { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 0.95rem; }
.quiz-result {
  display: none;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.quiz-result.visible { display: block; }
.match-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.match-pills button {
  border: 0; background: var(--navy); color: #fff;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600;
}

.rank-list { display: grid; gap: 12px; }
.rank-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-shadow: 0 1px 0 rgba(18,40,50,0.03);
}
.rank-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.rank-card.top { background: linear-gradient(180deg, #fff9ef, #fff); border-color: var(--gold-soft); }
.rank-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--navy);
  min-width: 2ch;
}
.rank-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.rank-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.rank-meta { color: var(--muted); font-size: 0.85rem; text-align: right; white-space: nowrap; }
.verdict-chip {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  margin-top: 8px;
}
.verdict-chip.yes { background: var(--ok-bg); color: var(--ok); }
.verdict-chip.if { background: var(--warn-bg); color: var(--warn); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.area-card.hidden { display: none; }
.area-card.highlight { outline: 2px solid var(--teal); }
.area-card h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0; }
.meta-row, .tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag, .meta {
  font-size: 0.78rem; font-weight: 600;
  border-radius: 999px; padding: 3px 8px;
  background: var(--cream); color: var(--ink-soft);
}
.tag { color: #fff; }
.verdict-banner {
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--ok-bg);
  color: var(--ink);
}
.verdict-banner.if { background: var(--warn-bg); }
.verdict-banner strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gain, .loss {
  border-radius: 16px;
  padding: 12px;
  font-size: 0.92rem;
}
.gain { background: #eef6f1; }
.loss { background: #f8eeea; }
.gain h4, .loss h4 { margin: 0 0 6px; font-size: 0.88rem; }
.gain ul, .loss ul, .facts ul { margin: 0; padding-left: 18px; }
.facts { color: var(--ink-soft); font-size: 0.95rem; }
.facts p { margin: 0 0 8px; }
.card-open {
  margin-top: auto;
  align-self: start;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}
.guide-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.guide-card p, .guide-card li { color: var(--ink-soft); }
.note {
  background: #fff9ef;
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 18px;
  color: var(--ink-soft);
}

.ask-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.ask-form { display: grid; gap: 10px; max-width: 680px; }
.ask-form input, .ask-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--cream);
}
.ask-form textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.qa-list { display: grid; gap: 12px; margin-top: 24px; }
.qa-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.qa-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.qa-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.answer .by { font-weight: 700; color: var(--navy); }
.pending { font-style: italic; color: var(--muted); }

.sources { color: var(--muted); font-size: 0.9rem; }
.sources a { color: var(--teal); }
.site-footer {
  background: var(--navy-deep);
  color: #d9d0c3;
  padding: 28px 20px 40px;
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.leaflet-container { font-family: var(--font); }
.pin {
  width: 28px; height: 28px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.pin-inner {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; position: absolute; top: 8px; left: 8px;
  transform: none;
}
.pin-wrap { position: relative; }
.pin-label {
  position: absolute; left: 32px; top: 2px;
  transform: none;
  background: #fff; color: var(--ink);
  font-weight: 700; font-size: 11px;
  padding: 2px 6px; border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(18,40,50,0.45);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 90;
  background: #fff;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shadow);
  padding: 18px 18px 28px;
}
@media (max-width: 799px) {
  .sheet {
    left: 0; right: 0; bottom: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(110%);
    transition: transform .28s ease;
  }
  .sheet.open { transform: translateY(0); }
  .nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .rank-card { grid-template-columns: auto 1fr; }
  .rank-meta { text-align: left; grid-column: 2; white-space: normal; }
}
@media (min-width: 800px) {
  .sheet {
    top: 0; right: 0; height: 100%;
    border-radius: 0;
    transform: translateX(110%);
    transition: transform .28s ease;
  }
  .sheet.open { transform: translateX(0); }
}
.sheet-close {
  position: sticky; top: 0; float: right;
  border: 0; background: var(--cream);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}

.mode-toggle, .cat-row, .tabs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
#stay-filters { display: flex; flex-wrap: wrap; gap: 10px; }
#stay-filters[hidden], #do-filters[hidden] { display: none !important; }
.chip, .tab {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
}
.chip.on, .tab.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.itin { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.tabs { margin-bottom: 16px; }
.itin-day { padding: 16px 0; border-top: 1px solid var(--line); }
.itin-day:first-of-type { border-top: 0; }
.itin-day h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.45rem; }
.itin-day .geo { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }
.itin-day p { color: var(--ink-soft); }
.daytrips { margin-top: 28px; }
.subhead { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 14px; }
