/* Minimal styles for pages without a 1:1 mockup (placeholder "coming soon"
   pages). Home, search, and club pages use the mockup's own classes from
   styles.css (plus small page-scoped <style> blocks). */

.placeholder { text-align: center; padding: 90px 0; }
.placeholder h1 { font-size: 2rem; margin: 0 0 10px; }
.placeholder .btn { margin-top: 22px; }

/* ---- error pages (404 / 403 / 500 …) ---- */
.error-page { text-align: center; padding: 90px 0; max-width: 640px; }
.error-page .eyebrow { color: var(--c-gold-dark); }
.error-page h1 { font-size: 2.4rem; margin: 8px 0 12px; }
.error-page .section-sub { margin: 0 auto; max-width: 480px; }
.error-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- cookie consent (PECR non-blocking bottom bar + preferences modal) ---- */
#cookie-consent[hidden] { display: none; }
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: var(--c-forest-900); color: var(--c-cream);
  box-shadow: 0 -8px 30px -12px rgba(13,40,24,0.5);
  padding: 16px 0 max(16px, env(safe-area-inset-bottom));
}
.cc-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cc-text { flex: 1 1 420px; min-width: 260px; }
.cc-text h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--c-cream); }
.cc-text p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(245,241,232,0.82); }
.cc-text a { color: var(--c-gold); text-decoration: underline; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cc-banner .btn-ghost { color: var(--c-cream); border-color: rgba(245,241,232,0.35); }

.cc-modal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cc-modal[hidden] { display: none; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(13,40,24,0.55); }
.cc-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 520px;
  max-height: min(88vh, 720px); overflow-y: auto;
  background: var(--c-surface); color: var(--c-text-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px;
}
.cc-dialog-head { display: flex; align-items: center; justify-content: space-between; }
.cc-dialog-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0; color: var(--c-text-strong); }
.cc-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--c-text-muted); padding: 0 4px; }
.cc-modal-intro { font-size: 13.5px; color: var(--c-text-soft); margin: 6px 0 18px; line-height: 1.55; }
.cc-modal-intro a { color: var(--c-forest-700); text-decoration: underline; }
.cc-cat { border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; display: block; }
label.cc-cat { cursor: pointer; }
.cc-cat-head { display: flex; align-items: center; gap: 12px; }
.cc-cat-head strong { font-size: 15px; color: var(--c-text-strong); flex: 1; }
.cc-cat p { margin: 6px 0 0; font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }
.cc-always { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-fairway); }
/* switch built from the checkbox */
.cc-toggle input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch { flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px; background: var(--c-border-strong); position: relative; transition: background .15s ease; }
.cc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.cc-toggle input:checked ~ .cc-switch { background: var(--c-forest-700); }
.cc-toggle input:checked ~ .cc-switch::after { transform: translateX(18px); }
.cc-toggle input:focus-visible ~ .cc-switch { outline: 2px solid var(--c-gold-dark); outline-offset: 2px; }
.cc-modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
/* footer "Cookie settings" — a button styled to match the adjacent footer links */
.cc-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.cc-link:hover { text-decoration: underline; }

/* ---- club facts panel (setting / notable / facilities) ---- */
.club-facts { border-top: 1px solid var(--c-border); padding-top: 18px; }
.facts-cols { display: grid; gap: 20px 32px; grid-template-columns: 1fr; margin-top: 6px; }
@media (min-width: 640px) { .facts-cols { grid-template-columns: 1fr 1fr; } }
.facts-h { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-gold-dark); margin: 0 0 8px; }
.facts-list { margin: 0; padding-left: 18px; color: var(--c-text-soft); line-height: 1.7; font-size: 14px; }
.facts-list li { margin-bottom: 2px; }

/* ---- flash messages ---- */
.flash-wrap { margin: 18px auto 0; }
.flash {
  padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 10px;
  font-size: 14px; border: 1px solid var(--c-border);
}
.flash-ok { background: rgba(122,160,91,0.14); border-color: rgba(122,160,91,0.4); color: var(--c-text-strong); }
.flash-error { background: rgba(184,65,58,0.12); border-color: rgba(184,65,58,0.4); color: var(--c-text-strong); }

