/* uitvalsbasis/ — detailpagina's (andermatt, andorra, …) en specials/uitvalsbasis.html */

/* specials/uitvalsbasis.html — overzichtstabel */
.uitvalsbasis-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

.uitvalsbasis-table {
  width: 100%;
  min-width: 45rem;
  border-collapse: collapse;
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.92rem);
}

.uitvalsbasis-table th,
.uitvalsbasis-table td {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(16, 100, 70, 0.18);
  text-align: left;
  vertical-align: middle;
}

.uitvalsbasis-table th:nth-child(3),
.uitvalsbasis-table td:nth-child(3) {
  text-align: left;
  vertical-align: middle;
}

.uitvalsbasis-table td:nth-child(3) > .uitvalsbasis-table__flag {
  display: inline-block;
  vertical-align: middle;
}

/* Vervoerskolom (specials/uitvalsbasis.html): iconen op één regel */
.uitvalsbasis-table:has(thead th:nth-child(6)) th:last-child,
.uitvalsbasis-table:has(thead th:nth-child(6)) td:last-child {
  min-width: 7.25rem;
  white-space: nowrap;
}

/* Global img { display: block } stapelde meerdere vervoer-iconen; naast elkaar in deze kolom */
.uitvalsbasis-table td:last-child img {
  display: inline-block;
  vertical-align: middle;
}

.uitvalsbasis-table td:last-child img + img {
  margin-left: 0.35rem;
}

.uitvalsbasis-table thead th {
  background: rgba(147, 214, 177, 0.55);
  font-weight: 700;
  color: #064e3b;
  font-family: var(--font-display);
}

.uitvalsbasis-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.55);
}

.uitvalsbasis-table a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(13, 148, 136, 0.45);
}

.uitvalsbasis-table a:hover {
  color: var(--accent-dark);
}

.uitvalsbasis-table thead tr:first-child th:first-child {
  border-top-left-radius: var(--radius-sm);
}

.uitvalsbasis-table thead tr:first-child th:last-child {
  border-top-right-radius: var(--radius-sm);
}

.uitvalsbasis-table tbody tr:last-child > *:first-child {
  border-bottom-left-radius: var(--radius-sm);
}

.uitvalsbasis-table tbody tr:last-child > *:last-child {
  border-bottom-right-radius: var(--radius-sm);
}

.uitvalsbasis-table__flags {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  line-height: 0;
  vertical-align: middle;
}

.uitvalsbasis-table__flag {
  display: block;
  width: 1.6rem;
  height: auto;
  border-radius: var(--flag-radius, 0.2rem);
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.uitvalsbasis-table__icon {
  width: 1.55rem;
  height: auto;
  vertical-align: middle;
}

.uitvalsbasis-table__icon--boot {
  width: 2.35rem;
}

/* Land / kanton / hoogte: zelfde kopkleur als uitvalsbasis-tabel */
.dagboek-entry__card > .trollstigen-data-table--beoordeling {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0.65rem;
}

.trip-cols.trip-cols--uitvalsbasis-kern {
  width: max-content;
  max-width: 100%;
  table-layout: fixed;
  border-radius: 0;
  overflow: visible;
}

.trip-cols.trip-cols--uitvalsbasis-kern th[scope="row"] {
  width: 8.75rem;
  white-space: nowrap;
  padding-right: 0.45rem;
  padding-left: 0.45rem;
  background: rgba(147, 214, 177, 0.55);
  color: #064e3b;
  font-family: var(--font-display);
  font-weight: 700;
  border-right: 1px solid rgba(16, 100, 70, 0.18);
}

.trip-cols.trip-cols--uitvalsbasis-kern td {
  padding-left: 0.45rem;
}

.trip-cols.trip-cols--uitvalsbasis-kern tbody tr:last-child th {
  border-bottom: 0;
}

/* Meerdere rondje-tabellen: gelijke kolombreedtes */
.uitvalsbasis-rondjes .trip-cols {
  table-layout: fixed;
  width: 100%;
}

.uitvalsbasis-rondjes .trip-cols th[scope="row"] {
  width: 9.75rem;
}

/* Intro: tekst naast kaart of foto */
.uitvalsbasis-andermatt-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(0.85rem, 2.2vw, 1.35rem);
  align-items: start;
}

.uitvalsbasis-andermatt-intro__text {
  min-width: 0;
}

.uitvalsbasis-andermatt-intro__map {
  margin: 0;
}

.uitvalsbasis-andermatt-intro__map img {
  display: block;
  width: 254px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 100, 70, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

@media (max-width: 48rem) {
  .uitvalsbasis-andermatt-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .uitvalsbasis-andermatt-intro__text {
    justify-self: stretch;
    width: 100%;
  }

  .uitvalsbasis-andermatt-intro__map {
    justify-self: center;
  }
}
