:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --ink: #2c2a28;
  --muted: #6f6b66;
  --line: #d9d3cb;
  --olive: #596436;
  --olive-strong: #4c562e;
  --wine: #7a2d45;
  --soft-pink: #f3d9df;
  --olive-soft: #e9eedf;
  --four-accent: #7b0038;
  --four-soft: rgba(123, 0, 56, 0.16);
  --four-soft-strong: rgba(123, 0, 56, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top right, #faf8f5 0, var(--bg) 60%);
  font-family: Manrope, "Avenir Next", sans-serif;
}

.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero h1 {
  margin: 8px 0;
  font: 500 52px/56px "Cormorant Garamond", serif;
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 0;
  color: var(--olive);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 32px;
  max-width: 820px;
}

.scope-note {
  margin: 10px 0 0;
  color: var(--olive);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.offers {
  margin-top: 24px;
}

.offers-head h2 {
  margin: 8px 0 0;
  font: 500 36px/40px "Cormorant Garamond", serif;
}

.offers-grid {
  margin-top: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(32, 26, 21, 0.06);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-topline {
  margin: 0;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.offer-card h3 {
  margin: 0;
  font: 700 26px/30px "Cormorant Garamond", serif;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.offer-btn {
  margin-top: auto;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.offer-btn:hover,
.offer-btn:focus-visible {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
  box-shadow: 0 8px 18px rgba(89, 100, 54, 0.24);
  transform: translateY(-1px);
}

.offer-btn:active {
  background: var(--olive-strong);
  border-color: var(--olive-strong);
  color: #fff;
  transform: translateY(0);
}

.context {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  align-items: end;
}

.field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.context .field {
  position: relative;
}

.context .field[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  background: #2f2d2a;
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font: 600 12px/16px Manrope, sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 8;
  box-shadow: 0 8px 18px rgba(44, 42, 40, 0.24);
}

.context .field[data-tip]::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: calc(100% + 2px);
  width: 10px;
  height: 10px;
  background: #2f2d2a;
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 7;
}

.context .field[data-tip]:hover::after,
.context .field[data-tip]:hover::before,
.context .field[data-tip]:focus-within::after,
.context .field[data-tip]:focus-within::before {
  opacity: 1;
  transform: translateY(0);
}

select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: 600 16px/22px Manrope, sans-serif;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

select:focus,
select:focus-visible {
  border-color: var(--olive);
  box-shadow: 0 0 0 2px rgba(89, 100, 54, 0.18);
  outline: none;
}

.tee-select {
  min-width: 110px;
  max-width: 140px;
  padding: 8px 10px;
  font-size: 15px;
}

.course-select,
.tee-time-select {
  min-width: 140px;
}

.tee-groups {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tee-group {
  font-size: 14px;
  line-height: 20px;
}

.static-value {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: 700 16px/22px Manrope, sans-serif;
}

.btn {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  font: 700 15px/20px Manrope, sans-serif;
  cursor: pointer;
  transition: 180ms ease;
}

.context .btn {
  min-height: 48px;
  height: 48px;
  align-self: end;
  margin-top: 0;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-primary {
  border-color: var(--olive);
  color: #fff;
  background: var(--olive);
}

.btn-primary:hover {
  background: var(--olive-strong);
}

.btn-secondary {
  border-color: var(--olive);
  color: var(--olive);
  background: #fff;
}

.btn-secondary:disabled {
  border-color: var(--line);
  color: var(--muted);
  background: var(--soft-pink);
  cursor: not-allowed;
}

.kpis {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(32, 26, 21, 0.06);
  padding: 18px 18px 14px;
}

.card span {
  display: block;
  font: 700 30px/34px Manrope, "Avenir Next", sans-serif;
  letter-spacing: -0.01em;
}

.card small {
  color: var(--muted);
  font-size: 14px;
}

.sparkline {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.spark-head h3 {
  margin: 0 0 8px;
  font: 700 16px/22px Manrope, sans-serif;
  color: var(--muted);
}

.spark-head.secondary {
  margin-top: 12px;
}

#sparkline {
  width: 100%;
  height: 74px;
}

#weekdayChart {
  width: 100%;
  height: 96px;
}

.table-wrap {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.table-header {
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.table-header h2 {
  margin: 0;
  font: 500 28px/34px "Cormorant Garamond", serif;
}
.table-header small {
  color: var(--muted);
  font: 600 12px/18px Manrope, sans-serif;
}

.live-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px 0;
}

.live-pill {
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  font: 700 13px/18px Manrope, sans-serif;
  background: #fff;
}

.live-pill.ok {
  color: var(--olive);
  background: var(--olive-soft);
}

.live-pill.bad {
  color: var(--wine);
  background: var(--soft-pink);
}

.live-expand {
  border: 1px solid var(--olive);
  color: var(--olive);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font: 700 13px/18px Manrope, sans-serif;
  cursor: pointer;
}

.live-detail-row td {
  background: #faf8f4;
  padding-top: 10px;
  padding-bottom: 10px;
}

.live-month-row td {
  background: #f3eee6;
  font-weight: 700;
}

.live-date-row td:first-child {
  padding-left: 24px;
}

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

.live-detail-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font: 600 12px/16px Manrope, sans-serif;
  color: var(--ink);
  background: #fff;
}

.dates-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dates-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-width: 320px;
}

.segmented-course {
  min-width: 420px;
}

.segmented-btn {
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  font: 700 15px/20px Manrope, sans-serif;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 150px;
  white-space: nowrap;
}

.segmented-btn.active {
  background: var(--olive-soft);
  color: var(--olive);
}

.table-scroller {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  font-size: 16px;
  line-height: 22px;
}

td small {
  color: var(--muted);
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

#datesTable th,
#datesTable td {
  white-space: nowrap;
}

#datesTable td[data-label="Room x nights"] {
  white-space: normal;
  min-width: 130px;
}

#monthsTable td[data-label="Action"] .btn,
#datesTable td[data-label="Action"] .btn {
  white-space: nowrap;
  min-width: 132px;
  min-height: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  line-height: 1;
}

#datesTable td[data-label="Date"] {
  min-width: 110px;
}

#datesTable td[data-label="Course"] select,
#datesTable td[data-label="Tee time"] select {
  min-width: 110px;
}

