:root {
  --ink: #17231c;
  --muted: #657268;
  --line: #d9dfd7;
  --paper: #f8faf5;
  --white: #ffffff;
  --forest: #1f3a2e;
  --forest-2: #315d45;
  --moss: #dfe9dc;
  --water: #2d6f78;
  --accent: #b96335;
  --gold: #d6a13c;
  --ember: #f5d29a;
  --danger: #8b3427;
  --shadow: 0 18px 45px rgba(26, 42, 32, .12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 161, 60, .16), transparent 34rem),
    linear-gradient(180deg, #fbfaf2 0%, var(--paper) 42%, #eef4ea 100%);
}

body[data-theme="night"] {
  --ink: #eef5ec;
  --muted: #b7c4bc;
  --line: rgba(255,255,255,.16);
  --paper: #111b15;
  --white: #17231c;
  --moss: #203429;
  background:
    radial-gradient(circle at top right, rgba(214, 161, 60, .12), transparent 28rem),
    linear-gradient(180deg, #0d1510 0%, #142119 100%);
}

body[data-theme="night"] .site-header,
body[data-theme="night"] .place-card,
body[data-theme="night"] .filters,
body[data-theme="night"] .map-panel,
body[data-theme="night"] .trip-panel,
body[data-theme="night"] .category-tile,
body[data-theme="night"] .legal-content,
body[data-theme="night"] .legal-side {
  background: rgba(23, 35, 28, .94);
  color: var(--ink);
}

body[data-theme="winter"] {
  --forest: #244052;
  --forest-2: #2f6682;
  --moss: #e6f0f2;
  --water: #4f8ea5;
  --accent: #9c7a35;
  background:
    radial-gradient(circle at top left, rgba(79, 142, 165, .16), transparent 34rem),
    linear-gradient(180deg, #f5fbfb 0%, #eef5f6 48%, #e5edf0 100%);
}

body.dialog-open {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 250, 245, .92);
  border-bottom: 1px solid rgba(31, 58, 46, .12);
  backdrop-filter: blur(14px);
}

.theme-toggle {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: var(--forest);
  background: var(--moss);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.18));
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand strong { display: block; font-size: 1rem; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); font-size: .76rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a:hover { background: var(--moss); color: var(--ink); }

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(18, 33, 25, .76), rgba(46, 57, 31, .2) 58%, rgba(18, 33, 25, .5)), url("family-hero.png");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  width: min(860px, calc(100% - 36px));
  padding: 110px 0 58px clamp(18px, 4vw, 56px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  font-size: .75rem;
}

.hero .eyebrow { color: #ffd7b8; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: .98;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.btn.ghost {
  color: var(--white);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.36);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
}

.hero-stats strong { font-size: 1.25rem; }

.category-band {
  padding: 48px clamp(18px, 4vw, 56px) 28px;
}

.weekend-band {
  padding: 28px clamp(18px, 4vw, 56px);
}

.canton-band {
  padding: 28px clamp(18px, 4vw, 56px);
}

.canton-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.canton-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(26, 42, 32, .06);
}

.canton-links span {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  color: var(--white);
  background: var(--forest-2);
  border-radius: 999px;
  font-size: .76rem;
}

.app-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
  padding: 34px clamp(18px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(223,233,220,.82)),
    radial-gradient(circle at 14% 22%, rgba(214,161,60,.2), transparent 20rem);
  border-bottom: 1px solid var(--line);
}

.app-band h2 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
}

.app-band p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.app-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(245,210,154,.25), transparent 12rem),
    linear-gradient(135deg, var(--forest), var(--water));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-card strong {
  font-size: 1.3rem;
}

.app-card span {
  color: rgba(255,255,255,.82);
  line-height: 1.45;
}

.weekend-grid {
  display: grid;
  grid-template-columns: 1.15fr .925fr .925fr;
  gap: 14px;
}

.weekend-card {
  min-height: 240px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
  color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 21, 15, .08), rgba(11, 21, 15, .82)),
    url("family-hero.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.weekend-card:first-child {
  min-height: 320px;
}

.weekend-card h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.weekend-card p {
  color: rgba(255,255,255,.86);
}

.weekend-card button {
  justify-self: start;
}

.immersion-band {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: stretch;
  padding: 34px clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 161, 60, .34), transparent 18rem),
    linear-gradient(135deg, rgba(31, 58, 46, .96), rgba(45, 111, 120, .9));
}

.immersion-band .eyebrow {
  color: var(--ember);
}

.immersion-band h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.06;
}

.immersion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.immersion-grid a {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
}

.immersion-grid strong {
  font-size: 1.05rem;
}

