/* Hero Section with Background Image */
.hero-section {
  background-image: url('/images/Sapa/hero-sapa.jpeg');
  background-image: image-set(url('/images/Sapa/hero-sapa.webp') type('image/webp'), url('/images/Sapa/hero-sapa.jpeg') type('image/jpeg'));
}
@media (max-width: 800px) {
  .hero-section { background-image: image-set(url('/images/Sapa/hero-sapa-800.webp') type('image/webp'), url('/images/Sapa/hero-sapa.jpeg') type('image/jpeg')); }
}

/* Seizoenen per regio en maand */
.season-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  font-size: 0.9rem;
}

.season-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.season-swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
}

.season-matrix-wrapper {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.season-matrix-wrapper:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.season-matrix {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  width: 100%;
  font-size: 0.8rem;
}

.season-matrix th,
.season-matrix td {
  padding: 0.5rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.25;
}

.season-matrix thead th {
  background: var(--gray-50);
  font-weight: 600;
  text-transform: capitalize;
}

.season-matrix thead th a {
  color: var(--primary);
  text-decoration: none;
}

.season-matrix thead th a:hover {
  text-decoration: underline;
}

/* Regiokolom blijft staan bij horizontaal scrollen */
.season-matrix th[scope="row"],
.season-matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white);
  text-align: left;
  min-width: 9rem;
  max-width: 11rem;
  box-shadow: 1px 0 0 var(--gray-200);
}

.season-matrix thead th:first-child {
  background: var(--gray-50);
}

.season-matrix tbody tr:last-child th,
.season-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.season-g { background: #d1fae5; color: #065f46; }
.season-o { background: #fef3c7; color: #92400e; }
.season-n { background: #e0e7ff; color: #3730a3; }

.season-matrix-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Op brede schermen mag de tabel breder zijn dan de tekst, zodat alle maanden passen */
@media (min-width: 1100px) {
  .season-matrix-wrapper {
    width: 1040px;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .season-matrix {
    min-width: 0;
  }
}

/* --- Seizoenstabel: maandkiezer, tegels, jaarbalken --- */

/* Maandkiezer */
.season-explorer {
  margin: 1rem 0 1.25rem;
}

.season-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .season-picker {
    grid-template-columns: repeat(12, 1fr);
  }
}

.season-pick {
  padding: 0.5rem 0;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.season-pick:hover {
  border-color: var(--primary);
}

.season-pick[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.season-pick:focus-visible,
.season-tile:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Samenvatting van de gekozen maand */
.season-summary {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.season-summary h4 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  text-transform: none;
}

.season-summary h4::first-letter {
  text-transform: uppercase;
}

.season-summary ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.season-summary li {
  display: flex;
  gap: 0.55rem;
  line-height: 1.5;
}

.season-summary li i {
  margin-top: 0.25rem;
}

.season-summary-g i { color: #059669; }
.season-summary-o i { color: #d97706; }
.season-summary-n i { color: #4f46e5; }

.season-summary-note {
  color: var(--gray-500);
}

.season-plan {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

/* Tabel als losse tegels, met pictogrammen */
.season-matrix {
  border-spacing: 3px;
}

.season-matrix th,
.season-matrix td {
  border-bottom: 0;
}

.season-matrix td {
  border-radius: 6px;
  vertical-align: middle;
}

.season-matrix td i {
  display: block;
  margin: 0 auto 0.2rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.season-matrix .season-group th {
  position: static;
  background: transparent;
  box-shadow: none;
  padding: 0.9rem 0.4rem 0.3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  text-align: left;
}

.season-matrix tbody th[scope="row"] {
  border-radius: 6px;
}

/* Gekozen maand */
.season-matrix thead th.is-selected {
  background: var(--primary);
  border-radius: 6px;
}

.season-matrix thead th.is-selected a {
  color: var(--white);
}

.season-matrix td.is-selected {
  box-shadow: inset 0 0 0 2px var(--primary);
  font-weight: 600;
}

/* Jaarbalken (alleen op mobiel) */
.season-strips {
  display: none;
}

@media (max-width: 700px) {
  .season-enhanced .season-matrix-wrapper {
    display: none;
  }

  .season-enhanced .season-strips {
    display: block;
  }
}

.season-strips-group {
  margin: 1.25rem 0 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.season-strip {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.season-strip-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}

.season-strip-tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.season-tile {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.season-tile.is-selected {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gray-800);
}

.season-strip-detail {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.season-strip-detail i {
  color: var(--gray-500);
  margin-right: 0.15rem;
}

/* Tegels: iets compacter zodat alle twaalf maanden op desktop passen */
.season-matrix th,
.season-matrix td {
  padding: 0.45rem 0.25rem;
}

@media (min-width: 1100px) {
  .season-matrix-wrapper {
    width: 1080px;
  }

  .season-matrix th[scope="row"],
  .season-matrix thead th:first-child {
    min-width: 8.5rem;
    max-width: 9.5rem;
  }
}

.season-strip {
  padding: 0.55rem 0;
}

/* Jaarbalken ook op tablets: de tabel past pas vanaf 1100px zonder scrollen */
@media (max-width: 1099px) {
  .season-enhanced .season-matrix-wrapper {
    display: none;
  }

  .season-enhanced .season-strips {
    display: block;
    max-width: 640px;
  }
}
