/* ============================================================
   CSS CUSTOM PROPERTIES  (design tokens)
   All values are defined here — change once, applies everywhere.
   ============================================================ */
:root {

  /* ── Brand colours ──────────────────────────────────────────── */
  --clr-brand:            #57a05e;   /* warm terracotta — primary brand */
  --clr-brand-hover:      #47894e;
  --clr-brand-strong:     #2f9e44;   /* punchy orange — CTAs / focal points */
  --clr-brand-strong-hover: #268038;
  --clr-accent:           #0e8a6d;   /* blue — links / secondary actions */
  --clr-accent-hover:     #0b6f58;
  --clr-accent-soft:      #e6f4ef;

  /* ── Neutral palette ────────────────────────────────────────── */
  --clr-white:            #ffffff;
  --clr-off-white:        #fbf6f1;   /* warm off-white page background */
  --clr-surface:          #ffffff;
  --clr-raised:           #f5f1ec;
  --clr-subtle:           #faf6f1;
  --clr-grey-100:         #f2f2f2;
  --clr-grey-200:         #e3dfd9;
  --clr-grey-400:         #b0aaa3;
  --clr-grey-600:         #8b91a3;
  --clr-sky-border:        #c4dcc9;   /* light grey-sky-blue — search bar border */
  --clr-footer-text:       #917c6f;   /* warm brown-grey — footer copy & links */
  --clr-text:              #1d2030;
  --clr-text-secondary:   #5a6072;
  --clr-text-muted:       #8b91a3;
  --clr-text-on-brand:    #ffffff;

  /* ── Status colours ─────────────────────────────────────────── */
  --clr-success:          #28a745;
  --clr-success-bg:       #d4edda;
  --clr-error:            #dc3545;
  --clr-error-bg:         #f8d7da;
  --clr-warning:          #ffc107;
  --clr-warning-bg:       #fff3cd;

  /* ── Typography ─────────────────────────────────────────────── */
  --ff-base:              'Inter', system-ui, sans-serif;
  --fs-xs:                0.75rem;    /* 12px */
  --fs-sm:                0.875rem;   /* 14px */
  --fs-base:              1rem;       /* 16px */
  --fs-lg:                1.125rem;   /* 18px */
  --fs-xl:                1.25rem;    /* 20px */
  --fs-2xl:               1.5rem;     /* 24px */
  --fs-3xl:               2rem;       /* 32px */
  --fs-4xl:               2.5rem;     /* 40px */
  --fw-normal:            400;
  --fw-medium:            500;
  --fw-semibold:          600;
  --fw-bold:              900;
  --lh-tight:             1.2;
  --lh-base:              1.5;
  --lh-loose:             1.75;

  /* ── Spacing ────────────────────────────────────────────────── */
  --sp-1:   0.25rem;   /*  4px */
  --sp-2:   0.5rem;    /*  8px */
  --sp-3:   0.75rem;   /* 12px */
  --sp-4:   1rem;      /* 16px */
  --sp-5:   1.25rem;   /* 20px */
  --sp-6:   1.5rem;    /* 24px */
  --sp-8:   2rem;      /* 32px */
  --sp-10:  2.5rem;    /* 40px */
  --sp-12:  3rem;      /* 48px */
  --sp-16:  4rem;      /* 64px */
  --sp-20:  5rem;      /* 80px */

  /* ── Layout ─────────────────────────────────────────────────── */
  --header-height:        56px;
  --max-width:            1200px;
  --radius-sm:            4px;
  --radius-md:            8px;
  --radius-lg:            16px;
  --radius-xl:            24px;
  --radius-full:          9999px;

  /* ── Shadows ────────────────────────────────────────────────── */
  --shadow-header:        0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-sm:            0 1px 3px rgba(0, 0, 0, 0.10);
  --shadow-md:            0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg:            0 8px 24px rgba(0, 0, 0, 0.12);

  /* ── Transitions ────────────────────────────────────────────── */
  --t-fast:               150ms ease;
  --t-base:               250ms ease;
  --t-slow:               400ms ease;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-base);
  color: var(--clr-text);
  background: var(--clr-off-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   HEADER
   Fixed white bar — logo left, hamburger right (mobile).
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--clr-white);
  box-shadow: var(--shadow-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-4);
  z-index: 100;
}

/* Logo */
.header-logo img {
  height: 35px;
  width: auto;
}

/* Nav and auth are hidden on mobile — shown via the slide-in menu */
.header-nav,
.header-auth {
  display: none;
}

/* ── Hamburger button ──────────────────────────────────────── */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: var(--clr-grey-100);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: var(--radius-full);
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
}

