*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

input,
select,
button,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Luxury Enhancements */
.smooth-ease {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shimmer {
  background: linear-gradient(90deg, var(--primary-surface) 25%, var(--primary-subtle) 50%, var(--primary-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

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

  to {
    background-position: 200% 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

:root {
  /* ── Semantic design tokens (controlled via theme API) ───────────── */
  --primary: #1e434d;
  --primary-hover: #132a30;
  --primary-muted: #8ea1a6;
  --primary-subtle: #c7d0d3;
  --primary-surface: #edf0f1;
  --accent: #3a8e84;
  --accent-muted: #9cc7c2;
  --accent-subtle: #cee3e0;
  --highlight: #db5942;
  --highlight-muted: #edaca0;
  --highlight-subtle: #f6d6d0;
  --hero-overlay-start: rgba(30,67,77,0.85);
  --hero-overlay-mid: rgba(30,67,77,0.5);
  --hero-overlay-end: rgba(30,67,77,0.2);
  --focus-ring: rgba(58,142,132,0.1);

  /* ── Base tokens ─────────────────────────────────────────────────── */
  --bg: #f5f5f2;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a6b70;
  --text-light: #8a9da3;
  --border: #dce4e6;
  --shadow: 0 4px 12px rgba(30, 67, 77, 0.04), 0 1px 3px rgba(30, 67, 77, 0.06);
  --shadow-lg: 0 16px 40px rgba(30, 67, 77, 0.12), 0 4px 12px rgba(30, 67, 77, 0.04);
  --warning-bg: #fef2f2;
  --warning-border: #fecaca;
  --warning-text: #b91c1c;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --success-text: #15803d;
  --caution-bg: #fffbeb;
  --caution-border: #fde68a;
  --caution-text: #92400e;

  /* ── Typography & layout tokens ──────────────────────────────────── */
  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  --hero-image: url('background.png');
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --radius-hero-search: 12px;
}

/* Hero Section */
.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  background: var(--primary) center 60% / cover no-repeat;
  background-image: var(--hero-image, none);
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

@media (max-width: 899px) {
  .hero-banner {
    height: 480px;
  }
}

@media (max-width: 519px) {
  .hero-banner {
    height: 420px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-start) 0%, var(--hero-overlay-mid) 30%, var(--hero-overlay-end) 60%, var(--bg) 100%);
}

.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* Header */
.header {
  padding: 20px 0 0 0;
}

.header-wordmark {
  font-family: var(--font-display, 'DM Sans', 'Ubuntu', sans-serif);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1;
  display: block;
  text-decoration: none;
}

.header-wordmark__accent {
  color: var(--accent);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.header-sub {
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.header-btn--secondary {
  background: rgba(19, 27, 47, 0.18);
}

.header-link {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 519px) {
  .header-actions {
    gap: 8px;
  }

  .header-link {
    font-size: 12px;
    padding: 6px 10px;
  }

  .header-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .header-logo {
    height: 22px;
  }
}

/* Floating Hero Search Widget */
.hero-widget-container {
  position: absolute;
  top: 120px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 780px;
  padding: 0 16px;
  z-index: 20;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px);
}

.hero-search-bar {
  background: #fff;
  border-radius: var(--radius-hero-search);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: stretch;
  padding: 10px;
}

.hero-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  position: relative;
}

.hero-search-field:hover {
  background: var(--primary-surface);
}

.hero-search-field.is-open {
  background: var(--primary-surface);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.hero-search-icon {
  color: var(--primary-muted);
  flex-shrink: 0;
}

.hero-search-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}

.hero-search-chevron {
  color: var(--primary-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.hero-search-field.is-open .hero-search-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.hero-search-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
  flex-shrink: 0;
}

.hero-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 10px;
}

.hero-search-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.hero-search-btn:active {
  transform: translateY(1px);
}

/* Main Shell & Layout Grid */
.shell {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto 60px;
  padding: 0 16px;
  transition: margin 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s ease;
  z-index: 10;
}

.shell.has-sidebar {
  max-width: 1100px;
}

.shell.is-step-0 {
  margin-top: 240px;
}

.shell.is-step-1-plus {
  margin-top: 80px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  transition: all 0.4s ease;
}

@media (min-width: 900px) {
  .shell.has-sidebar .layout-grid {
    grid-template-columns: 1fr 340px;
  }
}

.content {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 36px 44px 48px;
  position: relative;
  min-width: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sticky Cart Sidebar */
.sidebar {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.3s;
}

.cart-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.cart-item-name {
  flex: 1;
  padding-right: 12px;
}

.cart-item-price {
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.cart-total-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 899px) {
  .sidebar {
    display: none !important;
  }

  /* Mobile: sidebar stays hidden; review step uses inline summary instead */
}

/* Steps Progress */
.steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.steps::-webkit-scrollbar {
  display: none;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.step-item.clickable {
  cursor: pointer;
}

.step-item.clickable:hover .step-label {
  color: var(--accent);
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
  color: #fff;
}

.step-circle.done {
  background: var(--accent);
}

.step-circle.active {
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.step-circle.pending {
  background: var(--primary-surface);
  color: var(--primary-muted);
}

.step-circle.visited-ahead {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-muted);
  white-space: nowrap;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-label.active {
  color: var(--primary);
  font-weight: 700;
}

.step-label.visited-ahead {
  color: var(--accent);
  opacity: 0.75;
}

.step-item.clickable .step-label {
  color: var(--text);
}

.step-item.clickable:hover .step-circle.visited-ahead {
  background: var(--accent);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  min-width: 12px;
  transition: background 0.3s;
  border-radius: 2px;
}

.step-line.done {
  background: var(--accent);
  opacity: 0.5;
}

.step-line.visited-ahead {
  background: none;
  border-top: 2px dashed var(--accent);
  opacity: 0.5;
  height: 0;
  margin-top: 1px;
}

.step-line.pending {
  background: var(--primary-surface);
}

/* Typography & Headings */
.heading {
  margin-bottom: 28px;
}

.heading h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.heading p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.summary-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* Components */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.hover-card:hover {
  border-color: var(--accent-muted);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card.clickable {
  cursor: pointer;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

.badge-default {
  background: var(--accent-subtle);
  color: var(--primary);
}

.badge-info {
  background: var(--primary-surface);
  color: var(--primary);
}

/* Buttons */
.btn {
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  transition: all 0.2s;
  font-size: 15px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary-muted);
  background: var(--primary-surface);
}

.btn-accent {
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  padding: 16px 32px;
  box-shadow: var(--shadow);
}

.btn-accent:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  font-size: 13px;
  padding: 10px 18px;
}

.btn-full {
  width: 100%;
}

/* Inputs */
.inp-group {
  margin-bottom: 16px;
}

.inp-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.inp-label .req {
  color: var(--highlight);
}

.inp {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--border);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: all 0.2s;
}

.inp:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.inp.inp-error {
  border-color: var(--highlight);
}

.inp-error-msg {
  font-size: 12px;
  color: var(--highlight);
  margin-top: 4px;
  display: none;
}

.inp-error-msg.visible {
  display: block;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 0;
  margin-bottom: 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.back-btn::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
}

.back-btn:hover {
  color: var(--accent);
}

/* Warning Box */
.warning-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-box span:last-child {
  font-size: 13px;
  color: var(--warning-text);
  font-weight: 500;
}

.notice-banner {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  margin: 0 0 16px;
}

.notice-banner--closed {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.notice-banner--partial {
  background: var(--primary-surface);
  border-color: var(--primary-subtle);
}

.notice-banner--info {
  background: var(--accent-subtle);
  border-color: var(--accent-muted);
}

/* Severity colour overrides (info=green, warning=amber, alert=red) */
.notice-banner--severity-info {
  background: var(--success-bg);
  border-color: var(--success-border);
}
.notice-banner--severity-info .notice-banner-title { color: var(--success-text); }
.notice-banner--severity-info .notice-banner-body  { color: var(--success-text); }

.notice-banner--severity-warning {
  background: var(--caution-bg);
  border-color: var(--caution-border);
}
.notice-banner--severity-warning .notice-banner-title { color: var(--caution-text); }
.notice-banner--severity-warning .notice-banner-body  { color: var(--caution-text); }

.notice-banner--severity-alert {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}
.notice-banner--severity-alert .notice-banner-title { color: var(--warning-text); }
.notice-banner--severity-alert .notice-banner-body  { color: var(--warning-text); }

.notice-banner-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--primary);
}

.notice-banner-body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.notice-banner--closed .notice-banner-body {
  color: var(--warning-text);
}

.notice-banner-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Notice card on review step (inline, not sticky) */
.notice-review-card--severity-info    { background: var(--success-bg); border-color: var(--success-border); }
.notice-review-card--severity-warning { background: var(--caution-bg); border-color: var(--caution-border); }
.notice-review-card--severity-alert   { background: var(--warning-bg); border-color: var(--warning-border); }

.hidden {
  display: none;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

/* Tee Time Rows */
.tee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  margin-bottom: 12px;
}

.tee-row:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.01);
}

.tee-row:active {
  transform: translateY(-2px) scale(1);
}

.tee-row--booked {
  cursor: default;
  opacity: 0.55;
  background: var(--surface, #f8f8f6);
}

.tee-row--booked:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.tee-booked-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}

.tee-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tee-time {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--primary);
  min-width: 64px;
}

.tee-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tee-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-surface);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.tee-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.tee-pkg-price {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Steppers */
.stepper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.stepper button {
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background 0.2s;
}

.stepper button:hover:not(:disabled) {
  background: var(--primary-surface);
}

.stepper .stepper-val {
  width: 40px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Rate card: promoted (recommended, not selected) */
.card--featured {
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--card) 60%);
  border: 1.5px solid var(--accent-muted);
}

/* Rate card: explicitly selected */
.card--selected {
  border: 2px solid var(--accent) !important;
  box-shadow: 0 0 0 3px var(--focus-ring), var(--shadow);
}
.card--selected::after {
  content: '✓';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* Rate Card Badge */
.rate-best-value {
  position: absolute;
  top: 0;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

/* Player Popover Buttons */
.player-btns {
  display: flex;
  gap: 8px;
}

.player-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
}

.player-btn:hover:not(.active) {
  border-color: var(--primary-muted);
  background: var(--primary-surface);
}

.player-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

/* Time Filters */
.time-filters-container {
  background: var(--primary-surface);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  display: flex;
  gap: 4px;
}

.time-filter-btn {
  flex: 1;
  padding: 12px 4px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.time-filter-btn:hover:not(.time-filter-btn--active) {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.6);
}

.time-filter-btn--active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.time-filter-icon {
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
}

.time-filter-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* Course filter strip */
.course-filters-container {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.course-filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.course-filter-btn:hover:not(.course-filter-btn--active):not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.course-filter-btn--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.course-filter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Popovers */
.date-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 100;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 340px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}

.pop-month {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.pop-nav {
  background: var(--primary-surface);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pop-nav:hover:not(:disabled) {
  background: var(--primary-subtle);
  color: var(--primary);
}

.pop-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 16px 16px;
  gap: 4px;
}

.pop-dow {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  padding: 8px 0;
  text-transform: uppercase;
}

.pop-day {
  text-align: center;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  margin: 0 auto;
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 500;
}

.pop-day:hover:not(.pop-day--off):not(.pop-day--empty):not(.pop-day--unavailable) {
  background: var(--primary-surface);
  color: var(--primary);
}

.pop-day--sel {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.pop-day--today:not(.pop-day--sel) {
  border: 1.5px solid var(--accent-muted);
  color: var(--accent);
}

.pop-day--off {
  color: var(--border);
  cursor: default;
}

.pop-day--unavailable:not(.pop-day--sel) {
  background: var(--highlight-subtle);
  color: var(--highlight);
  box-shadow: inset 0 0 0 1px var(--highlight-muted);
  cursor: pointer;
  text-decoration: line-through;
  opacity: 1;
}

.pop-day--partial-block:not(.pop-day--sel) {
  position: relative;
  box-shadow: inset 0 0 0 1.5px var(--highlight-muted);
}

.pop-day--partial-block:not(.pop-day--sel)::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--highlight);
}

.pop-day--has-times:not(.pop-day--sel):not(.pop-day--off) {
  position: relative;
}

.pop-day--has-times:not(.pop-day--sel):not(.pop-day--off)::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.pop-day--no-times:not(.pop-day--sel) {
  color: var(--border);
  text-decoration: line-through;
  opacity: 0.5;
}

.pop-day--no-times:not(.pop-day--sel):hover {
  opacity: 0.7;
  text-decoration: line-through;
}

/* Occasions Panel */
.occasion-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-bottom: 24px;
}

.occasion-toggle:hover {
  border-color: var(--accent-muted);
  box-shadow: var(--shadow);
}

.occasion-toggle--active {
  border-color: var(--accent);
  background: var(--focus-ring);
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.occasion-toggle--active:hover {
  border-color: var(--accent);
  box-shadow: none;
}

.occasion-toggle-icon {
  font-size: 32px;
}

.occasion-switch {
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #e2e8f0;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.occasion-switch--on {
  background: var(--accent);
}

.occasion-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.occasion-switch--on::after {
  transform: translateX(20px);
}

.occasion-body {
  padding: 0 20px 20px;
  background: var(--focus-ring);
  border: 1px solid var(--accent);
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-bottom: 24px;
}

.occasion-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.occasion-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.occasion-pill:hover {
  border-color: var(--primary-muted);
  color: var(--primary);
}

.occasion-pill--sel {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.occasion-pill--sel:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.touch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  margin-bottom: 10px;
}

.touch-card:hover {
  border-color: var(--primary-muted);
  box-shadow: var(--shadow);
}

.touch-card--sel {
  border-color: var(--accent);
  background: var(--focus-ring);
}

.touch-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.touch-info {
  flex: 1;
  min-width: 0;
}

.touch-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.touch-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.touch-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 10px;
}

.touch-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 12px;
  color: transparent;
  margin-left: 10px;
}

