:root {
  --ink: #183028;
  --muted: #53675e;
  --paper: #fbfaf6;
  --surface: #f0f2eb;
  --line: #dce2d9;
  --gold: #e5c889;
  --night: #102b24;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid #876324; outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.header-row, .footer-row, .section-head, .tools-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.site-header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 72px; }
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 3px;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.brand-travel { color: #173b32; font-size: 1.46rem; font-weight: 760; letter-spacing: -.045em; }
.brand-mark { display: block; width: 33px; height: 33px; flex: none; }
.brand-info { color: #8b5517; font-size: .92rem; font-weight: 720; letter-spacing: -.025em; transform: translateY(5px); }
nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
nav a:hover, .back:hover { text-decoration: underline; }
nav .nav-cta { color: var(--ink); font-weight: 650; }

.hero { background: var(--night); color: #fff9eb; }
.hero-content { min-height: 460px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; }
.hero-copy { position: relative; z-index: 2; padding-block: 60px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero-eyebrow { color: var(--gold); }
h1, h2, .destination strong {
  margin: 0; font-family: Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -.035em;
}
h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); }
h1 em { color: var(--gold); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.hero-text, .lede { max-width: 50ch; }
.hero-text { color: #d6e0d7; }
.hero-actions { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 999px; font-weight: 650; text-decoration: none; }
.gold { background: var(--gold); color: var(--night); }
.gold:hover { background: #f2dba6; }
.hero-earth { width: min(100%, 420px); margin-inline: auto; }
.hero-earth canvas { display: block; width: 100%; height: auto; }

.passport-picker { position: relative; }
.passport-picker summary { list-style: none; color: #fff3d3; }
.passport-picker summary::-webkit-details-marker { display: none; }
.passport-picker summary:hover { text-decoration: underline; }
.passport-menu {
  position: absolute; z-index: 3; top: calc(100% + 10px); left: 0; width: min(280px, calc(100vw - 40px));
  padding: 12px; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px #14251f33;
}
.passport-menu label, .passport-panel label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 650; }
.passport-menu input { width: 100%; }
#passport-list { max-height: 220px; margin-top: 8px; overflow-y: auto; overscroll-behavior: contain; }
.passport-option { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 6px; text-decoration: none; }
a.passport-option:hover { background: var(--surface); }
span.passport-option { color: var(--muted); }
.passport-option img { flex: none; object-fit: contain; }

.section { padding-block: clamp(36px, 5.5vw, 68px) 0; scroll-margin-top: 14px; }
.section-head { margin-bottom: 18px; }
.passport, .section-note, .lede, .site-footer p { color: var(--muted); }
.passport { font-size: .85rem; }
.section-note { margin: 8px 0 0; }
.tools-row { flex-wrap: wrap; margin-bottom: 12px; }
.filters, .carousel-controls { display: flex; flex-wrap: wrap; gap: 7px; }
button, input, select { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
button:not(:disabled):hover { background: var(--surface); }
button[aria-pressed=true], button[aria-pressed=true]:hover { background: var(--night); border-color: var(--night); color: white; }
.filters button { font-size: .86rem; }
#country-search { width: min(100%, 220px); }
.map-frame { position: relative; }
.map-controls { position: absolute; z-index: 1; top: 8px; left: 8px; display: flex; gap: 4px; }
.map-controls button { padding: 3px 10px; background: var(--paper); }
#visa-map { display: block; width: 100%; aspect-ratio: 1024 / 585; background: #edf1ec; touch-action: pan-y; }
#visa-map.is-zoomed { touch-action: none; cursor: grab; }
#visa-map path { stroke: #51685d; stroke-width: .48; vector-effect: non-scaling-stroke; cursor: pointer; }
#visa-map path.is-muted { fill: #95a99e; fill-opacity: .30; }
#visa-map path:hover, #visa-map path:focus { stroke: var(--night); stroke-width: 1.7; outline: none; }
.directory { margin-top: 12px; }
summary { font-weight: 650; }
.country-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  gap: 7px; max-height: 370px; margin-top: 10px; padding: 3px; overflow: auto;
}
.country-list button { text-align: left; }
.country-preview { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; padding: 10px 14px; background: var(--surface); border-radius: 8px; }

.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px 3px 10px; }
.destination {
  display: flex; flex-direction: column; gap: 7px; min-height: 166px; padding: 16px; border-radius: var(--radius);
  scroll-snap-align: start; text-decoration: none; background: var(--surface); transition: background .18s ease;
}
.destination:hover { background: #e6ece2; }
.destination strong { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.destination-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: auto; font-size: .79rem; color: var(--muted); }
.destination > span:last-child { font-size: .9rem; color: var(--muted); }
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; padding-bottom: 64px; }
.faq details { border-top: 1px solid var(--line); padding-block: 14px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 27px; }
.site-footer p { margin: 6px 0 0; font-size: .88rem; }

.inner { min-height: 65vh; padding-bottom: 64px; }
.inner h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.passport-panel, .article { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.passport-panel select { margin-bottom: 14px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; }
.article h2 { font-size: 1.85rem; margin-top: 16px; }
.article p { max-width: 68ch; }

@media (max-width: 780px) {
  .header-row { flex-wrap: wrap; padding-block: 12px; gap: 8px; }
  nav { gap: 8px 14px; }
  .hero-content { min-height: 0; grid-template-columns: 1fr .7fr; }
  .hero-copy { padding-block: 42px; }
  .carousel { grid-auto-columns: calc((100% - 14px) / 2); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero-content { display: block; }
  .hero-copy { padding: 36px 0 0; }
  .hero-earth { width: min(100%, 260px); }
  .passport-picker { position: static; }
  .passport-menu { left: 0; top: auto; margin-top: 8px; }
  .section-head, .footer-row { align-items: flex-start; flex-wrap: wrap; }
  .carousel { grid-auto-columns: 82%; }
  .faq { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .destination { transition: none; }
}
