/* ==========================================================================
   Our world trip. Design tokens first, then layout, then components.
   ========================================================================== */
:root {
  color-scheme: light;
  --mist: #f3f5f8;
  --paper: #ffffff;
  --ink: #0f1f2e;
  --ink-2: #34465a;
  --muted: #56667a;
  --line: #e2e7ee;
  --fill: #eaeef4;
  --accent: #2b47a8;
  --accent-soft: #eef2fd;
  --accent-line: #c3cff2;
  --sand: #fbf1e2;
  --sand-ink: #6a4210;
  --sand-line: #f0dcbc;
  --box-line: #7d8a9a;

  --shadow-1: 0 1px 2px rgba(15, 31, 46, .06), 0 2px 8px rgba(15, 31, 46, .05);
  --shadow-2: 0 2px 4px rgba(15, 31, 46, .06), 0 14px 36px rgba(15, 31, 46, .16);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 4vw, 32px);
  --slide-w: min(340px, 76vw);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[tabindex="-1"]:focus { outline: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }
.country.container, body[data-view="country"] .site-header .container { max-width: 980px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { padding-block: 18px 4px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.01em;
  border-radius: 999px;
}
.brand-mark { width: 24px; height: 24px; color: var(--accent); }

/* ---------- landing ---------- */
.landing-head { padding: clamp(28px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); }
.landing-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 11ch;
}
.lede { margin-top: 20px; max-width: 46ch; font-size: 1.125rem; color: var(--ink-2); }

.country-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
}
.country-card {
  position: relative; display: block; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; background: #1c2a3a;
  box-shadow: var(--shadow-1);
}
a.country-card { transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
a.country-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.cc-media { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .22), transparent 60%),
  linear-gradient(155deg, var(--g1), var(--g2)); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform .6s var(--ease); }