/* Animate to ✕ when menu is open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   MAIN
   Offset by header height so content isn't hidden underneath.
   ============================================================ */
main {
  flex: 1;
  margin-top: var(--header-height);
}

/* Content panels — only .active is shown */
.content-panel {
  display: none;
}

.content-panel.active {
  display: block;
}

/* Non-home panels get standard page padding */
.content-panel:not(#home-content) {
  padding: var(--sp-6) var(--sp-4);
}


/* ============================================================
   AUTH STATE VISIBILITY
   Toggled by `body.is-authed` (set in script.js from the token).
   - .auth-only / .auth-action : shown only when logged in
   - .guest-action             : shown only when logged out
   ============================================================ */
body:not(.is-authed) .auth-only,
body:not(.is-authed) .auth-action {
  display: none !important;
}

body.is-authed .guest-action {
  display: none !important;
}

/* Landing page is replaced by the hub for logged-in users */
body.is-authed .guest-home {
  display: none;
}


/* ============================================================
   HOME — HERO
   Hills artwork sits BEHIND the hero text + CTA as a backdrop.
   ============================================================ */

.guest-home {
  position: relative;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: var(--sp-12) var(--sp-4) var(--sp-6);
  text-align: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(46vh, 420px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;      /* white PNG background -> page colour */
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 88%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 88%);
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.hero-line2 {
  color: var(--clr-brand-strong);
  margin-top: var(--sp-2);
}

.hero-subline {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-10);
}

/* Big centred "Get started" CTA */
.home-cta {
  display: flex;
  justify-content: center;
}

.home-get-started {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  border-radius: var(--radius-full);
  padding: var(--sp-4) var(--sp-8);
  font-family: var(--ff-base);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.home-get-started:hover {
  background: var(--clr-brand-strong-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.home-get-started:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Search bar */


/* ============================================================
   HOW IT WORKS — SWIPEABLE CAROUSEL
   ============================================================ */

.hiw-section {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-12);
  padding: var(--sp-10) 0 var(--sp-8);
  background: var(--clr-white);
}

.hiw-header {
  padding: 0 var(--sp-4);
  margin-bottom: var(--sp-6);
  text-align: center;
}

.hiw-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-brand-strong);
  margin-bottom: var(--sp-2);
}

.hiw-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

/* Carousel track */
.hiw-carousel {
  overflow: hidden;
}

.hiw-track {
  display: flex;
  transition: transform var(--t-base);
  will-change: transform;
}

.hiw-card {
  width: 100%;
  flex-shrink: 0;
  padding: var(--sp-4) var(--sp-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}

.hiw-num {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--clr-grey-200);
  line-height: 1;
}

.hiw-icon {
  width: 48px;
  height: 48px;
  color: var(--clr-brand-strong);
}

.hiw-icon svg {
  width: 100%;
  height: 100%;
}

.hiw-card h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
}

.hiw-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: var(--lh-loose);
  max-width: 300px;
}

/* Dots */
.hiw-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.hiw-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--clr-grey-200);
  transition: background var(--t-fast), width var(--t-fast);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.hiw-dot.active {
  background: var(--clr-brand-strong);
  width: 20px;
}


/* ============================================================
   SHARED SECTION HEADER
   Eyebrow label + title used by testimonials, FAQ, etc.
   ============================================================ */

.section-header {
  padding: 0 var(--sp-4);
  margin-bottom: var(--sp-6);
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-brand-strong);
  margin-bottom: var(--sp-2);
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--clr-text);
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */

.tm-section {
  padding: var(--sp-10) 0 var(--sp-8);
  background: var(--clr-off-white);
}

.tm-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: 0 var(--sp-4);
}

.tm-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.tm-quote {
  font-size: var(--fs-sm);
  color: var(--clr-text);
  line-height: var(--lh-loose);
  font-style: italic;
  margin-bottom: var(--sp-4);
}

.tm-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.tm-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tm-name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
}

.tm-role {
  display: block;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}


/* ============================================================
   FAQ
   ============================================================ */

