/* Travel Atlas - coffee-table-book styling.
   Warm paper, Playfair Display headings, generous whitespace.
   Responsive: mobile-first, breakpoints at 640px and 1024px. */

:root {
  --paper: #faf6ef;
  --ink: #2b2620;
  --ink-soft: #6b6156;
  --ink-faint: #8a8177;
  --accent: #8a5a2b;
  --accent-deep: #6d4520;
  --line: #e2d8c6;
  --card: #fffdf8;
  --warn: #a33b2e;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip;
  background: var(--paper); }

body {
  margin: 0;
  /* transparent: the fixed .map-bg (z-index:0) must paint above the
     page background, so the paper color lives on <html> instead */
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 3px double var(--line);
  padding: 1.1rem 0 0.8rem;
  margin-bottom: 0;
  /* transparent so the front-page map background shows through */
}
.header-row { display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.brand {
  font-family: var(--display);
  font-size: 1.9rem; font-weight: 700; color: var(--ink);
  text-decoration: none; letter-spacing: 0.02em;
}
.tagline { margin: 0.1rem 0 0; color: var(--ink-soft); font-style: italic;
  font-size: 0.95rem; }
.user-nav { display: flex; gap: 0.9rem; align-items: center;
  font-size: 0.95rem; padding-top: 0.5rem; flex-wrap: wrap; }
.user-nav a { color: var(--accent); }

.site-footer {
  border-top: 3px double var(--line);
  margin-top: 3rem; padding: 1.25rem 0 2.5rem;
  color: var(--ink-soft); font-size: 0.9rem;
}
.site-footer .freshness { font-style: italic; margin-top: 0.4rem; }

/* ---------- homepage masthead ---------- */
.masthead {
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  border-bottom: 3px double var(--line);
  margin-bottom: 2rem;
}
.masthead .kicker {
  text-transform: uppercase; letter-spacing: 0.35em;
  font-size: 0.8rem; color: var(--accent); margin: 0 0 1rem;
}
.masthead h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin: 0 0 0.75rem; line-height: 1.05;
}
.masthead .lede {
  font-style: italic; color: var(--ink-soft);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  max-width: 40rem; margin: 0 auto;
}
.masthead-rule {
  width: 5rem; border: none; border-top: 2px solid var(--accent);
  margin: 1.5rem auto 0;
}

/* ---------- filter form ---------- */
.filters {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; }
.filter-row:last-child { margin-bottom: 0; }
.filters label { display: flex; flex-direction: column; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.filters input, .filters select {
  font-family: inherit; font-size: 1rem; padding: 0.45rem 0.55rem;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  min-width: 10rem; color: var(--ink);
}
.filters button {
  font-family: inherit; font-size: 1rem; padding: 0.5rem 1.4rem;
  background: var(--accent); color: #fff; border: none; border-radius: 4px;
  cursor: pointer;
}
.filters button:hover { background: var(--accent-deep); }
.filters .clear { align-self: center; color: var(--accent); }

/* ---------- dual-thumb temperature slider (search) ---------- */
.temp-filter { flex: 1 1 22rem; min-width: 16rem; }
.temp-filter-label { display: block; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 0.15rem; }
.temp-filter-label small { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.dual-range { position: relative; height: 2.4rem; }
.dual-track { position: absolute; left: 0; right: 0; top: 50%; height: 6px;
  margin-top: -3px; border-radius: 3px; background: var(--line); }
.dual-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px;
  background: var(--accent); }
.dual-range input[type="range"] { position: absolute; left: 0; top: 50%; width: 100%;
  height: 2.4rem; margin: -1.2rem 0 0; -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none; }
.dual-range input[type="range"]#temp-hi { z-index: 2; }
.dual-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none;
  appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--accent);
  box-shadow: 0 1px 3px rgba(60, 40, 20, 0.35); cursor: pointer; }
.dual-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 22px;
  height: 22px; border-radius: 50%; background: var(--card);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 3px rgba(60, 40, 20, 0.35); cursor: pointer; }
