/* Beklimmingen-pagina's (Trollstigen, Passo San Boldo, gedeelde tabellen/sterren op o.a. monument- en uitdagingen-pagina's) */

.trollstigen-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  color: #b8860b;
  filter: drop-shadow(0 0.5px 0 rgba(0, 0, 0, 0.08));
}

.trollstigen-stars .trollstigen-star {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  display: block;
}

.trollstigen-flag-no-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.2rem;
  line-height: 0;
}

.trollstigen-flag-no-wrap img {
  display: block;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.trollstigen-intro-grid {
  display: grid;
  gap: 1rem;
  margin: 0.75rem 0 0;
  align-items: start;
}

@media (min-width: 720px) {
  .trollstigen-intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 293px);
  }
}

.trollstigen-intro-grid .trollstigen-map-cell {
  justify-self: end;
}

.trollstigen-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.45rem 0 0;
  font-size: inherit;
}

.trollstigen-data-table th,
.trollstigen-data-table td {
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(16, 100, 70, 0.14);
  text-align: left;
  vertical-align: top;
  line-height: 1.35;
}

.trollstigen-data-table th {
  background: rgba(147, 214, 177, 0.42);
  font-weight: 700;
  width: 36%;
}

.trollstigen-data-table td {
  background: rgba(255, 255, 255, 0.65);
}

.trollstigen-data-table--beoordeling,
.trollstigen-data-table--land {
  table-layout: fixed;
}

.trollstigen-data-table--beoordeling th,
.trollstigen-data-table--land th {
  width: 8.75rem;
}

.trollstigen-data-table--beoordeling td[rowspan] {
  vertical-align: top;
}

.trollstigen-accent-line {
  margin: 0.85rem 0 0.35rem;
  font-size: clamp(0.82rem, 0.78rem + 0.18vw, 0.92rem);
  font-weight: 700;
  font-style: italic;
}

.trollstigen-wide-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0 0;
}

.trollstigen-fotos-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.65rem 1rem;
  align-items: start;
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .trollstigen-fotos-grid {
    grid-template-columns: 1fr;
  }
}

/* Passo San Boldo: fotoblok (zelfde markup als dagboek.html) */
.sanboldo-fotos-block + p {
  margin-top: 1rem;
}

/* Scherpere thumbnails, minder crop: volledige foto zichtbaar + rustige rand (tekst/borden in beeld) */
.sanboldo-fotos-block {
  --sanboldo-thumb-bg: rgba(248, 250, 249, 0.98);
}

.sanboldo-fotos-block .dagboek-photo-row.photo-row--5 .beginjaren-sidebar__link img,
.sanboldo-fotos-block .dagboek-photo-row.photo-row--4 .beginjaren-sidebar__link img {
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background-color: var(--sanboldo-thumb-bg);
  border: 1px solid rgba(16, 100, 70, 0.16);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  image-rendering: auto;
}

@supports (image-rendering: high-quality) {
  .sanboldo-fotos-block .dagboek-photo-row.photo-row--5 .beginjaren-sidebar__link img,
  .sanboldo-fotos-block .dagboek-photo-row.photo-row--4 .beginjaren-sidebar__link img {
    image-rendering: high-quality;
  }
}

/* Minder kolommen op smalle schermen → dichter bij 150px weergave, minder wazige subsampling */
@media (max-width: 52rem) {
  .sanboldo-fotos-block .dagboek-photo-row.photo-row--5,
  .sanboldo-fotos-block .dagboek-photo-row.photo-row--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 30rem) {
  .sanboldo-fotos-block .dagboek-photo-row.photo-row--5,
  .sanboldo-fotos-block .dagboek-photo-row.photo-row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sanboldo-fotos-block .dagboek-photo-row.photo-row--5 figcaption,
.sanboldo-fotos-block .dagboek-photo-row.photo-row--4 figcaption {
  font-size: clamp(0.68rem, 0.62rem + 0.22vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.38;
  color: #1e293b;
}

/* Brede bochtenvergelijking (Stelvio: Prato vs. Bormio) */
.trollstigen-bochten-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0 0;
}

.trollstigen-data-table--bochten th {
  width: auto;
  min-width: 5rem;
}

.trollstigen-bochten-scroll > .trollstigen-data-table--bochten {
  width: auto;
  max-width: 100%;
}

.trollstigen-bochten-scroll > .trollstigen-data-table--bochten :is(th, td) {
  padding: 0.3rem 1.15rem;
}

.trollstigen-bochten-scroll > .trollstigen-data-table--bochten :is(th, td):first-child {
  width: 4.5rem;
  min-width: 4.5rem;
  white-space: nowrap;
}

.trollstigen-data-table--bochten-renners col.bochten-col-naam {
  width: 12rem;
  min-width: 12rem;
}

.trollstigen-bochten-scroll > .trollstigen-data-table--bochten-renners :is(th, td) {
  white-space: nowrap;
}

/* Tabel + bochtenplaat naast elkaar (o.a. Vršič) */
.trollstigen-bochten-row {
  display: grid;
  gap: 0.75rem 1.25rem;
  align-items: start;
  margin: 0.35rem 0 1.15rem;
}

@media (min-width: 640px) {
  .trollstigen-bochten-row {
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  }
}

.trollstigen-bochten-row .trollstigen-bochten-scroll {
  margin: 0;
}

.trollstigen-bochten-row .trollstigen-data-table--bochten {
  table-layout: fixed;
  width: auto;
  min-width: 10.5rem;
}

.trollstigen-bochten-row .trollstigen-data-table--bochten td {
  padding: 0.25rem 0.75rem;
}

.trollstigen-bochten-row .trollstigen-bochten-scroll > .trollstigen-data-table--bochten td:first-child {
  width: 3.75rem;
  min-width: 3.75rem;
}

.trollstigen-bochten-row .trollstigen-data-table--bochten td:last-child {
  width: 6.25rem;
  min-width: 6.25rem;
}

.trollstigen-bochten-row__img {
  justify-self: end;
  min-width: 0;
}

.trollstigen-bochten-row__img img {
  max-width: 100%;
  height: auto;
  display: block;
}