.faq-section {
  padding: var(--sp-10) var(--sp-4) var(--sp-8);
  background: var(--clr-white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.faq-item {
  border: 1px solid var(--clr-grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: var(--fs-lg);
  font-weight: var(--fw-normal);
  color: var(--clr-brand-strong);
  line-height: 1;
  transition: transform var(--t-fast);
  flex-shrink: 0;
  margin-left: var(--sp-3);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 var(--sp-5) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: var(--lh-loose);
}


/* ============================================================
   READY TO PLAY — CTA BANNER
   ============================================================ */

.cta-section {
  padding: var(--sp-12) var(--sp-6);
  background: var(--clr-brand-strong);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.cta-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.85);
}

.cta-btn {
  display: inline-block;
  background: var(--clr-white);
  color: var(--clr-brand-strong);
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-full);
  margin-top: var(--sp-2);
  transition: opacity var(--t-fast);
}

.cta-btn:hover {
  opacity: 0.9;
}


/* ============================================================
   MOBILE NAV OVERLAY
   Full-screen menu triggered by the hamburger button.
   ============================================================ */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Top bar mirrors the page header exactly — logo left, close button
   right, same height/padding — so nothing shifts when it opens. */
.nav-overlay-top {
  flex-shrink: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-4);
  background: var(--clr-white);
  box-shadow: var(--shadow-header);
}

.nav-overlay-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-4);
  overflow-y: auto;
}

/* × close button — same 40px box, same spot as the burger */
.nav-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  transition: background var(--t-fast);
}

.nav-overlay-close:hover {
  background: var(--clr-grey-100);
}

/* Nav links */
.nav-overlay-menu {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
}

.nav-overlay-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-3);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  border-radius: var(--radius-md);
  transition: background var(--t-fast);
}

.nav-overlay-item:hover {
  background: var(--clr-grey-100);
}

.nav-overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--clr-brand-strong);
  flex-shrink: 0;
}

.nav-overlay-icon svg {
  width: 100%;
  height: 100%;
}

/* Auth buttons */
.nav-overlay-auth {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-grey-200);
  margin-top: var(--sp-4);
}

.nav-overlay-auth-btn {
  display: block;
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-overlay-login {
  border: 1.5px solid var(--clr-grey-200);
  color: var(--clr-text);
}

.nav-overlay-login:hover {
  background: var(--clr-grey-100);
}

.nav-overlay-signup {
  background: var(--clr-brand-strong);
  color: var(--clr-white);
}

.nav-overlay-signup:hover {
  background: var(--clr-brand-strong-hover);
}

/* Welcome greeting at the top of the dropdown (logged-in only) */
.nav-overlay-welcome {
  padding: 0 var(--sp-3) var(--sp-4);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  letter-spacing: -0.01em;
}


/* ============================================================
   BOOKINGS PAGE
   Logged-in panel — mirrors the checkout/calendar card styling.
   Loads 10 bookings at a time via infinite scroll.
   ============================================================ */
.bookings-page {
  max-width: 480px;
  margin: 0 auto;
}

.bookings-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

.bookings-subtitle {
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.booking-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--clr-white);
  border: 1px solid var(--clr-grey-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.booking-card {
  cursor: pointer;
}

.booking-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.booking-card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--clr-raised);
  color: var(--clr-brand-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.booking-card-main {
  flex: 1;
  min-width: 0;
}

.booking-card-club {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-card-meta {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.booking-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-1);
  flex-shrink: 0;
}

.booking-card-status {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-full);
}

.booking-card-status--confirmed {
  background: var(--clr-success-bg);
  color: var(--clr-success);
}

.booking-card-status--pending {
  background: var(--clr-warning-bg);
  color: #a97b00;
}

.booking-card-status--unpaid {
  background: #fde8e8;
  color: var(--clr-error);
}

.booking-card-price {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
}

.bookings-status {
  text-align: center;
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}


/* ============================================================
   HOME — HUB (logged-in home page)
   Club photo banner with a "cut-out" identity card overlapping
   it (avatar circle + club name + welcome + date), then the
   upcoming tee times and events sections below.
   ============================================================ */
.hub-home {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-12);
}

.hub-hero {
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-raised);
  box-shadow: var(--shadow-sm);
}

.hub-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-id-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--clr-surface);
  border: 1px solid var(--clr-grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0 var(--sp-5) var(--sp-5);
  margin-top: -48px;
  position: relative;
}

.hub-avatar {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--clr-brand);
  color: var(--clr-white);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--clr-surface);
  box-shadow: var(--shadow-sm);
  margin-top: -30px;
  overflow: hidden;
  user-select: none;
}

.hub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-id-main {
  flex: 1;
  min-width: 0;
  padding-top: var(--sp-5);
}

.hub-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  color: var(--clr-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-welcome {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-secondary);
}

.hub-date {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.hub-book-btn {
  flex-shrink: 0;
  white-space: nowrap;
  align-self: center;
  margin-left: auto;
}

.hub-section {
  margin-top: var(--sp-8);
}

.hub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.hub-section-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.hub-view-all {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-accent);
}

.hub-view-all:hover {
  color: var(--clr-accent-hover);
}

