/* Layout: phone-first app. Scrolling views (Explore, Saved, Trips) and a full-bleed
   Map view, switched by a floating dark tab bar. Spot details slide over as a
   photo-led page. Wide screens keep views in a centred column; the map goes full width. */
:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #e9e7e3;
  --ink: #151413;
  --ink-2: #6f6a64;
  --line: #e2dfda;
  --accent: #c4532f;          /* country colour: Morocco = terracotta (guide series convention) */
  --accent-soft: #f6e3dc;
  --nav: #151413;
  --nav-ink: #f3f2ef;
  --heart: #e04a5f;
  --glass: rgba(255,255,255,.72);
  --shadow: 0 10px 30px rgba(25,18,12,.14), 0 2px 6px rgba(25,18,12,.08);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 560px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --surface: #1d1b19; --surface-2: #2a2724; --ink: #f3efe9; --ink-2: #aaa197; --line: #34302c;
    --accent: #e27752; --accent-soft: #3b2219; --nav: #f3efe9; --nav-ink: #151413; --heart: #ff6b80;
    --glass: rgba(29,27,25,.72); --shadow: 0 10px 30px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.35); color-scheme: dark;
  }
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) brightness(.9) contrast(.9); }
}
:root[data-theme="dark"] {
  --bg: #121110; --surface: #1d1b19; --surface-2: #2a2724; --ink: #f3efe9; --ink-2: #aaa197; --line: #34302c;
  --accent: #e27752; --accent-soft: #3b2219; --nav: #f3efe9; --nav-ink: #151413; --heart: #ff6b80;
  --glass: rgba(29,27,25,.72); --shadow: 0 10px 30px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.35); color-scheme: dark;
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) brightness(.9) contrast(.9); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic, .cic { flex: none; display: block; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- shell ---------- */
.app { position: fixed; inset: 0; }
.view { position: absolute; inset: 0; }
.scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.page {
  max-width: var(--col); margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 120px) max(18px, env(safe-area-inset-left, 0px));
}

/* floating tab bar */
.tabbar {
  position: fixed; z-index: 1150; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--nav); color: var(--nav-ink);
  box-shadow: 0 12px 30px rgba(10,6,3,.3); width: min(400px, calc(100% - 32px));
}
.tabbar button {
  position: relative; flex: 1; border: 0; background: none; cursor: pointer; color: inherit; opacity: .7;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
}
.tabbar button.on { opacity: 1; background: color-mix(in srgb, var(--nav-ink) 16%, transparent); }
.tabbar i { position: absolute; top: 7px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 4px; background: var(--heart); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; color: var(--ink);
}
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.big { min-height: 54px; font-size: 16px; }
.btn.on { border-color: var(--accent); color: var(--accent); }
.round {
  width: 46px; height: 46px; border-radius: 23px; border: 0; background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none;
}
.round.small { width: 38px; height: 38px; box-shadow: none; background: var(--surface-2); }
.round.glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: none; }
.round.faved { color: var(--heart); }
.round.faved .ic, .btn.faved .ic { fill: currentColor; }
.icon-btn { border: 0; background: none; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 17px; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.small { width: 30px; height: 30px; }

/* ---------- picture cards (photo or illustration) ---------- */
.art { position: relative; overflow: hidden; background: var(--tint, #eee); display: grid; place-items: center; }
.art::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.55), transparent 60%),
  radial-gradient(90% 70% at 0% 100%, rgba(0,0,0,.08), transparent 60%); }