/* ---- OTP code input ---- */
.otp-input {
  width: 100%; text-align: center; font-family: var(--font-display);
  font-size: 30px; font-weight: 700; letter-spacing: 10px;
  padding: 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--c-border-strong); background: var(--c-surface);
  color: var(--c-text-strong);
}

/* ============================================================================
   Member "For you" feed (member_home.html) — ported from the mockup's
   home-member.html <style> block. Shared classes (rail, grid-cards, pill,
   section-head-row) live in styles.css.
   ========================================================================== */

/* Slim personalised greeting — deliberately NOT the marketing billboard.
   A signed-in member already bought in; lead with them, not the pitch. */
.member-greeting {
  background: var(--c-forest-900); color: var(--c-cream);
  padding: 22px 0 20px;
}
.member-greeting-inner { display: flex; align-items: center; gap: 16px; }
.member-greeting h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 5vw, 34px); letter-spacing: -0.025em; margin: 4px 0 2px;
}
.member-greeting p { color: rgba(245,241,232,0.72); font-size: 14px; margin: 0; }
.member-greeting .eyebrow { color: var(--c-gold); }
.member-greeting-avatar {
  margin-left: auto; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark));
  color: var(--c-forest-900); font-family: var(--font-display); font-weight: 600;
  font-size: 20px; display: grid; place-items: center; text-decoration: none;
}

/* Continue-watching — the video-first hero. This is our moat, so it leads.
   (Video/watch-progress lands in Stage 4; until then this renders a
   cold-start empty state.) */
.resume-card {
  display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 280px; text-decoration: none; color: var(--c-cream);
  background: var(--c-forest-900);
}
@media (min-width: 700px) { .resume-card { min-height: 320px; } }
.resume-card .resume-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.resume-card .resume-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,40,24,0.15) 0%, rgba(13,40,24,0.55) 45%, rgba(13,40,24,0.94) 100%);
}
.resume-card .resume-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px 22px; z-index: 2;
}
/* Sit the play affordance in the imagery zone (upper third) so it clears
   the text block on short mobile cards. */
.resume-card .resume-play {
  position: absolute; top: 34%; left: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%; z-index: 2;
  background: rgba(201,169,97,0.92); color: var(--c-forest-900);
  display: grid; place-items: center;
}
@media (min-width: 700px) { .resume-card .resume-play { top: 42%; } }
.resume-card .resume-play svg { width: 26px; height: 26px; margin-left: 3px; }
.resume-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(22px,4vw,30px);
  letter-spacing: -0.02em; margin: 8px 0 4px; color: var(--c-cream);
}
.resume-card .resume-meta { font-size: 13px; color: rgba(245,241,232,0.8); }
.resume-progress {
  height: 5px; background: rgba(245,241,232,0.25); border-radius: 5px;
  overflow: hidden; margin-top: 14px; max-width: 460px;
}
.resume-progress .bar { height: 100%; background: var(--c-gold); border-radius: 5px; }

/* Empty-state fallback for cold-start members (no favourites / plays yet). */
.rail-empty {
  border: 1px dashed var(--c-border); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: center; color: var(--c-text-muted);
  background: var(--c-bg-soft);
}
.rail-empty p { margin: 0 0 14px; }