.cover-img.is-loaded { opacity: 1; }
a.country-card:hover .cover-img { transform: scale(1.04); }
.cc-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 16, 28, .82) 0%, rgba(8, 16, 28, .3) 45%, rgba(8, 16, 28, 0) 72%); }
.is-soon .cc-media { filter: saturate(.35) brightness(.9); }
.cc-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-flag { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .94); font-size: 1.5rem; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.cc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--ink); }
.cc-pill-saved { background: var(--accent); color: #fff; }
.cc-pill .icon { width: 14px; height: 14px; stroke-width: 3; }
.cc-body { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.cc-name { font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.cc-meta { margin-top: 4px; font-size: .9375rem; color: rgba(255, 255, 255, .92); }

/* ---------- breadcrumbs + hero ---------- */
.crumbs { padding: 8px 0 14px; font-size: .9375rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; border-radius: 6px; padding: 2px 0; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.hero { position: relative; isolation: isolate; height: clamp(190px, 30vw, 280px); border-radius: var(--r-lg); overflow: hidden; color: #fff; box-shadow: var(--shadow-1); }
.hero-media { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 15% 0%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(155deg, var(--g1), var(--g2)); }
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero-img.is-loaded { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 16, 28, .78), rgba(8, 16, 28, .1) 65%); }
.hero-body { position: absolute; left: clamp(20px, 4vw, 32px); right: 20px; bottom: clamp(18px, 3vw, 28px); }
.hero-title { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -.03em; line-height: 1; }
.hero-flag { font-size: .7em; }
.hero-stats { margin-top: 8px; font-size: 1rem; color: rgba(255, 255, 255, .92); }

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  background: rgba(243, 245, 248, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.toolbar-anchor { height: 0; margin-top: 16px; }
.toolbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs tabs" "search seg"; gap: 10px 12px; padding-block: 10px; align-items: center; }
.city-tabs { grid-area: tabs; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.city-tabs::-webkit-scrollbar { display: none; }
.search { grid-area: search; }
.seg { grid-area: seg; }
@media (min-width: 1040px) {
  .city-tabs { min-width: max-content; }
  .toolbar-inner { grid-template-columns: auto minmax(200px, 1fr) auto; grid-template-areas: "tabs search seg"; gap: 16px; }
  .search { max-width: 420px; justify-self: center; width: 100%; }
}

.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.tab:hover { background: var(--fill); }
.tab[aria-current="page"] { background: var(--ink); color: #fff; }
.city-tabs.is-muted .tab[aria-current="page"] { background: var(--fill); color: var(--ink-2); }
.tab-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 700; text-align: center; }
.tab[aria-current="page"] .tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
.city-tabs.is-muted .tab[aria-current="page"] .tab-count { background: var(--accent-soft); color: var(--accent); }

.toolbar-inner.many-tabs { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs tabs" "search seg"; gap: 10px 12px; }
.toolbar-inner.many-tabs .search { max-width: none; justify-self: stretch; }
@media (min-width: 1040px) { .toolbar-inner.many-tabs .search { max-width: 420px; justify-self: start; } }
.search { position: relative; }
.search-input {
  width: 100%; height: 44px; padding: 0 12px 0 42px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); -webkit-appearance: none; appearance: none;
}
.search:has(.search-clear:not([hidden])) .search-input { padding-right: 44px; }
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-icon { position: absolute; left: 15px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search-clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.search-clear:hover { background: var(--fill); color: var(--ink); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #e4e9f0; }
.seg-btn { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; white-space: nowrap; transition: background-color .2s ease, box-shadow .2s ease; }
.seg-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 31, 46, .18); }
.seg .short { display: none; }
@media (max-width: 640px) {
  .tab { padding: 0 10px; gap: 5px; }
  .seg .long { display: none; }
  .seg .short { display: inline; }
  .seg-btn { padding: 0 12px; }
}

.results-summary { margin-top: 16px; color: var(--ink-2); font-weight: 500; }

/* ---------- city + category ---------- */
.cities { margin-top: 8px; }
.city { padding-top: 32px; }
.city-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; }
.city-title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.03em; line-height: 1.05; }
.city-count { color: var(--ink-2); font-weight: 600; text-align: right; }
.progress { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #dfe5ee; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .4s var(--ease); }
.city-note { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--sand); border: 1px solid var(--sand-line); color: var(--sand-ink); font-weight: 500; }
.city-note .icon { margin-top: 2px; }

.cat { margin-top: 20px; }
.cat-head { margin: 0; }
.cat-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 10px; border: 0; background: none; text-align: left; border-radius: var(--r-sm); }
.cat-toggle:hover { background: rgba(15, 31, 46, .04); }
.cat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-title { font-family: var(--display); font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cat-sub { font-weight: 500; color: var(--ink-2); }
.cat-meta { font-size: .9375rem; color: var(--muted); }
.cat-blurb { padding: 0 10px 6px; color: var(--ink-2); }
.chev { display: grid; place-items: center; color: var(--muted); transition: transform .3s var(--ease); }
.cat:not(.is-collapsed) > .cat-head .chev,
.place.is-open .chev { transform: rotate(180deg); }

/* Smooth open/close: animate a grid row between 0fr and 1fr. */
.collapse, .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.cat:not(.is-collapsed) > .collapse,
.place.is-open > .panel { grid-template-rows: 1fr; }
.collapse-inner, .panel-inner { min-height: 0; overflow: hidden; }
.place-list { display: grid; gap: 10px; padding: 6px 10px 22px; }

/* ---------- place card ---------- */
.place {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.place.is-selected { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: inset 4px 0 0 var(--accent), var(--shadow-1); }
.place-head { display: flex; align-items: stretch; }
.check { position: relative; flex: none; width: 60px; display: grid; place-items: center; }
.check-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.check-box { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--box-line); background: var(--paper); color: #fff; transition: background-color .15s ease, border-color .15s ease; }
.check-box .icon { width: 16px; height: 16px; stroke-width: 3.2; opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .2s var(--ease); }
.check-input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check-input:checked + .check-box .icon { opacity: 1; transform: none; }
.check-input:focus-visible + .check-box { outline: 3px solid var(--accent); outline-offset: 3px; }
.check-input:hover + .check-box { border-color: var(--accent); }

.place-heading { flex: 1; min-width: 0; font-size: 1rem; }
.place-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 18px 12px 0; border: 0; background: none; text-align: left; border-radius: 0 var(--r-md) var(--r-md) 0; }
.place-toggle:focus-visible { outline-offset: -4px; }
.place-name { flex: 1; min-width: 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.place-type { flex: none; padding: 3px 11px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.place.is-selected .place-type { background: #dbe4fb; }
@media (max-width: 560px) { .place-type { display: none; } .check { width: 54px; } }
.place-rec { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--sand); border: 1px solid var(--sand-line); color: var(--sand-ink); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.place-sens { flex: none; padding: 3px 10px; border-radius: 999px; background: #fdecea; border: 1px solid #f3c4bd; color: #8a2a1c; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.sens-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: #fdecea; border: 1px solid #f3c4bd; color: #7a2418; font-size: .9375rem; font-weight: 500; }
.sens-line .icon { margin-top: 2px; }
.rec-line { margin-bottom: 10px; font-size: .875rem; font-weight: 600; color: var(--sand-ink); }
.note + .note { margin-top: 10px; }

.panel-body { padding: 0 clamp(16px, 3vw, 24px) 24px clamp(16px, 3vw, 24px); }
.place-desc { max-width: 66ch; line-height: 1.65; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 20px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.place.is-selected .facts { border-top-color: var(--accent-line); }
.fact dt { font-size: .8125rem; color: var(--muted); }
.fact dd { margin-top: 2px; font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sand); border: 1px solid var(--sand-line); color: var(--sand-ink); font-size: .9375rem; }
.note .icon { margin-top: 2px; }

/* ---------- gallery ---------- */
.gallery { position: relative; margin: 20px calc(clamp(16px, 3vw, 24px) * -1) 0; }
.g-viewport { display: flex; gap: 12px; overflow-x: auto; padding: 0 clamp(16px, 3vw, 24px) 6px; scroll-snap-type: x proximity; scroll-padding-inline: clamp(16px, 3vw, 24px); scrollbar-width: none; overscroll-behavior-x: contain; }
.g-viewport::-webkit-scrollbar { display: none; }
.slide { flex: none; width: var(--slide-w); scroll-snap-align: start; }
.slide-btn { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #e6ebf1; cursor: zoom-in; }
.slide-btn img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.slide.is-loaded .slide-btn img { opacity: 1; }
div.slide-btn { cursor: default; }
.slide-cap { margin-top: 6px; font-size: .75rem; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-cap a { color: inherit; text-decoration-color: rgba(86, 102, 122, .4); }
.slide-cap a:hover { color: var(--accent); }
.slide-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); font-size: .875rem; }
.slide-fallback .icon { width: 28px; height: 28px; }

.skel { background: linear-gradient(90deg, #e6ebf1 0%, #f3f6fa 50%, #e6ebf1 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel-line { width: 60%; height: 10px; border-radius: 6px; margin-top: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.g-nav { position: absolute; top: calc(var(--slide-w) * .375 - 20px); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 2px 10px rgba(15, 31, 46, .25); transition: opacity .2s ease; }
.g-prev { left: 8px; } .g-next { right: 8px; }
.g-nav:disabled { opacity: 0; pointer-events: none; }
.gallery.no-scroll .g-nav, .gallery:not([data-state="ready"]) .g-nav { display: none; }
@media (hover: none) { .g-nav { display: none; } }

.g-empty { flex: 1; min-height: calc(var(--slide-w) * .75); display: grid; place-content: center; justify-items: center; gap: 4px; padding: 20px; border-radius: 14px; background: linear-gradient(160deg, #e9eef6, #f4f6fa); color: var(--muted); text-align: center; }
.g-empty > .icon { width: 30px; height: 30px; margin-bottom: 4px; }
.g-empty-title { color: var(--ink); font-weight: 600; }
.g-empty-text { max-width: 36ch; font-size: .9375rem; }
.g-empty-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 8px; }
.btn-quiet { min-height: 40px; padding: 0 18px; border: 1px solid var(--line-strong, #cfd7e1); border-radius: 999px; background: var(--paper); font-weight: 600; }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 600; text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }

/* ---------- empty state ---------- */
.empty { margin-top: 40px; padding: 40px 24px; text-align: center; border: 1px dashed #c3ccd8; border-radius: var(--r-lg); }
.empty-title { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.empty-text { margin: 8px auto 18px; max-width: 44ch; color: var(--ink-2); }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(9, 16, 26, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(9, 16, 26, .6); }
.lb-figure { display: grid; justify-items: center; gap: 14px; max-width: min(1100px, calc(100vw - 32px)); padding: 56px 0 44px; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; border-radius: 10px; object-fit: contain; transition: opacity .25s ease; }
.lb-img.is-loading { opacity: .35; }
.lb-cap { display: grid; gap: 2px; text-align: center; font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.lb-cap strong { color: #fff; font-size: 1.0625rem; }
.lb-credit a { color: #fff; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 12px; right: 12px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lightbox :focus-visible { outline-color: #fff; }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: 8px; translate: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); translate: -50% 20px; z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 12px 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transition: opacity .25s ease, translate .25s var(--ease), visibility 0s .25s; }
.toast.is-visible { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.toast-btn { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; }
.toast :focus-visible { outline-color: #fff; }

/* ---------- footer ---------- */
.site-foot { margin-top: 72px; padding: 24px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-foot p + p { margin-top: 6px; }
.site-foot a { color: inherit; }
.foot-warn { color: #8a3b12; font-weight: 600; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- header: My selected activities link ---------- */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.header-selected-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--fill); color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.header-selected-link:hover { background: var(--accent-soft); color: var(--accent); }
.header-selected-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; }

/* ---------- travelers widget ---------- */
.travelers-widget { margin-top: 8px; padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.trav-title { font-family: var(--display); font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.trav-row { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 12px; }
.trav-stepper { display: flex; align-items: center; gap: 14px; }
.trav-label { font-weight: 600; color: var(--ink-2); min-width: 64px; }
.trav-controls { display: inline-flex; align-items: center; gap: 4px; }
.trav-btn {
  display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1;
}
.trav-btn:hover { border-color: var(--accent); color: var(--accent); }
.trav-count { min-width: 28px; text-align: center; font-weight: 700; font-size: 1.0625rem; }
.trav-warn { margin-top: 10px; font-size: .875rem; color: #8a3b12; font-weight: 600; }
.trav-warn[hidden] { display: none; }

/* ---------- country card cost ---------- */
.cc-cost { margin-top: 2px; font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .92); }

/* ---------- collapsed-card price row ---------- */
.place-name-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.place-price { font-size: .8125rem; font-weight: 700; }
.place-price.is-free { color: #1f7a4d; }
.place-price.is-paid { color: var(--ink-2); }
.place-price.is-from { color: var(--ink-2); }
.place-price.is-from::before { content: none; }
.place-price.is-unknown { color: var(--muted); font-weight: 600; }
.place.is-selected .place-price.is-paid, .place.is-selected .place-price.is-from { color: var(--accent); }

/* ---------- expanded-panel price block ---------- */
.price-block-wrap { margin-top: 20px; }
.price-block { padding-top: 18px; border-top: 1px solid var(--line); }
.place.is-selected .price-block { border-top-color: var(--accent-line); }
.price-facts { margin-top: 0; padding-top: 0; border-top: 0; }
.price-group { margin-top: 16px; font-size: .9375rem; }
.price-group strong { font-size: 1.0625rem; }
.price-foot { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .875rem; color: var(--muted); }
.price-foot .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.price-source { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.price-source a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: underline; }
.price-block-free { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.price-free-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #e7f6ee; color: #1f7a4d; font-weight: 700; }
.price-free-badge .icon { width: 16px; height: 16px; stroke-width: 3; }
.price-block-free .price-group { margin-top: 0; color: var(--muted); font-size: .875rem; }
.price-unknown-line { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.price-unknown-line .icon { margin-top: 2px; flex: none; }

/* ---------- theme-park ride reminder (included-in-admission notice) ---------- */
.ride-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong, #cfd7e1); font-size: .875rem; color: var(--muted); }
.ride-note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.ride-note-warn { color: #8a3b12; font-weight: 600; }

/* ---------- export (WhatsApp-style plain-text) ---------- */
.export-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: clamp(20px, 3vw, 28px) 0; padding-top: clamp(16px, 2.5vw, 20px); border-top: 1px solid #e3e7ee; }
.export-btn { display: inline-flex; align-items: center; gap: 8px; }
.export-dialog { position: relative; width: min(560px, calc(100vw - 32px)); border: 0; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); }
.export-dialog::backdrop { background: rgba(9, 16, 26, .5); }
.export-dialog-close { position: absolute; top: 14px; right: 14px; background: var(--accent-soft); color: var(--ink); }
.export-dialog-title { margin: 0 0 4px; font-family: var(--display); font-size: 1.25rem; }
.export-dialog-hint { margin: 0 0 14px; color: var(--ink-2); font-size: .9375rem; }
.export-ta { width: 100%; min-height: 220px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--line-strong, #cfd7e1); border-radius: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; line-height: 1.5; resize: vertical; }

/* ---------- selected-activities page ---------- */
.selected-page .landing-head { padding-bottom: clamp(20px, 3vw, 28px); }
.selected-dynamic { margin-top: 28px; }
.selected-empty-note { margin-top: 24px; padding: 28px 24px; text-align: center; border: 1px dashed #c3ccd8; border-radius: var(--r-lg); color: var(--ink-2); }
.selected-summary { padding: clamp(20px, 4vw, 32px); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--accent-soft), var(--paper)); border: 1px solid var(--accent-line); box-shadow: var(--shadow-1); }
.summary-eyebrow { font-weight: 700; color: var(--accent); letter-spacing: -.01em; }
.summary-total { margin-top: 4px; font-family: var(--display); font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; }
.summary-country-list { margin-top: 18px; display: grid; gap: 8px; max-width: 420px; }
.summary-country-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--accent-line); font-weight: 600; }
.summary-country-cad { color: var(--ink-2); }
.summary-counts { margin-top: 16px; font-weight: 600; color: var(--ink-2); }
.summary-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: .875rem; color: #8a3b12; }
.summary-note .icon { margin-top: 2px; flex: none; width: 16px; height: 16px; }
.summary-disclaimer { margin-top: 16px; font-size: .8125rem; color: var(--muted); }

.selected-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.filter-select { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; }

.selected-list { margin-top: 20px; display: grid; gap: 40px; }
.selected-country-title {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--display); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; letter-spacing: -.02em;
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.selected-country-cost { margin-left: auto; font-size: 1.0625rem; color: var(--accent); font-weight: 700; }
.selected-city { margin-top: 22px; }
.selected-city-title { display: flex; align-items: baseline; gap: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.selected-city-cost { margin-left: auto; color: var(--ink-2); font-weight: 600; font-size: .9375rem; }
.selected-place-list { margin-top: 12px; }