.immersion-grid span {
  color: rgba(255,255,255,.82);
  line-height: 1.45;
  font-size: .94rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2,
.results-toolbar h2,
.filters-head h2,
.proposal h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.category-tile {
  min-height: 116px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.category-tile:hover,
.category-tile.active {
  border-color: rgba(31, 58, 46, .45);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.category-tile strong { display: block; margin-bottom: 8px; }
.category-tile span { color: var(--muted); font-size: .9rem; }

.explorer {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px clamp(18px, 4vw, 56px) 56px;
}

.filters {
  position: sticky;
  top: 82px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(26, 42, 32, .08);
}

.filters-head,
.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.link-button {
  border: 0;
  color: var(--forest-2);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.field,
.sort-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field span,
.sort-field span,
.range-top span,
.checks legend {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

input[type="search"],
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfcf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.range-field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.geo-button {
  width: 100%;
  min-height: 40px;
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-2), var(--water));
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.geo-button:disabled {
  opacity: .72;
  cursor: progress;
}

.geo-status {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.range-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--forest-2);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checks label {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
}

.checks input { accent-color: var(--forest-2); }

.filter-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.results {
  min-width: 0;
}

.experience-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  gap: 14px;
  margin-bottom: 14px;
}

.map-panel,
.trip-panel {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,248,239,.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(26, 42, 32, .07);
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h3 {
  margin-bottom: 0;
}

.panel-head > span {
  color: var(--muted);
  font-weight: 900;
}

.swiss-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 58, 46, .08), rgba(45, 111, 120, .18)),
    radial-gradient(circle at 60% 42%, rgba(255,255,255,.9), transparent 14rem);
  border: 1px solid var(--line);
}

.swiss-map:not(.leaflet-ready)::before {
  content: "";
  position: absolute;
  inset: 26px 32px;
  clip-path: polygon(8% 54%, 20% 34%, 34% 38%, 45% 22%, 62% 31%, 72% 20%, 88% 42%, 82% 64%, 66% 70%, 55% 86%, 39% 76%, 24% 82%);
  background: linear-gradient(135deg, rgba(223, 233, 220, .94), rgba(194, 214, 190, .94));
  border: 1px solid rgba(31, 58, 46, .18);
  filter: drop-shadow(0 14px 22px rgba(31, 58, 46, .16));
}

.swiss-map.leaflet-ready {
  background: #dfe9dc;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: #17231c;
}

.leaflet-popup-content {
  min-width: 180px;
}

.map-dot {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,.22);
  cursor: pointer;
}

.map-dot.easy { background: var(--forest-2); }
.map-dot.medium { background: var(--gold); }
.map-dot.hard { background: var(--danger); }

.map-dot:hover {
  transform: scale(1.35);
}

.trip-list {
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
}

.trip-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #f5f8f2;
  border-radius: 8px;
}

.trip-item strong {
  font-size: .95rem;
}

.trip-item span {
  color: var(--muted);
  font-size: .82rem;
}

.trip-empty {
  color: var(--muted);
  line-height: 1.45;
}

.sort-field {
  min-width: 190px;
  margin-bottom: 0;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 12px;
}

.active-filters span {
  padding: 7px 9px;
  color: var(--forest);
  background: var(--moss);
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.place-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,248,239,.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(26, 42, 32, .07);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.place-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.place-meta {
  color: var(--muted);
  font-size: .9rem;
}

.score {
  flex: 0 0 auto;
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--forest), var(--gold));
  border-radius: 8px;
  font-weight: 900;
}

.place-summary {
  min-height: 46px;
  color: #39483e;
  line-height: 1.42;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 6px 8px;
  color: var(--forest);
  background: #edf3ec;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
}

.chip.warn {
  color: var(--danger);
  background: #f6e6df;
}

.card-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.visual-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.visual-badge {
  padding: 7px 9px;
  color: var(--forest);
  background: #fff7e8;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.fact {
  padding: 9px;
  background: #f5f8f2;
  border-radius: 8px;
}

.fact small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.fact strong {
  display: block;
  margin-top: 2px;
  font-size: .9rem;
}

.details-button {
  justify-self: start;
  padding: 10px 12px;
  color: var(--white);
  background: var(--forest-2);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button {
  padding: 10px 12px;
  color: var(--forest);
  background: #edf3ec;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.mini-button.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest), var(--gold));
}

.place-photo {
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31, 58, 46, .86), rgba(45, 111, 120, .62)),
    url("family-hero.png");
  background-size: cover;
  background-position: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.gallery-grid .place-photo {
  height: 110px;
}

.magazine-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.magazine-note div {
  padding: 14px;
  background: #f5f8f2;
  border-radius: 8px;
}

.place-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: var(--forest);
  background: #eef6f5;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.review-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.review-item {
  padding: 10px;
  background: #f5f8f2;
  border-radius: 8px;
}

.review-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label,
.review-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}

.review-form textarea,
.review-form input,
.admin-form textarea,
.admin-form input,
.admin-form select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
}

.empty {
  padding: 34px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.proposal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 0 clamp(18px, 4vw, 56px) 56px;
  padding: 28px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
}

.proposal .eyebrow { color: #ffd7b8; }
.proposal p { margin: 0; color: rgba(255,255,255,.84); line-height: 1.55; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255,255,255,.78);
  background:
    radial-gradient(circle at 14% 14%, rgba(214,161,60,.16), transparent 20rem),
    linear-gradient(135deg, #101912, #1f3a2e 58%, #2d4f50);
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-main,
.footer-columns,
.footer-columns nav,
.footer-support {
  display: grid;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.28));
}

