:root {
  --navy: #0f2744;
  --navy-light: #1a3a5c;
  --pink: #e32d7a;
  --cyan: #3bc9b7;
  --green: #34c759;
  --orange: #f5a623;
  --yellow: #fcd12a;
  --surface: #ffffff;
  --muted-bg: #e8ecf1;
  --text: #1a1a1a;
  --shadow: 0 8px 24px rgba(15, 39, 68, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #f6f7f9;
  line-height: 1.5;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.deck-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 840px) {
  .deck-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem;
}

.card-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legend-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
}

.swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.swatch--grand {
  background: var(--pink);
}
.swatch--luxury {
  background: var(--cyan);
}
.swatch--a {
  background: var(--green);
}
.swatch--b {
  background: var(--orange);
}
.swatch--c {
  background: var(--yellow);
  color: #3d3500;
  text-shadow: none;
}

.legend-detail {
  flex: 1;
  min-width: 12rem;
  font-size: 0.9rem;
  color: var(--navy-light);
}

.diagram-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 200px;
  max-height: min(52vh, 520px);
  background: #eef1f5;
}

.diagram-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pricing-section {
  margin-top: 2rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  background: var(--surface);
}

.price-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.price-table__banner {
  background: var(--muted-bg);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.price-table__colhead {
  background: var(--surface);
  color: var(--navy);
  font-style: italic;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem 0.65rem;
  border-bottom: 2px solid var(--navy);
  vertical-align: bottom;
  line-height: 1.35;
}

.price-table tbody th,
.price-table tbody td {
  padding: 0.85rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(15, 39, 68, 0.12);
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: none;
}

.cat-cell {
  font-weight: 700;
  color: var(--navy);
}

.cat-cell--grand {
  background: var(--pink);
  color: #fff;
}
.cat-cell--luxury {
  background: var(--cyan);
  color: #fff;
}
.cat-cell--a {
  background: var(--green);
  color: #fff;
}
.cat-cell--b {
  background: var(--orange);
  color: #fff;
}
.cat-cell--c {
  background: var(--yellow);
  color: #3d3500;
}

.price-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
}

.price-link:hover {
  background: rgba(15, 39, 68, 0.06);
}

.price-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.table-note {
  margin: 1rem 0 0;
  text-align: center;
  font-style: italic;
  color: var(--navy-light);
  font-weight: bold;
  max-width: 52rem;
  margin-inline: auto;
}

.divider {
  margin: 1.75rem 0 0;
}

.room-layout {
  margin: 1.75rem 0 0;
  padding: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(15, 39, 68, 0.08);
}

.room-layout__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobiel: prijzen als kaarten (geen smalle scroll-tabel) */
@media (max-width: 720px) {
  .pricing-section {
    margin-top: 1.25rem;
  }

  .table-scroll {
    overflow-x: visible;
    border: none;
    background: transparent;
  }

  .price-table {
    min-width: 0;
    display: block;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
  }

  .price-table thead {
    display: block;
  }

  .price-table thead tr:first-child {
    display: block;
  }

  .price-table__banner {
    display: block;
    width: 100%;
    border: 2px solid var(--navy);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-sizing: border-box;
  }

  .price-table thead tr:nth-child(2) {
    display: none;
  }

  .price-table tbody {
    display: block;
  }

  .price-table tbody tr {
    --price-border: rgba(15, 39, 68, 0.14);
    display: block;
    margin-bottom: 1rem;
    border: 2px solid var(--navy);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .price-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .price-table tbody th.cat-cell {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--price-border);
  }

  .price-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--price-border);
  }

  .price-table tbody tr td:last-child {
    border-bottom: none;
  }

  .price-table tbody td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 700;
    font-style: italic;
    color: var(--navy);
    line-height: 1.35;
    text-align: left;
    flex: 1;
    min-width: 0;
    padding-right: 0.35rem;
  }

  .price-table tbody .price-link {
    white-space: nowrap;
    align-self: center;
  }
}