/* Wishlist status rows (mirrors the profile page component). */
.wish-row {
  display: flex; gap: 12px; align-items: center; padding: 14px;
  background: var(--c-surface); border-radius: var(--radius-md);
  margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.wish-row .wish-thumb {
  width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0;
  background-color: var(--c-stone); background-size: cover; background-position: center;
}
.section-tight { padding-top: 32px; padding-bottom: 32px; }

/* ============================================================================
   Profile page (profile.html) — ported from the mockup's profile.html <style>
   block. Subscription / tier-gating / preview-strip styles intentionally
   omitted (billing is deferred; the preview strip is mockup-only).
   ========================================================================== */
.profile-header {
  background: linear-gradient(180deg, rgba(13,40,24,0.55) 0%, rgba(13,40,24,0.92) 100%),
              url('https://images.unsplash.com/photo-1535131749006-b7f58c99034b?w=2000&q=80&auto=format&fit=crop') center/cover no-repeat;
  color: var(--c-cream);
  padding: 48px 0 32px;
}
.me { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.me .avatar-lg { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark)); display:grid; place-items:center; font-family:var(--font-display); font-size:34px; color:var(--c-text-strong); font-weight:600; }
.me h1 { font-family: var(--font-display); font-size: clamp(28px,5vw,40px); font-weight:600; margin:0; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(245,241,232,0.18); border-radius: var(--radius-md); overflow: hidden; max-width: 580px; margin-top: 24px; }
.stat-strip .stat { background: rgba(13,40,24,0.55); padding: 12px 14px; }
.stat-strip .stat-num { font-family: var(--font-display); font-size: 22px; color: var(--c-cream); font-weight: 600; }
.stat-strip .stat-lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,241,232,0.7); }
.acct-tabs { background:var(--c-surface); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-md); display: flex; gap: 4px; margin-top: -28px; position: relative; z-index: 2; overflow-x: auto; scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab { background: transparent; border: none; padding: 12px 18px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; color:var(--c-text-muted); white-space: nowrap; cursor: pointer; }
.acct-tab.is-active { background: var(--c-forest-900); color: var(--c-cream); }
.pane { display: none; padding: 36px 0 8px; }
@media (min-width: 700px) { .pane { padding: 44px 0 16px; } }
.pane.is-active { display: block; }
.req-row { display: flex; gap: 12px; align-items: center; padding: 14px; background:var(--c-surface); border-radius: var(--radius-md); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.req-row .progress { height: 4px; background: var(--c-border); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.req-row .progress .bar { height: 100%; background: var(--c-gold); border-radius: 4px; }
.my-review { background:var(--c-surface); border-radius: var(--radius-md); padding: 22px 22px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); }
.my-review-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 14px; }

/* Date strip for each played course */
.play-dates {
  display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr);
  background: var(--c-border); border-radius: var(--radius-md); overflow: hidden;
  margin: 0 0 16px;
}
.play-dates .pd { background: var(--c-bg-soft); padding: 12px 14px; }
.play-dates .pd-l { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-muted); font-weight: 700; }
.play-dates .pd-v { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--c-text-strong); margin-top: 4px; }

/* The user's own feedback note — their words, only they can see */
.play-note { border-left: 3px solid var(--c-gold); padding: 6px 0 6px 14px; }
.play-note .pn-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold-dark); font-weight: 700; margin-bottom: 6px; }
.play-note p { font-style: normal; color: var(--c-text-strong); font-size: 15px; line-height: 1.55; margin: 0 0 8px; }
.play-note .pn-foot { font-size: 12px; color: var(--c-text-muted); }

/* ============================================================================
   Rankings / "Member plays" leaderboard (rankings.html) — ported from the
   mockup's rankings.html <style> block. Category sorts + region filters are
   server-rendered via GET params (mirrors /search); movement arrows deferred.
   ========================================================================== */
