:root {
  color-scheme: light;
  --bg: #fff8ed;
  --bg-soft: #f4fbf8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #172033;
  --muted: #5c667a;
  --accent: #f05f4a;
  --accent-strong: #c83f2e;
  --accent-ink: #ffffff;
  --sky: #2d9cdb;
  --leaf: #1f9b72;
  --sun: #f6b63e;
  --rose: #f39ab5;
  --border: rgba(23, 32, 51, 0.14);
  --shadow: 0 18px 50px rgba(51, 59, 83, 0.14);
  --shadow-soft: 0 10px 26px rgba(51, 59, 83, 0.1);
  --radius: 8px;
  --hero-image: url('kinderradar-hero.png');
  --font-sans: Aptos, 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Aptos Display', Aptos, 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  font-family: var(--font-sans);
}

:root[data-theme='night'] {
  color-scheme: dark;
  --bg: #101827;
  --bg-soft: #162235;
  --surface: rgba(22, 34, 53, 0.86);
  --surface-strong: #1c2940;
  --text: #f7fbff;
  --muted: #bdc8d8;
  --accent: #ffb84d;
  --accent-strong: #f07156;
  --accent-ink: #1b2430;
  --sky: #65c7f7;
  --leaf: #70d9a7;
  --sun: #ffd36a;
  --rose: #ff9bb7;
  --border: rgba(247, 251, 255, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.25);
}

:root[data-theme='forest'] {
  color-scheme: light;
  --bg: #f7f1df;
  --bg-soft: #e9f4df;
  --surface: rgba(255, 252, 242, 0.9);
  --surface-strong: #fffdf4;
  --text: #1d2b24;
  --muted: #5b6c61;
  --accent: #277d69;
  --accent-strong: #a24c2d;
  --accent-ink: #ffffff;
  --sky: #4f95b0;
  --leaf: #2f9359;
  --sun: #d89535;
  --rose: #c9707e;
  --border: rgba(29, 43, 36, 0.16);
  --shadow: 0 18px 46px rgba(40, 64, 48, 0.16);
  --shadow-soft: 0 10px 24px rgba(40, 64, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg) 88%, var(--sun)), transparent 36rem),
    linear-gradient(315deg, color-mix(in srgb, var(--bg-soft) 90%, var(--sky)), transparent 34rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  z-index: -1;
  background-image:
    linear-gradient(90deg, var(--text) 1px, transparent 1px),
    linear-gradient(0deg, var(--text) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, #fff);
  outline-offset: 3px;
}

.page {
  width: min(1180px, 94vw);
  margin: 4.75rem auto 3rem;
}

.stack {
  display: grid;
  gap: 1.1rem;
}

.page-home .stack {
  gap: 2rem;
}

.page-home {
  min-height: 78vh;
}

.app-controls {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
  align-items: center;
}

.theme-toggle,
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(1.35);
}

.theme-toggle button,
.lang-toggle button {
  min-height: 2.2rem;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.72rem;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.theme-toggle button:hover,
.lang-toggle button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.theme-toggle button[aria-pressed='true'],
.lang-toggle button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}

.hero,
.hero-shell {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  align-items: end;
  gap: 1rem;
  padding: 2rem;
  background:
    linear-gradient(90deg, rgba(12, 18, 31, 0.82), rgba(12, 18, 31, 0.46) 46%, rgba(12, 18, 31, 0.1)),
    var(--hero-image) center / cover no-repeat;
}

:root[data-theme='night'] .hero-shell {
  background:
    linear-gradient(90deg, rgba(9, 13, 23, 0.9), rgba(9, 13, 23, 0.58) 50%, rgba(9, 13, 23, 0.2)),
    var(--hero-image) center / cover no-repeat;
}

.page-home .hero-shell {
  background:
    linear-gradient(90deg, rgba(12, 18, 31, 0.72), rgba(12, 18, 31, 0.32) 46%, rgba(12, 18, 31, 0.04)),
    var(--hero-image) 68% center / cover no-repeat;
}

:root[data-theme='night'] .page-home .hero-shell {
  background:
    linear-gradient(90deg, rgba(9, 13, 23, 0.82), rgba(9, 13, 23, 0.46) 50%, rgba(9, 13, 23, 0.12)),
    var(--hero-image) 68% center / cover no-repeat;
}

