:root {
  --bg: #f6f5f1;
  --bg-elev: #ffffff;
  --fg: #1d2a24;
  --fg-muted: #5c6b63;
  --line: #dfdcd3;
  --accent: #2f6d4f;
  --accent-soft: #e4efe8;
  --accent-strong: #1f4f39;
  --sun: #d98324;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 42, 36, 0.06), 0 8px 24px rgba(29, 42, 36, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714;
    --bg-elev: #1a221e;
    --fg: #eef2ef;
    --fg-muted: #9bab a2;
    --fg-muted: #9baba2;
    --line: #2a3630;
    --accent: #6cc296;
    --accent-soft: #1f2f27;
    --accent-strong: #8fd7b1;
    --sun: #eaa04a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

/* An author rule like `.card { display: flex }` outranks the user agent's
   `[hidden] { display: none }`, so filtered cards stayed visible. */
[hidden] { display: none !important; }


html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); }

/* Photos ship as <picture> so AVIF and WebP can go first. The wrapper is
   purely a format switch — every layout rule sits on the img inside it, and
   this keeps the wrapper from becoming an inline box of its own. */
picture { display: contents; }

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- header ---------- */

.topbar {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.94rem;
}

.nav a {
  color: var(--fg-muted);
  text-decoration: none;
}

.nav a:hover { color: var(--accent-strong); }

.hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(120% 100% at 10% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--accent-strong);
  text-decoration: none;
}

.brand svg { display: block; }

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.lede {
  margin: 0;
  max-width: 62ch;
  color: var(--fg-muted);
  font-size: 1.08rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.stats b {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stats span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg-muted);
}

/* ---------- filter bar ---------- */

.filters {
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 0.9rem 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* row gap slightly larger than the column gap: wrapped rows need more air
     than neighbouring controls, otherwise the bar looks cramped */
  gap: 0.55rem 0.5rem;
}

/* every control the same height, so a wrapped row lines up with the one above */
.filters-inner .search,
.filters-inner .select,
.filters-inner .pill {
  height: 2.5rem;
}

.filters-inner .select { padding-block: 0; }
.filters-inner .select select { height: 100%; }

/* keep the country pills together as one group */
#countries {
  display: flex;
  gap: 0.4rem;
}

.search {
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search input {
  flex: 1;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  outline: none;
}

.search svg { flex: none; color: var(--fg-muted); }

.pill {
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pill:hover { border-color: var(--accent); color: var(--fg); }

.pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .pill[aria-pressed="true"] { color: #10201a; }
}

/* ---------- map ---------- */

.map-section { padding: 2rem 0 0; }

#map {
  height: clamp(320px, 46vh, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-elev);
  z-index: 1;
}

.leaflet-container { font: inherit; border-radius: var(--radius); }

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--fg);
}

.leaflet-popup-tip { background: var(--bg-elev); }

.leaflet-popup-content { margin: 0.75rem 0.9rem; font-size: 0.92rem; }

.leaflet-popup-content strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }

.leaflet-popup-content em { color: var(--fg-muted); font-style: normal; }

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  .marker-dot { border-color: #121714; }
  .leaflet-tile { filter: brightness(0.78) contrast(1.05) saturate(0.85); }
}

/* ---------- list ---------- */

.list-section { padding: 2.2rem 0 4rem; }

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.list-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.count { color: var(--fg-muted); font-size: 0.92rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}

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

.card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.where {
  margin: 0;
  font-size: 0.86rem;
  color: var(--fg-muted);
}

.where .state {
  color: var(--accent-strong);
  font-weight: 500;
}

.card p.summary {
  margin: 0;
  font-size: 0.93rem;
  color: var(--fg-muted);
  flex: 1;
}

.notice {
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--sun) 16%, transparent);
  border-left: 3px solid var(--sun);
  font-size: 0.84rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--fg-muted);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 0.87rem;
}

.site-footer p { margin: 0 0 0.5rem; max-width: 75ch; }

