/* Home page "Atlas": full-screen live map + the cities one by one. Signal palette (light + dark via the
   site's data-theme), liquid-glass controls over the map. Loaded on the home page only. */
.atlas-home {
  --a-bg: #ffffff; --a-bg2: #f2f4f7; --a-sea: #e4edf6; --a-land: #ffffff; --a-border: #e2e6ec;
  --a-ink: #0b1220; --a-muted: #5a6577; --a-card: #ffffff; --a-line: rgba(11, 18, 32, .1);
  --a-accent: #ff3b30; --a-primary: #0b1220; --a-on-primary: #ffffff;
  --a-shadow: 0 10px 30px rgba(11, 18, 32, .08); --a-r: 12px;
  --a-glass: color-mix(in srgb, var(--a-card) 42%, transparent);
  --a-rim: rgba(255, 255, 255, .65); --a-hi: rgba(255, 255, 255, .75); --a-lo: rgba(255, 255, 255, .18);
  /* the site's own tokens follow the palette on this page, so header, footer and the blocks below match */
  --paper: var(--a-bg); --card: var(--a-card); --ink: var(--a-ink); --ink2: #2c3747; --muted: var(--a-muted);
  --line: var(--a-border); --link: #1f5eff; --shadow: var(--a-shadow);
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] .atlas-home {
  --a-bg: #0b0f17; --a-bg2: #121826; --a-sea: #0e1522; --a-land: #171f2d; --a-border: #263042;
  --a-ink: #f2f5fa; --a-muted: #8e9ab0; --a-card: #121a27; --a-line: rgba(242, 245, 250, .1);
  --a-accent: #ff5a4f; --a-primary: #ffffff; --a-on-primary: #0b0f17;
  --a-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --a-glass: color-mix(in srgb, var(--a-card) 38%, transparent);
  --a-rim: rgba(255, 255, 255, .14); --a-hi: rgba(255, 255, 255, .16); --a-lo: rgba(255, 255, 255, .03);
  --ink2: #c3ccd8; --link: #8db4ff;
}
.atlas-home { background: var(--a-bg); }
.atlas-home .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header floats over the map as a glass bar */
.atlas-home .top { position: absolute; left: 0; right: 0; top: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: max(10px, env(safe-area-inset-top)); }
.atlas-home .top .in { height: 52px; margin: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); max-width: none; padding: 0 8px 0 16px; border-radius: 999px; }
@media (min-width: 1184px) { .atlas-home .top .in { max-width: 1160px; margin: 0 auto; } }
.atlas-home .top .brand { white-space: nowrap; }
@media (max-width: 700px) { .atlas-home .top .brand span { display: none; } .atlas-home .top .in { padding-left: 12px; } }

/* glass surfaces */
.atlas-home .top .in, .asearch, .abtn, .alive, .ahint, .acard {
  background: linear-gradient(160deg, var(--a-lo), transparent 45%), var(--a-glass);
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid var(--a-rim);
  box-shadow: var(--a-shadow), inset 0 1px 0 var(--a-hi), inset 0 -1px 0 var(--a-lo);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .atlas-home .top .in, .asearch, .abtn, .alive, .ahint, .acard { background: color-mix(in srgb, var(--a-card) 92%, transparent); }
}