.hero-shell::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 9rem;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.24), transparent);
}

.hero-copy {
  max-width: 43rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, #fff 76%, var(--sun));
  font-weight: 570;
}

.page-header > .eyebrow {
  color: var(--muted);
  text-shadow: none;
}

.page-header h1,
.hero h1 {
  max-width: 42rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 570;
  line-height: 1.08;
}

.page-header p,
.hero p {
  max-width: 43rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-stats {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.hero-stats div {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  animation: statLift 0.7s ease both;
}

.hero-stats div:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-stats div:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-stats dt {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 620;
}

.hero-stats dd {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-loader {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
}

.radar-loader {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--sky) 58%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 75%, transparent) 0.18rem, transparent 0.22rem),
    radial-gradient(circle, transparent 45%, color-mix(in srgb, var(--sky) 55%, transparent) 46%, transparent 48%);
  box-shadow: 0 0 28px color-mix(in srgb, var(--sky) 35%, transparent);
}

.radar-loader span {
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  border-radius: 100% 0 0 0;
  background: linear-gradient(45deg, color-mix(in srgb, var(--sun) 80%, transparent), transparent 70%);
  animation: radarSweep 1.45s linear infinite;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  margin-top: 0.9rem;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 590;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 25%, transparent);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  box-shadow: 0 18px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

.button.secondary {
  background: #fff;
  color: #1c2434;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button-row .button {
  margin-top: 0;
}

.place-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  padding: 0.55rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.place-tabs a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 520;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.place-tabs a:hover {
  transform: translateY(-1px);
  color: var(--text);
  background: var(--surface-strong);
}

.place-tabs a[aria-current='page'] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 74%, var(--border));
}

.home-section {
  padding-block: 0.25rem;
}

.home-section h2 {
  margin-bottom: 0.5rem;
  font-weight: 570;
}

.place-grid,
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.85rem;
}

.place-card,
.shortcut-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.place-card:hover,
.shortcut-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: var(--shadow);
}

.place-card {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  min-height: 7rem;
}

.place-card-image {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(12, 18, 31, 0.18), transparent),
    var(--hero-image) 68% center / cover no-repeat;
}

.place-card-body {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 0.9rem;
}

.place-card-body strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 560;
}

.place-card-body span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.place-card-body small {
  color: color-mix(in srgb, var(--muted) 86%, var(--accent));
  font-size: 0.78rem;
  line-height: 1.35;
}

.shortcut-card {
  display: flex;
  min-height: 4.6rem;
  align-items: center;
  padding: 0.9rem 1rem;
  font-weight: 520;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, var(--sun)), var(--surface-strong));
}

.city-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, var(--leaf)), color-mix(in srgb, var(--surface-strong) 94%, var(--sky)));
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.city-guide .eyebrow {
  margin-bottom: 0.35rem;
  color: var(--accent-strong);
  text-shadow: none;
}

.city-guide h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 570;
}

.city-guide p {
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  line-height: 1.6;
}

.guide-facts {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.guide-facts div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  padding: 0.75rem;
}

.guide-facts dt {
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
}

.guide-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.4;
}

.area-map-panel {
  padding-block: 0.25rem;
}

.area-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  gap: 0.9rem;
  align-items: stretch;
}

.area-map {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--sky) 22%, transparent), transparent 24%),
    radial-gradient(circle at 74% 34%, color-mix(in srgb, var(--sun) 24%, transparent), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 84%, var(--leaf)), color-mix(in srgb, var(--surface-strong) 92%, var(--sky)));
  box-shadow: var(--shadow-soft);
}

.area-map::before,
.area-map::after {
  content: '';
  position: absolute;
  inset: 14% 8%;
  border: 1px dashed color-mix(in srgb, var(--muted) 34%, transparent);
  border-radius: 48% 52% 42% 58%;
  transform: rotate(-8deg);
}

.area-map::after {
  inset: 35% 16% 18% 18%;
  border-style: solid;
  opacity: 0.45;
  transform: rotate(12deg);
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: grid;
  min-width: 8.5rem;
  gap: 0.08rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  color: var(--text);
  padding: 0.55rem 0.65rem 0.55rem 1.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px) saturate(1.2);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.map-pin:hover,
.map-pin[aria-current='page'] {
  transform: translate(-50%, -54%);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  box-shadow: var(--shadow);
}