.footer-nav {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

/* ---------- age filter ---------- */

.select {
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 0.85rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.select:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.select select {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

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

.age-hint {
  margin: -0.4rem 0 1rem;
  font-size: 0.86rem;
  color: var(--fg-muted);
  max-width: 80ch;
}

.tags .tag-age,
.tag-age.inline {
  background: var(--accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .tags .tag-age,
  .tag-age.inline { color: #10201a; }
}

.tag-age.inline {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover { color: var(--accent-strong); }

/* ---------- detail / state / blog pages ---------- */

.detail { padding: 2rem 0 4rem; }

.breadcrumb {
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-strong); text-decoration: underline; }

.detail h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  max-width: 24ch;
}

.where.big { font-size: 0.98rem; margin-bottom: 0.9rem; }

.tags.big { margin: 1rem 0 2rem; }
.tags.big li { font-size: 0.82rem; padding: 0.2rem 0.7rem; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}

.detail h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.facts-table th {
  width: 38%;
  padding: 0.55rem 0.9rem 0.55rem 0;
  text-align: left;
  font-weight: 500;
  color: var(--fg-muted);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.facts-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.age-note {
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 0.9rem;
}

.detail-map #map { height: 320px; }

.siblings { margin-top: 2.5rem; }

.linklist {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.4rem 1.2rem;
}

.linklist li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.linklist span { color: var(--fg-muted); font-size: 0.85rem; }

.more { font-size: 0.9rem; font-weight: 500; }

.statelinks { padding: 0 0 3rem; }
.statelinks h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.linkrow a {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--fg);
}

.linkrow a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- blog ---------- */

.teaser-section { padding: 1rem 0 2rem; }

.teasers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.teasers li {
  padding: 1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.teasers a { font-weight: 500; text-decoration: none; }
.teasers a:hover { text-decoration: underline; }
.teasers span { display: block; margin-top: 0.35rem; font-size: 0.88rem; color: var(--fg-muted); }

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.post-card {
  padding: 1.2rem 1.3rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-card h2 { margin: 0.3rem 0 0.5rem; font-size: 1.12rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-strong); }
.post-card p { margin: 0 0 0.7rem; font-size: 0.92rem; color: var(--fg-muted); }

.post-date {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.post { max-width: 68ch; }

.prose { margin-top: 1.5rem; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.prose h3 { font-size: 1.08rem; margin: 1.6rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--fg-muted);
}

.table-scroll { overflow-x: auto; margin: 0 0 1.4rem; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th, .prose td {
  padding: 0.5rem 0.8rem 0.5rem 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th { font-weight: 600; }

@media (max-width: 640px) {
  .hero { padding-top: 2.2rem; }
  .stats { gap: 1.5rem; }
  .detail-grid { gap: 1.2rem; }
}

/* ---------- language switch ---------- */

.langs {
  display: inline-flex;
  gap: 0.15rem;
  margin-left: 0.4rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
}

.langs .lang {
  /* WCAG 2.5.8 asks for 24x24 CSS pixels; the label "DE" alone is smaller */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-decoration: none;
}

.langs .lang:hover { background: var(--accent-soft); color: var(--accent-strong); }

.langs .lang.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .langs .lang.is-active { color: #10201a; }
}

@media (max-width: 560px) {
  .nav { gap: 0.8rem; font-size: 0.88rem; }
  .langs { margin-left: 0.2rem; padding-left: 0.5rem; }
}

/* ---------- photos ---------- */

.card.has-photo { padding-top: 0; overflow: hidden; }

.card-photo {
  display: block;
  margin: 0 -1.25rem 0.3rem;
}

.card-photo img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.gallery-section { margin-top: 2.5rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.shot {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev);
}

.shot img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
  transition: transform 0.25s;
}

.shot:hover img { transform: scale(1.04); }

.photo-credit {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.lightbox {
  max-width: min(1200px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--bg-elev);
  overflow: visible;
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.75); }

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- report form ---------- */

.wrap.narrow { width: min(680px, 100% - 2.5rem); }

.report-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.field { display: flex; flex-direction: column; gap: 0.3rem; }

.field span { font-size: 0.88rem; color: var(--fg-muted); }

.field input,
.field select,
.field textarea {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea { resize: vertical; }

.report-form .btn { align-self: flex-start; margin-top: 0.3rem; }

.form-hint { margin: 0; font-size: 0.84rem; color: var(--fg-muted); }

.form-status {
  margin: 1.2rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.94rem;
}

.form-status.is-error {
  background: color-mix(in srgb, var(--sun) 18%, transparent);
  color: var(--fg);
}

/* keeps the honeypot out of sight without display:none, which bots skip */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* photos: preview inside the popup, a ring on the marker */

.popup-photo {
  display: block;
  width: calc(100% + 1.8rem);
  height: 110px;
  margin: -0.75rem -0.9rem 0.6rem;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.marker-dot.has-photo {
  background: var(--sun);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 35%, transparent),
    0 1px 4px rgba(0, 0, 0, 0.35);
}

.prose.intro {
  max-width: 70ch;
  margin: 0 0 2.2rem;
}

.prose.intro h2 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: var(--fg-muted);
}

.map-legend .key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.map-legend .marker-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-width: 2px;
}

/* price badge — the number families look for first */

.tags .tag-price {
  background: var(--fg);
  color: var(--bg);
  white-space: nowrap;
}

.price-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ---------- hero image ---------- */

.hero.has-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: -2;
}

/* the scrim keeps the headline readable whatever the photo does */
.hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg) 88%, transparent) 45%,
    color-mix(in srgb, var(--bg) 45%, transparent) 100%
  );
}

.hero.has-image {
  padding-block: 4rem 3rem;
}

@media (max-width: 720px) {
  .hero.has-image::after {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 92%, transparent) 0%,
      color-mix(in srgb, var(--bg) 86%, transparent) 70%,
      color-mix(in srgb, var(--bg) 70%, transparent) 100%
    );
  }
}