.touch-check--sel {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Mobile cart summary bar */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px var(--focus-ring);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 899px) {
  .mobile-cart-bar.visible {
    display: flex;
  }

  .shell {
    margin-bottom: 100px;
  }
}

/* Inline pricing summary — shown only on mobile inside the review step */
.review-inline-summary {
  display: none;
}

@media (max-width: 899px) {
  .review-inline-summary {
    display: block;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
  }
}

/* Responsive Adjustments */
@media (max-width: 899px) {
  .hero-widget-container {
    top: 90px;
  }

  .shell.is-step-0 {
    margin-top: 260px;
  }

  .shell.is-step-1-plus {
    margin-top: 64px;
  }

  .hero-search-bar {
    flex-direction: column;
    padding: 16px;
    border-radius: 16px;
    align-items: stretch;
    margin-bottom: 16px;
  }

  .hero-search-divider {
    width: auto;
    height: 1px;
    margin: 0 16px;
  }

  .hero-search-btn {
    margin-left: 0;
    margin-top: 12px;
    justify-content: center;
    padding: 16px;
  }

  .content {
    padding: 28px 24px 40px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .shell.has-sidebar .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 519px) {
  .hero-widget-container {
    top: 80px;
  }

  .shell.is-step-0 {
    margin-top: 260px;
  }

  .shell.is-step-1-plus {
    margin-top: 56px;
  }

  .header-sub,
  .header-divider {
    display: none;
  }

  .content {
    padding: 24px 16px 36px;
    border-radius: 16px 16px 0 0;
  }

  .heading h2 {
    font-size: 28px;
  }

  .step-label {
    display: none;
  }

  .steps {
    gap: 4px;
  }

  .tee-time {
    font-size: 22px;
  }

  .tee-price {
    font-size: 16px;
  }

  .tee-left {
    gap: 12px;
    flex: 1;
    min-width: 0;
  }

  .tee-row {
    padding: 14px 16px;
  }

  .tee-tags {
    flex-wrap: wrap;
  }

  /* ── Back button: larger touch target on mobile ── */
  .back-btn {
    padding: 8px 0;
    margin-bottom: 16px;
    min-height: 36px;
  }

  /* ── Action buttons: full-width with comfortable sizing ── */
  .btn-accent {
    padding: 15px 20px;
    font-size: 15px;
  }

  /* ── Mobile cart bar: align content neatly ── */
  .mobile-cart-bar {
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 900px) {
  .tee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 899px) {
  .tee-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

.tee-hour-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tee-hour-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--primary-subtle);
}

.tee-hour-heading:first-child {
  margin-top: 4px;
}

@keyframes check-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Waiting List UI ──────────────────────────────────────────────────────── */

/* Section wrapper — sits below the "find next available" button with a divider */
.wl-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* CTA button — visually secondary to the primary "find next available" button */
.wl-cta-btn {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1.5px solid var(--accent-muted);
}

.wl-cta-btn:hover:not(:disabled) {
  background: var(--accent-muted);
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

/* Email prompt — shown after clicking the CTA */
.wl-prompt__hint {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.wl-prompt__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wl-prompt__inp {
  flex: 1;
  min-width: 0;
}

.wl-err {
  font-size: 13px;
  color: var(--highlight);
  margin: 8px 0 0;
}

/* Confirmation — shown after successful submission */
.wl-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-muted);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
}

.wl-confirm__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.wl-confirm__text {
  font-size: 14px;
  color: var(--primary);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 519px) {
  .wl-prompt__row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .day-nav-mobile-hide,
  .pricing-toggle-mobile-hide {
    display: none !important;
  }
}
