/* Subic Bay Pickle Ball: public styles
   One neutral palette, one green accent, hairline borders, no shadows or gradients. */

:root {
  color-scheme: light;
  --bg: #fff;
  --tint: #eaf3ed;
  --deep: #14402a;
  --deep-2: #1b5236;
  --card: #fff;
  --card-2: #eef3ef;
  --line: #d3ddd6;
  --line-2: #bccac0;
  --ink: #1c1f1d;
  --head: #111312;
  --muted: #666c68;
  --accent: #1a6a3e;
  --accent-d: #14532f;
  --accent-soft: #e3f0e8;
  --ok: #1a6a3e;
  --warn: #8a6410;
  --danger: #b3382c;
  --coral: #c4483b;
  --amber: #d29a1c;
  --held-bg: #f7f0dd;  --held-ink: #7a5a10;  --held-line: #e6d8a8;
  --booked-bg: #f6e8e5; --booked-ink: #8e382d; --booked-line: #e8c5be;
  --blocked-bg: #eeeeeb; --blocked-ink: #7d817e; --blocked-line: #dcdeda;
  --r: 6px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font: 400 16px/1.55 var(--font-body); color: var(--ink); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
body.has-cart { padding-bottom: 88px; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-d); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--head); text-wrap: balance; }
p { margin: 0 0 1em; }
code { background: var(--card-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.narrow { max-width: 680px; }
.muted { color: var(--muted); font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: var(--r); z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { background: var(--deep); position: sticky; top: 0; z-index: 15; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top { display: none; }
.brand-main { font-weight: 600; font-size: 17px; color: #fff; line-height: 1.1; }
.logo-mark { display: block; height: 34px; width: auto; flex: none; background: #0d2a1c; border-radius: 6px; padding: 4px 7px; box-sizing: content-box; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 10px; text-decoration: none; color: rgba(255, 255, 255, .75); font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.nav .short { display: none; }
.nav-toggle { display: none; }

/* ---------- venue: photo gallery + details ---------- */
.venue { padding: 22px 0 34px; background: linear-gradient(180deg, #cfe5d8 0%, #e3f0e8 100%); }
.venue-in { display: grid; gap: 26px; align-items: start; margin-top: 26px; }
.venue-name { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 600; letter-spacing: -.02em; margin: 0 0 .3em; color: var(--deep); }
.venue-about { color: #35523f; font-size: 1.08rem; max-width: 60ch; margin: 0 0 20px; }
.venue-stats { display: flex; flex-wrap: wrap; gap: 0; padding-top: 18px; border-top: 1px solid rgba(20, 64, 42, .22); max-width: 640px; }
.vs { display: flex; flex-direction: column; padding-right: 24px; margin-right: 24px; border-right: 1px solid rgba(20, 64, 42, .22); line-height: 1.3; }
.vs:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.vs b { font-size: 1.25rem; font-weight: 600; color: var(--deep); }
.vs span { font-size: 13.5px; color: #3f5d4a; }

.gwrap { position: relative; }
.g-count { display: none; }
.gallery .g-x { display: none; }
/* gallery: one large photo + up to four small ones (like a hotel listing) */
.gallery { position: relative; display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.8 / 1; border-radius: 16px; overflow: hidden; background: var(--card-2); }
.g-tile { position: relative; display: block; padding: 0; border: 0; margin: 0; overflow: hidden; background: var(--card-2); cursor: zoom-in; min-width: 0; min-height: 0; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease, filter .25s; }
.g-tile:hover img, .g-tile:focus-visible img { transform: scale(1.04); }
.g-tile:focus-visible, .g-all:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.g-main { grid-column: 1 / 3; grid-row: 1 / 3; }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; text-align: left; color: #fff; font-size: 13.5px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.g-main .g-cap { padding-left: 16px; padding-bottom: 14px; font-size: 15px; }
.g-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.25rem; font-weight: 700; pointer-events: none; }
.g-all { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: var(--head); font: 600 14.5px/1 var(--font-body); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .22); }
.g-all:hover { background: var(--card-2); }
.g-1 { grid-template-columns: 1fr; aspect-ratio: 3 / 1; }
.g-1 .g-main { grid-column: 1; grid-row: 1 / 3; }
.g-2 .g-tile:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 3; }
.g-3 .g-tile:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.g-3 .g-tile:nth-child(3) { grid-column: 3 / 5; grid-row: 2; }
.g-4 .g-tile:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.g-4 .g-tile:nth-child(3) { grid-column: 3; grid-row: 2; }
.g-4 .g-tile:nth-child(4) { grid-column: 4; grid-row: 2; }

@media (max-width: 760px) {
  /* phone: a swipeable strip. One photo per screen, snaps into place, finger-follows like any app. */
  .gallery { display: flex; aspect-ratio: auto; gap: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 12px; touch-action: pan-x pan-y; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .g-tile, .gallery .g-tile.g-x { display: block; flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; scroll-snap-stop: always; }
  .gallery .g-tile img { transition: none; transform: none !important; -webkit-user-drag: none; user-select: none; }
  .g-cap, .g-more { display: none; }
  .g-all { left: 10px; bottom: 10px; padding: 8px 13px; font-size: 13.5px; }
  .g-count { display: block; position: absolute; right: 10px; bottom: 10px; padding: 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
}

/* lightbox: a snap-scrolling strip, so swiping is native and smooth */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(10, 14, 12, .95); color: #fff; overflow: hidden; }
.lightbox[open] { display: block; }
.lightbox::backdrop { background: rgba(10, 14, 12, .95); }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 64px 76px 76px; box-sizing: border-box; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .25s; }
.lb-slide img.is-in { opacity: 1; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 14px; padding: 0 70px; font-size: 15px; color: rgba(255, 255, 255, .9); pointer-events: none; text-align: center; }
.lb-count { color: rgba(255, 255, 255, .55); white-space: nowrap; }
.lb-x, .lb-nav { position: absolute; z-index: 2; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-x { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-slide { padding: 64px 0 72px; }
  .lb-slide img { border-radius: 0; }
  .lb-nav { display: none; }                       /* swipe on a phone */
  .lb-cap { bottom: 26px; padding: 0 16px; }
}

/* open / closed pill (follows the opening hours in Settings) */
.open-pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--ink); font-size: 14.5px; line-height: 1.2; }
.open-pill strong { font-weight: 700; }
.open-pill span { color: var(--muted); }
.op-dot { width: 11px; height: 11px; border-radius: 50%; background: #9aa09b; flex: none; }
.open-pill.is-open strong { color: #12823f; }
.open-pill.is-open .op-dot { background: #1fb457; box-shadow: 0 0 0 0 rgba(31, 180, 87, .55); animation: opPing 1.8s ease-out infinite; }
.open-pill.is-closed strong { color: var(--danger); }
.open-pill.is-closed .op-dot { background: var(--coral); }
@keyframes opPing { 70% { box-shadow: 0 0 0 9px rgba(31, 180, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 180, 87, 0); } }

/* "Find us" card in the banner */
.venue-card { background: #f3f9f5; color: var(--ink); border: 1px solid #a9ccb7; border-radius: 14px; padding: 22px 22px 20px; max-width: 460px; width: 100%; box-shadow: 0 6px 24px rgba(20, 64, 42, .08); }
.vc-kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vc-place { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.3rem; color: var(--head); }
.vc-place svg { flex: none; color: var(--accent); width: 22px; height: 22px; }
.vc-addr { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.vc-list { list-style: none; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.vc-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.vc-list svg { flex: none; color: var(--accent); }
.vc-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.vc-list a:hover { text-decoration: underline; }
.vc-go { gap: 10px; }
@media (min-width: 900px) {
  .venue { padding: 30px 0 44px; }
  .venue-in { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 460px); gap: 56px; }
  .venue-card { justify-self: end; }
}

/* ---------- what's on site ---------- */
.onsite { padding: 30px 0 34px; background: var(--tint); border-bottom: 1px solid var(--line); }
.onsite-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.onsite-head h2 { margin: 0; font-size: 1.3rem; }
.onsite-head p { margin: 0; color: var(--muted); font-size: 15px; }
.onsite-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.os-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.os-ico { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-d); }
.os-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.os-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

/* ---------- court status strip ---------- */
.hero { padding: 28px 0; background: #fff; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 20px; }
.hero h1, .hero .hero-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .3em; max-width: 24ch; }
.lede { color: var(--muted); max-width: 52ch; margin: 0; }
.hero-ball, .pop-ball, .cart-ball { display: none !important; }
.courts-now { display: flex; gap: 10px; }
.cn { flex: 1 1 0; min-width: 0; max-width: 132px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 4px 8px; opacity: .6; }
.cn[data-status] { opacity: 1; }
.cn-svg { display: block; width: 100%; height: auto; aspect-ratio: 60 / 130; max-height: 84px; margin: 0 auto; }
.cn-out { fill: #dfe2dc; }
.cn-kitchen { fill: #eceee9; }
.cn-lines { stroke: #fff; stroke-width: 1.4; }
.cn-net { stroke: #fff; stroke-width: 2.2; stroke-dasharray: 2 2; }
.cn[data-status="free"] .cn-out { fill: #3d9a65; }
.cn[data-status="free"] .cn-kitchen { fill: #58ae7c; }
.cn[data-status="busy"] .cn-out { fill: #cf6256; }
.cn[data-status="busy"] .cn-kitchen { fill: #d97b70; }
.cn[data-status="closed"] .cn-out { fill: #d5d8d2; }
.cn[data-status="closed"] .cn-kitchen { fill: #e2e4df; }
.cn-name { font-weight: 600; font-size: .92rem; margin-top: 8px; line-height: 1.2; color: var(--head); }
.cn-state { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.cn[data-status="free"] .cn-state { color: var(--accent); }
.cn[data-status="busy"] .cn-state { color: var(--danger); }
.cn-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; } }

.notice { display: block; margin-top: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.notice:hover { background: var(--card-2); color: var(--ink); }
.notice strong { font-weight: 600; }

/* ---------- panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.panel-head h2 .muted { font-size: .85em; margin-left: 4px; }
.hint { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; max-width: 72ch; }
.grid-host + .hint { margin: 16px 0 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--head); }
.icon-btn:hover { background: var(--card-2); }

/* day picker */
.date-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day, .day-more, .dd-day, .dd-month { border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-family: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.day { min-width: 0; padding: 8px 2px; }
.day:hover, .day-more:hover, .dd-day:hover, .dd-month:hover { border-color: var(--accent); }
.day .dow, .day .dmon { font-size: 12px; color: var(--muted); font-weight: 500; }
.day .dnum { font-size: 1.35rem; font-weight: 600; line-height: 1.15; color: var(--head); }
.day.is-active, .day-more.is-active, .dd-day.is-active, .dd-month.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.day.is-active .dow, .day.is-active .dmon { color: rgba(255, 255, 255, .8); }
.day.is-active .dnum { color: #fff; }
.day-more { min-width: 0; padding: 8px 6px; border-style: dashed; color: var(--accent-d); justify-content: center; gap: 4px; grid-column: 1 / -1; }
.day-more .dm-idle { display: flex; align-items: center; justify-content: center; gap: 8px; }
.day-more .dm-t { font-weight: 600; font-size: 14px; line-height: 1.15; }
.day-more .dm-idle[hidden], .day-more .dm-picked[hidden] { display: none; }
.day-more .dm-picked { display: flex; flex-direction: column; align-items: center; }
.day-more .dow, .day-more .dmon { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.day-more .dnum { font-size: 1.35rem; font-weight: 600; line-height: 1.15; color: #fff; }
.day-more.is-active { border-style: solid; }
@media (min-width: 960px) {
  .date-strip { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .date-strip:has(.day-more) { grid-template-columns: repeat(14, minmax(0, 1fr)) 96px; }
  .day-more { grid-column: auto; padding: 6px; }
  .day-more .dm-idle { flex-direction: column; gap: 4px; text-align: center; }
}
@media (max-width: 560px) { .date-strip { gap: 4px; } .day { padding: 7px 0; } .day .dow, .day .dmon { font-size: 11px; } .day .dnum { font-size: 1.2rem; } }

/* more-dates dialog */
.dialog-dates { width: min(520px, calc(100% - 24px)); }
.dd-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; margin: 4px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dd-month { min-width: 0; padding: 8px 6px; }
.dd-mt { font: 600 1rem/1.1 var(--font-body); }
.dd-my { font-size: 11.5px; color: var(--muted); }
.dd-month.is-active .dd-my { color: rgba(255, 255, 255, .8); }
.dd-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; }
.dd-day { padding: 8px 2px; }
.dd-dow { font-size: 12px; font-weight: 500; color: var(--muted); }
.dd-num { font: 600 1.3rem/1.1 var(--font-body); }
.dd-day.is-weekend .dd-dow { color: var(--accent); }
.dd-day.is-active .dd-dow { color: rgba(255, 255, 255, .8); }
@media (max-width: 440px) {
  .dd-months { grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); gap: 4px; }
  .dd-month { padding: 5px 2px; } .dd-mt { font-size: .92rem; } .dd-my { font-size: 10.5px; }
  .dd-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .dd-day { padding: 5px 0; } .dd-num { font-size: 1.1rem; } .dd-dow { font-size: 10.5px; }
}

/* legend */
.legend { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-2); display: inline-block; }
.lg-free { background: #fff; }
.lg-sel, .lg-open { background: var(--accent); border-color: var(--accent); }
.lg-held { background: var(--held-bg); border-color: var(--held-line); }
.lg-booked { background: var(--booked-bg); border-color: var(--booked-line); }
.lg-closed { background: var(--blocked-bg); border-color: var(--blocked-line); }
.lg-booked2 { background: var(--coral); border-color: var(--coral); }
.lg-held2 { background: var(--amber); border-color: var(--amber); }

/* schedule grid (also used in admin) */
.grid-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.grid { --cols: 5; display: grid; grid-template-columns: 74px repeat(var(--cols), minmax(60px, 1fr)); gap: 4px; min-width: calc(74px + var(--cols) * 66px); align-items: stretch; }
.gh { text-align: center; font-weight: 600; font-size: 13.5px; padding: 8px 2px; color: var(--head); white-space: nowrap; }
.gt { position: sticky; left: 0; z-index: 1; background: var(--card); display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-right: 8px; font-weight: 600; font-size: 13px; color: var(--head); line-height: 1.15; }
.gt small { font-size: 10px; font-weight: 400; color: var(--muted); }
.cell { height: 48px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: 500 13px/1 var(--font-body); color: var(--ink); cursor: pointer; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell:hover:not(:disabled) { border-color: var(--accent); }
.cell-selected { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 17px; }
.cell-selected:hover:not(:disabled) { background: var(--accent-d); border-color: var(--accent-d); }
.cell-held { background: var(--held-bg); border-color: var(--held-line); color: var(--held-ink); font-size: 11.5px; }
.cell-booked { background: var(--booked-bg); border-color: var(--booked-line); color: var(--booked-ink); font-size: 11.5px; }
.cell-blocked { background: var(--blocked-bg); border-color: var(--blocked-line); color: var(--blocked-ink); font-size: 11.5px; }
.cell-past { background: transparent; border-color: transparent; color: #b4b7b3; }
.cell:disabled { cursor: not-allowed; }
.loading { color: var(--muted); padding: 24px 4px; margin: 0; }
.loading.is-error { color: var(--danger); }

/* court picker */
.court-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.court-card { position: relative; text-align: left; padding: 12px 14px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 8px; font-family: inherit; color: var(--ink); }
.court-card:hover { border-color: var(--line-2); }
.court-card.is-active { border-color: var(--accent); background: var(--accent-soft); }
.cc-name { font-weight: 600; font-size: 1.05rem; color: var(--head); line-height: 1.1; }
.cc-name small { font: inherit; }
.cc-bar { display: flex; gap: 2px; height: 6px; }
.cc-bar i { flex: 1; border-radius: 2px; background: #5fb283; }
.cc-bar .s-booked { background: var(--coral); }
.cc-bar .s-held { background: var(--amber); }
.cc-bar .s-blocked { background: #b9bdb6; }
.cc-bar .s-past { background: #e3e5e0; }
.cc-nums { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.cc-nums b { color: var(--head); font-size: 14.5px; font-weight: 600; }
.cc-badge { position: absolute; top: 9px; right: 9px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 12px; display: grid; place-items: center; }

/* hour tiles */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.chip { position: relative; height: 54px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--font-body); cursor: pointer; padding: 0 2px; }
.chip-t { font-weight: 600; font-size: 15px; color: var(--head); line-height: 1.1; }
.chip-p { font-size: 12px; color: var(--muted); line-height: 1.1; }
.chip:hover:not(:disabled) { border-color: var(--accent); }
.chip-selected { background: var(--accent); border-color: var(--accent); }
.chip-selected .chip-t { color: #fff; }
.chip-selected .chip-p { color: rgba(255, 255, 255, .8); }
.chip-selected:hover:not(:disabled) { background: var(--accent-d); border-color: var(--accent-d); }
.chip-held { background: var(--held-bg); border-color: var(--held-line); }
.chip-held .chip-t, .chip-held .chip-p { color: var(--held-ink); }
.chip-booked { background: var(--booked-bg); border-color: var(--booked-line); }
.chip-booked .chip-t, .chip-booked .chip-p { color: var(--booked-ink); }
.chip-blocked { background: var(--blocked-bg); border-color: var(--blocked-line); }
.chip-blocked .chip-t, .chip-blocked .chip-p { color: var(--blocked-ink); }
.chip-past { background: transparent; border-color: var(--line); }
.chip-past .chip-t, .chip-past .chip-p { color: #b4b7b3; }
.chip-after:not(.chip-selected):not(.chip-past) { border-style: dashed; }
.chip:disabled { cursor: not-allowed; }
.day, .day-more { position: relative; }

/* loading indicator (the ball bounce is replaced by a plain pulse) */
.ball { display: block; width: 100%; height: 100%; }
.ball-shadow { display: none; }
.ball-loader { display: flex; flex-direction: column; align-items: center; padding: 28px 0; color: var(--muted); }
.ball-loader p { margin: 12px 0 0; font-size: 14.5px; }
.bl-ball { width: 22px; height: 22px; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .25; } to { opacity: 1; } }
.cart-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.btn.is-busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cart bar ---------- */
.cart { position: fixed; left: 0; right: 0; bottom: 0; background: var(--deep); color: #fff; z-index: 20; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.cart[hidden] { display: none; }
.cart-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-sum { display: flex; flex-direction: column; line-height: 1.2; }
.cart-sum strong { font-size: 14px; color: rgba(255, 255, 255, .75); font-weight: 500; }
.cart-sum span { font-size: 1.5rem; font-weight: 600; color: #fff; }
.cart .btn-ball { background: #fff; color: var(--deep); }
.cart .btn-ball:hover { background: var(--accent-soft); color: var(--deep); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--r); border: 1px solid transparent; font: 600 15.5px/1.1 var(--font-body); cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ball, .btn-navy { background: var(--accent); color: #fff; }
.btn-ball:hover, .btn-navy:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--head); }
.btn-ghost:hover { background: var(--card-2); color: var(--head); }
.btn-danger-ghost { background: #fff; border-color: var(--booked-line); color: var(--danger); }
.btn-danger-ghost:hover { background: var(--booked-bg); color: var(--danger); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 14px; }

label { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 14px; color: var(--ink); }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font: 400 16px/1.3 var(--font-body); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #9a9f9b; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--booked-bg); color: var(--booked-ink); border: 1px solid var(--booked-line); padding: 10px 12px; border-radius: var(--r); font-size: 14.5px; }
.form-error[hidden] { display: none; }
.fine { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }
.stack { display: block; }
.flash { padding: 11px 14px; border-radius: var(--r); margin: 16px 0 0; }
.flash-ok { background: var(--accent-soft); color: var(--accent-d); border: 1px solid #cfe3d6; }
.flash-err { background: var(--booked-bg); color: var(--booked-ink); border: 1px solid var(--booked-line); }
input[type="file"] { display: block; width: 100%; margin-top: 5px; padding: 12px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink); font: 400 15px var(--font-body); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 12px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; font: 600 14px var(--font-body); cursor: pointer; }

/* ---------- dialog ---------- */
.dialog { border: 1px solid var(--line); border-radius: 10px; padding: 24px; width: min(480px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow: auto; color: var(--ink); background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .16); }
.dialog::backdrop { background: rgba(20, 22, 21, .45); }
.dialog h2 { font-size: 1.3rem; margin-bottom: .2em; }
.dlg-x { position: absolute; top: 12px; right: 12px; margin: 0; }
.dlg-date { color: var(--muted); margin-bottom: 12px; }
.dlg-slots { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.dlg-total { display: flex; justify-content: space-between; font-size: 1.05rem; margin: 10px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dlg-total strong { font-size: 1.3rem; font-weight: 600; color: var(--head); }
.dlg-sum { margin: 10px 0 14px; border-bottom: 1px solid var(--line); }
.dlg-sum .dlg-total { margin: 6px 0 0; border-bottom: 0; padding-bottom: 12px; }
.dlg-line { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.dlg-disc { color: var(--accent-d); font-weight: 600; }
.dlg-disc b { letter-spacing: .03em; }
.dlg-what { font-weight: 400; }
.promo { margin: 0 0 16px; }
.promo-link { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.promo-row input:disabled { background: var(--accent-soft); color: var(--accent-d); border-color: #cfe3d6; }
.promo-msg { margin: 6px 0 0; font-size: .92rem; font-weight: 500; }
.promo-msg.is-ok { color: var(--accent-d); }
.promo-msg.is-bad { color: var(--danger); }
.disc-row { display: flex; justify-content: space-between; margin: 10px 0 0; color: var(--accent-d); font-weight: 600; }
.sub-row { display: flex; justify-content: space-between; margin: 10px 0 0; color: var(--muted); }
.slot-list { list-style: none; margin: 0; padding: 0; }
.slot-list li, .dlg-slots li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sl-court { font-weight: 600; color: var(--head); }
.sl-time { color: var(--ink); }
.sl-amt { font-weight: 600; text-align: right; min-width: 64px; }

/* payment step */
.pay-h { font-size: 1.1rem; margin: 0 0 12px; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pay-tab { padding: 12px 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; color: var(--head); font: 600 15px/1.2 var(--font-body); cursor: pointer; }
.pay-tab:hover { border-color: var(--accent); }
.pay-tab.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-d); }
.pay-box, .pay, .proof-up { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; }
.pay-box { display: flex; align-items: center; gap: 16px; padding: 14px; margin-bottom: 14px; }
.pay-ico { flex: none; width: 72px; height: 72px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.pay-info { min-width: 0; }
.pay-what { margin: 0 0 4px; color: var(--ink); overflow-wrap: anywhere; }
.pay-amt { margin: 0; font: 600 1.4rem/1.1 var(--font-body); color: var(--head); }
.pay-notes { margin: 0 0 16px; padding-left: 1.25em; color: var(--muted); font-size: 14.5px; }
.pay-notes li { padding: 2px 0 2px 2px; }
.pay-notes strong { color: var(--head); font-weight: 600; }
.pay-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 6px; }
.pay-actions .btn { width: 100%; }
@media (max-width: 420px) { .pay-ico { width: 60px; height: 60px; } .pay-ico svg { width: 40px; height: 40px; } .pay-tab { font-size: 14px; } }

/* ---------- booking ticket ---------- */
.ticket { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; margin: 24px 0; }
.ticket-state { display: inline-block; font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 4px; background: var(--held-bg); color: var(--held-ink); margin-bottom: 10px; }
.st-confirmed .ticket-state { background: var(--accent-soft); color: var(--accent-d); }
.st-cancelled .ticket-state, .st-expired .ticket-state { background: var(--blocked-bg); color: #5d625f; }
.ticket h1 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin-bottom: .2em; }
.ref { color: var(--muted); }
.ref strong { color: var(--head); font-size: 1.1rem; font-weight: 600; letter-spacing: .04em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.sub { font-size: 1.05rem; margin: 18px 0 6px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; font-size: 1.05rem; }
.total-row strong { font-size: 1.5rem; font-weight: 600; color: var(--head); }
.pay { padding: 4px 18px 6px; margin-top: 20px; }
.pay-text { font-weight: 500; }
.deadline { color: var(--held-ink); background: var(--held-bg); padding: 8px 12px; border-radius: var(--r); }
.okmsg { background: var(--accent-soft); color: var(--accent-d); border: 1px solid #cfe3d6; padding: 12px 14px; border-radius: var(--r); margin-top: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.actions form { margin: 0; }
.lookup { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; margin: 24px 0; }
.lede-sm { color: var(--muted); max-width: 56ch; }
.pay-steps { margin: 6px 0 10px; padding-left: 1.3em; }
.pay-steps li { padding: 4px 0; }
.pay-steps li.done { color: var(--ok); }
.pay-steps .pay-text { display: inline-block; margin-top: 2px; }
.proof-up { padding: 4px 18px 16px; margin-top: 16px; }

.countdown { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 16px 0 0; }
.cd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); font-size: 14.5px; }
.cd-text strong { font-size: 1.05rem; font-weight: 600; }
.cd-time { flex: none; text-align: center; background: var(--card-2); border-radius: var(--r); padding: 6px 14px; }
.cd-time small { display: block; font-size: 12px; color: var(--muted); }
.cd-time b { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--head); line-height: 1.1; }
.countdown.is-low { border-color: var(--booked-line); background: var(--booked-bg); }
.countdown.is-low .cd-time { background: #fff; }
.countdown.is-low .cd-time b { color: var(--danger); }
.countdown.cd-done { background: var(--accent-soft); border-color: #cfe3d6; }
@media (max-width: 480px) { .countdown { flex-direction: column; align-items: stretch; } .cd-time { align-self: flex-start; } }

/* ---------- content pages ---------- */
.prose { padding: 32px 20px 44px; }
.prose h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
.rules { padding-left: 1.3em; }
.rules li { padding: 6px 0 6px 6px; max-width: 62ch; }
.rules li::marker { color: var(--muted); }
.news { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin: 0 0 12px; }
.news h2 { font-size: 1.15rem; margin-bottom: .1em; }
.news time { color: var(--muted); font-size: 13.5px; }
.news p { margin: 10px 0 0; max-width: 62ch; }
.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: 8px; padding: 22px; color: var(--muted); }
.wait-play { margin: 12px 0 0; color: var(--muted); }
.wait-play a { font-weight: 600; }

/* ---------- footer / toast ---------- */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .75); margin-top: 56px; padding: 36px 0; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer p { margin: 4px 0; }
.foot-logo { display: block; width: 110px; max-width: 60%; height: auto; margin: 0 0 12px; background: #0d2a1c; border-radius: 6px; padding: 8px 12px; box-sizing: content-box; }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--head); color: #fff; padding: 11px 16px; border-radius: var(--r); z-index: 60; max-width: calc(100% - 32px); font-weight: 500; }
.toast[hidden] { display: none; }

/* ---------- customer chat ---------- */
.cw { position: fixed; right: 20px; bottom: 20px; z-index: 40; font-family: var(--font-body); }
body.has-cart .cw { bottom: calc(92px + env(safe-area-inset-bottom)); }
.cw-launch { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 600 15px/1 var(--font-body); cursor: pointer; position: relative; }
.cw-launch:hover { background: var(--accent-d); }
.cw-launch[hidden] { display: none; }
.cw-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }
.cw-badge[hidden] { display: none; }
.cw-panel { position: absolute; right: 0; bottom: 0; width: 380px; height: min(620px, calc(100vh - 40px)); height: min(620px, calc(100dvh - 40px)); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .16); display: flex; flex-direction: column; overflow: hidden; }
.cw-panel[hidden] { display: none; }
.cw-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; color: var(--head); padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.cw-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cw-title strong { font-size: 1rem; font-weight: 600; }
.cw-status { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.cw-dot { width: 8px; height: 8px; border-radius: 50%; background: #aab0ab; flex: none; }
.cw-dot.on { background: #3fa86b; }
.cw-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.cw-x:hover { background: var(--card-2); color: var(--head); }
.cw-form { flex: 1; overflow-y: auto; padding: 18px; background: var(--tint); display: flex; flex-direction: column; gap: 12px; }
.cw-form[hidden], .cw-chat[hidden] { display: none; }
.cw-lead { margin: 0 0 2px; color: var(--head); font-weight: 500; }
.cw-f { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 14.5px; color: var(--head); }
.cw-opt { font-weight: 400; color: var(--muted); }
.cw-f input { font: 400 16px/1.2 var(--font-body); padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); width: 100%; }
.cw-f input:focus, .cw-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cw-err { margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--booked-bg); border: 1px solid var(--booked-line); color: var(--booked-ink); font-size: 14.5px; }
.cw-err[hidden] { display: none; }
.cw-go { padding: 13px; border: 0; border-radius: var(--r); background: var(--accent); color: #fff; font: 600 16px/1 var(--font-body); cursor: pointer; }
.cw-go:hover { background: var(--accent-d); }
.cw-go:disabled { opacity: .65; cursor: wait; }
.cw-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.cw-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cw-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; background: var(--tint); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.cw-hello { align-self: center; max-width: 88%; text-align: center; font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.cw-day { align-self: center; font-size: 12.5px; color: var(--muted); padding: 2px 8px; }
.cw-msg { display: flex; flex-direction: column; max-width: 82%; gap: 3px; }
.cw-msg.me { align-self: flex-end; align-items: flex-end; }
.cw-msg.them { align-self: flex-start; align-items: flex-start; }
.cw-who { font-size: 12.5px; font-weight: 600; color: var(--muted); padding-left: 2px; }
.cw-bub { padding: 9px 12px; border-radius: 10px; font-size: 15.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-msg.me .cw-bub { background: var(--accent); color: #fff; }
.cw-msg.me .cw-bub a { color: #fff; }
.cw-msg.them .cw-bub { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cw-meta, .cw-seen { font-size: 12px; color: var(--muted); padding: 0 2px; }
.cw-seen { color: var(--accent-d); }
.cw-msg.pending .cw-bub { opacity: .65; }
.cw-msg.failed .cw-bub { background: #a8433a; }
.cw-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-d); text-decoration: underline; cursor: pointer; font-weight: 600; }
.cw-msg.failed .cw-link { color: var(--danger); }
.cw-send { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.cw-input { flex: 1; resize: none; font: 400 16px/1.35 var(--font-body); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); max-height: 110px; }
.cw-sendbtn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: var(--accent); color: #fff; cursor: pointer; }
.cw-sendbtn:hover { background: var(--accent-d); }
.cw-foot { flex: none; margin: 0; padding: 0 12px 10px; background: #fff; font-size: 13px; color: var(--muted); text-align: center; }
.cw-attach { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--muted); cursor: pointer; }
.cw-attach:hover { background: var(--card-2); color: var(--head); }
.cw-prev { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--tint); border-top: 1px solid var(--line); }
.cw-prev[hidden] { display: none; }
.cw-prev img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); }
.cw-prev-t { flex: 1; font-size: 14px; color: var(--ink); }
.cw-prev-t.is-bad { color: var(--danger); }
.cw-prev-x { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; }
.cw-bub.has-img { padding: 4px; }
.cw-img { display: block; max-width: 100%; max-height: 230px; border-radius: 6px; background: var(--card-2); }
.cw-cap { padding: 6px 8px 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-msg .cw-bub.has-img { max-width: 100%; }
.cw-fmsg { color: var(--danger); }
.cw-send input[type="file"] { display: none !important; }
@media (max-width: 560px) {
  .cw { right: 14px; bottom: 14px; }
  body.has-cart .cw { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .cw-panel { position: fixed; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; }
  body.cw-lock { overflow: hidden; }
}

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .site-header .bar { position: relative; }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r); background: transparent; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav-toggle .nt-close, .nav-open .nav-toggle .nt-open { display: none; }
  .nav-open .nav-toggle .nt-close { display: block; }
  .site-header .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 6px 20px 12px; background: var(--deep); border-top: 1px solid rgba(255, 255, 255, .15); }
  .site-header.nav-open .nav { display: flex; }
  .site-header .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .site-header .nav a:last-child { border-bottom: 0; }
  .site-header .nav a[aria-current="page"] { color: #fff; font-weight: 600; }
  .site-header .nav .long { display: inline; }
  .site-header .nav .short { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .venue { padding: 14px 0 24px; }
  .venue-card { max-width: none; padding: 18px 16px 16px; }
  .onsite { padding-top: 22px; padding-bottom: 24px; }
  .os-card { padding: 13px 14px; gap: 12px; }
  .os-ico { width: 44px; height: 44px; }
  .vs { padding-right: 16px; margin-right: 16px; }
  .hero { padding: 22px 0; }
  .courts-now { gap: 6px; }
  .cn-name { font-size: .85rem; } .cn-state { font-size: 12px; } .cn-sub { font-size: 11px; }
  .panel { padding: 14px; }
  .court-pick { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .court-card { padding: 8px 6px 7px; gap: 6px; align-items: center; text-align: center; }
  .cc-name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
  .cc-name .cc-n { font-size: 1.35rem; line-height: 1; }
  .cc-bar { gap: 1px; height: 5px; width: 100%; }
  .cc-nums { flex-direction: column; gap: 0; font-size: 10.5px; align-items: center; }
  .cc-nums span { white-space: nowrap; }
  .cc-nums b { font-size: 12.5px; }
  .cc-badge { top: -7px; right: -5px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; }
  .panel-head h2 .muted { display: block; margin: 2px 0 0; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .chip { height: 50px; }
  .chip-t { font-size: 14px; } .chip-p { font-size: 11px; }
  .ticket, .lookup { padding: 20px; }
  .slot-list li, .dlg-slots li { grid-template-columns: 1fr auto; }
  .slot-list .sl-time, .dlg-slots .sl-time { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 14px; margin-top: -8px; }
}
@media (max-width: 360px) { .court-card { padding: 7px 2px 6px; } .cc-nums { font-size: 9.5px; } .cc-nums b { font-size: 11.5px; } .chip-t { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .actions, .toast, .cart, .cw, .countdown { display: none !important; }
  body, html { background: #fff; color: #000; }
  .ticket { border: 1px solid #999; color: #000; }
  .ticket *, h1, h2, h3 { color: #000 !important; }
}

/* ---------- pickleball game (play.php) ---------- */
/* Pickleball match game */
.play { padding-top: 26px; padding-bottom: 40px; max-width: 860px; }
.play-head h1 { margin: 0 0 6px; }
.play-sub { font-size: .5em; font-weight: 700; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.game { margin: 14px auto 0; max-width: 460px; background: #fff; border: 1px solid #cfe3d3; border-radius: 16px; padding: 8px; box-shadow: 0 1px 2px rgba(15, 61, 39, .05); }
.game-stage { position: relative; border-radius: 10px; overflow: hidden; background: #d9f0e4; }
.game canvas { display: block; width: 100%; aspect-ratio: 5 / 8; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.game canvas:focus-visible { outline: 3px solid #9fd9b5; outline-offset: -3px; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(233, 244, 236, .72); padding: 16px; }
.game-overlay[hidden] { display: none; }
.go-card { background: #fff; border: 1px solid #cfe3d3; border-radius: 16px; padding: 20px 18px; text-align: center; width: min(100%, 330px); box-shadow: 0 6px 24px rgba(15, 61, 39, .14); display: grid; gap: 10px; }
.go-card h2 { margin: 0; color: var(--head); }
.go-card p { margin: 0; color: #3d5a48; }
.go-big { font-size: 2.2rem; font-weight: 800; color: var(--accent-d) !important; }
.go-levels { display: flex; gap: 8px; justify-content: center; }
.go-chip { flex: 1; padding: 10px 0; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.go-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.go-start { width: 100%; }
.go-record { font-size: .92rem; min-height: 1.2em; }
/* game controls: joystick left, buttons right (like most mobile sports games) */
.game-stage { touch-action: none; -webkit-user-select: none; user-select: none; }
.gc { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 14px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.gc[hidden] { display: none; }
.gc-stick { pointer-events: auto; width: 128px; height: 128px; border-radius: 50%; background: rgba(15, 40, 28, .28); border: 3px solid rgba(255, 255, 255, .75); display: grid; place-items: center; touch-action: none; }
.gc-stick.on { background: rgba(15, 40, 28, .38); }
.gc-knob { width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); pointer-events: none; }
.gc-btns { pointer-events: auto; position: relative; width: 150px; height: 170px; }
.gc-btn { position: absolute; border: 0; border-radius: 50%; font: inherit; font-weight: 900; letter-spacing: .03em; color: #fff; touch-action: none; cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .25), 0 6px 14px rgba(0, 0, 0, .25); -webkit-tap-highlight-color: transparent; transition: transform .05s; }
.gc-btn.down { transform: translateY(4px) scale(.96); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.gc-hit { right: 0; bottom: 0; width: 100px; height: 100px; background: var(--accent); font-size: 1.25rem; }
.gc-smash { left: 0; top: 0; width: 74px; height: 74px; background: #d9483b; font-size: .82rem; }
.gc-btn.ready { outline: 4px solid #d7ff1f; outline-offset: 2px; animation: gcPulse .5s ease-in-out infinite alternate; }
@keyframes gcPulse { to { outline-color: #fff; } }
.gc-full { position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--accent-d); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.gc-full .i-off, .gc-full.is-on .i-on { display: none; }
.gc-full.is-on .i-off { display: block; }
/* full screen (real full screen, or the fallback for iPhone Safari) */
.game-stage:fullscreen, .game-stage.is-full { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; background: #d9f0e4; }
.game-stage:-webkit-full-screen { width: 100vw; height: 100vh; }
.game-stage.is-full { position: fixed; inset: 0; z-index: 2147483000; }
.game-stage:fullscreen canvas, .game-stage.is-full canvas { width: 100%; height: 100%; aspect-ratio: auto; }
.game-stage:-webkit-full-screen canvas { width: 100%; height: 100%; aspect-ratio: auto; }
html.game-full, html.game-full body { overflow: hidden; }
html.game-full #sbpChat, html.game-playing #sbpChat { display: none; }
@media (max-height: 460px) { .gc-stick { width: 112px; height: 112px; } .gc-hit { width: 88px; height: 88px; } .gc-smash { width: 66px; height: 66px; } .gc-btns { width: 150px; height: 130px; } }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 4px 2px; }
.game-tip { color: var(--muted); font-size: .92rem; }
.game-sound { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; cursor: pointer; }
.game-sound input { width: 18px; height: 18px; accent-color: var(--accent); }
.play-how { margin: 18px auto 8px; max-width: 620px; padding-left: 20px; color: #3d5a48; display: grid; gap: 6px; }
.play-how kbd { background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font: inherit; font-weight: 700; }
.play-cta { margin-top: 14px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .game { padding: 4px; border-radius: 12px; } .play { padding-left: 12px; padding-right: 12px; } }

/* ---------- game: no text selection, no long-press menus, no page scroll while playing ---------- */
.game, .game * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
html.game-playing, html.game-playing body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.game-full, html.game-full body { overscroll-behavior: none; touch-action: none; }
.game-stage:fullscreen *, .game-stage.is-full * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- game polish: buttons, pause, overlays above controls ---------- */
.gc-full[hidden] { display: none; }
.gc-pause { right: 62px; }
.game-overlay { z-index: 4; }
.gc-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 3px solid rgba(255, 255, 255, .9); line-height: 1; }
.gc-btn svg, .gc-btn span { pointer-events: none; }
.gc-hit { width: 108px; height: 108px; font-size: 1.05rem; background: radial-gradient(circle at 35% 28%, #2fa864, #14663a 72%); }
.gc-smash { width: 80px; height: 80px; font-size: .72rem; background: radial-gradient(circle at 35% 28%, #f0705f, #b8321f 72%); }
.gc-btns { width: 168px; height: 184px; }
.gc-stick { background: rgba(15, 40, 28, .26); border-color: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .08); }
.gc-knob { background: radial-gradient(circle at 35% 30%, #ffffff, #dfe9e2); border: 2px solid rgba(20, 102, 58, .35); }
.gc-btn.ready { outline: 0; animation: gcReady .45s ease-in-out infinite alternate; }
@keyframes gcReady { from { box-shadow: 0 5px 0 rgba(0, 0, 0, .25), 0 0 0 4px #d7ff1f; transform: scale(1); } to { box-shadow: 0 5px 0 rgba(0, 0, 0, .25), 0 0 0 9px rgba(215, 255, 31, .45); transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .gc-btn.ready { animation: none; box-shadow: 0 5px 0 rgba(0, 0, 0, .25), 0 0 0 5px #d7ff1f; } }
@media (max-height: 460px) { .gc-hit { width: 94px; height: 94px; } .gc-smash { width: 70px; height: 70px; } .gc-btns { width: 150px; height: 158px; } }

/* ---------- game layout: on phones the controls get their own bar UNDER the court (never on top of it) ---------- */
.game-stage { display: flex; flex-direction: column; background: #2f7a4a; }
.game canvas { aspect-ratio: 5 / 7; flex: none; }
.game-stage .gc, .game-stage .gc[hidden] { position: static; display: flex; flex: none; height: 178px; align-items: center; padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); background: #2f7a4a; border-top: 3px solid rgba(255, 255, 255, .5); pointer-events: auto; }
.game-stage .gc[hidden] > * { visibility: hidden; }
.game-stage:fullscreen canvas, .game-stage.is-full canvas { flex: 1 1 0; min-height: 0; height: auto; aspect-ratio: auto; }
/* wide screens (phone sideways, computers in full screen): joystick and buttons sit at the far sides, clear of the court */
.game-stage.wide { display: block; }
.game-stage.wide canvas { width: 100%; height: 100%; }
.game-stage.wide .gc, .game-stage.wide .gc[hidden] { position: absolute; inset: auto 0 0 0; height: auto; align-items: flex-end; background: none; border: 0; padding: 0 18px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.game-stage.wide .gc[hidden] { display: none; }
.game-stage.wide .gc > * { pointer-events: auto; }

/* ---------- game always fits the visible screen ---------- */
.game-stage { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); scroll-margin-top: 80px; }
.game canvas { flex: 1 1 auto; min-height: 0; }
.game-stage.is-full, .game-stage:fullscreen { max-height: none; height: 100vh; height: 100dvh; }
.gc-close { left: 10px; right: auto; display: none; }
.game-stage.is-full .gc-close { display: grid; }
.game-stage:fullscreen .gc-close { display: none; }
@media (max-height: 620px) { .game-stage:not(.wide) .gc, .game-stage:not(.wide) .gc[hidden] { height: 150px; } .game-stage:not(.wide) .gc-stick { width: 112px; height: 112px; } .game-stage:not(.wide) .gc-hit { width: 94px; height: 94px; } .game-stage:not(.wide) .gc-smash { width: 68px; height: 68px; } .game-stage:not(.wide) .gc-btns { width: 150px; height: 140px; } }
.game-stage:not(.wide) .gc, .game-stage:not(.wide) .gc[hidden] { height: 204px; box-sizing: border-box; }
@media (max-height: 620px) { .game-stage:not(.wide) .gc, .game-stage:not(.wide) .gc[hidden] { height: 160px; } }

/* ---------- game: balanced control sizes (final) ---------- */
.game-stage .gc-stick { width: 104px; height: 104px; box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .08); }
.game-stage .gc-knob { width: 46px; height: 46px; }
.game-stage .gc-hit { width: 80px; height: 80px; font-size: .88rem; }
.game-stage .gc-hit svg { width: 24px; height: 24px; }
.game-stage .gc-smash { width: 60px; height: 60px; font-size: .58rem; }
.game-stage .gc-smash svg { width: 17px; height: 17px; }
.game-stage .gc-btns { width: 134px; height: 122px; }
.game-stage:not(.wide) .gc, .game-stage:not(.wide) .gc[hidden] { height: 134px; padding: 4px 18px calc(4px + env(safe-area-inset-bottom)); border-top-width: 2px; }
.game-stage .gc-full { width: 40px; height: 40px; border-radius: 11px; top: 8px; }
.game-stage .gc-full svg { width: 19px; height: 19px; }
.game-stage .gc-pause { right: 56px; }
@media (max-height: 620px) { .game-stage:not(.wide) .gc, .game-stage:not(.wide) .gc[hidden] { height: 122px; } .game-stage:not(.wide) .gc-stick { width: 96px; height: 96px; } .game-stage:not(.wide) .gc-hit { width: 76px; height: 76px; } .game-stage:not(.wide) .gc-smash { width: 56px; height: 56px; } .game-stage:not(.wide) .gc-btns { width: 126px; height: 112px; } }


.panel.is-sliding { overflow: hidden; }

/* venue stats: the third item drops to its own line on narrow phones */
@media (max-width: 560px) {
  .venue-stats .vs:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .venue-stats .vs:nth-child(3) { flex-basis: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
}


/* ---------- greener booking page (booking page only, so the admin keeps its own look) ---------- */
html:has(body.page-book) { background: #d3e5da; }
body.page-book { --bg: #d3e5da; --card-2: #e2efe7; --line: #b5d0bf; --line-2: #9bbca8; --muted: #50665a; --accent-soft: #d3e8da; }
body.page-book .panel, body.page-book .os-card, body.page-book .notice { background: #f3f9f5; }
body.page-book .day:not(.is-active), body.page-book .day-more:not(.is-active) { background: #fff; }
body.page-book .onsite-head h2 { color: var(--deep); }
body.page-book .panel-head h2 { color: var(--deep); }

/* ---------- dates on a phone: ONE line you swipe sideways; "More dates" waits at the end ---------- */
.date-hint { display: none; }
@media (max-width: 760px) {
  .date-strip { position: relative; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding: 0 12px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
  .date-strip::-webkit-scrollbar { display: none; }
  .date-strip .day { flex: 0 0 62px; padding: 8px 0; scroll-snap-align: start; }
  .date-strip .day .dow, .date-strip .day .dmon { font-size: 12px; }
  .date-strip .day .dnum { font-size: 1.35rem; }
  .date-strip .day-more { flex: 0 0 98px; grid-column: auto; padding: 8px 6px; scroll-snap-align: end; }
  .date-strip .day-more .dm-idle { flex-direction: column; gap: 4px; text-align: center; }
  /* soft fade on the side where there are more dates, so it is obvious the row slides */
  .date-strip.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 38px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 38px), transparent); }
  .date-strip.fade-l { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 38px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 38px), transparent); }
  .date-strip.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 38px), transparent); mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 38px), transparent); }
  .date-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent-d); animation: dateNudge 1.8s ease-in-out 3; }
  .date-hint svg { flex: none; }
}
@keyframes dateNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .date-hint { animation: none; } }


/* ---------- mobile polish: compact spacing, smaller photos, one-row "on site", tidy footer ---------- */
@media (max-width: 760px) {
  /* "What's on site": one swipeable row, so adding more items never adds height */
  .onsite-grid { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-padding-left: 16px; overscroll-behavior-x: contain; }
  .onsite-grid::-webkit-scrollbar { display: none; }
  .onsite-grid .os-card { flex: 0 0 min(300px, 80%); scroll-snap-align: start; }
}
@media (max-width: 560px) {
  /* photos: a bit shorter than before */
  .gallery .g-tile, .gallery .g-tile.g-x { aspect-ratio: 16 / 10; }
  .venue { padding: 12px 0 18px; }
  .venue-in { margin-top: 16px; gap: 16px; }
  .venue-name { font-size: 1.75rem; }
  .venue-about { font-size: 1rem; margin-bottom: 14px; }
  .open-pill { margin-bottom: 12px; }
  .venue-stats { padding-top: 14px; }
  .venue-card { padding: 16px 14px 14px; }

  .hero { padding: 16px 0; }
  .hero-in { gap: 12px; }
  .hero .hero-title { font-size: 1.3rem; }

  .onsite { padding: 18px 0 18px; }
  .onsite-head { margin-bottom: 10px; }
  .onsite-head h2 { font-size: 1.15rem; }
  .onsite-head p { display: none; }
  .os-card { padding: 11px 12px; gap: 10px; }
  .os-ico { width: 40px; height: 40px; border-radius: 10px; }
  .os-ico svg { width: 22px; height: 22px; }
  .os-card h3 { font-size: 1rem; }
  .os-card p { font-size: 13.5px; }

  /* booking area: tighter so it takes less scrolling */
  .notice { margin-top: 12px; padding: 9px 12px; font-size: 14.5px; }
  .panel { padding: 12px; margin-top: 10px; }
  .panel-head { margin-bottom: 10px; gap: 6px 10px; }
  .panel-head h2 { font-size: 1.05rem; }
  .hint { font-size: 13.5px; margin-bottom: 10px; }
  .grid-host + .hint { margin-top: 10px; }
  .day-more { padding: 6px; }
  .cell { height: 44px; }
  .loading { padding: 16px 4px; }
  .ball-loader { padding: 18px 0; }

  /* footer: logo + name on one line, contact and links side by side */
  .site-footer { margin-top: 28px; padding: 24px 0 calc(84px + env(safe-area-inset-bottom)); font-size: 14px; }
  .site-footer .foot { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .site-footer .foot > div { min-width: 0; overflow-wrap: anywhere; }
  .site-footer .foot > div:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .site-footer .foot-logo { width: 64px; max-width: none; margin: 0; padding: 6px 9px; grid-row: 1 / span 2; }
  .site-footer .foot > div:first-child strong { align-self: end; }
  .site-footer .foot > div:first-child p { align-self: start; }
  .site-footer p { margin: 0; }
  .site-footer .foot > div:not(:first-child) p { margin: 0 0 2px; }
  .site-footer .foot a { display: inline-block; padding: 5px 0; }
}
@media (max-width: 340px) {
  .site-footer .foot { grid-template-columns: 1fr; }
}


/* ---------- "What's on site": swipe cue (hint text, edge fade, dots) ---------- */
.os-hint, .os-dots { display: none; }
@media (max-width: 760px) {
  .onsite.is-scrollable .os-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent-d); animation: dateNudge 1.8s ease-in-out 3; }
  .os-hint svg { flex: none; }
  .onsite-head { flex-wrap: nowrap; align-items: center; }
  .onsite-head p { flex: 1 1 auto; min-width: 0; }
  .onsite-grid.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .onsite-grid.fade-l { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); }
  .onsite-grid.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 44px), transparent); }
  .onsite.is-scrollable .os-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
  .os-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .2s, width .2s; }
  .os-dots i.on { width: 18px; border-radius: 4px; background: var(--accent); }
}
@media (max-width: 560px) { .onsite-head p { display: none; } .onsite-head { justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .os-hint { animation: none !important; } }


/* ---------- booking page: the one important notice while a booking waits on payment ---------- */
.important { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 0; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--held-line); border-left: 5px solid var(--amber); background: var(--held-bg); color: var(--held-ink); font-size: 15px; line-height: 1.45; }
.important strong { font-size: 1.05rem; font-weight: 700; color: #5c4208; line-height: 1.3; }
.important.imp-ok { border-color: #cfe3d6; border-left-color: var(--accent); background: var(--accent-soft); color: var(--accent-d); }
.important.imp-ok strong { color: var(--deep); }
.important .imp-chat { align-self: flex-start; margin-top: 6px; }
@media (max-width: 480px) { .important { padding: 12px 14px; } .important .imp-chat { align-self: stretch; text-align: center; } }


/* ---------- booking ticket on desktop: wider page, details on the left, payment on the right ---------- */
@media (min-width: 900px) {
  .booking-wrap { max-width: 1120px; }
  .booking-wrap .ticket { padding: 22px 28px 24px; margin: 18px 0 24px; }
  .booking-wrap .ticket-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; }
  .booking-wrap .ticket-state { grid-column: 1; justify-self: start; margin-bottom: 6px; }
  .booking-wrap .ticket h1 { grid-column: 1; margin: 0; }
  .booking-wrap .ticket-top .ref { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; text-align: right; }
  .booking-wrap .countdown { margin-top: 14px; }
  .booking-wrap .important { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 2px; align-items: center; margin-top: 14px; }
  .booking-wrap .important strong, .booking-wrap .important span { grid-column: 1; }
  .booking-wrap .important .imp-chat { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
  .t-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; margin-top: 18px; }
  .t-grid.t-one { grid-template-columns: minmax(0, 640px); }
  .t-main .facts { margin-top: 0; grid-template-columns: 1fr 1fr; }
  .t-main .facts > div:last-child { grid-column: 1 / -1; }
  .t-main .sub:first-of-type { margin-top: 4px; }
  .t-side .pay { margin-top: 0; padding: 6px 20px 10px; }
  .t-side .proof-up { margin-top: 14px; padding: 6px 20px 18px; }
  .t-side .sub { margin-top: 12px; }
  .booking-wrap .actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
}


/* ---------- booking page extras ---------- */
.go-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.go-links .btn { text-decoration: none; }
.copy-num { margin-top: 6px; }
@media (max-width: 480px) { .go-links .btn { flex: 1 1 100%; text-align: center; } }


/* ---------- booking pop-up: review step ---------- */
.rv-box { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 16px 4px; margin: 0 0 14px; }
.rv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; padding: 10px 0 12px; }
.rv-facts > div:first-child { grid-column: 1 / -1; }
.rv-facts dt { font-size: 13px; color: var(--muted); }
.rv-facts dd { margin: 1px 0 0; font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
.rv-box .dlg-slots { margin: 0; }
.rv-box .dlg-sum { border-bottom: 0; margin-bottom: 0; }
.rv-how { margin: 0 0 6px; font-weight: 600; color: var(--head); }
.rv-next { margin: 4px 0 14px; color: var(--muted); font-size: 14.5px; }


/* ---------- mobile number box with the fixed +63 in front ---------- */
.phone-field { display: flex; align-items: stretch; margin-top: 5px; }
.phone-field .phone-cc { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--card-2); color: var(--head); font: 600 16px/1.3 var(--font-body); }
.phone-field input[type="tel"] { margin-top: 0; border-radius: 0 var(--r) var(--r) 0; flex: 1; min-width: 0; }