/* ---------- active filter bar ---------- */

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.active-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem 0.25rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.chip span { font-size: 1rem; line-height: 1; opacity: 0.75; }
.chip:hover span { opacity: 1; }

@media (prefers-color-scheme: dark) {
  .chip { color: #10201a; }
}

.reset {
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.reset:hover { border-color: var(--accent); color: var(--fg); }

/* an active control should stand out from an untouched one */
.select.is-set,
.search.is-set {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- whole card clickable ---------- */

/* The heading link is stretched across the card, so the entire tile reacts to
   a click. Anything that needs to stay clickable on its own gets a z-index. */
.post-card,
.teasers li {
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
}

.post-card h2 a::after,
.teasers li > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card:hover,
.teasers li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.post-card:has(a:focus-visible),
.teasers li:has(a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.post-card .tags,
.teasers li span {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* one visible focus style everywhere, not just on the form controls */
:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .skip-link { color: #10201a; }
}

/* small controls need a large enough hit area */
.chip,
.reset,
.langs .lang {
  min-height: 2rem;
}

.langs .lang {
  display: inline-flex;
  align-items: center;
  min-width: 2.1rem;
  justify-content: center;
}

/* lightbox navigation */

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 75%, transparent);
  color: var(--bg);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav.prev { left: -1.4rem; }
.lightbox-nav.next { right: -1.4rem; }

@media (max-width: 640px) {
  .lightbox-nav.prev { left: 0.3rem; }
  .lightbox-nav.next { right: 0.3rem; }
}

/* ---------- whole facility card clickable ---------- */

/* Same stretched-link trick as the blog tiles. The action row is lifted above
   the overlay so "show on map" keeps working as its own button. */
.card { position: relative; }

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-actions {
  position: relative;
  z-index: 2;
}

.card:has(h3 a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.source-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* lead image on a blog post */

.post-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.6rem 0 0;
  border-radius: var(--radius);
}

.post-card.has-photo { padding-top: 0; overflow: hidden; }
.post-card .card-photo { display: block; margin: 0 -1.3rem 0.8rem; }
.post-card .card-photo img { display: block; width: 100%; height: 150px; object-fit: cover; }

/* generic photo introducing a region */

.region-figure {
  margin: 1.5rem 0 2rem;
}

.region-figure img {
  display: block;
  width: 100%;
  height: clamp(180px, 26vw, 300px);
  object-fit: cover;
  border-radius: var(--radius);
}

.region-figure figcaption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---------- season ---------- */

.season {
  margin: 1.6rem 0 0;
}

/* the season table has three columns rather than the two-column key/value
   shape .facts-table was written for, so the date column stays narrower */
.season-table th {
  width: 34%;
  color: var(--fg);
  white-space: nowrap;
}

.season-table td:last-child {
  width: 26%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.season-note {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .season-table th,
  .season-table td:last-child { white-space: normal; }
}

/* ---------- partner page ---------- */

.partner-what,
.packages-section,
.partner-rules,
.partner-form-section { margin-top: 2.5rem; }

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.package {
  position: relative;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

/* the bigger package is the one we want chosen, so it carries the accent */
.package.is-featured { border-color: var(--accent); }

.package-badge {
  position: absolute;
  top: -0.7rem;
  right: 1.2rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.package h3 { margin: 0; font-size: 1.15rem; }

.package-claim {
  margin: 0.2rem 0 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.package-price {
  margin: 0.9rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.package-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.package-list li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.package-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.package-list li:last-child { border-bottom: 0; }

.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.rules li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.rules li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.rules li:last-child { border-bottom: 0; }

/* ---------- partner accommodation ---------- */

.stay { margin-top: 2.5rem; }

/* an ad in a directory has to look like an ad: no shadow, no accent frame,
   quieter than the facts above it */
.stay-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.stay-card + .stay-card { margin-top: 0.7rem; }

/* beds at the facility itself come without a photo of their own */
.stay-card.plain { grid-template-columns: 1fr; }

.stay-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.stay-body {
  padding: 1.2rem 1.4rem;
  align-self: center;
}

.stay-label {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stay-body h3 {
  margin: 0.3rem 0 0.15rem;
  font-size: 1.15rem;
}

.stay-where {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.88rem;
}

.stay-text {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
}

.stay-facts { margin: 0.9rem 0 1.1rem; }

.stay-credit {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

@media (max-width: 720px) {
  .stay-card { grid-template-columns: 1fr; }
  .stay-photo img { height: 200px; min-height: 0; }
}

/* ---------- analytics opt-out (privacy page) ---------- */

.optout {
  margin: 1.4rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.optout-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
}

.optout-toggle input {
  margin-top: 0.32rem;
  accent-color: var(--accent);
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

/* without JavaScript the checkbox stays disabled, so it should not invite a click */
.optout-toggle:has(input:disabled) { cursor: default; }

.optout-note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.optout .notice { margin-top: 0.7rem; }