.hub-events-empty {
  background: var(--clr-white);
  border: 1px dashed var(--clr-grey-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.hub-event-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--clr-white);
  border: 1px solid var(--clr-grey-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
}

.hub-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--clr-accent-soft);
  color: var(--clr-accent);
}

.hub-event-date .d {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: 1.1;
}

.hub-event-date .m {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
}

.hub-event-main {
  flex: 1;
  min-width: 0;
}

.hub-event-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
}

.hub-event-meta {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.hub-events-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  background: transparent;
  border: 1px dashed var(--clr-grey-200);
  border-radius: var(--radius-lg);
  font-family: var(--ff-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.hub-events-more:hover:not(:disabled) {
  border-color: var(--clr-brand);
  color: var(--clr-brand-strong);
  background: var(--clr-accent-soft);
}

.hub-events-more:disabled {
  border-style: solid;
  color: var(--clr-text-muted);
  cursor: default;
}

.hub-empty-card {
  background: var(--clr-white);
  border: 1px dashed var(--clr-grey-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  cursor: pointer;
}

.hub-empty-card:hover {
  border-color: var(--clr-brand);
  color: var(--clr-text-secondary);
}

@media (max-width: 560px) {
  .hub-id-card {
    flex-wrap: wrap;
  }
  .hub-id-main {
    padding-top: var(--sp-4);
  }
  .hub-book-btn {
    width: 100%;
    margin-left: 0;
    align-self: auto;
  }
}

.bookings-sentinel {
  height: 1px;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  border-top: 1px solid var(--clr-grey-200);
  background: var(--clr-off-white);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--sp-3);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--clr-footer-text);
}

.footer-links {
  display: flex;
  gap: var(--sp-4);
  list-style: none;
}

.footer-links a {
  font-size: var(--fs-xs);
  color: var(--clr-footer-text);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--clr-text);
}


/* ============================================================
   BOOKING MODAL
   Full-screen overlay opened when a club is tapped in search.
   Holds two swappable views: calendar and timeslots.
   ============================================================ */

.booking-modal {
  position: fixed;
  inset: 0;
  background: var(--clr-off-white);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1.5rem);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base);
}

.booking-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.booking-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Header — club photo hero ────────────────────────────────── */
/* The club photo fills the header. Its bottom 24px sits behind the card's
   overlap, so the photo shows through the card's rounded top corners. */
.bm-header {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  height: 170px;
  padding: var(--sp-3);
  flex-shrink: 0;
  background-color: var(--clr-raised);
  background-size: cover;
  background-position: center;
}

.bm-back,
.bm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  color: var(--clr-white);
  flex-shrink: 0;
  transition: background var(--t-fast);
}

.bm-back:hover,
.bm-close:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Keep close pinned right even when the back arrow is hidden */
.bm-close {
  margin-left: auto;
}

.bm-back svg,
.bm-close svg {
  width: 22px;
  height: 22px;
}

/* ── Club identity — avatar + name + facts ───────────────────── */
.bm-club {
  padding: var(--sp-5) var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--clr-grey-200);
}

.bm-club-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.bm-club-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--clr-brand);
  color: var(--clr-white);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bm-club-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-club-name {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
}

.bm-club-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.bm-club-fact {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.bm-club-fact svg {
  width: 16px;
  height: 16px;
  color: var(--clr-brand-strong);
  flex-shrink: 0;
}

/* ── Step label — eyebrow above the calendar / timeslots ─────── */
.bm-step-label {
  display: block;
  padding: var(--sp-5) var(--sp-4) 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-brand-strong);
}

/* ── Body / views ───────────────────────────────────────────── */
/* A white card that sits flush below the flat photo. Its rounded top corners
   are clearly visible: the little corner notches show the page's off-white,
   which contrasts with both the photo above and the white card itself. */
.bm-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--radius-xl));
  background: var(--clr-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.bm-view {
  display: none;
  padding: var(--sp-4) var(--sp-4) var(--sp-10);
}

.bm-view.bm-view--active {
  display: block;
}

/* ── Calendar ───────────────────────────────────────────────── */
.bm-cal {
  max-width: 420px;
  margin: 0 auto;
  user-select: none;
}

.bm-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.bm-cal-month {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
}

.bm-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--clr-brand-strong);
  transition: background var(--t-fast);
}

.bm-cal-nav:hover {
  background: var(--clr-grey-100);
}

.bm-cal-weekdays,
.bm-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-2);
}

.bm-cal-weekdays {
  margin-bottom: var(--sp-2);
}

.bm-cal-weekdays span {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-text-muted);
  padding: var(--sp-1) 0;
}