.ranking-hero {
  background: linear-gradient(135deg, #0d2818, #1a4a2a);
  color: var(--c-cream);
  padding: 60px 0 80px;
  position: relative; overflow: hidden;
}
.ranking-hero::after {
  content: ''; position: absolute; inset: 0; opacity: 0.15;
  background-image: url('https://images.unsplash.com/photo-1593111774240-d529f12cf4bb?w=2000&q=80&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.ranking-hero .wrap { position: relative; z-index: 1; }

.category-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 0 8px;
  margin: 28px 0 32px;
  scrollbar-width: none;
}
@media (min-width: 700px) { .category-tabs { margin: 36px 0 40px; } }
.category-tabs::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; padding: 10px 16px; border-radius: var(--radius-pill);
  background:var(--c-surface); border: 1px solid var(--c-border-strong);
  font-size: 13px; font-weight: 600; color:var(--c-text-soft); cursor: pointer;
  box-shadow: var(--shadow-sm); text-decoration: none; white-space: nowrap;
}
.cat-chip.is-on { background: var(--c-forest-900); color: var(--c-cream); border-color:var(--c-text-strong); }

.podium { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 32px; }
@media (min-width: 700px) { .podium { grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 20px; margin-bottom: 48px; } }
/* DOM order stays 1,2,3 so mobile stacks naturally. Desktop reorders to the
   classic podium: silver left, gold centre, bronze right. */
@media (min-width: 700px) {
  .podium-card.silver { order: 1; }
  .podium-card.gold   { order: 2; }
  .podium-card.bronze { order: 3; }
}
.podium-card {
  background:var(--c-surface); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden; text-decoration: none;
}
.podium-card .rank-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  background:var(--c-surface-stone); color:var(--c-text-soft);
  margin-bottom: 14px;
}
.podium-card.gold .rank-badge { background: linear-gradient(135deg, #c9a961, #8a6f37); color: var(--c-cream); }
.podium-card.silver .rank-badge { background: linear-gradient(135deg, #d4d4d4, #9a9a9a); color: #fff; }
.podium-card.bronze .rank-badge { background: linear-gradient(135deg, #cd7f32, #8b5a2b); color: #fff; }
@media (min-width: 700px) { .podium-card.gold { transform: translateY(-12px); } }
.podium-card .thumb { width:100%; aspect-ratio:16/9; border-radius:10px; background-color:var(--c-stone); background-size:cover; background-position:center; margin-bottom:12px; }
.podium-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 4px 0 6px; color:var(--c-text-strong); }
.podium-card .score { display: flex; align-items: baseline; gap: 4px; }
.podium-card .score-num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--c-gold-dark); }
.podium-card .score-of { font-size: 12px; color:var(--c-text-muted); }

.leaderboard { background:var(--c-surface); border-radius: var(--radius-lg); padding: 8px 16px; box-shadow: var(--shadow-md); }
.lb-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--c-border-soft); text-decoration: none; }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background:var(--c-bg-soft); border-radius: 8px; }
.lb-rank { font-family: var(--font-display); font-size: 22px; font-weight: 600; color:var(--c-text-soft); text-align: center; }
.lb-rank .movement { font-size: 11px; color: var(--c-text-muted); }
.lb-meta { min-width: 0; }
.lb-name { font-weight: 600; color:var(--c-text-strong); display: block; }
.lb-sub { font-size: 12px; color:var(--c-text-muted); }
.lb-score { text-align: right; }
.lb-score .num { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--c-gold-dark); }
.lb-score .sub { font-size: 11px; color:var(--c-text-muted); }

.ranking-explainer {
  background:var(--c-bg-soft); border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 13px; color:var(--c-text-soft);
  box-shadow: inset 3px 0 0 var(--c-gold), var(--shadow-sm);
}

