/* ============================================================
   HK Cycling Map – one stylesheet.
   Colours, radii and shadows follow loco.hk.
   ============================================================ */

:root {
  --brand: #0b6fb8;
  --brand-dark: #08548c;
  --brand-soft: #e6f2fb;
  --brand-sky: #7cc4f2;
  --navy: #0e2433;
  --body: #33495a;
  --muted: #5b6b78;
  --faint: #b9c7d2;
  --line: #e3eaf0;
  --ring: #dce5ec;
  --ring-strong: #c9d6e0;
  --canvas: #f5f8fa;
  --white: #fff;
  --leaf: #1e7a4c;

  --lv1: #2e9e62; --lv1-fg: #1e7a4c; --lv1-bg: #e9f5ee;
  --lv2: #0b6fb8; --lv2-fg: #08548c; --lv2-bg: #e6f2fb;
  --lv3: #f2a65a; --lv3-fg: #a2520c; --lv3-bg: #fdf1e4;
  --lv4: #d9483b; --lv4-fg: #a8261b; --lv4-bg: #fdecea;

  --radius-card: 18px;
  --radius-panel: 24px;
  --shadow-card: 0 1px 0 0 var(--line), 0 10px 30px rgba(14, 36, 51, 0.06);
  --shadow-float: 0 18px 50px rgba(14, 36, 51, 0.12);
  --shadow-header: 0 1px 0 0 var(--line), 0 6px 20px rgba(14, 36, 51, 0.05);

  --font: 'Noto Sans HK', 'Noto Sans SC', 'PingFang HK', 'PingFang SC', 'Microsoft JhengHei',
    'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-h: 64px;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 900; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .container { padding-inline: 20px; } }
.section { padding-top: 72px; }

/* LocoBike app webview (?inApp=1): the app has its own chrome */
html.in-app .site-chrome { display: none !important; }
html.in-app #routes { padding-top: 20px; }

/* ---------- buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--ring-strong); }
.btn-outline:hover { background: var(--canvas); }
.btn-soft { background: var(--canvas); color: var(--navy); }
.btn-soft:hover { background: var(--line); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--body); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { background: var(--brand-soft); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.is-on { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 14px; font-weight: 700;
}
.section-head { max-width: 680px; margin-bottom: 24px; }
.section-head h2 { margin-top: 12px; font-size: 28px; }
.section-head p { margin-top: 8px; color: var(--muted); }

.panel { background: #fff; border-radius: var(--radius-panel); box-shadow: var(--shadow-card); }

/* difficulty pill: ▂▄▆█ 輕鬆 */
.level {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  color: var(--fg); background: var(--bg);
}
.level-bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.level-bars i { width: 4px; border-radius: 1px; background: var(--fg); opacity: .2; }
.level-bars i:nth-child(1) { height: 6px; } .level-bars i:nth-child(2) { height: 8px; }
.level-bars i:nth-child(3) { height: 10px; } .level-bars i:nth-child(4) { height: 12px; }
.level-bars i.on { background: var(--dot); opacity: 1; }
.lv-1 { --dot: var(--lv1); --fg: var(--lv1-fg); --bg: var(--lv1-bg); }
.lv-2 { --dot: var(--lv2); --fg: var(--lv2-fg); --bg: var(--lv2-bg); }
.lv-3 { --dot: var(--lv3); --fg: var(--lv3-fg); --bg: var(--lv3-bg); }
.lv-4 { --dot: var(--lv4); --fg: var(--lv4-fg); --bg: var(--lv4-bg); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-header); backdrop-filter: blur(8px); }
.header .container { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 28px; width: auto; }
.brand-divider { width: 1px; height: 20px; background: var(--ring); }
.brand-name { font-weight: 900; color: var(--navy); }
.nav { display: none; gap: 28px; margin-left: 16px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--brand); }
@media (min-width: 1024px) { .nav { display: flex; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 4px; border-radius: 999px; background: var(--canvas); font-size: 14px; }
.lang button { padding: 4px 10px; border-radius: 999px; font-weight: 700; color: var(--body); }
.lang button[aria-pressed='true'] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(14, 36, 51, .12); }
.header .btn { height: 40px; padding: 0 16px; }
@media (max-width: 640px) { .header .btn { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 0%, rgba(14, 36, 51, .8) 50%, rgba(14, 36, 51, .2) 100%); }
.hero .container { padding-top: 56px; padding-bottom: 112px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 500; }
.hero-eyebrow .icon { color: #7fd3a6; }
.hero h1 { margin-top: 24px; max-width: 680px; color: #fff; font-size: clamp(42px, 8vw, 72px); line-height: 1.1; letter-spacing: .01em; white-space: pre-line; }
.hero-lead { margin-top: 20px; max-width: 560px; color: var(--faint); font-size: 17px; }
.hero-search { display: flex; align-items: center; max-width: 560px; height: 56px; margin-top: 32px; padding: 6px 6px 6px 20px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-float); }
.hero-search .icon { color: var(--muted); font-size: 20px; }
.hero-search input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: none; color: var(--navy); font-size: 16px; }
.hero-search .btn { height: 100%; padding: 0 24px; }
.hero .btn-glass { margin-top: 16px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-sky); }
@media (min-width: 768px) { .hero .container { padding-top: 80px; padding-bottom: 144px; } .hero-lead { font-size: 18px; } }