.dual-range input[type="range"]::-moz-range-track { background: transparent; }
.dual-readout { display: flex; gap: 0.5rem; align-items: baseline; font-weight: 600;
  color: var(--ink); }
.dual-sep { font-weight: 400; color: var(--ink-soft); }

.result-count { color: var(--ink-soft); font-style: italic; }

/* ---------- safety strip ---------- */
.safety-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.safety-label {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.safety-pill {
  display: inline-block; text-decoration: none; border-radius: 999px;
  padding: 0.35rem 0.95rem; font-size: 0.9rem; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
}
.safety-pill.l4 { background: #a33b2e; border-color: #a33b2e; color: #fff; }
.safety-pill.l3 { background: #f3d9d4; border-color: #d8a89f; color: #7c2d22; }

/* ---------- country cards ---------- */
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: 1.6rem; margin: 0 0 1rem;
}
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-2px); }
.card-photo {
  aspect-ratio: 16 / 10; overflow: hidden; background: #e9e0cf;
  margin: 0; flex: none;
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-photo .no-photo {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem;
}
.card-body { padding: 0.9rem 1rem 1rem; }
.card-body h2 {
  font-family: var(--display); font-weight: 700;
  margin: 0 0 0.15rem; font-size: 1.3rem; line-height: 1.2;
}
.card-sub { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.badges { margin: 0.55rem 0 0; }
.badge {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; background: #efe7d7; border-radius: 3px;
  padding: 0.18rem 0.5rem; margin: 0 0.35rem 0.25rem 0;
}
.badge.warn { background: #f3d9d4; color: var(--warn); }

.pager { text-align: center; margin: 2.5rem 0; }
.pager a { color: var(--accent); margin: 0 1rem; }

/* ---------- country page: full-bleed chapter hero ---------- */
.hero-full {
  width: 100vw; max-width: 100vw;
  margin: 0 0 2rem calc(50% - 50vw);
  position: relative; background: #221d16; color: #fff;
}
.hero-full img {
  width: 100%; height: clamp(320px, 52vw, 560px);
  object-fit: cover; display: block; opacity: 0.92;
}
.hero-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 4rem 1.25rem 1.75rem;
  background: linear-gradient(to top, rgba(20,15,8,0.88) 0%,
              rgba(20,15,8,0.45) 55%, transparent 100%);
}
.hero-overlay .wrap { padding: 0; }
.hero-overlay .country-flag { font-size: 2.6rem; }
.hero-overlay h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  margin: 0.2rem 0 0.3rem; line-height: 1.02; color: #fff;
}
.hero-overlay .country-sub {
  color: #f0e6d2; font-style: italic; margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}
.hero-credit {
  position: absolute; top: 0.6rem; right: 0.9rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45); padding: 0.2rem 0.55rem;
  border-radius: 3px; max-width: 70%;
}
.hero-credit a { color: #fff; }
/* text-only hero when no photo yet */
.hero-plain {
  text-align: center; padding: 3rem 1.25rem 2rem;
  border-bottom: 3px double var(--line); margin-bottom: 2rem;
}
.hero-plain h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 4rem); margin: 0.25rem 0;
}
.hero-plain .country-flag { font-size: 3.5rem; }
.hero-plain .country-sub { color: var(--ink-soft); font-style: italic; }

/* ---------- fact sections ---------- */
.country-page > section { margin-bottom: 2.5rem; }

.facts {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.5rem 1.75rem; margin-bottom: 1.5rem;
}
.facts h2 {
  font-family: var(--display); font-weight: 700;
  margin: 0 0 1rem; font-size: 1.5rem;
  border-bottom: 1px solid var(--line); padding-bottom: 0.5rem;
}
.facts dl { display: grid; grid-template-columns: 12rem 1fr;
  gap: 0.4rem 1.25rem; margin: 0; }