.region-filters {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin: 24px 0 8px;
}
@media (min-width: 700px) { .region-filters { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.region-filters .rf { display: flex; flex-direction: column; gap: 6px; }
.region-filters .rf-l {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-muted); font-weight: 700;
}
.region-filters .rf-s {
  padding: 11px 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--c-border-strong);
  background: var(--c-surface); color: var(--c-text-strong);
  font: inherit; font-size: 14px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.region-filters .rf-s:focus {
  outline: none; border-color: var(--c-forest-600);
  box-shadow: 0 0 0 3px rgba(36,107,60,0.15);
}

/* ============================================================================
   Legal pages (terms / privacy / cookies) — a readable prose layout on the
   design tokens. No mockup source; kept deliberately plain.
   ========================================================================== */
.legal-hero { background: var(--c-forest-900); color: var(--c-cream); padding: 44px 0 36px; }
.legal-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 5vw, 42px); letter-spacing: -0.02em; margin: 6px 0 8px; color: var(--c-cream); }
.legal-hero .legal-meta { color: rgba(245,241,232,0.7); font-size: 13px; }
.legal-prose { max-width: 760px; margin: 0 auto; padding: 36px 0 64px; }
.legal-prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; margin: 34px 0 12px; color: var(--c-text-strong); scroll-margin-top: 90px; }
.legal-prose h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; color: var(--c-text-strong); }
.legal-prose p, .legal-prose li { color: var(--c-text-soft); line-height: 1.7; font-size: 15px; }
.legal-prose p { margin: 0 0 14px; }
.legal-prose ul, .legal-prose ol { margin: 8px 0 16px; padding-left: 22px; }
.legal-prose li { margin-bottom: 7px; }
.legal-prose a { color: var(--c-forest-700); font-weight: 600; }
.legal-prose strong { color: var(--c-text-strong); }
.legal-prose .lead { font-size: 16px; color: var(--c-text-soft); }
.legal-note { background: var(--c-bg-soft); border-radius: var(--radius-md); padding: 14px 18px; margin: 18px 0; font-size: 14px; box-shadow: inset 3px 0 0 var(--c-gold); }
.legal-toc { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 18px 22px; margin: 8px 0 28px; }
.legal-toc-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-muted); font-weight: 700; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }
.legal-toc li { margin-bottom: 6px; font-size: 14px; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); vertical-align: top; color: var(--c-text-soft); }
.legal-table th { color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ============================================================================
   Course-tour player (club page) — Bunny iframe stage + chapter rail.
   Ported from the mockup's video-player UX, backed by Bunny embeds.
   ========================================================================== */
.tour-player { margin-bottom: 8px; }
.tour-stage { position: relative; aspect-ratio: 16 / 9; background: var(--c-forest-900); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.tour-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* Inline native <video> (HLS) — plays in-app on iOS (no Safari breakout). object-fit
   contain shows the whole frame; the stage aspect is matched to the clip's orientation
   so there's no letterboxing in practice. Poster comes from the video's poster attr. */
.tour-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--c-forest-900); display: block; z-index: 1; }
/* Tap-to-load facade: the video shows its poster + a play button until tapped;
   the HLS stream loads only on tap. Landscape 16:9 stage on every viewport. */
.tour-stage { cursor: pointer; }
.tour-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(201,169,97,0.94); color: var(--c-forest-900); display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .12s ease, background .12s ease; }
.tour-play svg { margin-left: 4px; }
.tour-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--c-gold); }
.tour-stage.is-playing { cursor: default; }
.tour-stage.is-playing .tour-play { display: none; }
.tour-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 2px 12px; flex-wrap: wrap; }
.tour-now { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--c-text-strong); }
.tour-count { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); font-weight: 700; }
.chapter-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.chapter-rail::-webkit-scrollbar { height: 6px; }
.chapter-rail::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: 999px; }
.chapter-rail .chapter { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--c-border); background: var(--c-surface); cursor: pointer; text-align: left; max-width: 240px; }
.chapter-rail .chapter:hover { border-color: var(--c-forest-600); }
.chapter-rail .chapter.is-active { background: var(--c-forest-900); border-color: var(--c-forest-900); }
.chapter-rail .ch-num { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--c-bg-soft); color: var(--c-forest-900); font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.chapter-rail .chapter.is-active .ch-num { background: var(--c-gold); color: var(--c-forest-900); }
.chapter-rail .ch-text { display: flex; flex-direction: column; min-width: 0; }
.chapter-rail .ch-title { font-size: 13px; font-weight: 600; color: var(--c-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapter-rail .chapter.is-active .ch-title { color: var(--c-cream); }
.chapter-rail .ch-sub { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapter-rail .chapter.is-active .ch-sub { color: rgba(245,241,232,0.7); }

/* Tour video-preview on cards (replaces the satellite image where a club has a
   published tour). Streaming is capped by tour-cards.js — see that file. */
.card-thumb.has-tour { background: #0a0a0a; }
.card-thumb .thumb-poster { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.card-thumb .thumb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; z-index: 1; }
.card-thumb .thumb-video.is-ready { opacity: 1; }
.card-thumb.has-tour .tour-flag { position: absolute; z-index: 3; top: 10px; left: 10px; display: inline-flex; align-items: center; padding: 4px 9px; border-radius: var(--radius-pill); background: rgba(13,40,24,0.7); color: var(--c-gold); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card-thumb.has-tour .tour-flag svg { width: 12px; height: 12px; }
