/* ===================================================================
   WELTWEITE SEHENSWÜRDIGKEITEN
   Design-System: "Editorial Explorer"
   Warm-cremige Palette, terrakotta Akzent, Fraunces + Inter Typografie.
   =================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --bg: #FBF7F1;
  --bg-soft: #F5EFE4;
  --surface: #FFFFFF;
  --surface-elevated: #FFFDF9;
  --ink: #1A1F2E;
  --ink-soft: #4A5468;
  --ink-muted: #8A8F9C;
  --accent: #C2553A;
  --accent-dark: #9E3F28;
  --accent-soft: #F5E0D6;
  --accent-tint: #FBEDE5;
  --gold: #B89048;
  --gold-soft: #E8D8A8;
  --border: #E8DFCC;
  --border-soft: #F0E9D9;
  --shadow-sm: 0 1px 2px rgba(26, 31, 46, 0.04), 0 1px 3px rgba(26, 31, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 31, 46, 0.06), 0 2px 4px rgba(26, 31, 46, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 31, 46, 0.10), 0 4px 8px rgba(26, 31, 46, 0.05);
  --shadow-xl: 0 24px 60px rgba(26, 31, 46, 0.14), 0 8px 24px rgba(26, 31, 46, 0.08);

  /* Typografie */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Maße */
  --header-h: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --container: 1240px;
  --container-narrow: 880px;

  /* Übergänge */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 240ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img { max-width: 100%; display: block; }

::selection {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ---------- Layout Helper ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(251, 247, 241, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  color: var(--accent);
  display: flex;
  align-items: center;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name-top {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
}
.brand-name-bottom {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 144, 72, 0.18);
  animation: pulse 2s var(--ease) infinite;
}
.nav-status.ok .status-dot {
  background: #2E7D5B;
  box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.18);
}
.nav-status.error .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 85, 58, 0.18);
  animation: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 31, 46, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 31, 46, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(194, 85, 58, 0.12) 0%, transparent 65%);
  filter: blur(40px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.kicker-line {
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 40px;
}

/* ---------- Search Form ---------- */
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 640px;
}
.search-input-wrap {
  position: relative;
  flex: 1;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}
#cityInput {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
#cityInput::placeholder { color: var(--ink-muted); }
#cityInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 85, 58, 0.12);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  background: var(--accent);
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 1px 2px rgba(158, 63, 40, 0.18);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(194, 85, 58, 0.28);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { transition: transform var(--dur) var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

/* Suggestions */
.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  z-index: 50;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}
.suggestions li {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  transition: background var(--dur) var(--ease);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.suggestions li:last-child { border-bottom: none; }
.suggestions li:hover, .suggestions li.active {
  background: var(--accent-tint);
}
.suggestions .sug-name { font-weight: 500; color: var(--ink); }
.suggestions .sug-country { font-size: 12px; color: var(--ink-muted); }

/* Quick cities */
.quick-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.quick-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-right: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}
.chip-ghost {
  background: transparent;
  border-color: var(--border);
}

/* ---------- Section Head ---------- */
.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 96;
}
.section-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Categories Strip ---------- */
.categories-strip {
  padding: 88px 0 64px;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFF;
}
.cat-card.active .cat-name { color: #FFF; }
.cat-card.active .cat-meta { color: rgba(255, 255, 255, 0.6); }
.cat-card.active::before { background: var(--accent); transform: scaleX(1); }
.cat-icon {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1;
}
.cat-card.active .cat-icon { color: var(--accent); }
.cat-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.cat-meta {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ---------- Explorer ---------- */
.explorer {
  padding: 96px 0;
}
.explorer-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  height: 720px;
}
.explorer-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-filters {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.filter-value {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 4px rgba(194, 85, 58, 0.3);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--surface);
  cursor: pointer;
}
select {
  padding: 6px 28px 6px 10px;
  font-family: inherit;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1 L5 5 L9 1' stroke='%234A5468' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}
.panel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft);
  margin-top: 4px;
}
.result-count strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.result-location {
  font-style: italic;
  color: var(--ink-soft);
}

/* Results list */
.results-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.results-list::-webkit-scrollbar { width: 6px; }
.results-list::-webkit-scrollbar-track { background: transparent; }
.results-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.results-list::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

