/* destination.css -- the ONE destination (location) page template (D-268 / D-269 screens 2-3 + revision 1). Every value comes from
   atlas-tokens.css; nothing here is place-specific. Pages: written by scripts/atlas/build_destination.py from destinations/<place>.json. */
html { -webkit-text-size-adjust: 100%; }
body.atlas-dest { margin: 0; background: var(--atlas-cream); color: var(--atlas-ink); font: 16px/1.5 var(--atlas-sans); padding-bottom: 112px; }
.atlas-dest *, .atlas-dest *::before, .atlas-dest *::after { box-sizing: border-box; }
.atlas-dest a { color: var(--atlas-green); }
.atlas-dest h1, .atlas-dest h2, .atlas-dest h3 { font-family: var(--atlas-serif); font-weight: 500; color: var(--atlas-green); margin: 0; letter-spacing: -0.01em; }
.ad-wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--atlas-gutter); }
.ad-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--atlas-gold-dk); margin: 0; }
.ad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--atlas-btn-h); padding: 0 20px; border-radius: var(--atlas-r-pill);
  font: 700 16px/1.1 var(--atlas-sans); text-decoration: none; cursor: pointer; border: 2px solid var(--atlas-green); }
.ad-btn--primary { background: var(--atlas-green); color: #fff !important; }
.ad-btn--outline { background: var(--atlas-card); color: var(--atlas-green) !important; }
.ad-btn:active { opacity: .85; }

/* price ribbon + header */
.ad-free { margin: 0; background: var(--atlas-green-dk); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.ad-head { background: var(--atlas-cream); border-bottom: 1px solid var(--atlas-line); }
.ad-head .ad-wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.ad-home { display: inline-flex; align-items: center; gap: 6px; min-height: var(--atlas-tap); min-width: var(--atlas-tap); padding: 0 14px; border: 1.5px solid var(--atlas-line2);
  border-radius: var(--atlas-r-pill); background: var(--atlas-card); color: var(--atlas-green); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.ad-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--atlas-green); min-width: 0; }
.ad-logo svg { width: 22px; height: 22px; flex: none; }
.ad-logo b { font-family: var(--atlas-serif); font-weight: 600; font-size: 18px; letter-spacing: .08em; }
.ad-logo span { font-size: 13px; color: var(--atlas-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-tours { min-height: var(--atlas-tap); display: inline-flex; align-items: center; padding: 0 4px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--atlas-ink) !important; }

/* hero: photo, eyebrow, headline, the introduction */
.ad-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--atlas-green); }
.ad-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,36,27,.10) 0%, rgba(15,36,27,.45) 45%, rgba(15,36,27,.88) 100%); }
.ad-hero .ad-eyebrow, .atlas-dest .ad-hero h1 { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.ad-hero__in { position: relative; z-index: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 24px var(--atlas-gutter) 20px; }
.ad-hero .ad-eyebrow { color: var(--atlas-gold-lt); }
.atlas-dest .ad-hero h1 { color: #fff; font-size: 31px; line-height: 1.12; margin: 6px 0 14px; }
.ad-intro { display: inline-flex; align-items: center; gap: 10px; min-height: var(--atlas-tap); padding: 4px 16px 4px 4px; border: 0; border-radius: var(--atlas-r-pill);
  background: var(--atlas-cream); color: var(--atlas-green); font: 700 15px/1 var(--atlas-sans); cursor: pointer; }
.ad-intro i { width: 36px; height: 36px; border-radius: 50%; background: var(--atlas-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; }
.ad-credit { position: relative; z-index: 1; font-size: 11px; opacity: .85; margin: 8px 0 0; }

/* stats strip, two actions, offline note */
.ad-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 14px 0 12px; background: var(--atlas-card); border: 1px solid var(--atlas-line); border-radius: var(--atlas-r-card); }
.ad-stats div { text-align: center; padding: 10px 4px; border-left: 1px solid var(--atlas-line); }
.ad-stats div:first-child { border-left: 0; }
.ad-stats b { display: block; font-family: var(--atlas-serif); font-weight: 600; font-size: 21px; color: var(--atlas-green); line-height: 1.2; }
.ad-stats span { font-size: 12px; color: var(--atlas-ink2); }
.ad-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-actions .ad-btn { padding: 0 10px; font-size: 15px; white-space: nowrap; }
.ad-actions .ad-btn:only-child { grid-column: 1 / -1; }
.ad-offline { display: flex; gap: 10px; margin: 12px 0 0; padding: 12px 14px; background: var(--atlas-sand); border-radius: 12px; font-size: 14px; line-height: 1.45; }
.ad-offline b { color: var(--atlas-ink); }
.ad-offline button { padding: 0; border: 0; background: none; color: var(--atlas-green); font: 700 14px/1.45 var(--atlas-sans); text-decoration: underline; cursor: pointer; }

/* choose a tour */
.ad-choose { padding: 26px 0 8px; scroll-margin-top: 8px; }
.atlas-dest .ad-choose h2 { font-size: 26px; }
.ad-sub { margin: 4px 0 14px; color: var(--atlas-ink2); font-size: 14px; }
.ad-feat { background: var(--atlas-card); border: 2px solid var(--atlas-green); border-radius: 20px; overflow: hidden; }
.ad-feat__photo { position: relative; aspect-ratio: 16 / 9; background: var(--atlas-map); }
.ad-feat__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-badge { position: absolute; left: 10px; top: 10px; background: var(--atlas-green); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: var(--atlas-r-pill); }
.ad-feat__body { padding: 14px; }
.atlas-dest .ad-feat h3 { font-size: 24px; line-height: 1.15; margin: 4px 0 10px; }
.ad-mini { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--atlas-line); border-radius: 12px; margin: 0 0 12px; }
.ad-mini div { text-align: center; padding: 8px 4px; border-left: 1px solid var(--atlas-line); }
.ad-mini div:first-child { border-left: 0; }
.ad-mini b { display: block; font-family: var(--atlas-serif); font-weight: 600; font-size: 19px; color: var(--atlas-green); }
.ad-mini span { font-size: 11.5px; color: var(--atlas-ink2); }
.ad-route { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--atlas-map); }
.ad-first { margin: 12px 0 14px; padding: 0; list-style: none; }
.ad-first__h { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--atlas-ink2); margin: 0 0 4px; }
.ad-first li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--atlas-line); font-size: 15px; }
.ad-first li i { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--atlas-red); color: #fff; font: 700 12px/24px var(--atlas-sans); text-align: center; font-style: normal; }
.ad-first li span { flex: 1; min-width: 0; }
.ad-first li small { color: var(--atlas-ink2); font-size: 13px; }
.ad-feat__go { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ad-feat__go .ad-btn { width: 100%; }
.ad-only { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--atlas-ink2); }
.ad-saved { color: var(--atlas-green) !important; border-color: var(--atlas-green); }