.art .cic { position: relative; filter: drop-shadow(0 6px 10px rgba(30,15,5,.18)); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.has-photo::before { display: none; }

/* ---------- explore ---------- */
.ex-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.country { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface); border: 0; font-weight: 700; cursor: pointer; }
.country .flag { width: 28px; height: 28px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.hero { position: relative; border-radius: 30px; overflow: hidden; min-height: 330px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; margin-bottom: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 72%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 55%, #000) 100%); }
.hero .arches { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .2; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55)); }
.hero > *:not(img):not(.arches) { position: relative; z-index: 1; }
.hero .count { display: flex; align-items: flex-start; gap: 10px; margin-bottom: auto; }
.hero .count b { font: 300 64px/0.9 var(--font); letter-spacing: -.04em; }
.hero .count span { font-size: 13px; line-height: 1.25; margin-top: 8px; opacity: .9; }
.hero h1 { margin: 60px 0 4px; font: italic 400 76px/0.9 var(--display); letter-spacing: -.01em; }
.hero p { margin: 0 0 16px; opacity: .9; max-width: 30ch; }
.search-fake { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 18px; border-radius: 999px; border: 0; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-weight: 500; width: 100%; }
.search-fake span { flex: 1; opacity: .92; }
.search-fake .go { width: 40px; height: 40px; border-radius: 20px; background: #151413; display: grid; place-items: center; }

.nearby { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; border: 0; cursor: pointer;
  background: #f8d771; color: #151413; border-radius: 22px; padding: 14px 16px; margin-bottom: 30px; }
.nearby .tile { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: grid; place-items: center; }
.nearby b { display: block; font: 400 25px/1.05 var(--display); }
.nearby small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sec-head h2 { margin: 0; font: 400 34px/1 var(--display); letter-spacing: -.01em; }
.sec-head h2 em { color: var(--accent); }
.sec-head button { border: 0; background: none; color: var(--ink-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.block { margin-bottom: 32px; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat { border: 0; cursor: pointer; background: var(--surface); border-radius: 20px; padding: 13px 4px 11px; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.15; min-width: 0; }
.cat:hover { box-shadow: var(--shadow); }

.rail { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { display: none; }
.town { flex: none; width: 168px; height: 232px; border-radius: 26px; border: 0; padding: 0; cursor: pointer; scroll-snap-align: start; position: relative; color: #fff; text-align: left; overflow: hidden; }
.town .art { position: absolute; inset: 0; }
.town .art .cic { margin-bottom: 40px; }
.town .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,10,5,.62)); }
.town .meta { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.town .meta small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.town .meta b { display: block; font: italic 400 31px/1 var(--display); }
.town .arrow { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.card { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; display: grid; gap: 8px; min-width: 0; color: var(--ink); }
.card .art { aspect-ratio: 4 / 5; border-radius: 22px; max-width: 100%; }
.card .heart { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.9); color: var(--heart); display: grid; place-items: center; }
.card .heart .ic { fill: currentColor; }
.card b { font: 400 22px/1.05 var(--display); }
.card small { color: var(--ink-2); font-size: 12.5px; display: block; margin-top: -4px; }

/* ---------- map ---------- */
.map { position: absolute; inset: 0; background: var(--surface-2); }
.map-top {
  position: absolute; z-index: 1050; top: 0; left: 0; right: 0; pointer-events: none;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  display: grid; gap: 8px;
}
.map-top > * { pointer-events: auto; }
.searchrow { display: flex; gap: 8px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); color: var(--ink-2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 500 16px var(--font); }
.search input::placeholder { color: var(--ink-2); }
.search input::-webkit-search-cancel-button { display: none; }
#locate { width: 50px; height: 50px; border-radius: 25px; }
#locate.on { color: #2f6fe0; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 7px; border-radius: 999px; border: 0;
  background: var(--surface); box-shadow: 0 2px 10px rgba(25,18,12,.12); cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--bg); }
.chip .n { opacity: .55; font-variant-numeric: tabular-nums; }
.chip.clear { padding: 0 14px; color: var(--accent); }
.locbar { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(25,18,12,.1); font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--ink); }
.pill .muted { color: var(--ink-2); font-weight: 500; }
.pill.accent { background: var(--accent); color: #fff; }

.list-btn { position: absolute; z-index: 1060; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg);
  font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: var(--shadow); white-space: nowrap; }
.preview { position: absolute; z-index: 1070; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); width: min(480px, calc(100% - 24px));
  background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: stretch; }
.preview .art { border-radius: 18px; min-height: 112px; cursor: pointer; }
.preview .body { min-width: 0; display: grid; align-content: center; gap: 2px; position: relative; }
.preview h3 { margin: 0; font: 400 25px/1.02 var(--display); padding-right: 34px; cursor: pointer; }
.preview .sub { color: var(--ink-2); font-size: 13px; }
.preview .row-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.preview .row-btns .btn { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.preview .x { position: absolute; top: 0; right: 0; }

.listsheet { position: absolute; z-index: 1100; inset: 0; background: var(--bg); display: flex; flex-direction: column; }
.listsheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 18px) max(18px, env(safe-area-inset-right, 0px)) 6px max(18px, env(safe-area-inset-left, 0px)); max-width: var(--col); width: 100%; margin: 0 auto; }
.listsheet-head h2 { margin: 0; font: 400 40px/1 var(--display); }
.list-body { flex: 1; overflow-y: auto; width: 100%; }
.list-inner { max-width: var(--col); margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 110px) max(18px, env(safe-area-inset-left, 0px)); }
.meta-line { color: var(--ink-2); font-size: 13px; margin: 0 0 8px; }

