:root {
  --bg: #0a0e1a;
  --bg-deep: #060a13;
  --panel: #101627;
  --panel-2: #161e33;
  --panel-3: #1d2740;
  --line: rgba(226, 232, 240, 0.1);
  --line-strong: rgba(226, 232, 240, 0.2);
  --text: #e9e7df;
  --muted: #93a0bd;
  --muted-2: #6b7794;
  --gold: #e5c15a;
  --gold-soft: rgba(229, 193, 90, 0.16);
  --gold-strong: #f3d37a;
  --leaflet-bg: #060a13;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --topbar-h: 60px;
  --chips-h: 46px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ---------- Eyebrow / focus ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: 0 0 auto; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); }
.brand-word { font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 30; font-weight: 640; font-size: 25px; letter-spacing: 0.01em; }

.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 560px; margin: 0 auto; display: flex; align-items: center; }
.search-icon { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(22, 30, 51, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 0 44px 0 38px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: rgba(229, 193, 90, 0.5); box-shadow: 0 0 0 3px var(--gold-soft); }
.search-kbd { position: absolute; right: 12px; font-family: inherit; font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 7px; pointer-events: none; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 340px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}
.search[aria-expanded="true"] .search-results { display: block; }
.search-results li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px;
}
.search-results li .sr-flag { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; background: var(--panel-3); }
.search-results li small { color: var(--muted); margin-left: auto; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.search-results li[aria-selected="true"], .search-results li:hover { background: var(--gold-soft); }
.search-results-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.icon-toggle, .surprise {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.icon-toggle { width: 40px; padding: 0; justify-content: center; position: relative; }
.icon-toggle svg { width: 18px; height: 18px; }
.icon-toggle-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--gold); color: #221a05;
  font-size: 11px; font-weight: 700; line-height: 20px;
}
.icon-toggle[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-strong); }
.icon-toggle:hover, .surprise:hover { transform: translateY(-1px); }

.surprise { padding: 0 16px 0 13px; font-size: 14px; font-weight: 600; }
.surprise svg { width: 17px; height: 17px; color: var(--gold); }

/* ---------- Continent chips ---------- */
.continents {
  position: fixed;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0));
  left: 0; right: 0;
  z-index: 800;
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 8px 14px 10px;
  scrollbar-width: none;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0.85), rgba(10, 14, 26, 0));
  -webkit-overflow-scrolling: touch;
}
.continents::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(16, 22, 39, 0.85); backdrop-filter: blur(6px);
  color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.2s; white-space: nowrap;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #221a05; }

/* ---------- Map ---------- */
.map {
  position: fixed; inset: 0; z-index: 1;
  background: var(--leaflet-bg);
}
.leaflet-container { background: var(--leaflet-bg); font-family: 'Inter', sans-serif; }