.pin-dot {
  position: absolute;
  left: 0.62rem;
  top: 0.72rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0.32rem color-mix(in srgb, var(--accent) 18%, transparent);
}

.map-pin strong {
  font-size: 0.92rem;
  font-weight: 560;
}

.map-pin small {
  color: var(--muted);
  font-size: 0.76rem;
}

.area-map-list {
  display: grid;
  gap: 0.55rem;
}

.area-map-list a {
  display: grid;
  gap: 0.12rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.75rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.area-map-list a[aria-current='page'] {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  background: color-mix(in srgb, var(--surface-strong) 82%, var(--sun));
}

.area-map-list strong {
  font-weight: 560;
}

.area-map-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.discovery-panel {
  padding-block: 0.25rem;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.8rem;
}

.discovery-card {
  display: grid;
  gap: 0.35rem;
  min-height: 7.5rem;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.discovery-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: var(--shadow);
}

.discovery-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 560;
}

.discovery-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.weekly-planner {
  padding-block: 0.25rem;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
}

.planner-card {
  display: grid;
  gap: 0.75rem;
  min-height: 18rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 92%, var(--sun)), var(--surface-strong));
  padding: 0.95rem;
  box-shadow: var(--shadow-soft);
}

.planner-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 560;
}

.planner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.planner-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.planner-card li {
  display: grid;
  gap: 0.12rem;
  border-top: 1px solid var(--border);
  padding-top: 0.55rem;
}

.planner-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.planner-card li a {
  color: var(--text);
  font-weight: 560;
  text-decoration: none;
}

.planner-card li a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.planner-card li span,
.planner-empty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.planner-link {
  align-self: end;
  margin-top: auto;
  font-size: 0.9rem;
}

.sponsor-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.sponsor-note strong {
  color: var(--text);
}

.back-link,
.text-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 560;
}

.back-link:hover,
.text-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.filter-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 0.95rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.3);
}

.filter-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.filter-panel h2,
.activity-section h2,
.trust-explainer h2,
.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 570;
  line-height: 1.15;
}

.filter-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 520;
}

.filter-loader .radar-loader {
  width: 1.9rem;
  height: 1.9rem;
}

.filter-loader[hidden] {
  display: none;
}

.filters {
  display: grid;
  grid-template-columns: minmax(15rem, 1.6fr) repeat(5, minmax(8.8rem, 1fr));
  gap: 0.65rem;
}

.filters label,
.contribution-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 520;
}

.filters select,
.filters input[type='search'],
.contribution-form input,
.contribution-form select,
.contribution-form textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.68rem;
  font: inherit;
  font-weight: 450;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.filters select:focus,
.filters input[type='search']:focus,
.contribution-form input:focus,
.contribution-form select:focus,
.contribution-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: 0;
}

.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.8rem;
}

.chip {
  min-height: 2.25rem;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.36rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 540;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.chip[aria-pressed='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.activity-section {
  padding: 1.2rem 0 0.4rem;
  scroll-margin-top: 8rem;
}

.section-heading {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
}

.section-intro {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.9rem;
}

.listing {
  position: relative;
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  gap: 0.44rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 96%, var(--sun)), var(--surface-strong) 42%),
    var(--surface-strong);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: cardIn 0.48s ease both;
}

.listing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.28rem;
  background: linear-gradient(90deg, var(--accent), var(--sun), var(--leaf), var(--sky));
}

.listing:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  box-shadow: var(--shadow);
}

#listings-root.is-filtering .listing:not([hidden]) {
  animation: resultPulse 0.38s ease both;
}

.listing[hidden],
.activity-section[hidden] {
  display: none;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.listing h3 {
  margin: 0.1rem 0 0.18rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 560;
  line-height: 1.28;
}

.listing h3 a {
  color: var(--text);
}

.listing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.25rem;
}

.listing-facts span {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--sky));
  color: var(--muted);
  font-size: 0.8rem;
}

.listing-tag {
  display: inline-flex;
  align-self: flex-start;
  min-height: 1.65rem;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sky) 14%, var(--surface-strong));
  color: color-mix(in srgb, var(--sky) 64%, var(--text));
  font-size: 0.78rem;
  font-weight: 560;
}

.freshness {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.23rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 560;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--muted);
  white-space: nowrap;
}