.row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 8px 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.row .art { width: 64px; height: 64px; border-radius: 18px; }
.row-main { min-width: 0; display: grid; }
.row-main small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.row-main b { font: 400 21px/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-dist { color: var(--ink-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 5px; }
.row-dist .ic { color: var(--heart); fill: currentColor; }
.more { width: 100%; margin: 14px 0; }
.empty { padding: 40px 10px; color: var(--ink-2); text-align: center; }
.empty h3 { margin: 12px 0 6px; color: var(--ink); font: 400 28px var(--display); }
.empty .cic { margin: 0 auto; }

/* markers */
.mk { background: none; border: 0; }
.mk-dot { position: relative; width: 40px; height: 40px; border-radius: 20px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(30,15,5,.3); border: 2px solid #fff; transition: transform .15s; }
.mk-dot.sel { transform: scale(1.35); border-color: var(--accent); box-shadow: 0 6px 16px rgba(30,15,5,.4); }
.mk-dot .fav { position: absolute; z-index: 2; right: -5px; top: -5px; width: 17px; height: 17px; border-radius: 9px; background: var(--heart); color: #fff; display: grid; place-items: center; }
.mk-dot .fav .ic { fill: currentColor; }
.mk-num { position: absolute; z-index: 2; left: -8px; top: -8px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: #151413; color: #fff; font: 800 11px/21px var(--font); text-align: center; }
.mk-me { width: 20px; height: 20px; border-radius: 10px; background: #2f6fe0; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(47,111,224,.22), 0 2px 4px rgba(0,0,0,.3); }
.mk-cluster { width: 44px; height: 44px; border-radius: 22px; background: #151413; color: #fff; border: 3px solid #fff; display: grid; place-items: center; font: 800 14px var(--font); box-shadow: 0 3px 8px rgba(30,15,5,.35); }
.mk-cluster.big { width: 52px; height: 52px; border-radius: 26px; font-size: 15px; }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }
.leaflet-control-attribution { font-size: 9.5px; }
.leaflet-control-zoom { display: none; }
@media (min-width: 900px) { .leaflet-control-zoom { display: block; } .leaflet-bottom.leaflet-right { margin-bottom: 90px; } }

/* ---------- place page ---------- */
.place-view { position: fixed; z-index: 1120; inset: 0; background: var(--bg); }
.pv-hero { position: relative; height: 54vh; min-height: 340px; max-height: 560px; color: #fff; }
.pv-hero .art { position: absolute; inset: 0; }
.pv-hero .art .cic { margin-bottom: 60px; }
.pv-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 25%, transparent 50%, rgba(15,8,4,.62)); }
.pv-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.pv-bar .group { display: flex; gap: 8px; }
.pv-title { position: absolute; left: 0; right: 0; bottom: 46px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); max-width: var(--col); margin: 0 auto; }
.pv-title h1 { margin: 0; font: italic 400 52px/0.95 var(--display); text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.pv-title .meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; font-weight: 600; opacity: .95; }
.pv-title .meta span { display: inline-flex; align-items: center; gap: 5px; }
.pv-sheet { position: relative; margin-top: -26px; background: var(--bg); border-radius: 28px 28px 0 0; }
.pv-body { max-width: var(--col); margin: 0 auto; padding: 22px max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 120px) max(20px, env(safe-area-inset-left, 0px)); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.stat { background: var(--surface); border-radius: 18px; padding: 12px 12px 11px; min-width: 0; }
.stat small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 3px; }
.stat b { font-size: 14.5px; font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-body h2 { margin: 0 0 8px; font: 400 28px/1.1 var(--display); }
.intro { margin: 0 0 22px; font-size: 16.5px; line-height: 1.6; }
.info { display: grid; background: var(--surface); border-radius: 22px; padding: 4px 16px; margin-bottom: 12px; }
.info-row { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 13px 0; align-items: start; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .ic { color: var(--accent); margin-top: 1px; }
.info-row small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.tip { background: #151413; color: #f3f2ef; border-radius: 22px; padding: 16px 18px; display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin-bottom: 14px; }
.tip .ic { color: #f8d771; }
.tip small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f8d771; margin-bottom: 3px; }
.draft { display: inline-block; font-size: 12px; color: var(--ink-2); border: 1px dashed var(--line); border-radius: 10px; padding: 6px 10px; }
.placeholder { background: var(--surface); border-radius: 22px; padding: 18px; color: var(--ink-2); }
.pv-actions { position: fixed; z-index: 1130; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); width: min(480px, calc(100% - 24px));
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.pv-actions .btn { min-height: 50px; border: 0; }
.pv-actions .btn:not(.dark) { background: var(--surface-2); }

/* ---------- saved & trips ---------- */
.big-title { margin: 6px 0 4px; font: 400 54px/0.95 var(--display); letter-spacing: -.01em; }
.big-title em { color: var(--accent); }
.lede { color: var(--ink-2); margin: 0 0 22px; }
.trip-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left; border: 0; cursor: pointer; background: var(--surface); border-radius: 26px; padding: 10px; margin-bottom: 10px; color: var(--ink); }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 112px; border-radius: 18px; overflow: hidden; }
.collage .art { min-height: 0; }
.collage .art:first-child { grid-row: span 2; }
.trip-card b { display: block; font: 400 26px/1.05 var(--display); }
.trip-card small { color: var(--ink-2); font-size: 13px; }
.newtrip { display: flex; gap: 8px; margin-top: 16px; }
.field { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 18px; font: 500 15px var(--font); }
.field:focus { border-color: var(--accent); outline: 0; }
.backlink { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 8px 6px 0; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.trip-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 18px; }
.stop { position: relative; display: grid; grid-template-columns: 30px 58px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; }
.stop .num { width: 30px; height: 30px; border-radius: 15px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.stop:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 46px; bottom: -14px; border-left: 2px dashed var(--line); }
.stop .art { width: 58px; height: 58px; border-radius: 16px; }
.stop-name { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; min-width: 0; display: grid; color: var(--ink); }
.stop-name b { font: 400 21px/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-name small { color: var(--ink-2); font-size: 12px; }
.stop-tools { display: flex; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 1200; background: rgba(20,12,8,.42); display: grid; place-items: end center; }
.modal-card { width: min(480px, 100%); max-height: 82%; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 18px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
@media (min-width: 600px) { .modal { place-items: center; } .modal-card { border-radius: 28px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font: 400 32px var(--display); }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; margin-bottom: 6px; border: 0; border-radius: 18px; background: var(--surface); text-align: left; cursor: pointer; font-weight: 600; color: var(--ink); }
.opt .tick { margin-left: auto; width: 26px; height: 26px; border-radius: 13px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.opt.on .tick { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.opt .sub { color: var(--ink-2); font-weight: 500; font-size: 13px; display: block; }
.segs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.seg { border: 0; background: var(--surface); border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; color: var(--ink); }
.seg.on { background: var(--ink); color: var(--bg); }
.modal h3 { margin: 18px 0 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.modal p { margin: 4px 0 12px; color: var(--ink-2); }

/* gate (fixed light look, sits on a terracotta / photo backdrop) */
.gate { position: fixed; inset: 0; z-index: 1300; background: #151413; display: grid; align-items: end; justify-items: center; overflow: hidden; }
.gate-art { position: absolute; inset: 0; background: linear-gradient(160deg, #e48a5c 0%, #c4532f 45%, #5e2112 100%); }
.gate-art img { width: 100%; height: 100%; object-fit: cover; }
.gate-card { position: relative; width: min(460px, 100%); background: #f3f2ef; color: #151413; border-radius: 32px 32px 0 0; padding: 30px 24px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; }
@media (min-width: 600px) { .gate { align-items: center; } .gate-card { border-radius: 32px; } }
.gate-card .eyebrow { color: #6f6a64; }
.gate-card h1 { margin: 0; font: 400 58px/0.92 var(--display); }
.gate-card h1 em { color: #c4532f; }
.gate-card p { margin: 0; color: #6f6a64; }
.gate-card input { height: 56px; border-radius: 999px; border: 1.5px solid #e2dfda; padding: 0 22px; font: 700 17px var(--font); letter-spacing: .12em; text-transform: uppercase; background: #fff; color: #151413; text-align: center; }
.gate-card input:focus { outline: 0; border-color: #c4532f; }
.gate-card .btn.dark { background: #151413; color: #f3f2ef; border-color: #151413; }
.gate-error { color: #c0392b !important; font-weight: 600; text-align: center; }
.gate-demo { font-size: 13px; text-align: center; }

.toast { position: fixed; z-index: 1250; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 16px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .place-view:not([hidden]) { animation: rise .28s cubic-bezier(.2,.8,.2,1); }
  @keyframes rise { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
}

/* ---------- countries & tiers ---------- */
.guide-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.guide-tag + h1 { margin-top: 16px; }
.tier { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tier.tried { background: var(--accent); color: #fff; }
.tier.bucket { background: rgba(255,255,255,.18); color: #fff; border: 1.5px dashed rgba(255,255,255,.85); }
.pv-title .tier { margin-bottom: 10px; }
.card .tier.light { position: absolute; left: 10px; bottom: 10px; height: 22px; padding: 0 8px; font-size: 9.5px; }
.card .tier.light.tried { background: rgba(255,255,255,.92); color: var(--accent); }
.card .tier.light.bucket { background: rgba(255,255,255,.75); color: var(--ink); border-color: var(--ink-2); }
.mk-dot.bucket { border: 2px dashed #8a837b; background: #fbfaf8; }
.cflag { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.pill .dotc { width: 10px; height: 10px; border-radius: 5px; background: var(--accent); }
.row-main em { font-style: normal; color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- visited ---------- */
.card .badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; }
.card .heart { position: static; }
.card .been, .been-ic { width: 30px; height: 30px; border-radius: 15px; background: #2f8f5b; color: #fff; display: grid; place-items: center; }
.been-ic { width: 20px; height: 20px; color: #fff !important; }
.been-ic .ic { color: #fff; fill: none !important; }
.mk-dot .vis { position: absolute; z-index: 2; right: -5px; bottom: -5px; width: 17px; height: 17px; border-radius: 9px; background: #2f8f5b; color: #fff; display: grid; place-items: center; }
.btn.been { background: #2f8f5b !important; border-color: #2f8f5b; color: #fff; }
.pv-actions { grid-template-columns: 1fr 1fr 1.2fr; width: min(520px, calc(100% - 24px)); }
.pv-actions .btn { padding: 8px 10px; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.segs.tabs { margin: 6px 0 10px; }
.segs.tabs .seg { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- country picker ---------- */
.modal-search { height: 46px; box-shadow: none; margin: 6px 0 4px; border: 1.5px solid var(--line); }
.csec h3 { margin-top: 14px; }

/* ---------- bucket list ---------- */
.tabbar { width: min(440px, calc(100% - 24px)); }
.tabbar button { font-size: 11px; white-space: nowrap; }
.bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); min-width: 0; transition: width .3s; }
.bk-hero { display: grid; gap: 10px; width: 100%; text-align: left; border: 0; cursor: pointer; border-radius: 28px; padding: 22px; margin-bottom: 28px; background: #151413; color: #f3f2ef; }
.bk-hero .bar { background: rgba(255,255,255,.16); height: 8px; }
.bk-hero .bar i { background: #f8d771; }
.bk-big { display: flex; align-items: flex-end; gap: 12px; }
.bk-big b { font: 300 76px/0.85 var(--font); letter-spacing: -.04em; }
.bk-big span { font-size: 14px; line-height: 1.2; opacity: .8; padding-bottom: 6px; }
.bk-pct { font: italic 400 28px/1 var(--display); color: #f8d771; }
.bk-mini { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; opacity: .85; }
.bk-mini b { font-weight: 800; }
.bk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bk-card { display: grid; gap: 4px; justify-items: start; text-align: left; border: 0; cursor: pointer; background: var(--surface); border-radius: 22px; padding: 14px; color: var(--ink); min-width: 0; }
.bk-card b { font: 400 23px/1.05 var(--display); margin-top: 6px; }
.bk-card small { color: var(--ink-2); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.bk-card .bar { width: 100%; }
.tile { width: 46px; height: 46px; border-radius: 14px; background: var(--tint, var(--surface-2)); display: grid; place-items: center; flex: none; }
.tile.big { width: 72px; height: 72px; border-radius: 22px; }
.count-tag { font-weight: 800; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bk-sub { margin: 18px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bk-list { background: var(--surface); border-radius: 22px; padding: 2px 12px; }
.bk-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; }
.bk-row.slim { grid-template-columns: auto 1fr auto; padding: 8px 0; }
.bk-row.slim:not(:has(.cc)) { grid-template-columns: 1fr auto; }
.bk-row + .bk-row { border-top: 1px solid var(--line); }
.bk-row .tile { width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); }
.bk-main { min-width: 0; display: grid; }
.bk-main b { font-weight: 700; font-size: 15px; }
.bk-main small { color: var(--ink-2); font-size: 12.5px; }
.bk-row.on .bk-main b { color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-2) 60%, transparent); }
.bk-row.on .tile { opacity: .6; }
.cc { width: 34px; height: 24px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }
.bk-row.on .cc { background: #2f8f5b; color: #fff; }
.tickbtn { width: 34px; height: 34px; border-radius: 17px; border: 2px solid var(--line); background: none; display: grid; place-items: center; color: transparent; cursor: pointer; flex: none; }
.tickbtn:hover { border-color: var(--ink-2); }
.tickbtn[aria-pressed="true"] { background: #2f8f5b; border-color: #2f8f5b; color: #fff; }
.tickbtn[data-locked] { opacity: .7; }
.bk-head { display: flex; gap: 14px; align-items: center; margin: 10px 0 14px; }
.big-title.sm { font-size: 40px; }
.bk-progress { margin: 4px 0 0; color: var(--ink-2); font-weight: 600; }
.bk-progress b { color: var(--ink); font-size: 18px; }
.bk-search { height: 48px; margin: 16px 0 4px; box-shadow: none; border: 1.5px solid var(--line); }

/* ---------- Emilie's routes ---------- */
.trip-card.route { background: var(--ink); color: var(--bg); }
.trip-card.route small { color: color-mix(in srgb, var(--bg) 70%, transparent); display: block; }
.trip-card.route .eyebrow { color: #f8d771; }
.leg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.leg-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* ---------- cards: keep notes to two lines ---------- */
.card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid2 { align-items: start; }

/* ---------- price bands ---------- */
.dollars { font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.dollars i { font-style: normal; color: var(--line); }
button.stat { border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.band-note { margin: -12px 0 20px; color: var(--ink-2); font-size: 13.5px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bands { display: grid; gap: 2px; background: var(--surface); border-radius: 18px; padding: 6px 14px; }
.bands div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 8px 0; align-items: center; }
.bands div + div { border-top: 1px solid var(--line); }
.bands span { color: var(--ink); font-weight: 600; }

/* ---------- guide content ---------- */
.intro p { margin: 0 0 12px; }
.info-row p, .tip p { margin: 0 0 6px; }
.more { background: var(--surface); border-radius: 18px; padding: 0 16px; margin-bottom: 8px; }
.more summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.more summary::after { content: "+"; color: var(--ink-2); font-weight: 600; }
.more[open] summary::after { content: "–"; }
.more p { margin: 0 0 12px; color: var(--ink); }
.from-guide { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.locked { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface); margin-bottom: 14px; }
.locked .fake { padding: 18px; display: grid; gap: 10px; filter: blur(3px); opacity: .5; }
.locked .fake i { display: block; height: 11px; border-radius: 6px; background: var(--ink-2); }
.locked .fake i:nth-child(2) { width: 85%; } .locked .fake i:nth-child(3) { width: 92%; } .locked .fake i:nth-child(4) { width: 60%; }
.locked-body { padding: 4px 18px 18px; display: grid; gap: 8px; }
.locked-body .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.locked-body h3 { margin: 0; font: 400 22px/1.15 var(--display); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.guide-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; background: var(--surface); border-radius: 26px; padding: 12px; margin: -14px 0 30px; }
.guide-card > div { display: grid; gap: 6px; min-width: 0; }
.guide-card b { font: 400 25px/1.05 var(--display); }
.guide-card small { color: var(--ink-2); font-size: 13px; }
.guide-card .eyebrow { display: inline-flex; align-items: center; gap: 5px; }
.guide-card.owned .eyebrow { color: #2f8f5b; }
.guide-card .btn { justify-self: start; }
.g-cover { aspect-ratio: 3 / 4; border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); color: #fff; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 4px 6px 0 color-mix(in srgb, var(--c) 30%, transparent); }
.g-cover em { font: italic 400 22px/1 var(--display); }
.g-cover small { color: rgba(255,255,255,.85) !important; font-size: 9px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.field.code { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* ---------- access levels ---------- */
.access-btn { width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.offer { display: grid; gap: 10px; background: var(--surface); border-radius: 26px; padding: 20px 18px; }
.offer .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.offer h2 { margin: 0; font: 400 34px/1 var(--display); }
.offer p { margin: 0 0 6px; color: var(--ink-2); }
.blurred { filter: blur(5px); opacity: .55; pointer-events: none; margin-bottom: 6px; }
.blurred .card .art { aspect-ratio: 1; }
.maplock { position: absolute; z-index: 1060; left: 50%; top: 50%; transform: translate(-50%, -40%); width: min(330px, calc(100% - 32px)); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.maplock .tile { width: 54px; height: 54px; border-radius: 27px; background: var(--accent-soft); color: var(--accent); }
.maplock b { font: 400 26px/1.1 var(--display); }
.maplock small { color: var(--ink-2); margin-bottom: 8px; }
.lockmark { margin-left: auto; color: var(--ink-2); flex: none; }
.buy-opt { position: relative; background: var(--surface); border-radius: 20px; padding: 16px; margin-bottom: 10px; display: grid; gap: 4px; border: 2px solid transparent; }
.buy-opt.best { border-color: var(--accent); }
.buy-opt b { font: 400 23px/1.1 var(--display); }
.buy-opt p { margin: 0 0 8px !important; }
.buy-opt .btn { justify-self: start; }
.buy-tag { justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 9px; }
.btn.wide { width: 100%; margin-top: 4px; }
.demo-note { font-size: 12.5px; }
.acc-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: 18px; padding: 10px 12px; margin-bottom: 6px; }
.acc-row > span:first-child { display: grid; place-items: center; }
.acc-row b { display: block; }
.acc-row small { color: var(--ink-2); font-size: 12.5px; }
.acc-row .btn { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.acc-row .ok { width: 28px; height: 28px; border-radius: 14px; background: #2f8f5b; color: #fff; display: grid; place-items: center; }
.gate-card .btn.big:not(.dark) { background: transparent; border-color: #e2dfda; color: #151413; }
.btn s { opacity: .6; font-weight: 600; margin-right: 2px; }
.row-btns .btn, .buy-opt .btn { white-space: nowrap; }