.bm-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  background: var(--clr-raised);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--clr-text);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.bm-day--empty {
  background: transparent;
  border: none;
  cursor: default;
}

.bm-day--past {
  color: var(--clr-text-muted);
  background: transparent;
  border: none;
  cursor: not-allowed;
}

.bm-day--today {
  border-color: var(--clr-brand-strong);
  color: var(--clr-brand-strong);
}

.bm-day--unlocked      { background: var(--clr-success-bg); }
.bm-day--member-unlock { background: var(--clr-warning-bg); }
.bm-day--locked        { background: var(--clr-grey-100); color: var(--clr-text-muted); cursor: not-allowed; opacity: 0.6; }

.bm-day--selected,
.bm-day--selected:hover {
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  border-color: var(--clr-brand-strong);
}

.bm-day:not(.bm-day--empty):not(.bm-day--past):not(.bm-day--locked):not(.bm-day--selected):hover {
  background: var(--clr-accent-soft);
}

/* Competition day marker (event dot under the number) */
.bm-day--event {
  position: relative;
}

.bm-day--event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--clr-accent);
}

.bm-day--event.bm-day--selected::after {
  background: var(--clr-white);
}

/* Legend */
.bm-cal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.bm-legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

.bm-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.bm-legend-swatch.unlocked { background: var(--clr-success-bg); }
.bm-legend-swatch.member   { background: var(--clr-warning-bg); }
.bm-legend-swatch.locked   { background: var(--clr-grey-100); }

/* Forward arrow to timeslots */
.bm-forward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-8) auto 0;
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  font-family: var(--ff-base);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  transition: background var(--t-fast);
}

.bm-forward:hover {
  background: var(--clr-brand-strong-hover);
}

.bm-forward svg {
  width: 18px;
  height: 18px;
}

/* ── Timeslots ──────────────────────────────────────────────── */
.bm-slots-date {
  text-align: center;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--sp-5);
}

.bm-duration {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.bm-duration-btns {
  display: flex;
}

.bm-dur-btn {
  font-family: var(--ff-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: var(--sp-2) var(--sp-5);
  background: var(--clr-raised);
  color: var(--clr-text-secondary);
  transition: background var(--t-fast), color var(--t-fast);
}

.bm-dur-btn:first-child { border-radius: var(--radius-full) 0 0 var(--radius-full); }
.bm-dur-btn:last-child  { border-radius: 0 var(--radius-full) var(--radius-full) 0; }
.bm-dur-btn:hover       { background: var(--clr-grey-200); }

.bm-dur-btn--active,
.bm-dur-btn--active:hover {
  background: var(--clr-brand-strong);
  color: var(--clr-white);
}

.bm-slots-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bm-slots-grid {
  display: grid;
  gap: var(--sp-1);
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  user-select: none;
}

.bm-ctg-corner {
  background: transparent;
}

.bm-ctg-time-header {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-text-secondary);
  padding: var(--sp-1) 0.1rem;
  white-space: nowrap;
}

.bm-ctg-court-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--clr-text-secondary);
  padding-right: var(--sp-2);
  white-space: nowrap;
}

.bm-ctg-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-raised);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  padding: 0;
  min-width: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.bm-ctg-cell--empty {
  background: transparent;
  border: none;
  cursor: default;
  pointer-events: none;
}

.bm-ctg-cell--peak    { background: var(--clr-warning-bg); color: #7a5b00; }
.bm-ctg-cell--offpeak { background: var(--clr-success-bg); color: var(--clr-text); }

.bm-ctg-cell--selected,
.bm-ctg-cell--selected:hover {
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  border-color: var(--clr-brand-strong);
}

.bm-ctg-cell:not(.bm-ctg-cell--empty):not(.bm-ctg-cell--selected):hover {
  background: var(--clr-accent-soft);
}

/* Slot blocked by a club competition */
.bm-ctg-cell--blocked,
.bm-ctg-cell--blocked:hover {
  background: var(--clr-grey-100);
  color: var(--clr-text-muted);
  border: 1px dashed var(--clr-grey-400);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.75;
}

/* Competition notice above the slots grid */
.bm-event-note {
  background: var(--clr-warning-bg);
  color: #7a5b00;
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  text-align: center;
}


/* ── Checkout view ──────────────────────────────────────────── */
.bm-checkout {
  max-width: 420px;
  margin: 0 auto;
}

.bm-checkout-card {
  background: var(--clr-raised);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
}

.bm-co-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.bm-co-row span:last-child {
  color: var(--clr-text);
  font-weight: var(--fw-semibold);
  text-align: right;
}

.bm-co-divider {
  height: 1px;
  background: var(--clr-grey-200);
  margin: var(--sp-2) 0;
}

.bm-co-total {
  font-size: var(--fs-base);
  padding-top: var(--sp-3);
}

.bm-co-total span:last-child {
  color: var(--clr-brand-strong);
  font-weight: var(--fw-bold);
}

.bm-checkout-error {
  margin-top: var(--sp-4);
  color: var(--clr-error);
  font-size: var(--fs-sm);
  text-align: center;
}

.bm-co-toggle {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--clr-raised);
  border-radius: var(--radius-lg);
}