/* ---------- stats card ---------- */
.stats { position: relative; display: flex; flex-direction: column; gap: 20px; margin-top: -64px; padding: 24px; }
.stats h2 { font-size: 20px; }
.stats dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.stats dd { margin: 0; }
.stats .num { font-size: 32px; font-weight: 900; line-height: 1; color: var(--brand-dark); }
.stats .lbl { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (min-width: 768px) {
  .stats { flex-direction: row; align-items: center; justify-content: space-between; margin-top: -80px; padding: 28px 32px; }
  .stats h2 { font-size: 24px; }
  .stats dl { gap: 48px; }
  .stats .num { font-size: 40px; }
}

/* ---------- explorer: filters ---------- */
.filters { padding: 16px; }
@media (min-width: 768px) { .filters { padding: 24px; } }
.filter-top { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .filter-top { flex-direction: row; } }
.search { position: relative; flex: 1; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; pointer-events: none; }
.search input { width: 100%; height: 48px; padding: 0 48px; border: 0; border-radius: 999px; background: var(--canvas); color: var(--navy); outline: 0; }
.search input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--brand); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); font-size: 18px; }
.search .clear:hover { background: var(--line); }
.filter-actions { display: flex; gap: 8px; }
.filter-actions > * { flex: 1; }
@media (min-width: 768px) { .filter-actions > * { flex: none; } }
.select { position: relative; }
.select select { appearance: none; width: 100%; height: 48px; padding: 0 40px 0 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ring-strong); color: var(--navy); font-weight: 700; font-size: 15px; outline: 0; cursor: pointer; }
.select select:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.select::after { content: '▾'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.geo-msg { margin-top: 8px; padding-inline: 8px; color: #b42318; font-size: 14px; }

.pills { display: flex; gap: 8px; margin: 16px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .pills { margin-inline: -24px; padding-inline: 24px; } }
@media (min-width: 1024px) { .pills { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }
.pill { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ring); color: var(--body); font-size: 15px; font-weight: 500; transition: box-shadow .15s, background .15s; }
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.pill .count { opacity: .6; }
.pill[aria-pressed='true'] { background: var(--navy); color: #fff; box-shadow: none; }

.levels-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.level-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--fg); background: var(--bg); }
.level-btn::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.level-btn[aria-pressed='true'] { color: #fff; background: var(--fg); }
.level-btn[aria-pressed='true']::before { background: #fff; }
.reset-link { margin-left: auto; color: var(--brand); font-size: 14px; font-weight: 700; }
.reset-link:hover { text-decoration: underline; }

/* ---------- explorer: results ---------- */
.result-count { margin: 24px 4px 12px; color: var(--navy); font-size: 15px; font-weight: 700; scroll-margin-top: calc(var(--header-h) + 16px); }
.results { display: block; }
@media (min-width: 1024px) { .results { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; } }
@media (min-width: 1280px) { .results { grid-template-columns: minmax(0, 1fr) 480px; } }
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.cards-4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.more { margin-top: 24px; text-align: center; }
.more .btn span { color: var(--muted); font-weight: 500; }
.empty { padding: 64px 24px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 16px; }

.map-box { height: calc(100dvh - 180px); min-height: 420px; overflow: hidden; border-radius: var(--radius-panel); box-shadow: var(--shadow-card); background: var(--brand-soft); }
@media (max-width: 1023px) { .results:not(.show-map) .map-box { display: none; } .results.show-map .list-box { display: none; } }
@media (min-width: 1024px) { .map-box { position: sticky; top: calc(var(--header-h) + 24px); height: calc(100dvh - var(--header-h) - 48px); } }
.map-switch { position: sticky; bottom: 20px; z-index: 900; display: flex; justify-content: center; margin-top: 24px; pointer-events: none; }
.map-switch .btn { pointer-events: auto; box-shadow: var(--shadow-float); }
@media (min-width: 1024px) { .map-switch { display: none; } }

/* ---------- route card ---------- */
.card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.card:hover, .card.is-active { box-shadow: inset 0 0 0 2px var(--brand), var(--shadow-float); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge-away { padding: 4px 10px; border-radius: 999px; background: rgba(14, 36, 51, .85); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.card h3 { font-size: 17px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--brand); }
.card .alt { margin-top: 2px; color: var(--body); font-size: 14px; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: auto; color: var(--muted); font-size: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- difficulty guide ---------- */
.guide { display: grid; gap: 16px; }
@media (min-width: 640px) { .guide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guide { grid-template-columns: repeat(4, 1fr); } }
.guide li { padding: 22px; border-radius: var(--radius-card); background: #fff; box-shadow: 0 1px 0 0 var(--line); }
.guide .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--fg); font-size: 18px; font-weight: 900; }
.guide h3 { margin-top: 16px; font-size: 18px; }
.guide p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- app band ---------- */
.app-band { position: relative; overflow: hidden; padding: 40px 24px; border-radius: var(--radius-panel); background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.app-band::after { content: ''; position: absolute; top: -96px; right: -96px; width: 288px; height: 288px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.app-band h2 { position: relative; color: #fff; font-size: 26px; }
.app-band p { position: relative; margin-top: 8px; max-width: 560px; color: rgba(255, 255, 255, .85); }
.app-band .actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.app-band .btn { font-size: 17px; padding: 0 28px; }
@media (min-width: 768px) { .app-band { padding: 56px 48px; } .app-band h2 { font-size: 30px; } }

/* ---------- footer ---------- */
.footer { margin-top: 72px; padding: 40px 0; background: var(--navy); color: var(--faint); font-size: 14px; }
.footer .container { display: flex; flex-direction: column; gap: 24px; }
.footer strong { display: block; margin-bottom: 6px; color: #fff; font-size: 16px; font-weight: 900; }
.footer .small { opacity: .85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 16px; font-size: 20px; }
@media (min-width: 768px) { .footer .container { flex-direction: row; justify-content: space-between; } .footer-right { text-align: right; } .footer-links, .social { justify-content: flex-end; } }

/* ---------- route page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 20px; color: var(--muted); font-size: 14px; }
.crumbs a { font-weight: 500; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--navy); }
.detail { display: grid; gap: 24px; }
@media (min-width: 1024px) { .detail { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-panel); background: var(--navy); box-shadow: var(--shadow-card); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .3s; }
.video:hover img { transform: scale(1.02); }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(14, 36, 51, .6), transparent); }
.video .play span { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand); font-size: 40px; box-shadow: var(--shadow-float); transition: transform .2s; }
.video:hover .play span { transform: scale(1.1); }
.info { display: flex; flex-direction: column; padding: 24px; }
@media (min-width: 768px) { .info { padding: 32px; } }
.info .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.info h1 { margin-top: 12px; font-size: clamp(26px, 4vw, 34px); }
.info .alt { margin-top: 4px; font-size: 18px; font-weight: 500; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; }
.tiles div { padding: 12px 16px; border-radius: var(--radius-card); background: var(--canvas); }
.tiles dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.tiles dd { margin: 2px 0 0; color: var(--navy); font-size: 24px; font-weight: 900; }
.stops { position: relative; display: grid; gap: 16px; margin-top: 24px; }
.stops::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: 13px; width: 2px; background: var(--line); }
.stops li { position: relative; display: flex; gap: 12px; }
.stop-dot { z-index: 1; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 12px; font-weight: 900; }
.stop-dot.end { background: var(--navy); }
.stops small { display: block; color: var(--muted); font-size: 12px; }
.stops b { color: var(--navy); }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 28px; }
.actions-grid .wide { grid-column: span 2; height: 52px; font-size: 17px; }
.actions-grid .btn { font-size: 16px; }
.map-card { margin-top: 32px; overflow: hidden; }
.map-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 20px 24px 16px; }
.map-card h2 { font-size: 20px; }
.map-card header p { color: var(--muted); font-size: 14px; }
.map-card .map { height: 340px; background: var(--brand-soft); }
@media (min-width: 768px) { .map-card .map { height: 420px; } .map-card header { padding-inline: 32px; } }
.related { margin-top: 56px; }
.related h2 { margin-bottom: 20px; font-size: 24px; }

/* ---------- misc ---------- */
.spinner { width: 32px; height: 32px; margin: 96px auto; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.not-found { padding: 96px 0; text-align: center; }
.not-found .big { color: var(--brand); font-size: 64px; font-weight: 900; }
.not-found .btn { margin-top: 24px; }

/* Google Maps */
.map-dot { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transform: translateY(50%); transition: transform .15s; cursor: pointer; }
.map-dot.is-active { transform: translateY(50%) scale(1.6); }
.you { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: #1a73e8; box-shadow: 0 0 0 6px rgba(26, 115, 232, .25); transform: translateY(50%); }
.pin { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: translateY(-6px) rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pin b { transform: rotate(45deg); color: #fff; font-size: 12px; }
.popup { max-width: 240px; font-family: var(--font); }
.popup-title { display: block; color: var(--navy); font-size: 15px; font-weight: 900; }
.popup-meta { display: block; margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.popup-link { color: var(--brand); font-weight: 700; }
.map-error { display: grid; place-items: center; height: 100%; padding: 24px; color: var(--muted); text-align: center; }
.map-open { color: var(--brand); font-size: 14px; font-weight: 700; }
.map-open:hover { text-decoration: underline; }