/* ---------- map ---------- */
.amap { position: relative; height: 100svh; min-height: 540px; overflow: hidden; background: var(--a-sea); color: var(--a-ink); }
.amap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; cursor: grab; }
.amap canvas:active { cursor: grabbing; }
.atop { position: absolute; z-index: 3; left: 0; right: 0; top: calc(max(10px, env(safe-area-inset-top)) + 62px); display: flex; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); pointer-events: none; }
@media (max-width: 700px) { .atop { padding-right: calc(max(12px, env(safe-area-inset-right)) + 50px); } }
@media (min-width: 1184px) { .atop { max-width: 1160px; margin: 0 auto; padding: 0; } }
.asearch { pointer-events: auto; flex: 1; max-width: 420px; border-radius: 999px; overflow: hidden; }
.asearch:has(.ares:not(:empty)) { border-radius: 22px; }
.asearch label { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; color: var(--a-muted); }
.asearch input { flex: 1; min-width: 0; border: 0; background: none; color: var(--a-ink); font: 500 16px var(--font); outline: none; }
.asearch input::placeholder { color: var(--a-muted); }
.ares { max-height: 46vh; overflow: auto; border-top: 1px solid var(--a-line); }
.ares:empty { display: none; }
.ares button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 16px; border: 0; background: none; color: var(--a-ink); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.ares button:hover, .ares button:focus { background: color-mix(in srgb, var(--a-card) 70%, transparent); }
.ares small { margin-left: auto; color: var(--a-muted); }
.ares i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.abtn { border-radius: 999px; color: var(--a-ink); height: 40px; min-width: 40px; padding: 0 14px; font: 600 14px var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; }
.abtn:hover { background: color-mix(in srgb, var(--a-card) 70%, transparent); text-decoration: none; }
.abtn.pri, .abtn.pri:hover { background: var(--a-primary); color: var(--a-on-primary); border-color: var(--a-primary); box-shadow: var(--a-shadow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.azoom { position: absolute; z-index: 3; right: max(12px, env(safe-area-inset-right)); top: calc(max(10px, env(safe-area-inset-top)) + 64px); display: flex; flex-direction: column; gap: 6px; }
.azoom .abtn { padding: 0; width: 40px; }
.abtn svg { display: block; flex: none; }
.alive { position: absolute; z-index: 3; left: max(12px, env(safe-area-inset-left)); top: calc(max(10px, env(safe-area-inset-top)) + 118px); font-size: 12px; color: var(--a-muted); padding: 5px 11px; border-radius: 999px; }
.alive b { color: var(--a-ink); }
@media (min-width: 1184px) { .alive { left: calc(50% - 580px); } }
.ahint { position: absolute; z-index: 2; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 60px); transform: translateX(-50%); font-size: 13px; color: var(--a-ink); padding: 8px 14px; border-radius: 999px; pointer-events: none; transition: opacity .6s; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.acard { position: absolute; z-index: 4; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 52px); background: linear-gradient(160deg, var(--a-lo), transparent 45%), color-mix(in srgb, var(--a-card) 62%, transparent); border-radius: 18px; padding: 20px 16px 14px; overflow: hidden; transform: translateY(calc(100% + 80px)); transition: transform .5s cubic-bezier(.2, .9, .25, 1); }
.acard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--a-accent); }
.acard.on { transform: none; }
@media (min-width: 860px) { .acard { left: auto; width: 380px; bottom: 24px; } }
.acard h2 { margin: 2px 0 0; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.acard .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); padding-right: 40px; }
.acard p { margin: 6px 0 10px; color: var(--a-muted); font-size: 14px; }
.acard .row { display: flex; gap: 8px; flex-wrap: wrap; }
.acard .x { position: absolute; right: 10px; top: 14px; box-shadow: none; height: 32px; min-width: 32px; padding: 0; }
[dir="rtl"] .acard .x { right: auto; left: 10px; }
.astats { display: flex; gap: 16px; margin: 0 0 12px; }
.astats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.astats small { font-size: 11px; color: var(--a-muted); }
.aexplore { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: calc(48px + max(4px, env(safe-area-inset-bottom))); display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; background: linear-gradient(transparent, var(--a-bg) 60%); }
.aexplore a { font-size: 13px; letter-spacing: .06em; color: var(--a-ink); display: flex; gap: 8px; align-items: center; }
.aexplore a:hover { text-decoration: none; }
.aexplore a span { display: inline-block; animation: abob 1.6s ease-in-out infinite; }
@keyframes abob { 50% { transform: translateY(4px); } }