tbody tr {
  transition: 180ms ease;
}

tbody tr:hover {
  background: #faf8f4;
}

#monthsBody tr.selected-row {
  background: #ece7de;
}

#monthsBody tr.selected-row:hover {
  background: #ece7de;
}

.chip {
  display: inline-flex;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
}

.chip-ok {
  color: var(--olive);
  background: var(--olive-soft);
}

.chip-no {
  color: var(--wine);
  background: var(--soft-pink);
}

.skeleton {
  background: linear-gradient(90deg, #efeae2 25%, #e7e1d8 37%, #efeae2 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
  height: 16px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.reveal {
  animation: reveal 180ms ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .context {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .offers-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 14px 60px;
  }
  .hero h1 {
    font-size: 38px;
    line-height: 42px;
  }
  .subtitle {
    font-size: 18px;
    line-height: 28px;
  }
  .context {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: 1fr;
  }
  .context .field[data-tip]::after,
  .context .field[data-tip]::before {
    display: none;
  }
  .offers-head h2 {
    font-size: 30px;
    line-height: 34px;
  }
  .offers-grid {
    grid-template-columns: 1fr;
  }
  .dates-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .dates-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .segmented {
    width: 100%;
    min-width: 0;
  }
  .segmented-btn {
    min-width: 0;
    font-size: 15px;
    line-height: 20px;
  }
  .table-scroller {
    overflow: visible;
  }
  table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
  }
  thead {
    display: none;
  }
  tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(32, 26, 21, 0.04);
    padding: 8px 10px;
  }
  tbody td {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 8px;
    align-items: center;
    border-bottom: 1px dashed var(--line);
    padding: 10px 4px;
    font-size: 16px;
    line-height: 22px;
  }
  tbody td:last-child {
    border-bottom: 0;
  }
  tbody td::before {
    content: attr(data-label);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .btn,
  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
  .course-select,
  .tee-time-select,
  .tee-select {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  /* Keep calendar as a real grid on mobile; do not convert it to card rows */
  .calendar-grid-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-grid {
    min-width: 700px;
    width: 700px;
    border-collapse: collapse;
    border-spacing: 0;
  }

  .calendar-grid thead {
    display: table-header-group;
  }

  .calendar-grid tbody tr {
    display: table-row;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .calendar-grid tbody td {
    display: table-cell;
    grid-template-columns: none;
    gap: 0;
    align-items: normal;
    border-bottom: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .calendar-grid tbody td:last-child {
    border-bottom: 0;
  }

  .calendar-grid tbody td::before {
    content: none;
  }
}

.calendar-shell {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(32, 26, 21, 0.06);
}

.calendar-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 6px;
}

.calendar-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.calendar-row-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calendar-row-control {
  min-width: 0;
  display: flex;
  align-items: center;
}

.calendar-row-month-control {
  display: grid;
  grid-template-columns: minmax(200px, 320px) auto;
  gap: 8px;
  align-items: center;
}

.calendar-nav {
  display: flex;
  gap: 8px;
  justify-self: start;
}

.calendar-toolbar select {
  padding: 7px 11px;
  font-size: 13px;
  border-radius: 10px;
  min-height: 40px;
}

.calendar-toolbar .segmented {
  width: auto;
  min-width: 0;
  max-width: 100%;
  border-radius: 14px;
}

.calendar-toolbar .segmented-nights,
.calendar-toolbar .segmented-golfers {
  min-width: 320px;
}

.calendar-toolbar .segmented-course {
  min-width: 560px;
}

.calendar-toolbar .segmented-btn {
  min-width: 0;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 16px;
}

.calendar-nav .btn {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 6px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

.legend-chip {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(44, 42, 40, 0.2);
}

.legend-none {
  background: #f9f7f3;
}

.legend-two {
  background: #dcead0;
}

.legend-four {
  background: var(--four-accent);
}

.legend-both {
  background: linear-gradient(135deg, #dcead0 0 50%, var(--four-accent) 50% 100%);
}

.calendar-summary {
  margin: 0 0 8px;
  color: var(--olive-strong);
  font-size: 14px;
  font-weight: 700;
}

.calendar-grid-wrap {
  overflow-x: auto;
}

.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 720px;
}

.calendar-grid thead th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-grid tbody tr:hover {
  background: transparent;
}

.cal-day {
  border: 1px solid var(--line);
  height: 132px;
  vertical-align: top;
  padding: 12px;
  position: relative;
  background: #f9f7f3;
  overflow: hidden;
}

.cal-empty {
  background: #f4f1eb;
}

.cal-day-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.cal-times {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 64px;
}

.cal-time-line {
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: #2d2c2a;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.cal-time-label {
  color: #1f1d1b;
  min-width: 26px;
}

.cal-time-values {
  color: #3a3835;
}

.cal-chip {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  max-width: max-content;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(44, 42, 40, 0.55);
  z-index: 3;
  pointer-events: none;
}

.cal-hit {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  transition: background-color 140ms ease;
}

.cal-hit:hover {
  background: rgba(79, 100, 52, 0.08);
}

.cal-hit-four:hover {
  background: rgba(123, 0, 56, 0.08);
}

.cal-hit.active {
  background: rgba(79, 100, 52, 0.1);
  box-shadow: none;
}

.cal-hit-two.active {
  background: rgba(79, 100, 52, 0.1);
}

.cal-hit-four.active {
  background: var(--four-soft-strong);
}

.cal-hit-full {
  clip-path: none;
}

.cal-hit-full.active {
  inset: 4px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 3px rgba(79, 100, 52, 0.9);
}

.cal-hit-four.cal-hit-full.active {
  box-shadow: inset 0 0 0 3px rgba(123, 0, 56, 0.9);
}

.cal-hit-two {
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.cal-hit-four {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.cal-hit-full.cal-hit-two,
.cal-hit-full.cal-hit-four {
  clip-path: none;
}

.cal-day-num,
.cal-times {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.booking-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9f8f6;
  padding: 14px;
}

.booking-head h2 {
  margin: 0;
  font: 700 24px/30px Manrope, sans-serif;
}

.booking-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.booking-step {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.booking-step h3 {
  margin: 0 0 8px;
  font: 700 18px/22px Manrope, sans-serif;
}

.booking-times-prompt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.booking-time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-time-btn {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 7px 12px;
  font: 700 14px/18px Manrope, sans-serif;
  cursor: pointer;
}

.booking-time-btn:hover,
.booking-time-btn:focus-visible {
  border-color: #9fb07a;
  box-shadow: 0 0 0 2px rgba(148, 167, 116, 0.2);
  outline: none;
}

.booking-time-btn.active {
  background: #e0e8d0;
  color: #46572a;
  border-color: #8ca165;
  box-shadow: inset 0 0 0 1px #8ca165;
  padding-right: 28px;
}

.booking-time-btn.active::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: #55693a;
}

.booking-empty {
  margin: 0;
  color: var(--muted);
}

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

.booking-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 600 14px/20px Manrope, sans-serif;
  padding: 8px 10px;
}

.booking-form-wide {
  grid-column: 1 / -1;
}

.booking-consent {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.booking-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.booking-accordion details {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.booking-accordion details:last-child {
  border-bottom: 1px solid var(--line);
}

.booking-accordion summary {
  font: 700 16px/20px Manrope, sans-serif;
  cursor: pointer;
}

.booking-accordion p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.booking-status {
  margin: 0;
  color: var(--olive-strong);
  font-size: 14px;
  font-weight: 600;
}

.booking-status.is-error {
  color: var(--wine);
}

.cal-none {
  background: #f9f7f3;
}

.cal-two {
  background: #dcead0;
}

.cal-four {
  background: var(--four-soft);
}

.cal-both {
  background: #dcead0;
}

.cal-both::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--four-soft);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

@media (max-width: 1200px) {
  .calendar-row-month-control {
    grid-template-columns: minmax(180px, 260px) auto;
  }
}

@media (max-width: 900px) {
  .calendar-toolbar {
    gap: 10px;
  }

  .calendar-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: stretch;
  }

  .calendar-row-month-control {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calendar-toolbar .segmented,
  .calendar-toolbar .segmented-nights,
  .calendar-toolbar .segmented-golfers,
  .calendar-toolbar .segmented-course {
    width: 100%;
    min-width: 0;
  }

  .calendar-row-label {
    font-size: 11px;
  }

  .calendar-nav {
    justify-self: stretch;
  }

  .calendar-nav .btn {
    width: auto;
  }

  .cal-day {
    height: 120px;
    padding: 10px;
  }

  .cal-day-num {
    font-size: 18px;
  }

  .cal-times {
    padding-right: 0;
    gap: 3px;
  }

  .cal-time-line {
    font-size: 10px;
  }

  .cal-chip {
    right: 10px;
    top: 10px;
    padding: 4px 7px;
    font-size: 10px;
  }
}

/* Calendar-only visual theme */
.calendar-page {
  background: #f4f4f4;
  color: #303030;
}

.calendar-page .page {
  max-width: 1440px;
  padding: 28px 16px 44px;
}

.calendar-page .hero {
  margin-bottom: 12px;
}

.calendar-page .eyebrow {
  color: #6d6b67;
  letter-spacing: 0.04em;
}

.calendar-page .hero h1 {
  margin: 4px 0;
  font: 700 34px/38px Manrope, "Avenir Next", sans-serif;
  letter-spacing: 0;
  color: #2f2e2a;
}

.calendar-page .subtitle {
  max-width: 920px;
  font-size: 17px;
  line-height: 24px;
  color: #67645f;
}

.calendar-page .calendar-shell {
  margin-top: 12px;
  background: #f2f2f2;
  border: 1px solid #d2cec8;
  border-radius: 22px;
  padding: 20px;
  box-shadow: none;
}

.calendar-page .calendar-toolbar {
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-page .calendar-row {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.calendar-page .calendar-row + .calendar-row {
  margin-top: 2px;
}

.calendar-page .calendar-row-month-control {
  gap: 16px;
}

.calendar-page .calendar-row-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #6a6762;
}

.calendar-page .calendar-toolbar select {
  background: #f2f2f2;
  border-color: #cfc9c2;
  border-radius: 18px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #33312f;
}

.calendar-page .calendar-toolbar .segmented {
  background: #f2f2f2;
  border-color: #cfc9c2;
  border-radius: 22px;
}

.calendar-page .calendar-toolbar .segmented-btn {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #3c3a36;
  background: transparent;
}

.calendar-page .calendar-toolbar .segmented-btn + .segmented-btn {
  border-left: 1px solid #d7d1ca;
}

.calendar-page .calendar-toolbar .segmented-btn.active {
  background: #d6dbc9;
  color: #525d36;
}

.calendar-page .calendar-nav {
  gap: 12px;
}

.calendar-page .calendar-nav .btn {
  min-height: 44px;
  height: 44px;
  border-radius: 18px;
  border-color: #6a7448;
  color: #5b653c;
  background: #f2f2f2;
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
}

.calendar-page .calendar-legend {
  margin: 10px 0 8px;
}

.calendar-page .legend-item {
  font-size: 15px;
  color: #66625d;
}

.calendar-page .calendar-summary {
  margin: 8px 0 12px;
  font-size: 17px;
  color: #4f5934;
}

.calendar-page .calendar-grid thead th {
  font-size: 12px;
  color: #76716a;
  border-bottom-color: #d7d1ca;
  padding: 8px;
}

.calendar-page .cal-day {
  background: #f8f8f6;
  border-color: #d7d1ca;
  border-width: 1px;
  height: 126px;
}

.calendar-page .cal-day-num {
  font-size: 18px;
  color: #2f2e2b;
}

.calendar-page .cal-time-line {
  font-size: 10px;
}

.calendar-page .cal-chip {
  background: rgba(79, 83, 73, 0.72);
}

.calendar-page .cal-none {
  background: #f8f8f6;
}

.calendar-page .cal-two {
  background: #dbe4d1;
}

.calendar-page .cal-four {
  background: var(--four-soft);
}

.calendar-page .cal-both {
  background: #dbe4d1;
}

.calendar-page .cal-both::before {
  background: var(--four-soft);
}

.calendar-page .booking-panel {
  background: #f2f2f2;
  border-color: #d2cec8;
  border-radius: 20px;
}

.calendar-page .booking-meta,
.calendar-page .booking-empty,
.calendar-page .booking-form label,
.calendar-page .booking-accordion p {
  color: #66625d;
}

.calendar-page .booking-time-btn,
.calendar-page .booking-form input,
.calendar-page .booking-form textarea {
  background: #f7f6f4;
  border-color: #d0cbc4;
}

@media (max-width: 900px) {
  .calendar-page .page {
    padding: 18px 10px 28px;
  }

  .calendar-page .hero h1 {
    font-size: 30px;
    line-height: 34px;
  }

  .calendar-page .subtitle {
    font-size: 16px;
    line-height: 23px;
  }

  .calendar-page .calendar-shell {
    padding: 12px;
  }

  .calendar-page .calendar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .calendar-page .calendar-row-month-control {
    grid-template-columns: 1fr;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }
}
