:root {
  --bg: #05070d;
  --ink: #f4f6fb;
  --muted: rgba(244, 246, 251, .64);
  --faint: rgba(244, 246, 251, .4);
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .035);
  --accent: #ffcf8a;
  --rain: #7cc4ff;
  --serif: 'Instrument Serif', 'Noto Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
svg { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 30%; z-index: -2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 7, 13, 0), rgba(5, 7, 13, .55) 55%, var(--bg));
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .45));
}
.grain {
  position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-18px, 12px); }
  40% { transform: translate(14px, -20px); } 60% { transform: translate(-10px, -8px); }
  80% { transform: translate(20px, 16px); } 100% { transform: translate(0, 0); }
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.brand em, .foot-brand em { font-family: var(--serif); font-size: 1.25em; font-weight: 400; }
.cities {
  justify-self: center;
  display: flex; gap: 2px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(8, 12, 22, .28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.cities::-webkit-scrollbar { display: none; }
.cities a {
  display: block;
  border: 0; background: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.cities a:hover { color: var(--ink); }
.cities a[aria-current='page'] { background: rgba(255, 255, 255, .94); color: #0a0d16; }
.top-right { display: flex; align-items: center; gap: 18px; }
.lang {
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(8, 12, 22, .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .3s, border-color .3s;
}
.lang:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.clock { text-align: right; line-height: 1.1; }
.clock span { font-size: 17px; font-weight: 400; font-variant-numeric: tabular-nums; }
.clock small { display: block; font-size: 11px; color: var(--faint); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding: 40px var(--gutter) 28px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.city {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(68px, 13vw, 210px);
  line-height: .86; letter-spacing: -.025em;
}
.alt-name {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.4vw, 34px); color: var(--muted);
  margin-top: 10px;
}
.hero-temp { text-align: right; }
.temp {
  font-weight: 200;
  font-size: clamp(104px, 15vw, 236px);
  line-height: .8; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  margin-right: -.04em;
}
.temp span { color: var(--accent); font-weight: 200; transition: color 1.2s; }
.cond { font-size: clamp(18px, 1.8vw, 24px); font-weight: 400; margin-top: 18px; }
.hilo { color: var(--muted); font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; }

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: 24px var(--gutter) 64px;
  border-top: 1px solid var(--line);
  margin: 0 var(--gutter);
  padding-left: 0; padding-right: 0;
}
.summary { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.25; max-width: 30ch; }
.quick { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 40px; }
.quick dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.quick dd { font-size: 19px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 24px; height: 40px; display: grid; place-items: center;
}
.scroll-cue span { width: 1px; height: 32px; background: linear-gradient(var(--ink), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Staggered entrance, re-run on every city change */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(12px);
  transition: opacity .8s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.is-in .reveal { opacity: 1; transform: none; filter: none; }

/* ---------- Sections ---------- */

main { max-width: 1280px; margin: 0 auto; padding: 24px var(--gutter) 0; }
.block { margin-bottom: 104px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.block-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -.01em; line-height: 1; }
.block-head p { color: var(--muted); font-size: 14px; text-align: right; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}

/* Hourly */
.hourly-card { overflow: hidden; }
.hourly {
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
}
.hourly-track { position: relative; display: flex; width: max-content; padding: 0 16px; }
.hourly-track .curve { position: absolute; left: 16px; top: 84px; overflow: visible; pointer-events: none; }
.curve text { fill: var(--ink); font: 400 13px var(--sans); font-variant-numeric: tabular-nums; }
.h {
  width: 76px; flex: none;
  display: grid; grid-template-rows: 20px 32px 80px 18px; row-gap: 8px; justify-items: center; align-items: center;
  padding: 16px 0;
}
.h-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.h.now .h-time { color: var(--ink); font-weight: 500; }
.h-pp { font-size: 12px; color: var(--rain); font-weight: 500; }
.h.sun .h-time { color: var(--accent); }
.h.sun .h-pp { color: var(--accent); font-weight: 400; }

/* Daily */
.grid2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; }
.daily { list-style: none; padding: 6px 24px; }
.daily li {
  display: grid; grid-template-columns: 58px 30px 40px 36px 1fr 36px; align-items: center; gap: 12px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.daily li:last-child { border-bottom: 0; }
.d-day { font-weight: 400; }
.d-pp { font-size: 12px; color: var(--rain); font-weight: 500; }
.d-min { color: var(--faint); text-align: right; }
.d-max { text-align: right; font-weight: 400; }
.d-bar { position: relative; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.d-bar i { position: absolute; top: 0; bottom: 0; border-radius: 9px; }
.d-bar b { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(5, 7, 13, .9); }

/* Detail tiles */
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px 20px; min-height: 152px;
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.tile-label { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.tile-label svg { width: 14px; height: 14px; }
.tile-value { font-size: 34px; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile-value small { font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.tile-text { font-size: 13px; color: var(--muted); margin-top: auto; }
.tile .compass { position: absolute; right: 16px; top: 40px; }
.uv-bar { position: relative; height: 5px; border-radius: 9px; margin: 8px 0 2px; background: linear-gradient(90deg, #5fd38d, #f4d35e 30%, #f59e42 55%, #ef4f5a 78%, #a65bd8); }
.uv-bar b { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(5, 7, 13, .9); }
.sun-arc { margin: 2px 0 -4px; }

/* Island */
.island { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.map-card { overflow: hidden; }
.map { height: 560px; background: #0a0d14; }
.city-cards { display: grid; gap: 10px; }
.cc {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 14px 18px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.cc:hover { background: rgba(255, 255, 255, .06); transform: translateX(3px); }
.cc[aria-current='page'] { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .07); }
.cc-name { font-family: var(--serif); font-size: 26px; line-height: 1; }
.cc-sub { display: block; font-size: 12px; color: var(--faint); margin-top: 4px; font-family: var(--sans); }
.cc-temp { font-size: 30px; font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

.pin-wrap { background: none; border: 0; }
.pin {
  display: flex; align-items: center; gap: 7px; width: max-content;
  transform: translate(-50%, -50%);
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(10, 14, 24, .82); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font: 400 13px var(--sans); cursor: pointer; white-space: nowrap;
  transition: background .3s, color .3s;
}
.pin b { font-weight: 500; font-variant-numeric: tabular-nums; }
.pin span { color: rgba(255, 255, 255, .62); }
.pin svg { width: 20px; height: 20px; }
.pin.active { background: rgba(255, 255, 255, .95); color: #0a0d16; --cloud: #3a4560; }
.pin.active span { color: rgba(10, 13, 22, .6); }
.leaflet-container { font-family: var(--sans); background: #0a0d14; }
.leaflet-control-attribution { background: rgba(5, 7, 13, .7) !important; color: var(--faint) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* Footer */
.footer {
  max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 56px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer a { color: var(--ink); border-bottom: 1px solid var(--line); }
.foot-brand { color: var(--ink); font-size: 18px; margin-bottom: 6px; }

.error { color: #ffb4a8; }

/* About */
.about { max-width: 760px; }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin-bottom: 14px; }
.about p { color: var(--muted); font-size: 16px; line-height: 1.7; }

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.foot-links a { border-bottom: 0; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* Greek pages: the serif falls back to Noto Serif Display, which runs wider */
:lang(el) .city { font-size: clamp(54px, 10vw, 168px); font-weight: 300; letter-spacing: -.035em; }
:lang(el) .block-head h2, :lang(el) .about h2 { font-weight: 300; letter-spacing: -.02em; }
:lang(el) .cc-name { font-size: 22px; font-weight: 300; }
:lang(el) .summary { font-weight: 300; }
.alt-name:lang(el) { font-weight: 300; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .topbar { grid-template-columns: 1fr auto; }
  .cities { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .quick { grid-template-columns: repeat(2, auto); }
  .grid2, .island { grid-template-columns: 1fr; }
  .map { height: 420px; }
}
@media (max-width: 720px) {
  .topbar { gap: 14px; padding-top: 16px; }
  .hero-main { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .hero-temp { text-align: left; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 20px; padding-bottom: 64px; }
  .quick { grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
  .daily { padding: 4px 16px; }
  .daily li { grid-template-columns: 48px 26px 34px 30px 1fr 30px; gap: 8px; }
  .details { gap: 10px; }
  .tile { padding: 16px; min-height: 140px; }
  .tile-value { font-size: 28px; }
  .tile .compass { right: 10px; top: 36px; transform: scale(.82); transform-origin: top right; }
  .block { margin-bottom: 72px; }
  .block-head { flex-direction: column; gap: 6px; }
  .block-head p { text-align: left; }
  .map { height: 340px; }
  .pin { padding: 4px 9px 4px 6px; font-size: 12px; gap: 4px; }
  .pin span { display: none; }
  .pin.active span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue span { animation: none; }
  .reveal { transition: opacity .3s; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Pages: transitions, headings, month and climate blocks ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.city .kicker {
  display: block; font-style: italic; color: var(--muted);
  font-size: clamp(22px, 2.6vw, 38px); line-height: 1.1; letter-spacing: 0; margin-bottom: 4px;
}
.temp-place { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.temp-place:empty { display: none; }
.cities a.is-parent { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--muted); }
.mstats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 26px; }
.mstat {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.mstat .tile-value { font-size: 30px; }
.mstat .tile-value small { font-size: 13px; }
.mstat .tile-text { margin-top: 0; }
.month-text { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); line-height: 1.4; max-width: 62ch; margin-bottom: 28px; }
:lang(el) .month-text { font-weight: 300; }
.month-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.month-nav a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, border-color .3s; }
.month-nav a:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }

.clim-card { overflow-x: auto; }
.clim { display: grid; grid-template-columns: repeat(12, minmax(44px, 1fr)); gap: 4px; padding: 20px 16px 8px; min-width: 600px; }
.clim-m {
  display: grid; grid-template-rows: 18px 150px 18px 18px 16px; justify-items: center; align-items: center; gap: 6px;
  padding: 10px 0; border-radius: 14px; transition: background .3s;
  font-variant-numeric: tabular-nums;
}
.clim-m:hover { background: rgba(255, 255, 255, .05); }
.clim-m.is-current { background: rgba(255, 255, 255, .09); }
.clim-hi { font-size: 13px; font-weight: 500; }
.clim-lo { font-size: 12px; color: var(--faint); }
.clim-bar { position: relative; width: 8px; height: 100%; border-radius: 9px; background: rgba(255, 255, 255, .05); }
.clim-bar i { position: absolute; left: 0; right: 0; border-radius: 9px; }
.clim-name { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.clim-sea { font-size: 11px; color: var(--rain); }
.clim-legend { display: flex; gap: 20px; padding: 4px 24px 18px; font-size: 12px; color: var(--faint); min-width: 600px; }
.clim-legend i { display: inline-block; vertical-align: middle; margin-right: 7px; }
.lg-temp { width: 16px; height: 6px; border-radius: 9px; background: linear-gradient(90deg, #6ec8f5, #ffd064); }
.lg-sea { width: 7px; height: 7px; border-radius: 50%; background: var(--rain); }

.table-wrap { overflow-x: auto; margin-top: 16px; }
.clim-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.clim-table th, .clim-table td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.clim-table th:first-child { text-align: left; }
.clim-table thead th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.clim-table tbody th { font-weight: 400; }
.clim-table tbody th a:hover { color: var(--accent); }
.clim-table td { color: var(--muted); }
.clim-table tr.is-current { background: rgba(255, 255, 255, .05); }
.note { font-size: 12px; color: var(--faint); margin-top: 12px; }

.nf { min-height: 100vh; background: radial-gradient(120% 80% at 50% 0%, #10204a, var(--bg) 70%); }
.nf-main { max-width: 760px; margin: 0 auto; padding: 18vh var(--gutter) 80px; }
.nf-main h1 { font-size: clamp(56px, 9vw, 110px); margin: 10px 0 18px; }
.nf-main h2 { font-family: var(--serif); font-weight: 300; font-size: 32px; margin: 48px 0 10px; }
.nf-main p { color: var(--muted); }

@media (max-width: 1080px) {
  .mstats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .mstats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mstat .tile-value { font-size: 26px; }
  .city .kicker { font-size: 20px; }
}

/* ---------- Climate filter ---------- */

.clim-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.clim-tools[hidden] { display: none; }
.seg {
  display: flex; gap: 2px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'] { background: rgba(255, 255, 255, .94); color: #0a0d16; }
.year-pick select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 400 13px var(--sans); color: var(--ink);
  padding: 10px 38px 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23f4f6fb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  transition: border-color .3s;
}
.year-pick select:hover, .year-pick select:focus-visible { border-color: rgba(255, 255, 255, .3); outline: none; }
.year-pick option { background: #0d111c; color: var(--ink); }

.clim-bar i { transition: top .5s var(--ease), bottom .5s var(--ease); }
.clim:not([data-view='temp']) .clim-bar { width: 16px; }
.clim-bar i.ghost { background: none !important; border: 1px dashed rgba(255, 255, 255, .45); left: -4px; right: -4px; }
.clim:not([data-view='temp']) .clim-bar i.ghost { left: -3px; right: -3px; }
.clim-bar .avg-tick { position: absolute; left: -6px; right: -6px; height: 2px; margin-bottom: -1px; border-radius: 2px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 2px rgba(5, 7, 13, .6); }
.clim[data-view='rain'] .clim-lo { color: var(--rain); }

.lg-ghost { width: 16px; height: 8px; border-radius: 9px; border: 1px dashed rgba(255, 255, 255, .6); }
.lg-tick { width: 16px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .85); }
.lg-seabar { width: 16px; height: 6px; border-radius: 9px; background: linear-gradient(90deg, #2f6fd0, #7cc4ff); }
.lg-rain { width: 16px; height: 6px; border-radius: 9px; background: linear-gradient(90deg, #3d7fd9, #7cc4ff); }
.lg-sun { width: 16px; height: 6px; border-radius: 9px; background: linear-gradient(90deg, #f59e42, #ffd36e); }

.clim-table th.is-metric { color: var(--accent); }
.clim-table td.is-metric { color: var(--ink); font-weight: 400; }

@media (max-width: 720px) {
  .clim-tools { flex-direction: column; align-items: stretch; }
  .seg button { flex: 1; padding: 8px 10px; }
  .year-pick select { width: 100%; }
}

/* ---------- Cookie notice, footer links, privacy page ---------- */

.consent {
  position: fixed; z-index: 2000; left: 50%; bottom: 20px; width: min(560px, calc(100% - 32px));
  transform: translate(-50%, 24px); opacity: 0;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  padding: 18px 20px; border-radius: 20px;
  background: rgba(12, 16, 28, .86); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  font-size: 14px; color: var(--muted);
}
.consent.is-in { opacity: 1; transform: translate(-50%, 0); }
.consent p { line-height: 1.55; }
.consent a { color: var(--ink); border-bottom: 1px solid var(--line); }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.consent-actions button {
  cursor: pointer; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: none; color: var(--ink); transition: background .3s, border-color .3s;
}
.consent-actions button:hover { border-color: rgba(255, 255, 255, .35); }
.consent-actions button.primary { background: rgba(255, 255, 255, .94); color: #0a0d16; border-color: transparent; }

.foot-right { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); border-bottom: 1px solid var(--line); }

.legal { max-width: 720px; padding-top: 10vh; }
.legal .crumbs { align-items: center; }
.legal-lang { margin-left: auto; }
.legal h1 { font-size: clamp(44px, 7vw, 76px); margin: 18px 0 6px; }
.legal h2 { font-size: 26px; margin: 34px 0 8px; }
.legal p { line-height: 1.7; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal code { font-size: .9em; color: var(--ink); }
.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 40px; }
.legal-actions .lang { cursor: pointer; color: var(--ink); }

@media (max-width: 720px) {
  .foot-right { text-align: left; }
  .consent { bottom: 12px; padding: 16px; }
  .consent-actions button { flex: 1; }
}

/* ---------- Neighbourhoods, my location ---------- */

.here-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(8, 12, 22, .28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .3s, border-color .3s; white-space: nowrap;
}
.here-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.here-btn svg { color: var(--accent); }
.here-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .94); color: #0a0d16; font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), opacity .3s;
}
.here-go:hover { transform: translateY(-1px); }
.here-go:disabled { opacity: .6; cursor: progress; }
.here-go[hidden] { display: none; }
.alt-name a { border-bottom: 1px solid rgba(255, 255, 255, .3); font-style: normal; font-family: var(--sans); font-size: 15px; }

.pin.you { background: var(--accent); color: #0a0d16; border-color: transparent; font-weight: 500; }
.pin.you i { width: 8px; height: 8px; border-radius: 50%; background: #0a0d16; box-shadow: 0 0 0 3px rgba(10, 13, 22, .25); }
.pin.you span { color: #0a0d16; display: inline; }

.crumbs-top { margin-bottom: 40px; }
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ac {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.ac:hover { background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.ac[aria-current='page'] { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .07); }
.ac-name { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
:lang(el) .ac-name { font-weight: 300; font-size: 19px; }
.ac .cc-temp { font-size: 26px; }

@media (max-width: 1080px) {
  .here-btn span { display: none; }
  .here-btn { padding: 7px 9px; }
}
@media (max-width: 720px) {
  .top-right { gap: 8px; }
  .area-cards { grid-template-columns: 1fr 1fr; }
  .ac { padding: 12px 14px; }
  .ac-name { font-size: 18px; }
  .ac .cc-temp { font-size: 22px; }
}

.temp:empty { display: none; }