/* the other tours */
.ad-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ad-list[data-collapsed="1"] li[data-more] { display: none; }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--atlas-card); border: 1px solid var(--atlas-line); border-radius: var(--atlas-r-card); text-decoration: none; color: var(--atlas-ink) !important; min-height: 92px; }
.ad-row img, .ad-row .ad-thumb { width: 72px; height: 72px; flex: none; border-radius: 10px; object-fit: cover; background: var(--atlas-map); }
.ad-row div { flex: 1; min-width: 0; }
.ad-row .ad-eyebrow { font-size: 11px; }
.ad-row b { display: block; font-size: 16px; line-height: 1.25; margin: 2px 0; color: var(--atlas-ink); }
.ad-row small { display: block; font-size: 13px; color: var(--atlas-ink2); line-height: 1.35; }
.ad-row em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--atlas-gold-dk); }
.ad-row::after { content: '›'; font-size: 22px; color: var(--atlas-ink2); padding: 0 4px; }
.ad-all { display: block; margin: 14px auto 0; min-height: var(--atlas-tap); padding: 0 12px; border: 0; background: none; font: 700 15px var(--atlas-sans); color: var(--atlas-green); text-decoration: underline; cursor: pointer; }
.ad-map { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 14px; background: var(--atlas-card); border: 1px solid var(--atlas-line); border-radius: var(--atlas-r-card); }
.ad-map__ic { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--atlas-sand); display: flex; align-items: center; justify-content: center; color: var(--atlas-green); }
.ad-map div { flex: 1; }
.ad-map b { display: block; font-size: 16px; }
.ad-map small { font-size: 13px; color: var(--atlas-ink2); }
.ad-map .ad-btn { min-height: var(--atlas-tap); padding: 0 16px; }

/* credits + footer */
.ad-credits { margin: 28px 0 0; font-size: 12px; color: var(--atlas-ink2); }
.ad-credits h2 { font-size: 16px; margin: 0 0 6px; }
.ad-credits p { margin: 0 0 4px; }
.ad-foot { margin: 28px 0 0; background: var(--atlas-green-dk); color: #fff; padding: 22px 0 28px; font-size: 13px; }
.ad-foot a { color: #fff !important; margin-right: 14px; }
.ad-foot p { margin: 10px 0 0; opacity: .85; }

/* the sticky bar: Choose a tour + Explore / Plan my visit / Near me (revision 1: not Start) */
.ad-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--atlas-cream); border-top: 1px solid var(--atlas-line); box-shadow: 0 -6px 18px rgba(15,36,27,.08);
  padding: 10px var(--atlas-gutter) calc(8px + env(safe-area-inset-bottom)); }
.ad-bar .ad-wrap { padding: 0; }
.ad-bar .ad-btn { width: 100%; }
.ad-bar nav { display: flex; justify-content: space-around; margin: 4px 0 0; }
.ad-bar nav a, .ad-bar nav button { min-height: var(--atlas-tap); display: inline-flex; align-items: center; padding: 0 8px; border: 0; background: none; font: 600 14px var(--atlas-sans); color: var(--atlas-green); text-decoration: underline; cursor: pointer; }
.ad-near { margin: 10px 0 0; font-size: 14px; color: var(--atlas-ink2); }
@media (min-width: 900px) { .atlas-dest .ad-hero h1 { font-size: 40px; } .ad-hero { min-height: 380px; } }

/* ELI 19 Oct (P1-C): the Story map card is a real map (dest-map.js draws the pins; the whole card opens the full map) */
a.ad-map { flex-wrap: wrap; color: inherit; text-decoration: none; }
/* RC1f (owner 20 Oct): the destination's story map is large, like every embedded map (phone >= 55 % / >= 360 px, desktop 520 px) */
.ad-map__live { display: none; flex: 0 0 100% !important; height: 55vh; height: 55svh; min-height: 360px; max-height: 620px; border-radius: 12px; overflow: hidden; background: var(--atlas-line); }
@media (min-width: 768px) { .ad-map__live { height: 520px; } }
.ad-map--live .ad-map__live { display: block; }
.ad-map--live .ad-map__ic { display: none; }
.ad-map__live .leaflet-control-attribution { font-size: 9px; }