.result-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  border: 1px solid transparent;
  margin-bottom: 4px;
}
.result-item:hover {
  background: var(--surface);
  border-color: var(--border-soft);
}
.result-item.active {
  background: var(--accent-tint);
  border-color: var(--accent-soft);
}
.result-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.result-item.active .result-num {
  background: var(--accent);
  color: #FFF;
}
.result-info { min-width: 0; }
.result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.kind-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  font-weight: 500;
  text-transform: uppercase;
}
.result-dist {
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

.btn-load-more {
  margin: 0 auto 16px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
  display: block;
}
.btn-load-more:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}
.btn-load-more:disabled { opacity: 0.5; cursor: default; }
.btn-load-more.loading span::after {
  content: '…';
  display: inline-block;
  animation: dots 1.4s infinite;
}
@keyframes dots {
  0%, 20% { content: '…'; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '…'; }
}

/* Empty / Loading states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-muted);
}
.empty-state svg { color: var(--border); margin-bottom: 16px; }
.empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.empty-text {
  font-size: 13px;
  max-width: 240px;
  line-height: 1.5;
}

.skeleton-card {
  padding: 14px;
  margin-bottom: 4px;
}
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--border-soft) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
  margin-bottom: 6px;
}
.skeleton-line:last-child { width: 60%; margin-bottom: 0; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Map ---------- */
.explorer-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 0;
}
#map {
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
}
.map-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid var(--border-soft);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #FFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.legend-dot-1 { background: var(--accent); }
.legend-dot-2 { background: var(--gold); }
.legend-dot-3 { background: #5A8FA8; }
.map-attribution-note {
  position: absolute;
  bottom: 4px;
  right: 8px;
  z-index: 500;
  font-size: 10px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Custom Leaflet marker */
.otm-marker {
  width: 14px !important;
  height: 14px !important;
  margin-left: -7px !important;
  margin-top: -7px !important;
  border-radius: 50%;
  background: #5A8FA8;
  border: 2px solid #FFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 200ms var(--ease);
}
.otm-marker.rate-3 {
  background: var(--accent);
  width: 18px !important;
  height: 18px !important;
  margin-left: -9px !important;
  margin-top: -9px !important;
}
.otm-marker.rate-2 { background: var(--gold); }
.otm-marker.active {
  transform: scale(1.6);
  z-index: 1000 !important;
}
.otm-popup .leaflet-popup-content-wrapper {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}
.otm-popup .leaflet-popup-content {
  margin: 0;
  width: 220px !important;
}
.otm-popup .leaflet-popup-tip {
  background: var(--surface);
}
.popup-content {
  padding: 14px 16px;
}
.popup-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.2;
}
.popup-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.popup-link {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  margin-top: 4px;
}
.popup-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Stats ---------- */
.stats-strip {
  padding: 56px 0;
  background: var(--ink);
  color: #FFF;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: #FFF;
  margin-bottom: 8px;
  font-variation-settings: 'opsz' 96;
}
.stat-num:is(em) { color: var(--accent); font-style: italic; }
.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

/* ---------- About ---------- */
.about {
  padding: 96px 0;
  background: var(--surface);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.about-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.about-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.about-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.about-card code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer-brand .brand-mark { color: var(--accent); }
.footer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-sub {
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-meta {
  text-align: right;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.footer-meta a { color: var(--accent); }
.footer-meta a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Detail Drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 46, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer-backdrop.visible {
  opacity: 1;
}
.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  background: var(--surface);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 360ms var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.detail-drawer.open {
  transform: translateX(0);
}
.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.drawer-close:hover {
  background: var(--accent);
  color: #FFF;
  transform: rotate(90deg);
}
.drawer-content {
  overflow-y: auto;
  flex: 1;
}
.drawer-content::-webkit-scrollbar { width: 6px; }
.drawer-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.drawer-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--ink-muted);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-soft), var(--accent-tint));
  overflow: hidden;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
}

.detail-body {
  padding: 28px 32px 40px;
}
.detail-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.detail-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 96;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--ink-soft);
}
.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 600;
}
.detail-meta-value {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.detail-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.detail-kind {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.detail-section { margin-bottom: 26px; }
.detail-section h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.detail-description {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.detail-description p { margin-bottom: 12px; }
.detail-description p:last-child { margin-bottom: 0; }

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.detail-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}
.detail-link.primary {
  background: var(--ink);
  color: #FFF;
  border-color: var(--ink);
}
.detail-link.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #FFF;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  max-width: 90vw;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error { background: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .explorer-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .explorer-panel {
    max-height: 540px;
  }
  .explorer-map {
    height: 480px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav-actions { gap: 16px; }
  .nav-link { display: none; }
  .hero { padding: 56px 0 48px; }
  .search-form { flex-direction: column; }
  .btn-primary { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-num { font-size: 32px; }
  .categories-strip { padding: 56px 0 48px; }
  .explorer { padding: 56px 0; }
  .about { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .explorer-grid { padding: 16px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .detail-body { padding: 22px 20px 32px; }
  .detail-title { font-size: 26px; }
}

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