/* OpenStreetMap, tuned to an atlas-style dark map */
.osm-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(0.58) saturate(0.45) contrast(1.02); }
.osm-dark { background: #0a0e1a; }

.country-shape { stroke: rgba(240, 240, 235, 0.5); stroke-width: 0.8; fill: #101f3d; fill-opacity: 0.42; transition: fill 0.25s, fill-opacity 0.25s; outline: none; }
.country-shape:hover, .country-shape:focus { fill: #274068; fill-opacity: 0.55; stroke: rgba(243, 211, 122, 0.9); stroke-width: 1.4; }
.country-shape.is-selected { fill: #2b4370; fill-opacity: 0.5; stroke: var(--gold); stroke-width: 2; }
.country-shape.is-visited { fill: #16324f; fill-opacity: 0.5; }
.country-shape.is-favorite { fill: #2e2c14; fill-opacity: 0.55; }
.country-shape.is-dim { fill-opacity: 0.12; stroke-opacity: 0.15; pointer-events: none; }
.country-shape--inert { fill: rgba(10, 14, 26, 0.55); stroke: rgba(240,240,235,0.18); pointer-events: none; }
.country-shape--favorites-mode:not(.is-favorite) { fill-opacity: 0.04; stroke-opacity: 0.05; }
body.favorites-on .leaflet-tile-pane { filter: brightness(0.35) saturate(0.5); transition: filter 0.4s ease; }
body.favorites-on .country-shape { transition: fill-opacity 0.3s, stroke-opacity 0.3s; }
body.favorites-on .country-label { opacity: 0.22; transition: opacity 0.4s ease; }
body.favorites-on .country-shape.is-favorite { opacity: 1; fill: #e5c15a; fill-opacity: 0.4; stroke: var(--gold-strong); stroke-width: 2.4; filter: drop-shadow(0 0 12px rgba(229, 193, 90, 0.85)); }
body.favorites-on .country-hint { opacity: 0.6; }

.country-label {
  background: transparent; border: none; box-shadow: none;
  color: rgba(233, 231, 223, 0.78);
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 14px rgba(6,10,19,0.8);
  pointer-events: none; white-space: nowrap;
}
.country-label::before { display: none; }

.leaflet-tooltip-pane .leaflet-tooltip { pointer-events: none; }
.country-hint {
  background: rgba(10, 14, 26, 0.92) !important; border: 1px solid rgba(229, 193, 90, 0.55) !important;
  color: var(--text) !important; border-radius: 8px !important; padding: 4px 9px !important;
  font-family: 'Inter', sans-serif !important; font-size: 12px !important; font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5) !important; letter-spacing: 0.02em !important;
}
.country-hint::before { display: none !important; }

.leaflet-control-attribution { background: rgba(6,10,19,0.55) !important; color: var(--muted-2) !important; font-size: 10px; backdrop-filter: blur(4px); }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-zoom { border: 1px solid var(--line-strong) !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a { background: rgba(16,22,39,0.9) !important; color: var(--text) !important; border: none !important; }
.leaflet-control-zoom a:hover { background: var(--panel-3) !important; }

/* ---------- Basemap toggle ---------- */
.basemap-toggle {
  position: fixed; z-index: 850; left: 14px; bottom: 62px;
  display: flex; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.basemap-button {
  height: 34px; padding: 0 12px; border: none;
  background: rgba(16, 22, 39, 0.9); color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(6px); transition: all 0.2s;
}
.basemap-button.is-active { background: var(--gold); color: #221a05; }

/* ---------- City & landmark markers ---------- */
.capital-dot { fill: #e5c15a; stroke: #221a05; stroke-width: 1.4; }
.city-label {
  background: transparent; border: none; box-shadow: none;
  color: rgba(240, 240, 235, 0.92);
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 10px rgba(6,10,19,0.9);
  pointer-events: none; white-space: nowrap; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.city-label::before { display: none; }
.zoom-near .city-label { visibility: visible; opacity: 1; }

.landmark-marker { background: transparent; border: none; }
.landmark-pin {
  display: block; width: 12px; height: 12px;
  background: linear-gradient(160deg, var(--gold-strong), #b98a2f);
  transform: rotate(45deg); border-radius: 2.5px;
  border: 1.5px solid #221a05;
  box-shadow: 0 0 10px rgba(229, 193, 90, 0.65);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.zoom-near .landmark-pin { opacity: 1; visibility: visible; }

.atlas-popup .leaflet-popup-content-wrapper {
  background: var(--panel-2); color: var(--text);
  border-radius: 12px; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); padding: 0; overflow: hidden;
}
.atlas-popup .leaflet-popup-content { margin: 0; line-height: 1.35; }
.atlas-popup .leaflet-popup-tip { background: var(--panel-2); border: 1px solid var(--line-strong); }
.atlas-popup .leaflet-popup-close-button { color: var(--muted) !important; font-size: 16px !important; padding: 6px 8px 0 0 !important; }
.landmark-popup img { display: block; width: 100%; height: 110px; object-fit: cover; }
.landmark-popup-body { padding: 10px 12px 12px; }
.landmark-popup-body b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.landmark-popup-body a { font-size: 12px; color: var(--gold-strong); text-decoration: none; }

.landmark-link { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(229, 193, 90, 0.5); }
.landmark-link:hover { color: var(--gold-strong); }

/* ---------- Progress + today chips ---------- */
.progress-chip {
  position: fixed; z-index: 850; left: 14px; bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(16, 22, 39, 0.88); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); box-shadow: var(--shadow);
  font-size: 12.5px;
}
.progress-number b { font-family: 'Fraunces', serif; font-size: 16px; color: var(--gold-strong); margin-right: 6px; }
.progress-total { color: var(--muted); }
.progress-track { width: 84px; height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; display: inline-block; }
.progress-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #b98a2f, var(--gold)); border-radius: 3px; transition: width 0.6s ease; }

.today-chip {
  position: fixed; z-index: 850; right: 14px; bottom: 78px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(16, 22, 39, 0.88); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); box-shadow: var(--shadow);
  color: var(--text); font-size: 12.5px; font-weight: 600;
  transition: border-color 0.2s;
}
.today-chip:hover { border-color: var(--gold); }
.today-chip img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.today-chip span em { color: var(--gold-strong); font-style: normal; }

/* ---------- Panel ---------- */
.panel {
  position: fixed; z-index: 950;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0));
  right: 0; bottom: 0;
  width: min(430px, 100vw);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border-left: 1px solid var(--line-strong);
  transform: translateX(102%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.panel.is-open { transform: translateX(0); }
.panel-handle { display: none; }
.panel-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(6,10,19,0.55);
  color: #fff; font-size: 20px; line-height: 1; backdrop-filter: blur(6px);
}
.panel-content { overflow-y: auto; overscroll-behavior: contain; height: 100%; -webkit-overflow-scrolling: touch; }

.hero {
  position: relative; height: 210px; overflow: hidden; flex: 0 0 auto;
  background: var(--panel-2);
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.hero-photo.is-loaded { opacity: 1; }
.hero-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 30%, #22304f 0%, var(--panel-2) 70%);
  font-size: 92px;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,19,0.25) 0%, rgba(6,10,19,0.05) 40%, rgba(10,14,26,0.92) 100%); }
.hero-meta { position: absolute; left: 18px; right: 60px; bottom: 14px; }
.hero-flag-row { display: flex; align-items: center; gap: 10px; }
.hero-flag { width: 44px; height: 31px; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.3); }
.hero-region { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(233,231,223,0.85); font-weight: 700; }
.hero-name { margin: 6px 0 0; font-family: 'Fraunces', serif; font-weight: 620; font-variation-settings: 'opsz' 60; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; text-shadow: 0 2px 18px rgba(0,0,0,0.65); }
.hero-official { margin: 3px 0 0; font-size: 12px; color: rgba(233,231,223,0.72); font-style: italic; }

.panel-body { padding: 16px 18px 28px; }

.quick-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--panel-2); padding: 10px 12px; }
.fact-label { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.fact-value { margin-top: 3px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }

.action-row { display: flex; gap: 8px; margin: 14px 0 0; }
.action-button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; border-radius: 12px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text);
  transition: all 0.18s;
}
.action-button svg { width: 15px; height: 15px; }
.action-button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-strong); background: var(--gold-soft); }

.section { margin-top: 20px; }
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--gold);
  margin: 0 0 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.extract { font-size: 14px; line-height: 1.65; color: #d5d3c8; margin: 0; }
.extract-more { margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.extract-more a { color: var(--gold-strong); text-decoration: none; border-bottom: 1px solid rgba(229,193,90,0.4); }
.extract-more a:hover { border-bottom-color: var(--gold-strong); }

.food-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.food-chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px;
  background: var(--panel-3); border: 1px solid var(--line); color: var(--text);
}

.landmark-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.landmark-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13.5px;
}
.landmark-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(229,193,90,0.6); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery button {
  position: relative; padding: 0; border: none; overflow: hidden; border-radius: 12px;
  aspect-ratio: 4 / 3; background: var(--panel-3); display: block;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.06); }