.bm-co-toggle-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  cursor: pointer;
}

.bm-co-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--clr-brand-strong);
}

.bm-co-toggle-note {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

.bm-checkout-btn {
  display: block;
  width: 100%;
  margin-top: var(--sp-5);
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  font-family: var(--ff-base);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  transition: background var(--t-fast);
}

.bm-checkout-btn:hover {
  background: var(--clr-brand-strong-hover);
}

.bm-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ============================================================
   AUTH MODALS — sign-up / log in popups (site-styled)
   ============================================================ */

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.app-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.app-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  box-shadow: var(--shadow-lg);
  transform: translateY(1rem);
  transition: transform var(--t-base);
}

.app-modal.open .app-modal-card {
  transform: translateY(0);
}

.app-modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--clr-text-muted);
  transition: background var(--t-fast);
}

.app-modal-close:hover {
  background: var(--clr-grey-100);
}

.app-modal-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}

.app-modal-subtitle {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-5);
}

.app-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.app-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.app-field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
}

.app-field input:not([type="checkbox"]) {
  width: 100%;
  border: 1.5px solid var(--clr-grey-200);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.app-field input::placeholder {
  color: var(--clr-text-muted);
}

.app-field input:focus {
  outline: none;
  border-color: var(--clr-brand-strong);
  box-shadow: 0 0 0 3px var(--clr-accent-soft);
}

/* required marker + helper text */
.app-field .req {
  color: var(--clr-error);
}

.field-hint {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* per-field validation feedback */
.field-error {
  color: var(--clr-error);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.app-field.field-invalid input {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px var(--clr-error-bg);
}

.app-field.field-invalid label {
  color: var(--clr-error);
}

.app-field.shake {
  animation: field-shake 0.35s ease;
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.app-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--sp-2);
}

.app-field--checkbox input {
  margin-top: 2px;
  flex-shrink: 0;
}

.app-field--checkbox label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-normal);
  color: var(--clr-text-secondary);
}

.app-error {
  color: var(--clr-error);
  font-size: var(--fs-sm);
}

.app-submit {
  margin-top: var(--sp-1);
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  font-family: var(--ff-base);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  padding: var(--sp-3);
  border-radius: var(--radius-full);
  transition: background var(--t-fast);
}

.app-submit:hover {
  background: var(--clr-brand-strong-hover);
}

.app-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.app-modal-switch {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin-top: var(--sp-4);
}

.app-modal-switch a {
  color: var(--clr-accent);
  font-weight: var(--fw-semibold);
}

.app-modal-switch a:hover {
  color: var(--clr-accent-hover);
}


/* ============================================================
   BOOKING DETAIL MODAL
   Opens when a booking card is tapped.
   ============================================================ */
.bd-card {
  max-width: 520px;
  padding: var(--sp-8) var(--sp-5) var(--sp-6);
  max-height: 90vh;
  overflow-y: auto;
}

.bd-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.bd-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--clr-raised);
  color: var(--clr-brand-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.bd-club-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.bd-address {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin: 0;
}

.bd-rows {
  background: var(--clr-raised);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}

.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.bd-row strong {
  color: var(--clr-text);
  font-weight: var(--fw-semibold);
  text-align: right;
}

.bd-codes {
  background: var(--clr-grey-100);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.bd-code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.bd-code-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.bd-code-val {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  letter-spacing: 0.06em;
  background: var(--clr-white);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
}

.bd-map-wrap {
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-grey-200);
}

.bd-map {
  display: block;
  width: 100%;
  height: 180px;
  border: none;
}

.bd-directions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
  transition: background var(--t-fast);
}

.bd-directions:hover {
  background: var(--clr-grey-200);
}

.bd-directions svg {
  flex-shrink: 0;
}

.bd-cancel-section {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-grey-200);
}

.bd-action-row {
  display: flex;
  gap: var(--sp-3);
}

.bd-action-row .bd-cancel-btn {
  flex: 1;
  width: auto;
}