.footer-brand strong {
  display: block;
  color: var(--white);
  letter-spacing: .08em;
  font-size: 1.15rem;
}

.footer-brand small,
.footer-main p,
.footer-support span {
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

.footer-main p {
  max-width: 660px;
  margin: 0;
}

.footer-main a,
.footer-columns a,
.footer-support a {
  color: #ffe0a8;
  font-weight: 850;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 13px;
  color: var(--white);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.footer-cta.support {
  color: #18231c;
  background: linear-gradient(135deg, #ffd67c, var(--gold));
  border-color: transparent;
}

.footer-cta.install:disabled {
  opacity: .72;
  cursor: default;
}

.footer-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-columns strong,
.footer-support strong {
  color: var(--white);
}

.footer-columns a {
  color: rgba(255,255,255,.74);
}

.place-dialog {
  width: min(780px, calc(100% - 28px));
  max-height: min(82vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(0,0,0,.32);
}

.place-dialog::backdrop {
  background: rgba(9, 18, 13, .62);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
}

.dialog-body {
  padding: 24px;
}

.dialog-hero {
  padding: 28px 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--forest), var(--water));
}

.dialog-hero p { color: rgba(255,255,255,.82); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.detail-item {
  padding: 12px;
  background: #f4f7f1;
  border-radius: 8px;
}

.detail-item small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.detail-item strong { display: block; margin-top: 4px; }

.safety-note {
  padding: 14px;
  background: #fff3e8;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: #5a3924;
}

.legal-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 58px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at right top, rgba(245, 210, 154, .24), transparent 16rem),
    linear-gradient(135deg, var(--forest), #244c39);
  border-radius: 8px;
}

.legal-hero .eyebrow { color: #ffd7b8; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.legal-hero p { color: rgba(255,255,255,.86); line-height: 1.55; }

.legal-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.legal-content,
.legal-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(26, 42, 32, .06);
}

.legal-content {
  padding: 26px;
}

.legal-side {
  position: sticky;
  top: 86px;
  padding: 18px;
}

.legal-content h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: #37473e;
  line-height: 1.6;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content a,
.official-link {
  color: var(--forest-2);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.legal-card {
  padding: 16px;
  background: #f5f8f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-card h3 {
  margin-bottom: 8px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 8px;
}

.legal-table th,
.legal-table td {
  padding: 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-table th {
  color: var(--white);
  background: var(--forest);
}

.legal-table tr:nth-child(even) td {
  background: #f7faf4;
}

.notice-box {
  padding: 16px;
  margin: 18px 0;
  background: #fff3e8;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.danger-box {
  padding: 16px;
  margin: 18px 0;
  background: #f8e7e2;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
}

.legal-nav {
  display: grid;
  gap: 8px;
}

.legal-nav a {
  padding: 10px 11px;
  background: #f5f8f2;
  border-radius: 8px;
  color: var(--forest);
  font-weight: 850;
}

.legal-nav a:hover {
  background: var(--moss);
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(10, 20, 14, .38);
}

.cookie-panel {
  width: min(760px, 100%);
  padding: 18px;
  background: linear-gradient(180deg, #fffdf6, #f4f7f1);
  border: 1px solid rgba(31, 58, 46, .18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.cookie-panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.cookie-panel p {
  color: #46564d;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cookie-actions button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 900;
}

.cookie-actions .accept {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest), var(--gold));
  border-color: transparent;
}

.cookie-actions .reject,
.cookie-actions .save {
  color: var(--forest);
  background: var(--white);
}

.cookie-options {
  display: none;
  gap: 10px;
  margin-top: 14px;
}

.cookie-panel.customizing .cookie-options {
  display: grid;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(223, 233, 220, .55);
  border-radius: 8px;
}

.cookie-option input {
  margin-top: 4px;
  accent-color: var(--forest-2);
}

.cookie-option strong {
  display: block;
}

.cookie-option span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero { min-height: 660px; }
  .hero-content { padding-right: 18px; }

  .section-heading,
  .explorer,
  .proposal,
  .immersion-band,
  .app-band,
  .site-footer {
    display: block;
  }

  .filters {
    position: static;
    margin-bottom: 18px;
  }

  .category-grid,
  .cards,
  .immersion-grid,
  .weekend-grid,
  .magazine-note,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .immersion-grid {
    margin-top: 18px;
  }

  .app-card,
  .footer-columns {
    margin-top: 18px;
  }

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

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-field { min-width: 0; }
  .proposal .btn { margin-top: 18px; width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .legal-hero,
  .legal-layout {
    display: block;
  }
  .legal-logo {
    margin-top: 14px;
  }
  .legal-side {
    position: static;
    margin-top: 18px;
  }
  .legal-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn,
  .card-facts {
    width: 100%;
  }

  .card-facts { grid-template-columns: 1fr; }
  h1 { font-size: 2.28rem; }
  .cookie-actions button { width: 100%; }
  .footer-actions,
  .footer-actions .footer-cta,
  .app-card .card-actions,
  .app-card .card-actions a {
    width: 100%;
  }
}