/* ---------- cities ---------- */
.awrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.aintro { padding-block: 56px 16px; scroll-margin-top: 8px; }
.aintro .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--a-accent); font-weight: 600; margin: 0; }
.aintro h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.04; letter-spacing: -.03em; margin: 6px 0 10px; text-wrap: balance; max-width: 16em; }
.aintro > p { color: var(--a-muted); max-width: 62ch; }
.aindex { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.aindex a { font-weight: 600; font-size: 13px; color: var(--a-ink); border: 1px solid var(--a-border); border-radius: 999px; padding: 6px 12px; background: var(--a-card); }
.aindex a:hover { border-color: var(--a-ink); text-decoration: none; }
.acity { display: grid; gap: 22px; padding-block: 44px; border-top: 1px solid var(--a-border); scroll-margin-top: 8px; }
/* city title sits above its map on phones; on wide screens the map spans both text rows beside it */
.ahead > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .acity { grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr; column-gap: 44px; row-gap: 0; align-items: start; padding-block: 64px; }
  .aviz { position: sticky; top: 24px; grid-column: 1; grid-row: 1 / span 2; }
  .atxt { grid-column: 2; grid-row: 2; }
  .ahead { grid-row: 1; margin-bottom: 10px; }
  .acity:nth-of-type(even) .aviz { grid-column: 2; }
  .acity:nth-of-type(even) .atxt { grid-column: 1; }
}
.aviz { position: relative; aspect-ratio: 4 / 3.2; max-width: 100%; background: var(--a-land); border: 1px solid var(--a-border); border-radius: var(--a-r); box-shadow: var(--a-shadow); overflow: hidden; }
.aviz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aviz .pm { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: var(--a-muted); background: color-mix(in srgb, var(--a-card) 85%, transparent); padding: 3px 8px; border-radius: 999px; }
.aviz .stampbox { position: absolute; right: 12px; top: 12px; min-width: 62px; padding: 8px 6px; border-radius: var(--a-r); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; text-align: center; line-height: 1.2; background: var(--a-ink); color: var(--a-bg); }
.aviz .stampbox b { font-size: 18px; }
.atxt { min-width: 0; }
.atxt .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); margin: 0; }
.atxt h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.02; letter-spacing: -.03em; margin: 4px 0 6px; text-wrap: balance; }
.atxt .tg { font-weight: 600; margin: 0 0 10px; color: var(--a-ink); }
.atxt p { color: var(--a-muted); margin: 0 0 10px; max-width: 62ch; }
.atxt h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink); margin: 20px 0 8px; display: flex; align-items: center; gap: 8px; }
.atxt h3::after { content: ""; flex: 1; border-top: 1px solid var(--a-border); }
.badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.badges .morel { font-size: 13px; font-weight: 600; margin-inline-start: 4px; }
.sights { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 600px) { .sights { grid-template-columns: 1fr 1fr; } }
.sights a { display: grid; gap: 3px; background: var(--a-card); border: 1px solid var(--a-border); border-radius: var(--a-r); padding: 10px 12px; color: var(--a-ink); height: 100%; }
.sights a:hover { border-color: var(--a-ink); text-decoration: none; }
.sights b { font-size: 15px; line-height: 1.25; }
.sights .sm { font-size: 13px; color: var(--a-muted); }
.sights .pbd { display: flex; gap: 3px; flex-wrap: wrap; }
.air { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.air li { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.air b { font-weight: 650; color: var(--a-ink); }
.air span { color: var(--a-muted); }
.airmore { margin: 8px 0 0 !important; font-size: 14px; }
.alinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.alinks a { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--a-border); font-weight: 600; font-size: 14px; background: var(--a-card); color: var(--a-ink); }
.alinks a:hover { border-color: var(--a-ink); text-decoration: none; }
.alinks a.pri { background: var(--a-primary); color: var(--a-on-primary); border-color: var(--a-primary); }
.anote { font-size: 13px; color: var(--a-muted); padding-block: 24px 8px; border-top: 1px solid var(--a-border); }
.atoast { position: fixed; z-index: 60; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; transition: .3s; background: var(--a-primary); color: var(--a-on-primary); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; pointer-events: none; max-width: calc(100vw - 32px); }
.atoast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .aexplore a span { animation: none; } .acard { transition: none; } }