.bd-pay-btn {
  flex: 1;
  padding: var(--sp-3);
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  background: var(--clr-brand-strong);
  transition: background var(--t-fast);
}

.bd-pay-btn:hover {
  background: var(--clr-brand-strong-hover);
}

.bd-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bd-cancel-btn {
  display: block;
  width: 100%;
  padding: var(--sp-3);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--clr-error);
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-error);
  background: transparent;
  transition: background var(--t-fast), color var(--t-fast);
}

.bd-cancel-btn:hover {
  background: var(--clr-error);
  color: var(--clr-white);
}

.bd-cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bd-cancel-note {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-align: center;
}

.bd-cancel-warn {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-3);
}

.bd-confirm-btns {
  display: flex;
  gap: var(--sp-3);
}

.bd-confirm-yes {
  flex: 1;
  padding: var(--sp-3);
  border-radius: var(--radius-full);
  background: var(--clr-error);
  color: var(--clr-white);
  font-family: var(--ff-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: opacity var(--t-fast);
}

.bd-confirm-yes:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bd-confirm-no {
  flex: 1;
  padding: var(--sp-3);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--clr-grey-200);
  font-family: var(--ff-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  background: transparent;
  transition: background var(--t-fast);
}

.bd-confirm-no:hover {
  background: var(--clr-grey-100);
}

.bd-cancel-result {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  text-align: center;
}

/* Edit tee time (queued bookings, before race lock) */
.bd-edit {
  border-top: 1px solid var(--clr-grey-200);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
}

.bd-edit-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}

.bd-edit-row {
  display: flex;
  gap: var(--sp-2);
}

.bd-edit-select {
  flex: 1;
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--clr-sky-border);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  color: var(--clr-text);
}

.bd-edit-save {
  padding: var(--sp-2) var(--sp-4);
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  font-family: var(--ff-base);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  transition: background var(--t-fast);
}

.bd-edit-save:hover { background: var(--clr-brand-strong-hover); }
.bd-edit-save:disabled { opacity: 0.6; }

.bd-edit-note {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* Hub — "add your club" next-step card for club-less users */
.hub-addclub { margin-top: var(--sp-5); }

.addclub-card {
  background: var(--clr-white);
  border: 2px solid var(--clr-brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
}

.addclub-card--working {
  border-style: dashed;
  border-color: var(--clr-grey-200);
  box-shadow: none;
}

.addclub-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
}

.addclub-sub {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-4);
}

/* My Account — "last step" banner for club-less users */
.step-banner {
  background: var(--clr-accent-soft);
  border: 1px solid var(--clr-brand);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base);
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
}


/* ============================================================
   DELTATEE additions — partner picker, club cards, misc
   (everything above this line is the pbpadel design system)
   ============================================================ */

/* tee time rows (one grid per part of day) */
.bm-slots-row {
  display: grid;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  align-items: center;
}
.bm-slots-row .bm-ctg-court-label { min-width: 76px; }
.bm-ctg-cell--single { padding: var(--sp-2) var(--sp-1); font-size: var(--fs-sm); }

/* partner picker */
.bm-partners { margin-top: var(--sp-4); }

/* Partners step (dedicated view between tee times and checkout) */
.bm-partners-card {
  background: var(--clr-raised);
  border: 1px solid var(--clr-grey-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.bm-partners-card .bm-partner-results {
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: 5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-top: 0;
}

.bm-partners-empty {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

#bm-partners-view .bm-forward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-5) auto 0;
  background: var(--clr-brand-strong);
  color: var(--clr-white);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--ff-base);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  transition: background var(--t-fast);
}

#bm-partners-view .bm-forward:hover { background: var(--clr-brand-strong-hover); }
#bm-partners-view .bm-forward svg { width: 18px; height: 18px; }
.bm-partners-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
}
#bm-partner-search {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--clr-grey-200);
  border-radius: var(--radius);
  background: var(--clr-subtle);
  font-family: var(--ff-base);
  font-size: var(--fs-base);
}
#bm-partner-search:focus { outline: 2px solid var(--clr-brand); border-color: var(--clr-brand); }
.bm-partner-results {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  border: 1px solid var(--clr-grey-200);
  border-radius: var(--radius);
  background: var(--clr-white);
  max-height: 210px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.bm-partner-results li {
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--clr-grey-100);
}
.bm-partner-results li:last-child { border-bottom: none; }
.bm-partner-results li:hover { background: var(--clr-accent-soft); }
.bm-partner-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.bm-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--clr-accent-soft);
  color: var(--clr-accent-hover);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  padding: 0.3rem 0.4rem 0.3rem 0.85rem;
  border-radius: 999px;
}
.bm-chip button {
  border: none; cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--clr-accent); color: #fff;
  font-size: 0.8rem; line-height: 1;
}