.facts dt { font-weight: 600; color: var(--ink-soft); }
.facts dd { margin: 0; }
.fineprint { font-size: 0.85rem; color: var(--ink-faint); }
.fineprint a { color: var(--accent); }

.climate-wrap { overflow-x: auto; }
table.climate { border-collapse: collapse; width: 100%; font-size: 0.9rem;
  min-width: 34rem; }
table.climate th, table.climate td {
  border: 1px solid var(--line); padding: 0.3rem 0.4rem; text-align: center;
}
table.climate th:first-child { text-align: left; }

.advisory.level-3, .advisory.level-4 { border-left: 5px solid var(--warn); }
.advisory.level-2 { border-left: 5px solid #c98a2b; }
.advisory.level-1 { border-left: 5px solid #5a8a3c; }

/* ---------- contributor auth + notes ---------- */
.stacked-form { background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
  max-width: 42rem; }
.stacked-form h2 { font-family: var(--display); margin-top: 0; }
.stacked-form label { display: flex; flex-direction: column; gap: 0.25rem;
  margin-bottom: 0.9rem; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft); }
.stacked-form input, .stacked-form select, .stacked-form textarea {
  font-family: inherit; font-size: 1rem; padding: 0.5rem 0.6rem;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  text-transform: none; letter-spacing: normal; color: var(--ink); }
.stacked-form button {
  font-family: inherit; font-size: 1rem; padding: 0.55rem 1.4rem;
  background: var(--accent); color: #fff; border: none; border-radius: 4px;
  cursor: pointer; }
.stacked-form button:hover { background: var(--accent-deep); }
.stacked-form .clear { align-self: center; margin-left: 0.8rem; }

.form-error { background: #f3d9d4; color: var(--warn); padding: 0.7rem 1rem;
  border-radius: 4px; max-width: 42rem; }
.form-ok { background: #dde8d2; color: #3f6128; padding: 0.7rem 1rem;
  border-radius: 4px; max-width: 42rem; }

.note-list { list-style: none; padding: 0; max-width: 52rem; }
.note-list li { background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 0.8rem 1rem; margin-bottom: 0.6rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; }
.note-list .fineprint { flex-basis: 100%; }
.note-actions { margin-left: auto; display: flex; gap: 0.8rem; }
.inline-form { display: inline; }
.link-button { background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--warn); text-decoration: underline; }

.traveler-note { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.traveler-note:first-of-type { border-top: none; }
.traveler-note h3 { font-family: var(--display); margin: 0 0 0.15rem;
  font-size: 1.15rem; }
.traveler-note p { margin: 0.3rem 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .wrap { padding: 0 1rem; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand { font-size: 1.5rem; }
  .tagline { font-size: 0.85rem; }
  .header-row { gap: 0.5rem; }
  .user-nav { padding-top: 0; font-size: 0.9rem; gap: 0.7rem; }
  .masthead { padding: 2.25rem 1rem 1.75rem; }
  .cards { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .card-body { padding: 0.65rem 0.7rem 0.8rem; }
  .card-body h2 { font-size: 1.05rem; }
  .card-sub { font-size: 0.82rem; }
  .badge { font-size: 0.65rem; }
  .facts { padding: 1.1rem 1rem; }
  .facts dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .facts dt { margin-top: 0.55rem; }
  .facts dd { margin-bottom: 0.15rem; }
  .filters label { min-width: calc(50% - 0.5rem); }
  .filters input, .filters select { min-width: 0; width: 100%; }
  .hero-credit { font-size: 0.62rem; max-width: 85%; }
  .traveler-note h3 { font-size: 1.05rem; }
}

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

/* ---------- front page: blurred world map background ----------
   world-map-bg.png: filled continent silhouettes derived from the
   Wikimedia Commons outline map, so the shapes stay readable when blurred */
.map-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('/assets/world-map-bg.png') center 20% / cover no-repeat;
  filter: blur(6px);
  opacity: 0.22;
}
/* page content paints above the map */
.site-header, main.wrap, .site-footer { position: relative; z-index: 1; }
/* single-country silhouette variant (country + area pages): keep the
   shape whole and centered instead of cover-cropping it */
.map-bg.country-map {
  background-size: contain;
  background-position: center 32%;
}
@media (prefers-reduced-motion: no-preference) {
  .map-bg { transform: scale(1.03); } /* hide blur edge fade */
}

/* ---------- trip planner ---------- */
.sort-row { font-size: 0.9rem; color: var(--ink-soft); }
.sort-row strong { color: var(--ink); }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem; margin-top: 1rem; }
.area-grid > * { min-width: 0; }
.area-card { background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.1rem 1.2rem; text-decoration: none;
  color: inherit; display: block; overflow-wrap: break-word;
  transition: transform 0.15s ease, box-shadow 0.15s ease; }
.area-card:hover { transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(80, 60, 30, 0.12); }
.area-card h3 { font-family: var(--display); font-size: 1.25rem;
  margin: 0 0 0.4rem; }
.area-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.area-costs { margin: 0; font-size: 0.88rem; }
/* Override the .facts dl grid: cost rows stack one per line. */
.facts dl.area-costs { display: block; }
.area-costs > div { display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 0.3rem 0; border-top: 1px dotted var(--line); }
.area-costs dt { color: var(--ink-soft); }
.area-costs dd { margin: 0; font-weight: 600; text-align: right; }
.landmark-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.landmark-table th, .landmark-table td { text-align: left;
  padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line);
  vertical-align: top; }