.freshness-fresh {
  background: color-mix(in srgb, var(--leaf) 15%, var(--surface-strong));
  color: color-mix(in srgb, var(--leaf) 72%, var(--text));
  border-color: color-mix(in srgb, var(--leaf) 25%, var(--border));
}

.freshness-neutral {
  background: color-mix(in srgb, var(--sky) 12%, var(--surface-strong));
  color: color-mix(in srgb, var(--sky) 62%, var(--text));
}

.freshness-stale {
  background: color-mix(in srgb, var(--sun) 22%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent-strong) 82%, var(--text));
}

.freshness-closed {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

.listing p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.listing strong {
  color: var(--text);
  font-weight: 560;
}

.listing-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.5rem;
}

.muted-link {
  color: var(--muted);
}

.status-banner,
.empty-state {
  margin: 0.35rem 0;
  padding: 0.7rem 0.85rem;
  background: color-mix(in srgb, var(--sun) 18%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent-strong) 78%, var(--text));
  border: 1px solid color-mix(in srgb, var(--sun) 34%, var(--border));
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 520;
}

.empty-state {
  box-shadow: var(--shadow-soft);
}

.verifier {
  font-size: 0.78rem;
  margin: 0.1rem 0 0;
}

.muted {
  color: var(--muted);
}

.panel,
.trust-explainer,
.contribution-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.trust-explainer ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-explainer li {
  min-height: 5rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--muted);
}

.trust-explainer strong {
  color: var(--text);
}

.cta-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contribution-panel {
  scroll-margin-top: 6rem;
}

.contribution-form {
  display: grid;
  gap: 0.75rem;
}

.contribution-form textarea {
  resize: vertical;
}

.contribution-form .button {
  justify-self: start;
}

.contribution-form .button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status[data-tone='success'] {
  color: var(--leaf);
}

.form-status[data-tone='error'] {
  color: #b91c1c;
}

.trust-panel .trust-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.45rem;
  margin: 0.6rem 0 0.75rem;
}

.trust-panel .trust-grid dt {
  font-weight: 560;
  color: var(--muted);
}

.trust-panel .trust-grid dd {
  margin: 0;
}

.trust-panel .small {
  font-size: 0.85rem;
}

.planning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 0;
}

.planning-grid div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--sky));
  padding: 0.75rem;
}

.planning-grid dt {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
}

.planning-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.42;
}

.checklist-panel ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist-panel li {
  position: relative;
  min-height: 4.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 0.75rem 0.75rem 0.75rem 2.05rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.checklist-panel li::before {
  content: '';
  position: absolute;
  top: 0.95rem;
  left: 0.8rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--leaf);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--leaf) 18%, transparent);
}

@keyframes radarSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes statLift {
  from {
    opacity: 0.88;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultPulse {
  0% {
    opacity: 0.72;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1080px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .page {
    width: min(100% - 1.4rem, 45rem);
    margin-top: 5.6rem;
  }

  .app-controls {
    left: 0.7rem;
    right: 0.7rem;
    justify-content: space-between;
    align-items: flex-start;
  }

  .theme-toggle {
    max-width: calc(100vw - 7.4rem);
    overflow-x: auto;
  }

  .hero-shell {
    min-height: 31rem;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 1.1rem;
    background-position: center;
  }

  .page-header h1,
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats div {
    padding: 0.65rem;
  }

  .hero-stats dt {
    font-size: 1.28rem;
  }

  .hero-stats dd {
    font-size: 0.72rem;
  }

  .city-guide {
    grid-template-columns: 1fr;
  }

  .area-map-shell {
    grid-template-columns: 1fr;
  }

  .area-map {
    min-height: 18rem;
  }

  .map-pin {
    min-width: 7.4rem;
    padding-right: 0.55rem;
  }

  .filter-panel {
    position: relative;
    top: auto;
  }

  .filter-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header .listing-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .listing {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 1rem, 34rem);
  }

  .theme-toggle button,
  .lang-toggle button {
    padding-inline: 0.55rem;
  }

  .hero-shell {
    min-height: 32rem;
  }

  .page-header h1,
  .hero h1 {
    font-size: 1.95rem;
  }

  .page-header p,
  .hero p {
    font-size: 0.98rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .button,
  .button {
    width: 100%;
  }

  .trust-panel .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