.gallery-credit { margin-top: 8px; font-size: 10.5px; color: var(--muted-2); }

.wiki-row { display: flex; gap: 8px; margin-top: 20px; }
.wiki-link {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; border-radius: 12px; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--text); font-size: 13px; font-weight: 600;
  transition: border-color 0.2s;
}
.wiki-link:hover { border-color: var(--gold); color: var(--gold-strong); }
.wiki-link svg { width: 15px; height: 15px; }

.empty-note { color: var(--muted); font-size: 13px; font-style: italic; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  background: rgba(4, 6, 12, 0.88); backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82dvh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(233,231,223,0.85); font-size: 13px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(16,22,39,0.7); color: #fff; border-radius: 50%;
  width: 44px; height: 44px; font-size: 22px; line-height: 1;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 30px; }

/* ---------- Loading / misc ---------- */
.app-loading {
  position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: var(--bg-deep); transition: opacity 0.6s ease, visibility 0.6s;
  font-family: 'Fraunces', serif; letter-spacing: 0.04em; color: var(--muted);
}
.app-loading.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-globe {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid rgba(229,193,90,0.25); border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --topbar-h: 56px; }
  .brand-word { display: none; }
  .search-kbd { display: none; }
  .surprise span { display: none; }
  .surprise { width: 40px; padding: 0; justify-content: center; }

  .topbar { gap: 8px; padding: 0 10px; padding-top: env(safe-area-inset-top, 0); }

  .panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: 100%; height: 84dvh;
    border-left: none; border-top: 1px solid var(--line-strong);
    border-radius: 22px 22px 0 0;
    transform: translateY(103%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0.2, 1);
  }
  .panel.is-open { transform: translateY(0); }
  .panel { overflow: hidden; }
  .panel-handle {
    display: block; flex: 0 0 auto;
    width: 44px; height: 5px; border-radius: 3px;
    background: rgba(233,231,223,0.28); margin: 10px auto 4px;
  }
  .panel-close { background: rgba(6,10,19,0.4); }
  .hero { height: 168px; }
  .hero-name { font-size: 28px; }

  .progress-chip { bottom: auto; top: calc(var(--topbar-h) + var(--chips-h) + 6px + env(safe-area-inset-top, 0)); left: 10px; padding: 6px 12px; }
  .progress-track { width: 56px; }
  .today-chip { bottom: auto; top: calc(var(--topbar-h) + var(--chips-h) + 6px + env(safe-area-inset-top, 0)); right: 10px; max-width: 46vw; }
  .today-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 480px) {
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-name { font-size: 25px; }
  .icon-toggle-count { top: -4px; right: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