.landmark-table th { font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-soft); }

/* ---------- my travel ---------- */
.fav-form { margin: 0 0 1.2rem; }
.btn-fav { font-size: 1rem; padding: 0.55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  color: inherit; }
.btn-fav.on { background: #f5e9c8; border-color: #d9b845; }
.sight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem; margin-top: 1rem; }
.sight-grid > * { min-width: 0; }
.sight-card { background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.1rem 1.2rem; overflow-wrap: break-word; }
.sight-card.picked { border-color: #d9b845; box-shadow: 0 0 0 1px #d9b845; }
.sight-card h3 { font-family: var(--display); font-size: 1.15rem;
  margin: 0 0 0.4rem; }
.sight-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.sight-meta { margin: 0 0 0.7rem; font-size: 0.88rem; }
.facts dl.sight-meta { display: block; }
.sight-meta > div { display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 0.3rem 0; border-top: 1px dotted var(--line); }
.sight-meta dt { color: var(--ink-soft); }
.sight-meta dd { margin: 0; font-weight: 600; text-align: right; }
.pick-form { margin: 0; }
.pick-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem;
  cursor: pointer; }
.pick-label input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.badge.good-month { background: #dcebd4; color: #2f6b2f; }
.mytravel-section { margin: 2rem 0; }
.mytravel-section h2 { margin-bottom: 0.6rem; }
.pick-area-head { margin: 1.4rem 0 0.2rem; font-size: 1.2rem; }
.inline-form-month { display: flex; gap: 0.6rem; align-items: center; }
.month-form { margin: 0.7rem 0 0.2rem; font-size: 0.88rem; }
.month-form select { margin-left: 0.3rem; }
.months-form { margin: 0 0 1.2rem; }
.months-form fieldset { border: 1px solid var(--line); border-radius: 8px;
  padding: 0.8rem 1rem; }
.months-form legend { font-size: 0.9rem; font-weight: 600; padding: 0 0.4rem; }
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem 0.6rem; margin: 0.2rem 0 0.7rem; }
.month-grid label { display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.9rem; cursor: pointer; }
.month-grid input[type="checkbox"] { width: 1rem; height: 1rem;
  accent-color: var(--accent); }
.months-line { margin: 0.7rem 0 0.2rem; }
.card-actions { display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.5rem; }
.card-actions .remove-form { margin: 0 0 0 auto; }
.move-form { margin: 0; display: inline; }
.move-btn { font-size: 0.95rem; line-height: 1; padding: 0.3rem 0.55rem;
  border-radius: 6px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; color: inherit; }