/* checkout note */
.bm-co-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-align: center;
}

/* generic content cards (Book + My Account panels) */
.dt-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-grey-200);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow);
}
.dt-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.dt-card h3 { margin: 0; font-size: var(--fs-xl); }
.dt-muted { color: var(--clr-text-muted); }
.dt-small { font-size: var(--fs-xs); }
.dt-actions { margin: var(--sp-3) 0 var(--sp-5); }

/* Pending-club card: spinner + staged recovery actions */
.dt-pending {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}

.dt-spinner {
  width: 24px;
  height: 24px;
  margin: 0 auto var(--sp-3);
  border: 3px solid var(--clr-grey-200);
  border-top-color: var(--clr-brand-strong);
  border-radius: var(--radius-full);
  animation: dt-spin 0.9s linear infinite;
}

@keyframes dt-spin {
  to { transform: rotate(360deg); }
}

.dt-pending .app-submit {
  margin-top: var(--sp-4);
}

/* ── Rolling golf ball scene (pending state) ────────────────────
   Ball stays centred; grass + near hills + far hills scroll beneath
   it at different speeds for a parallax "travelling" effect. */
.roll-scene {
  position: relative;
  height: 92px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto var(--sp-4);
  background: linear-gradient(to bottom, #dcebf5 0%, var(--clr-accent-soft) 78%);
}

.roll-hills,
.roll-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: repeat-x;
}

.roll-hills--far {
  height: 58px;
  bottom: 20px;
  background-image: radial-gradient(ellipse 70px 52px at 50% 100%, #b7cede 62%, transparent 63%);
  background-size: 150px 58px;
  opacity: 0.75;
  animation: roll-far 16s linear infinite;
}

.roll-hills--near {
  height: 44px;
  bottom: 12px;
  background-image: radial-gradient(ellipse 60px 46px at 50% 100%, #7cb87f 64%, transparent 65%);
  background-size: 110px 44px;
  animation: roll-near 9s linear infinite;
}

.roll-ground {
  height: 12px;
  bottom: 0;
  background: repeating-linear-gradient(90deg, #4a9d4f 0 16px, #3f8a44 16px 32px);
  animation: roll-ground 1.1s linear infinite;
}

.roll-ball {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background-color: #fff;
  background-image:
    radial-gradient(circle at 8px 8px, #d5dde3 1.3px, transparent 1.8px),
    radial-gradient(circle at 17px 13px, #d5dde3 1.3px, transparent 1.8px),
    radial-gradient(circle at 10px 19px, #d5dde3 1.3px, transparent 1.8px),
    radial-gradient(circle at 18px 6px, #d5dde3 1.3px, transparent 1.8px);
  background-size: 26px 26px;
  box-shadow: inset -3px -4px 6px rgba(30, 60, 30, 0.12), inset 2px 2px 3px #fff;
  animation:
    ball-roll 0.8s linear infinite,
    ball-bounce 0.8s ease-in-out infinite;
}

.roll-shadow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 28px;
  height: 6px;
  margin-left: -14px;
  border-radius: 50%;
  background: rgba(20, 45, 20, 0.22);
  filter: blur(1.5px);
  animation: roll-shadow 0.8s ease-in-out infinite;
}

@keyframes ball-roll {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: -26px 0, -26px 0, -26px 0, -26px 0, 0 0; }
}

@keyframes ball-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

@keyframes roll-shadow {
  0%, 100% { transform: scaleX(1);     opacity: 0.22; }
  50%      { transform: scaleX(0.8);   opacity: 0.3; }
}

@keyframes roll-far  { from { background-position-x: 0; } to { background-position-x: -150px; } }
@keyframes roll-near { from { background-position-x: 0; } to { background-position-x: -110px; } }
@keyframes roll-ground { from { background-position-x: 0; } to { background-position-x: -32px; } }

@media (prefers-reduced-motion: reduce) {
  .roll-hills--far, .roll-hills--near, .roll-ground,
  .roll-ball, .roll-shadow { animation: none; }
}

.dt-pending .app-submit {
  margin-top: var(--sp-4);
}

/* refunded / grey status badge */
.booking-card-status--refunded {
  background: var(--clr-grey-100);
  color: var(--clr-text-muted);
}

/* success-toned form message */
.app-error--ok {
  color: var(--clr-success) !important;
}

/* footer logo sizing for raster logo */
.footer-logo { height: 40px; width: auto; }

/* header logo sizing */
.header-logo img { height: 34px; width: auto; display: block; }
