/* ==========================================================================
   Elite Pickleball – public site
   Shares its palette with static/admin.css
   ========================================================================== */
:root {
    --brand: #163C31;
    --brand-deep: #0D2620;
    --brand-soft: #24594A;
    --ball: #E4FF5C;
    --ball-deep: #C7E23B;

    --bg: #F5F4EE;
    --surface: #FFFFFF;
    --surface-2: #F8F8F3;
    --ink: #13201B;
    --ink-2: #4C5A53;
    --ink-3: #85918A;
    --line: #E4E5DC;
    --line-2: #D0D4C8;
    --focus: rgba(22, 60, 49, 0.22);

    --green: #1E7A4F;   --green-bg: #E5F3EB;
    --amber: #A86412;   --amber-bg: #FCF0DC;
    --blue: #2155C9;    --blue-bg: #E3ECFC;
    --red: #B83A3D;     --red-bg: #FBE8E8;
    --purple: #6D3FC0;  --purple-bg: #EEE7FA;
    --gray: #66706B;    --gray-bg: #EEF0EE;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 32, 25, 0.04), 0 8px 24px -12px rgba(16, 32, 25, 0.14);
    --shadow-lg: 0 24px 64px -16px rgba(10, 25, 18, 0.35);
    --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: color-mix(in srgb, var(--brand-deep) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.15; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px; background: var(--ball); color: var(--brand-deep);
    display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.logo small { display: block; font-size: 10.5px; font-weight: 600; color: #8FA79B; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: #C8D6CF; text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav .nav-cta { background: var(--ball); color: var(--brand-deep); font-weight: 700; margin-left: 8px; }
.nav .nav-cta:hover { background: #fff; color: var(--brand-deep); }
.nav .nav-admin { color: #8FA79B; }
.nav-toggle {
    display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15);
    background: transparent; color: #fff; cursor: pointer; font-size: 16px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
    border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
    font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:focus-visible, .input:focus-visible, .choice input:focus-visible + span { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn-accent { background: var(--ball); border-color: var(--ball); color: var(--brand-deep); font-weight: 700; }
.btn-accent:hover:not(:disabled) { background: #fff; border-color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--gray-bg); border-color: transparent; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.link { color: var(--brand-soft); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 12.5px; color: var(--ink-3); }
.input, select.input, textarea.input {
    width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand-soft); box-shadow: 0 0 0 3px var(--focus); }
.input:disabled { background: var(--surface-2); color: var(--ink-3); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }

/* Choice tiles (radio buttons) */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
    display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px;
    background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; height: 100%;
}
.choice i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.choice strong { display: block; font-size: 14px; }
.choice small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.choice:hover > span { border-color: var(--ink-3); }
.choice input:checked + span { border-color: var(--brand); background: var(--green-bg); box-shadow: 0 0 0 1px var(--brand) inset; }
.choice input:disabled + span { opacity: .5; cursor: not-allowed; }

.tone-green { background: var(--green-bg); color: var(--green); }
.tone-amber { background: var(--amber-bg); color: var(--amber); }
.tone-blue { background: var(--blue-bg); color: var(--blue); }
.tone-red { background: var(--red-bg); color: var(--red); }
.tone-purple { background: var(--purple-bg); color: var(--purple); }
.tone-lime { background: var(--ball); color: var(--brand-deep); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 28px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 18px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.s-pending, .s-cash_pending, .s-waiting_payment { background: var(--amber-bg); color: var(--amber); }
.s-gcash_pending { background: var(--blue-bg); color: var(--blue); }
.s-ongoing { background: var(--purple-bg); color: var(--purple); }
.s-paid, .s-cash_paid { background: var(--green-bg); color: var(--green); }
.s-cancelled { background: var(--red-bg); color: var(--red); }
.s-expired, .s-ended { background: var(--gray-bg); color: var(--gray); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--brand-deep); color: #fff; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(600px 300px at 85% 10%, rgba(228, 255, 92, 0.12), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 56px;
    mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hero .eyebrow { color: var(--ball); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 0 rgba(228, 255, 92, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(228, 255, 92, .55); } 70% { box-shadow: 0 0 0 10px rgba(228, 255, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 255, 92, 0); } }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--ball); }
.hero .lead { font-size: 18px; color: #B9CBC2; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.facts { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.fact strong { display: block; font-family: var(--display); font-size: 24px; color: #fff; }
.fact span { font-size: 13px; color: #8FA79B; }

.lookup { padding: 24px; color: var(--ink); }
.lookup h2 { font-size: 20px; margin-bottom: 4px; }
.lookup p { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-top: 6px; }
.section-head p { color: var(--ink-2); max-width: 560px; margin-top: 6px; }
.lift { margin-top: -56px; position: relative; z-index: 2; }

/* ---------- On court now ---------- */
.court-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.now-card { padding: 22px 24px; background: var(--brand); color: #fff; border-color: var(--brand); }
.now-card h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.now-card .empty-now { color: #9DB7AB; margin-top: 10px; font-size: 14px; }
.now-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.now-item:first-of-type { border-top: 0; padding-top: 0; }
.now-item strong { display: block; }
.now-item span { color: #B9CBC2; font-size: 13.5px; }
.upcoming { padding: 8px 0; }
.upcoming-head { display: flex; align-items: center; gap: 10px; padding: 12px 24px 6px; }
.upcoming-head h3 { font-size: 18px; }
.event-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event { display: flex; gap: 14px; align-items: center; padding: 12px 24px; }
.event .date-chip {
    width: 52px; flex-shrink: 0; text-align: center; border-radius: 10px; background: var(--surface-2);
    border: 1px solid var(--line); padding: 5px 0; line-height: 1.1;
}
.date-chip b { display: block; font-family: var(--display); font-size: 20px; }
.date-chip small { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--ink-3); letter-spacing: .05em; }
.event .meta { min-width: 0; }
.event .meta strong { display: block; font-size: 14.5px; }
.event .meta span { font-size: 13px; color: var(--ink-3); }
.type-pill { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; margin-right: 4px; }
.type-pill.court { background: var(--green-bg); color: var(--green); }
.type-pill.private { background: var(--purple-bg); color: var(--purple); }
.type-pill.training { background: var(--blue-bg); color: var(--blue); }
.type-pill.openplay { background: var(--amber-bg); color: var(--amber); }
.empty { padding: 28px 24px; text-align: center; color: var(--ink-3); }
.empty i { display: block; font-size: 22px; margin-bottom: 8px; opacity: .6; }

/* ---------- Booking ---------- */
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.booking-form .step-label {
    display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin: 26px 0 12px; color: var(--ink);
}
.booking-form .step-label:first-of-type { margin-top: 0; }
.step-label .n {
    width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--ball);
    display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: var(--amber-bg); color: #6E4208; }
.notice.danger { background: var(--red-bg); color: var(--red); }
.notice.info { background: var(--blue-bg); color: #1B3F92; }
.availability-warning { display: none; }
.availability-warning.notice { margin: 12px 0 0; }

.total-bar {
    margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--brand-deep); color: #fff;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.total-bar .amount { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.total-bar .amount small { font-size: 14px; color: var(--ball); font-family: 'Inter', sans-serif; font-weight: 600; margin-right: 4px; }
.total-bar .end { color: #9DB7AB; font-size: 13.5px; }
.total-bar .btn { margin-left: auto; }

/* Calendar */
.calendar { padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.cal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-top h3 { font-size: 18px; }
#currentMonthLabel { margin-left: auto; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
    width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
    display: grid; place-items: center; font-size: 12px; color: var(--ink-2);
}
.cal-nav button:hover { border-color: var(--ink-3); color: var(--ink); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day-label { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal-day {
    aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .12s, transform .12s, background .12s; min-width: 0;
}
.cal-day:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.cal-day .sub-info { font-size: 9.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
.cal-day.available { background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.cal-day.available .sub-info { color: var(--green); }
.cal-day.almost-full { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.cal-day.almost-full .sub-info { color: var(--amber); }
.cal-day.booked { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.cal-day.booked .sub-info { color: var(--red); }
.cal-day.private { background: var(--purple-bg); border-color: color-mix(in srgb, var(--purple) 30%, transparent); }
.cal-day.private .sub-info { color: var(--purple); }
.cal-day.training { background: var(--ball); border-color: var(--ball-deep); }
.cal-day.training .sub-info { color: var(--brand-deep); }
.cal-day.today { box-shadow: 0 0 0 2px var(--brand) inset; }
.cal-day.selected { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px -4px rgba(22, 60, 49, .6); }
.cal-day.selected .sub-info { color: var(--ball); }
.cal-day.disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.cal-day.empty { background: transparent; border: 0; pointer-events: none; }
.cal-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--ink-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0, 0, 0, .06); }
.slot-detail { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; max-height: 220px; overflow-y: auto; }
.slot-detail .booked-slots { color: var(--red); font-weight: 600; }
.slot-detail .available-slots { color: var(--green); font-weight: 600; }

/* ---------- Pricing & policies ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-card { padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.price-card .tag { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.price-card .tag i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; }
.price-card .amount { font-family: var(--display); font-size: 36px; font-weight: 800; margin-top: 10px; line-height: 1; }
.price-card .unit { color: var(--ink-3); font-size: 13px; }
.price-card .when { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.price-card.featured { background: var(--brand); border-color: var(--brand); color: #fff; }
.price-card.featured .tag, .price-card.featured .when { color: #B9CBC2; border-color: rgba(255, 255, 255, .12); }
.price-card.featured .unit { color: #9DB7AB; }
.price-card.featured .amount { color: var(--ball); }
.extras { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.extras span { display: inline-flex; align-items: center; gap: 8px; }
.extras i { color: var(--green); }

.policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.policy { padding: 24px; }
.policy .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.policy .head i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; }
.policy .head h3 { font-size: 18px; }
.policy .head small { display: block; color: var(--ink-3); font-size: 12.5px; font-family: 'Inter', sans-serif; letter-spacing: 0; }
.policy ul { list-style: none; display: grid; gap: 10px; }
.policy li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.policy li i { color: var(--green); font-size: 12px; margin-top: 5px; width: 14px; flex-shrink: 0; }

/* ---------- GCash band ---------- */
.gcash-band { background: var(--brand-deep); color: #fff; border-radius: 24px; padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.gcash-band h2 { font-size: 28px; font-weight: 800; }
.gcash-band p { color: #B9CBC2; margin-top: 8px; max-width: 520px; }
.steps-inline { display: flex; gap: 10px 20px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: #D6E2DC; }
.steps-inline span { display: inline-flex; align-items: center; gap: 8px; }
.steps-inline b { width: 22px; height: 22px; border-radius: 50%; background: var(--ball); color: var(--brand-deep); display: grid; place-items: center; font-size: 11.5px; }
.qr-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.qr { width: 140px; text-align: center; }
.qr img { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; }
.qr span { display: block; font-size: 12.5px; font-weight: 600; margin-top: 8px; color: #D6E2DC; }
.qr-empty { width: 140px; height: 140px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; color: #8FA79B; text-align: center; font-size: 12.5px; padding: 12px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .cap { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; color: #fff; font-size: 13.5px; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(8, 22, 16, .8)); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 18, 13, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; }
.lightbox .close-btn { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- Reviews ---------- */
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--ball); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.review .who strong { display: block; font-size: 14.5px; }
.review .who small { color: var(--ink-3); font-size: 12.5px; }
.stars { color: #E5A00D; letter-spacing: 1px; }
.stars .off { color: var(--line-2); }
.review p { color: var(--ink-2); font-size: 14.5px; }
.review .photo { border: 0; padding: 0; background: none; cursor: zoom-in; align-self: flex-start; }
.review .photo img { max-height: 90px; border-radius: 10px; border: 1px solid var(--line); }
.rating-big { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rating-big b { font-family: var(--display); font-size: 44px; line-height: 1; }

.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label { font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .12s, transform .12s; }
.star-rating label:hover { transform: scale(1.1); }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #E5A00D; }
.star-rating input:focus-visible + label { outline: 2px solid var(--brand-soft); border-radius: 4px; }
.file-input { display: block; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; color: var(--ink-2); font-size: 14px; background: var(--surface-2); }
.file-input:hover { border-color: var(--brand-soft); }
.file-input input { display: none; }
.file-input .fname { display: block; font-weight: 600; color: var(--ink); margin-top: 4px; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #B9CBC2; padding: 40px 0 28px; margin-top: 72px; }
.site-footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.site-footer a { color: #E7EEEA; text-decoration: none; }
.site-footer a:hover { color: var(--ball); }
.foot-contact { display: grid; gap: 6px; font-size: 14px; }
.foot-contact i { width: 18px; color: var(--ball); }
.foot-bottom { width: 100%; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; font-size: 13px; color: #7D968A; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 120; display: grid; gap: 8px; width: min(400px, calc(100vw - 32px)); }
.toast {
    display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: var(--surface);
    border: 1px solid var(--line); border-left: 4px solid var(--green); box-shadow: var(--shadow-lg); font-size: 14px; animation: slide .2s ease;
}
.toast.danger { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--amber); }
.toast.info { border-left-color: var(--blue); }
.toast .msg { flex: 1; }
.toast button { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 18px; line-height: 1; }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Booking modal (wizard) ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(8, 18, 13, .6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: 20px; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; padding: 28px; }
.modal .close-modal { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--gray-bg); color: var(--ink-2); font-size: 20px; cursor: pointer; line-height: 1; }
.modal .close-modal:hover { background: var(--line); }
.modal h3 { font-size: 22px; margin-bottom: 16px; }
.modal .progress { display: flex; gap: 6px; margin: 0 48px 24px 0; }
.modal .progress .step { flex: 1; display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.modal .progress .step::before { content: ''; height: 4px; border-radius: 999px; background: var(--line); }
.modal .progress .step.active { color: var(--brand); }
.modal .progress .step.active::before { background: var(--brand); }
.modal .progress .circle { display: none; }
.modal .step-content { display: none; }
.modal .step-content.active { display: block; animation: slide .2s ease; }
.modal .summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.modal .summary-row span:first-child { color: var(--ink-2); }
.modal .summary-row span:last-child { font-weight: 600; text-align: right; }
.modal .summary-row.total { border-bottom: 0; margin-top: 8px; padding: 14px 16px; background: var(--surface-2); border-radius: 12px; font-size: 17px; }
.modal .summary-row.total span:last-child { font-family: var(--display); font-size: 22px; }
.modal .btn-group { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; }
.modal .btn-group .btn { height: 46px; }
.modal .btn-secondary { background: var(--surface); }
.modal .form-group { margin-bottom: 14px; }
.modal .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.modal .form-control { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.modal .form-control:focus { outline: none; border-color: var(--brand-soft); box-shadow: 0 0 0 3px var(--focus); }
.modal .payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.modal .payment-methods input { position: absolute; opacity: 0; pointer-events: none; }
.modal .payment-methods label { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.modal .payment-methods label:hover { border-color: var(--ink-3); }
.modal .payment-methods input:checked + label { border-color: var(--brand); background: var(--green-bg); box-shadow: 0 0 0 1px var(--brand) inset; }
.modal .qr-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 14px; }
.modal .qr-item { width: 120px; text-align: center; }
.modal .qr-item img { width: 120px; height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; }
.modal .qr-name { font-size: 12px; font-weight: 600; margin-top: 4px; color: var(--ink-2); }
.modal .gcash-upload { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 18px; text-align: center; background: var(--surface-2); font-size: 14px; }
.modal .gcash-upload input[type="file"] { display: block; margin: 10px auto 0; max-width: 100%; }
.modal .gcash-upload .preview { max-height: 160px; margin: 12px auto 0; border-radius: 10px; }
.modal .error-message { display: none; background: var(--red-bg); color: var(--red); padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.modal .error-message.show { display: block; }
.modal .success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; font-size: 34px; margin: 8px auto 16px; }
.modal [data-step="success"] h2 { font-size: 26px; }
.modal [data-step="success"] > p { color: var(--ink-2); margin: 6px 0 18px; }
.modal #successDetails { text-align: left; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.modal #successDetails strong { display: inline-block; min-width: 120px; color: var(--ink-2); font-weight: 600; }

/* ---------- Simple pages (status, search, payment, errors) ---------- */
.page { padding: 48px 0 24px; }
.page-title { margin-bottom: 24px; }
.page-title h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-top: 6px; }
.page-title p { color: var(--ink-2); margin-top: 6px; }
.lookup-inline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; }
.detail-list { display: grid; }
.detail { display: flex; justify-content: space-between; gap: 16px; padding: 13px 24px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.detail:last-child { border-bottom: 0; }
.detail > span:first-child { color: var(--ink-2); }
.detail > span:last-child { font-weight: 600; text-align: right; }
.detail.total { background: var(--surface-2); }
.detail.total > span:last-child { font-family: var(--display); font-size: 22px; font-weight: 800; }
.ticket-top { padding: 24px; border-bottom: 1px dashed var(--line-2); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ticket-top .res { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; font-size: 15px; }
.ticket-top .right { margin-left: auto; }
.result-list { list-style: none; }
.result { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line); text-decoration: none; }
.result:last-child { border-bottom: 0; }
.result:hover { background: var(--surface-2); }
.result .grow { flex: 1; min-width: 0; }
.result strong { display: block; }
.result small { color: var(--ink-3); }
.pay-options { display: grid; gap: 12px; }
.pay-option { border: 1.5px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.pay-option > summary, .pay-option > form > button {
    list-style: none; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; cursor: pointer;
    background: var(--surface); border: 0; text-align: left; font-size: 15px;
}
.pay-option > summary::-webkit-details-marker { display: none; }
.pay-option i.ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.pay-option strong { display: block; }
.pay-option small { color: var(--ink-3); }
.pay-option .chev { margin-left: auto; color: var(--ink-3); transition: transform .2s; }
.pay-option[open] .chev { transform: rotate(90deg); }
.pay-option:hover { border-color: var(--ink-3); }
.pay-option[open] { border-color: var(--brand); }
.pay-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.pay-body ol { padding-left: 20px; display: grid; gap: 4px; margin: 14px 0; color: var(--ink-2); font-size: 14.5px; }
.update-status { font-size: 13px; color: var(--ink-3); }
.update-status.success { color: var(--green); }
.update-status.error { color: var(--red); }
.update-status.loading { color: var(--blue); }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.error-page .code { font-family: var(--display); font-size: 96px; font-weight: 800; line-height: 1; color: var(--brand); }
.error-page .code em { font-style: normal; color: var(--ball-deep); }
.error-page h1 { font-size: 26px; margin: 10px 0 8px; }
.error-page p { color: var(--ink-2); margin-bottom: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero .wrap, .booking-grid, .reviews-layout, .court-strip { grid-template-columns: minmax(0, 1fr); }
    .calendar { position: static; }
    .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .policy-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gcash-band { grid-template-columns: minmax(0, 1fr); }
    .qr-row { justify-content: flex-start; }
}
@media (max-width: 860px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--brand-deep); padding: 12px 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08);
        transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
    }
    body.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
    .nav a { padding: 12px; font-size: 15px; }
    .nav .nav-cta { margin: 8px 0 0; text-align: center; }
    .event-list { grid-template-columns: minmax(0, 1fr); }
    .review-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    body { font-size: 14.5px; }
    .hero { padding: 44px 0 80px; }
    .hero .lead { font-size: 16px; }
    .facts { gap: 20px; }
    .section { padding: 52px 0; }
    .card-pad { padding: 20px; }
    .calendar { padding: 18px; }
    .calendar-grid { gap: 4px; }
    .cal-day { font-size: 13px; border-radius: 8px; }
    .cal-day .sub-info { display: none; }
    .choices { grid-template-columns: minmax(0, 1fr); }
    .row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gcash-band { padding: 24px; border-radius: 18px; }
    .total-bar .btn { width: 100%; margin-left: 0; }
    .lookup-inline { grid-template-columns: minmax(0, 1fr); }
    .modal { padding: 22px 18px; border-radius: 18px; }
    .modal .payment-methods { grid-template-columns: minmax(0, 1fr); }
    .modal .btn-group .btn { flex: 1; }
    .detail, .ticket-top, .result, .card-head { padding-left: 18px; padding-right: 18px; }
    .event, .upcoming-head { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