.move-btn:hover { background: #f5e9c8; }
.remove-form { margin: 0.4rem 0 0; }
.link-btn { background: none; border: none; padding: 0; color: var(--accent);
  cursor: pointer; font-size: 0.88rem; text-decoration: underline; }
.kind-tag { display: inline-block; background: #efe7d7; border-radius: 3px;
  padding: 0.1rem 0.45rem; font-size: 0.8rem; white-space: nowrap; }

/* ---------- article pages (area.php) ---------- */
.kicker { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem;
  color: var(--accent); margin: 1.6rem 0 0.6rem; }
.kicker a { color: inherit; }
.article-title { font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.75rem; line-height: 1.1; }
.lede { font-style: italic; color: var(--ink-soft);
  font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 44rem; margin: 0 0 1.5rem; }

/* ---------- monthly briefing article ---------- */
.briefing { margin: 0 0 3rem; }
.briefing-title {
  font-family: var(--display); font-weight: 900;
  font-size: 2.6rem; margin: 0.4rem 0 0.8rem; line-height: 1.1;
}
.pick-lead {
  display: grid; grid-template-columns: 1.4fr 1fr;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; margin: 1.8rem 0;
  text-decoration: none; color: inherit;
  box-shadow: 0 10px 30px rgba(80, 60, 30, 0.10);
}
.pick-lead figure { margin: 0; min-height: 320px; }
.pick-lead img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-lead-body { padding: 2rem; display: flex; flex-direction: column;
  justify-content: center; }
.pick-rank {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.6rem; font-weight: 600;
}
.pick-lead-body h3 { font-family: var(--display); font-size: 2rem;
  margin: 0 0 0.8rem; }
.pick-why { font-style: italic; color: var(--ink-soft); margin: 0; }
.pick-more { color: var(--accent); font-weight: 600; margin: 1.2rem 0 0; }
.picks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem; margin: 0 0 1rem;
}
.pick-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 4px 14px rgba(80, 60, 30, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pick-card:hover { transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(80, 60, 30, 0.13); }
.pick-card figure { margin: 0; position: relative; aspect-ratio: 16 / 10;
  overflow: hidden; }
.pick-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-num {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: rgba(43, 38, 32, 0.82); color: #faf6ef;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pick-card-body { padding: 1rem 1.1rem 1.2rem; }
.pick-card-body h3 { font-family: var(--display); font-size: 1.25rem;
  margin: 0 0 0.45rem; }

/* ---------- front page CTA ---------- */
.cta-block {
  text-align: center; margin: 1rem 0 3.5rem; padding: 2.6rem 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 26px rgba(80, 60, 30, 0.08);
}
.cta-block h2 { font-family: var(--display); font-size: 1.8rem;
  margin: 0 0 0.5rem; }
.cta-block p { color: var(--ink-soft); font-style: italic; margin: 0 0 1.4rem; }
.btn-big {
  display: inline-block; background: var(--accent); color: #fffdf8;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  padding: 0.85rem 2.4rem; border-radius: 999px; text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-big:hover { background: var(--accent-deep); transform: translateY(-2px);
  color: #fffdf8; }

/* ---------- safe travel toggle ---------- */
.safe-toggle {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.9rem 1.1rem; margin-bottom: 1.1rem;
}
.switch-wrap { display: flex; align-items: center; gap: 0.9rem; cursor: pointer; }
.switch-wrap input[type="checkbox"] { position: absolute; opacity: 0; width: 0; }
.switch {
  flex: 0 0 auto; width: 52px; height: 30px; border-radius: 999px;
  background: #cfc4b0; position: relative; transition: background 0.18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: #fffdf8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25); transition: left 0.18s ease;
}
.switch-wrap input:checked + .switch { background: #4a7c3a; }
.switch-wrap input:checked + .switch::after { left: 25px; }
.switch-wrap input:focus-visible + .switch { outline: 2px solid var(--accent);
  outline-offset: 2px; }
.switch-label strong { display: block; font-size: 1.02rem; }
.switch-label small { color: var(--ink-soft); font-style: italic; }

/* ---------- slim masthead (search page) ---------- */
.masthead.slim { padding: 1.6rem 0 1rem; }
.masthead.slim h1 { font-size: 2rem; }

@media (max-width: 760px) {
  .briefing-title { font-size: 2rem; }
  .pick-lead { grid-template-columns: 1fr; }
  .pick-lead figure { min-height: 0; aspect-ratio: 16 / 9; }
  .pick-lead-body { padding: 1.4rem; }
  .picks { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .pick-card-body h3 { font-size: 1.05rem; }
  .pick-why { font-size: 0.85rem; }
}
@media (max-width: 400px) {
  .picks { grid-template-columns: 1fr; }
}

/* ---------- preferences page ---------- */
.prefs-form { max-width: 34rem; }
.prefs-form fieldset {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 1.1rem 1.2rem; margin: 0 0 1.1rem; background: var(--card);
}
.prefs-form legend {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: 0 0.5rem;
}
.prefs-form .radio { display: block; margin: 0.55rem 0; cursor: pointer; }
.prefs-form .radio input { margin-right: 0.5rem; accent-color: var(--accent); }
.prefs-form select {
  font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; color: var(--ink);
}
.prefs-form button {
  font: inherit; font-weight: 600; background: var(--accent); color: #fffdf8;
  border: none; border-radius: 999px; padding: 0.7rem 2rem; cursor: pointer;
}
.prefs-form button:hover { background: var(--accent-deep); }
.flash {
  background: #eef3e6; border: 1px solid #b9c9a3; color: #3d5a2b;
  border-radius: 8px; padding: 0.8rem 1.1rem; max-width: 34rem;
}

/* --- Auth, consent, and notices --- */
.notice {
  background: #fdf6e3; border: 1px solid #e3c878; color: #5a4a1f;
  border-radius: 8px; padding: 0.9rem 1.1rem; max-width: 34rem;
  margin: 1rem 0;
}
.verify-nudge {
  background: #fdf6e3; border-top: 1px solid #e3c878;
}
.verify-nudge p { margin: 0.5rem 0; }
.btn-google {
  display: inline-block; background: #fff; color: #1a1a1a;
  border: 1px solid #c9c9c9; text-decoration: none;
}
.btn-google:hover { background: #f5f5f5; }
.btn-nav {
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 0.15rem 0.8rem; text-decoration: none;
}
.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent-deep); text-decoration: underline; font: inherit;
}
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(20, 22, 18, 0.96); color: #f2f0e8;
  border-top: 2px solid var(--accent);
}
.cookie-inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.cookie-inner p { margin: 0.4rem 0; }
.cookie-inner .linklike { color: #ffd98a; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; border: 1px solid #8a8a8a; color: #f2f0e8; }
.cookie-banner ul { margin: 0.4rem 0 0.4rem 1.2rem; }

/* ---------- blog ---------- */
.blog-post { max-width: 44rem; }
.blog-post h1 { margin-bottom: 0.2rem; }
.blog-post h2 { margin-top: 1.8rem; }
.blog-post h3 { margin-top: 1.4rem; }
.blog-post ul { margin: 0.6rem 0 1rem 1.25rem; }
.blog-post li { margin-bottom: 0.35rem; }
.blog-post p { margin: 0.8rem 0; line-height: 1.65; }

/* ---------- travel services (affiliate) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.6rem; margin: 0.8rem 0; }
.service-card { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; text-decoration: none; color: inherit; }
.service-card:hover { border-color: var(--accent); }
.service-card strong { display: block; color: var(--accent-deep); margin-bottom: 0.15rem; }
.service-card span { font-size: 0.85rem; }
