/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #fafaf8;
  --surface:  #ffffff;
  --border:   #e5e5e0;
  --text:     #1a1a1a;
  --muted:    #666660;
  --accent:   #2d6a4f;
  --accent-l: #52b788;
  --accent-bg:#f0f7f4;
  --nav-bg:   #1a2e24;
  --nav-text: #d8f3dc;
  --radius:   8px;
  --shadow:   0 2px 8px rgba(0,0,0,.08);
  --max-w:    860px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Top nav ──────────────────────────────────────────────── */
.site-nav {
  background: var(--nav-bg);
  color: var(--nav-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  font-weight: 700;
  font-size: .95rem;
  color: var(--nav-text);
  text-decoration: none;
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: .82rem;
  padding: .35rem .65rem;
  border-radius: 4px;
  transition: background .15s;
  opacity: .85;
}

.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.15); opacity: 1; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--nav-text);
}
.nav-toggle svg { display: block; }

/* ── Page wrapper ─────────────────────────────────────────── */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* ── Hero / photo strip ───────────────────────────────────── */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  background: #ccc;
  aspect-ratio: 16/7;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
}

.hero-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  line-height: 1.2;
}

.hero-subtitle {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  margin-top: .25rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── Photo gallery (3-up) ─────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .3s;
  cursor: pointer;
}

.gallery img:hover { transform: scale(1.03); }

/* ── Score badges ─────────────────────────────────────────── */
.scorecard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin: 1.25rem 0 2rem;
}

.score-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.score-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .35rem;
}

.score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.score-max {
  font-size: .75rem;
  color: var(--muted);
}

/* ── Prose content ───────────────────────────────────────── */
.content h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .5rem; }
.content h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: .6rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--accent-bg);
  color: var(--accent);
}
.content h3 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: .4rem; }

.content p { margin-bottom: .9rem; }

.content ul, .content ol {
  padding-left: 1.4rem;
  margin-bottom: .9rem;
}
.content li { margin-bottom: .3rem; }

.content strong { font-weight: 600; }

/* ── Summary bar ─────────────────────────────────────────── */
.summary-bar {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1.1rem;
  margin-bottom: 1.75rem;
  font-size: .92rem;
  color: var(--text);
}

/* ── Budget table ─────────────────────────────────────────── */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .88rem;
}

.budget-table th, .budget-table td {
  padding: .55rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.budget-table th {
  background: var(--accent-bg);
  font-weight: 600;
  color: var(--accent);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.budget-table tr:last-child td {
  font-weight: 700;
  background: var(--accent-bg);
}

.budget-table tr:hover td { background: #f5f5f0; }

/* ── Comparison table (shortlist) ───────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: .85rem;
}

.comparison-table th {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: .6rem .7rem;
  text-align: left;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.comparison-table td {
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tr:nth-child(even) td { background: #f7f7f4; }
.comparison-table tr:hover td { background: var(--accent-bg); }

.comparison-table td:first-child { font-weight: 600; }

.comparison-table a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.comparison-table a:hover { text-decoration: underline; }

.flag-note { color: var(--accent); font-weight: 700; }

/* ── Flight chip ─────────────────────────────────────────── */
.flight-info {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-l);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  margin: .5rem 0 1.25rem;
}

/* ── Destination card grid (index) ───────────────────────── */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.dest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.dest-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
  transform: translateY(-3px);
}

.dest-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.dest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}

.dest-card:hover .dest-card-img img { transform: scale(1.05); }

.dest-card-body {
  padding: .85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dest-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.dest-card-desc {
  font-size: .82rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: .65rem;
}

.mini-scores {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
}

.mini-score {
  background: var(--accent-bg);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 4px;
}

/* ── Practical notes box ─────────────────────────────────── */
.practical-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .88rem;
}

.practical-box h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .75rem;
}

.practical-box ul { padding-left: 1.25rem; }
.practical-box li { margin-bottom: .45rem; }

/* ── Related pages ───────────────────────────────────────── */
.related {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.related-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-right: .25rem;
}

.related a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 20px;
  transition: background .15s, border-color .15s;
}

.related a:hover {
  background: var(--accent-bg);
  border-color: var(--accent-l);
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}

/* ── Misc ─────────────────────────────────────────────────── */
.meta {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 4px;
  padding: .1rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  margin-right: .3rem;
}

hr { border: none; border-top: 1px solid var(--border); margin: 1.75rem 0; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    background: var(--nav-bg);
    padding: .5rem 1rem 1rem;
    gap: .15rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  .nav-links.open a { padding: .5rem .75rem; font-size: .9rem; }
  .nav-toggle { display: block; }

  .gallery { grid-template-columns: repeat(3, 1fr); gap: .3rem; }
  .scorecard { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .score-value { font-size: 1.2rem; }

  .dest-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .dest-card-title { font-size: .92rem; }
  .dest-card-desc { font-size: .77rem; }

  .comparison-table { font-size: .75rem; }
  .comparison-table th, .comparison-table td { padding: .45rem .45rem; }

  .budget-table { font-size: .78rem; }
  .budget-table th, .budget-table td { padding: .45rem .5rem; }

  .page { padding: 1.25rem .75rem 3rem; }
  .hero { aspect-ratio: 16/9; }
}

@media (max-width: 400px) {
  .dest-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
