/* ──────────────────────────────────────────────────────────────
   Chee Chan Golf Resort — Theme (green golf palette)
   Overrides the ccg-core.css defaults. Mirrors original theme3.css.
   Fonts are loaded via <link> in the <head> (no @import here).
   ────────────────────────────────────────────────────────────── */

:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --primary: #065f46;
  --primary-hover: #044331;
  --accent: #10b981;
  --accent-hover: #059669;
  --bg-page: #f0fdf4;
  --bg-card: #ffffff;
  --bg-dark: #064e3b;
  --text-main: #60513b;   /* dark brown (brand) instead of near-black */
  --text-muted: #475569;
  --text-light: #ffffff;
  --brown: #6f6152;
  --brown-dark: #574d41;
  --cream: #f6f3ee;
  --border-radius: 20px;
  --border-color: rgba(6, 95, 70, 0.12);
  --box-shadow: 0 12px 36px rgba(6, 95, 70, 0.05);
}

/* ── Accessibility & performance enhancements (visual output unchanged) ── */

/* Skip link — visible only when focused via keyboard */
.ccg-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.ccg-skip-link:focus {
  left: 0;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus (does not affect mouse users) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Hamburger becomes a real <button>; strip native button styling so it
   looks exactly like the original <div>. */
button.hamburger {
  background: none;
  border: none;
  padding: 0;
}

/* Video play control is now a real <button>; keep it visually identical. */
button.play-circle {
  border: none;
}

/* Language switcher — dropdown with national flags (SVG) */
.ccg-lang { position: relative; }
.ccg-flag {
  width: 22px; height: 15px; line-height: 0; display: inline-flex;
  border-radius: 3px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.ccg-flag svg { width: 100%; height: 100%; display: block; }
/* Fallback chip when we have no SVG flag for a language */
.ccg-flag-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 15px; padding: 0 3px; flex-shrink: 0;
  font-size: .58rem; font-weight: 800; letter-spacing: .3px; border-radius: 3px;
  background: var(--primary); color: #fff;
}
/* Emoji flags (dynamic languages) — override the fixed SVG box sizing */
.ccg-flag-emoji {
  width: auto; height: auto; box-shadow: none; border-radius: 0;
  font-size: 1.1rem; line-height: 1; overflow: visible;
}
.ccg-lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--border-color); border-radius: 50px;
  padding: 6px 12px; cursor: pointer; font-family: inherit;
  font-size: .78rem; font-weight: 700; letter-spacing: .5px; color: var(--text-main);
  transition: var(--transition);
}
.ccg-lang-label { display: inline-flex; align-items: center; gap: 7px; }
.ccg-lang-toggle:hover { border-color: var(--primary); background: rgba(6,95,70,.04); }
.ccg-caret { width: 10px; height: 6px; color: var(--text-muted); transition: transform .3s ease; flex-shrink: 0; }
.ccg-lang-toggle[aria-expanded="true"] .ccg-caret,
.ccg-lang.open .ccg-caret { transform: rotate(180deg); }
.ccg-lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 168px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; box-shadow: var(--box-shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1020;
}
.ccg-lang.open .ccg-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ccg-lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--text-main);
  text-transform: none; letter-spacing: 0; transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.ccg-lang-item-left { display: inline-flex; align-items: center; gap: 10px; }
.ccg-lang-check { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.ccg-lang-menu a::after { display: none !important; }
.ccg-lang-menu a:hover { background: var(--bg-page); color: var(--primary); }
.ccg-lang-menu a.active { color: var(--primary); background: rgba(6,95,70,.08); font-weight: 700; }

/* ── Refined hover states (images & cards) ── */
.ccg-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6,78,59,.38));
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.ccg-card:hover .ccg-card-img-wrap::after { opacity: 1; }
.ccg-card-img-wrap img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ccg-card:hover .ccg-card-img-wrap img { transform: scale(1.09); }
.ccg-card:hover .ccg-card-link { color: var(--accent-hover); }

/* Split feature images (restaurant / academy) */
.ccg-split-img-wrap { position: relative; }
.ccg-split-img-wrap img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ccg-split-img-wrap:hover img { transform: scale(1.05); }

/* Gallery card interaction now lives in ccg-core.css (.ccg-gal-card).
   Keep only a gentle brightness lift on hover here. */
.ccg-gal-card:hover img { filter: brightness(1.05); }

/* Contact map + sponsor cards */
.ccg-contact-map { transition: box-shadow .4s ease; }
.ccg-contact-map:hover { box-shadow: var(--box-shadow-hover); }
.ccg-sponsor-card { transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s ease, border-color .35s ease; }
.ccg-sponsor-card:hover { border-color: var(--primary); }

/* Contact form */
.ccg-contact-form {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.ccg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ccg-form-grid .ccg-col-span { grid-column: 1 / -1; }
.ccg-contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background-color: var(--bg-page);
  outline: none;
  resize: vertical;
  transition: var(--transition);
}
.ccg-contact-form textarea:focus,
.ccg-contact-form input:focus { border-color: var(--primary); background-color: var(--bg-card); }
.ccg-opt { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.ccg-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.ccg-consent input { margin-top: 3px; flex-shrink: 0; }
.ccg-form-result { margin: 12px 0; font-size: 0.9rem; font-weight: 600; }
.ccg-form-result.ok { color: var(--accent-hover); }
.ccg-form-result.err { color: #dc2626; }
@media (max-width: 640px) {
  .ccg-form-grid { grid-template-columns: 1fr; }
  .ccg-contact-form { padding: 28px 20px; }
}

/* Cookie consent */
/* The `hidden` attribute must win over the display rules below
   (author CSS otherwise overrides the browser default [hidden]{display:none}). */
.ccg-cookie-banner[hidden],
.ccg-cookie-prefs[hidden] { display: none !important; }
.ccg-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998;
  max-width: 1080px; margin: 0 auto;
  background: #fff; color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(6, 40, 30, .22);
  padding: 18px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.ccg-cookie-x {
  position: absolute; top: -14px; right: 16px;
  width: 32px; height: 32px; border: 1px solid var(--border-color); background: #ffffff;
  color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all .2s ease;
  z-index: 10;
}
.ccg-cookie-x:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); transform: scale(1.1); }
.ccg-cookie-ic { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.ccg-cookie-text { font-size: .88rem; flex: 1 1 300px; margin: 0; line-height: 1.6; color: var(--text-muted); }
.ccg-cookie-text a { color: var(--primary); text-decoration: underline; font-weight: 600; }
.ccg-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Banner buttons — readable on the light card, in the logo tone */
.ccg-cookie-banner .ccg-btn-outline {
  color: var(--primary); border: 2px solid var(--primary); background: transparent; padding: 10px 20px;
}
.ccg-cookie-banner .ccg-btn-outline:hover { background: var(--primary); color: #fff; }
.ccg-cookie-prefs {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,34,53,.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ccg-cookie-prefs-box {
  background: var(--bg-card); color: var(--text-main); border-radius: 16px;
  padding: 32px; max-width: 440px; width: 100%; box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.ccg-cookie-prefs-box h3 { font-family: var(--font-display); margin-bottom: 18px; color: var(--primary); }
.ccg-cookie-cat { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: .92rem; }
.ccg-page-body { font-size: 1rem; line-height: 1.8; color: var(--text-muted); }
.ccg-page-body h2, .ccg-page-body h3 { color: var(--text-main); margin: 28px 0 12px; font-family: var(--font-display); }
.ccg-page-body p { margin-bottom: 14px; }
.ccg-page-body ul { margin: 0 0 14px 20px; }
.ccg-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.ccg-legal-links a, .ccg-legal-links button {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: .78rem; color: rgba(255,255,255,.55); font-family: inherit;
}
.ccg-legal-links a:hover, .ccg-legal-links button:hover { color: var(--accent); }

/* ══════════════ Golf Course — 18-hole guide page ══════════════ */
.ccg-holes-hero {
  position: relative; min-height: 56vh; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; text-align: center; padding: 120px 24px 60px;
}
.ccg-holes-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,37,31,.55), rgba(3,37,31,.78)); }
.ccg-holes-hero-inner { position: relative; z-index: 1; color: #fff; max-width: 720px; }
/* Inside the slide-in menu the language list expands in place instead of
   floating: a right-aligned popup would hang outside the narrow panel and
   get clipped by its scroll container. */
@media (max-width: 1024px) {
  .nav-links .ccg-lang {
    position: relative !important;
    width: 100%; margin-top: auto; padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,.08); display: block;
  }
  .nav-links .ccg-lang-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-radius: 14px; background: var(--bg-page);
    border: 1.5px solid var(--border-color); font-size: .95rem; font-weight: 600;
    color: var(--text-main); transition: var(--transition);
  }
  .nav-links .ccg-lang.open .ccg-lang-toggle {
    border-color: var(--primary); background: rgba(6,95,70,.06);
  }
  .nav-links .ccg-lang-menu {
    position: absolute !important;
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px !important;
    background: #ffffff !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 -12px 36px rgba(6, 40, 30, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
    transition: opacity .25s cubic-bezier(.2,.8,.25,1), transform .25s cubic-bezier(.2,.8,.25,1), visibility .25s !important;
    display: block !important;
    z-index: 1050 !important;
  }
  .nav-links .ccg-lang.open .ccg-lang-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  .nav-links .ccg-lang-menu a { padding: 12px 14px; font-size: .95rem; white-space: nowrap !important; }
}

/* Tablets (769–1024px): the full menu + booking button no longer fit on one
   line and overflow the header, so the slide-in menu takes over at this size too. */
@media (min-width: 769px) and (max-width: 1024px) {
  #navbar { padding: 0 26px; }
  .nav-links {
    position: fixed; top: 80px; right: -100%;
    width: 62%; max-width: 340px; height: calc(100vh - 80px);
    background-color: var(--bg-card);
    flex-direction: column; align-items: flex-start;
    padding: 36px 24px; gap: 18px; overflow-y: auto;
    box-shadow: -10px 10px 30px rgba(0,0,0,.15);
    transition: var(--transition);
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    font-size: 1rem; width: 100%; display: block; color: var(--text-main);
    border-bottom: 1px solid rgba(0,0,0,.05); padding-bottom: 10px;
  }
  .nav-links a::after { display: none; }
  .nav-book-btn { text-align: center; border-radius: 8px; margin-top: 10px; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* ── Section headings: prominent brand-tone badge + flourishes ── */
.ccg-sec-badge {
  background: var(--primary); color: #fff;
  font-size: .78rem; letter-spacing: 2.5px;
  padding: 8px 24px; border-radius: 50px;
  box-shadow: 0 6px 16px rgba(6,95,70,.22);
}
/* Emerald lines flanking the badge — grow outward when the section scrolls in */
.ccg-sec-head .ccg-sec-badge { position: relative; }
.ccg-sec-head .ccg-sec-badge::before,
.ccg-sec-head .ccg-sec-badge::after {
  content: ''; position: absolute; top: 50%; width: 64px; height: 2px;
  border-radius: 2px; transform: translateY(-50%) scaleX(0);
}
.ccg-sec-head .ccg-sec-badge::before {
  right: 100%; margin-right: 14px; transform-origin: right center;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.ccg-sec-head .ccg-sec-badge::after {
  left: 100%; margin-left: 14px; transform-origin: left center;
  background: linear-gradient(270deg, transparent, var(--accent));
}
.ccg-sec-head.visible .ccg-sec-badge::before,
.ccg-sec-head.visible .ccg-sec-badge::after {
  transform: translateY(-50%) scaleX(1);
  transition: transform .7s ease .2s;
}
/* Gradient rule under the section title */
.ccg-sec-head .ccg-sec-title { position: relative; padding-bottom: 18px; }
.ccg-sec-head .ccg-sec-title::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: translateX(-50%) scaleX(0);
}
.ccg-sec-head.visible .ccg-sec-title::after {
  transform: translateX(-50%) scaleX(1);
  transition: transform .6s ease .4s;
}
/* Restaurant menu item photo (admin-managed; falls back to the emoji icon) */
.ccg-menu-img {
  width: 56px; height: 56px; flex-shrink: 0; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border-color); display: block;
}

/* Dark sections: emerald badge + light emerald accents on deep green */
.ccg-section.dark {
  background: linear-gradient(180deg, #07241b 0%, #0b3d2c 100%);
  color: #fff;
}
.ccg-section.dark .ccg-sec-title {
  color: #ffffff;
}
.ccg-section.dark .ccg-sec-desc {
  color: rgba(255, 255, 255, 0.85);
}
.ccg-section.dark .ccg-sec-badge {
  background: rgba(201, 165, 92, 0.25); color: #edd39a; border: 1px solid rgba(201, 165, 92, 0.4);
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.ccg-section.dark .ccg-sec-title::after { background: linear-gradient(90deg, #c9a55c, #edd39a); }
.ccg-section.dark .ccg-card-link { color: #edd39a; }
.ccg-section.dark .ccg-card:hover .ccg-card-link { color: #fff; }
/* Course-page hero badge (no .ccg-sec-head wrapper) */
.ccg-holes-hero .ccg-sec-badge { background: var(--accent); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
/* Site animation mode "none": flourishes fully drawn, no scale animation */
.anim-none .ccg-sec-head .ccg-sec-badge::before,
.anim-none .ccg-sec-head .ccg-sec-badge::after { transform: translateY(-50%) scaleX(1); transition: none; }
.anim-none .ccg-sec-head .ccg-sec-title::after { transform: translateX(-50%) scaleX(1); transition: none; }
/* Reduced motion: lines/rule always fully drawn, no scale animation */
@media (prefers-reduced-motion: reduce) {
  .ccg-sec-head .ccg-sec-badge::before,
  .ccg-sec-head .ccg-sec-badge::after { transform: translateY(-50%) scaleX(1) !important; transition: none !important; }
  .ccg-sec-head .ccg-sec-title::after { transform: translateX(-50%) scaleX(1) !important; transition: none !important; }
}
@media (max-width: 600px) {
  .ccg-sec-head .ccg-sec-badge::before,
  .ccg-sec-head .ccg-sec-badge::after { width: 34px; }
}
.ccg-holes-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); margin: 14px 0 10px; color: #fff; }
.ccg-holes-hero p { color: rgba(255,255,255,.85); margin-bottom: 24px; line-height: 1.7; }
.ccg-holes-stats { display: flex; gap: 34px; justify-content: center; margin-bottom: 26px; }
.ccg-holes-stats b { display: block; font-family: var(--font-display); font-size: 2rem; color: #e0bd7a; }
.ccg-holes-stats span { font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); }
.ccg-holes-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Course intro paragraph (official copy per language) */
.ccg-holes-intro { background: var(--bg-cream, #faf7f0); border-bottom: 1px solid var(--border-color); }
.ccg-holes-intro .ccg-container { max-width: 860px; padding-top: 40px; padding-bottom: 40px; }
.ccg-holes-intro p {
  margin: 0; text-align: center; line-height: 1.95; color: var(--text-secondary, #55524a);
  font-size: 1.02rem;
}

/* Sticky hole picker */
.ccg-holes-nav {
  position: sticky; top: 64px; z-index: 500;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.ccg-holes-nav-inner {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px;
  max-width: 900px; margin: 0 auto; scrollbar-width: none;
}
.ccg-holes-nav-inner::-webkit-scrollbar { display: none; }
.ccg-holes-nav a {
  flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--border-color); color: var(--text-main);
  font-weight: 700; font-size: .82rem; transition: all .15s ease;
}
.ccg-holes-nav a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Hole picker pills (01–18) */
.ccg-holes-nav button {
  flex: 0 0 auto; min-width: 42px; height: 38px; padding: 0 10px;
  border: 1.5px solid var(--border-color); border-radius: 8px; background: #f6f8f7;
  color: var(--primary); font-weight: 700; font-size: .85rem; cursor: pointer;
  transition: all .15s ease;
}
.ccg-holes-nav button:hover { border-color: var(--primary); }
.ccg-holes-nav button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* One hole at a time — big landscape media on top, info below */
.ccg-hole-panel { display: none; animation: ccgHoleIn .35s ease; }
.ccg-hole-panel.active { display: block; }
@keyframes ccgHoleIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Portrait hole map beside the info (info left, map right; video swaps in-place) */
.ccg-hole-main {
  display: grid; grid-template-columns: 1fr minmax(280px, 380px);
  grid-template-areas: "body map" "btns map";
  gap: 8px 44px; align-items: start;
}
.ccg-hole-body { grid-area: body; }
.ccg-hole-mapstage { grid-area: map; }
/* ภาพ / วิดีโอ toggle pair (sits under the tee table; under the map on phones) */
.ccg-hole-viewbtns { grid-area: btns; display: flex; gap: 10px; align-self: start; }
.ccg-hole-viewbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 26px;
  border-radius: 30px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary);
  font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.ccg-hole-viewbtn:hover { background: rgba(6,95,70,.08); }
.ccg-hole-viewbtn.active { background: var(--primary); color: #fff; }
.ccg-hole-mapstage {
  position: relative; width: 100%; aspect-ratio: 707 / 1000;
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--border-color); box-shadow: 0 14px 36px rgba(0,0,0,.12);
}
.ccg-hole-mapstage-img { position: absolute; inset: 0; }
.ccg-hole-mapstage-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.ccg-hole-mapstage.is-photo .ccg-hole-mapstage-img img { object-fit: cover; }
.ccg-hole-mapstage-video { position: absolute; inset: 0; display: none; background: #04231a; }
.ccg-hole-mapstage.is-video { aspect-ratio: 16 / 9; }
.ccg-hole-mapstage.is-video .ccg-hole-mapstage-video { display: block; }
.ccg-hole-mapstage.is-video .ccg-hole-mapstage-img { visibility: hidden; }
.ccg-hole-mapstage-video iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Atmosphere / view photos below the hole info */
.ccg-hole-views { margin-top: 36px; }
.ccg-hole-views-label {
  font-family: var(--font-display); font-weight: 700; color: var(--text-main);
  font-size: 1.05rem; margin-bottom: 12px;
}
.ccg-hole-views-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.ccg-hole-views-strip img {
  flex: 0 0 auto; width: 230px; height: 150px; object-fit: cover; display: block;
  border-radius: 12px; border: 1px solid var(--border-color); cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ccg-hole-views-strip img:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }

.ccg-hole-h { font-family: var(--font-display); font-size: 2rem; color: var(--text-main); margin: 0 0 2px; }
.ccg-hole-parline { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.ccg-hole-desc { color: var(--text-muted); line-height: 1.85; margin-bottom: 22px; }

/* Tee distance table — old-site style coloured header */
.ccg-tee-table { border-collapse: collapse; min-width: 320px; }
.ccg-tee-table th {
  padding: 9px 22px; font-size: .82rem; font-weight: 700; letter-spacing: 1px; text-align: center;
}
.ccg-tee-table th.t-red { background: #b03a2e; color: #fff; }
.ccg-tee-table th.t-white { background: #fff; color: #1d1d1f; border: 1px solid var(--border-color); }
.ccg-tee-table th.t-blue { background: #2471a3; color: #fff; }
.ccg-tee-table th.t-black { background: #1d1d1f; color: #fff; }
.ccg-tee-table td {
  padding: 9px 22px; text-align: center; font-weight: 600; color: var(--text-main);
  border: 1px solid var(--border-color); background: #fff;
}
.ccg-tee-note { font-size: .72rem; color: var(--text-muted); margin: 6px 0 22px; }

/* Photo / video toggle buttons */
.ccg-hole-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 45% 30%, #0f5a41, #07352a);
}
.ccg-hole-placeholder b { font-family: var(--font-display); font-size: 2.2rem; color: #e0bd7a; letter-spacing: 2px; }
.ccg-hole-placeholder span { color: rgba(255,255,255,.75); letter-spacing: 3px; font-size: .85rem; }

@media (max-width: 860px) {
  .ccg-hole-main { grid-template-columns: 1fr; grid-template-areas: "map" "btns" "body"; gap: 16px; }
  .ccg-hole-mapstage { max-width: 340px; margin: 0 auto; width: 100%; }
  .ccg-hole-viewbtns { justify-content: center; }
  .ccg-hole-viewbtn { flex: 1 1 0; max-width: 170px; justify-content: center; }
  .ccg-hole-mapstage.is-video { max-width: none; }
  .ccg-hole-views-strip img { width: 180px; height: 120px; }
  .ccg-tee-table { min-width: 0; width: 100%; }
  .ccg-tee-table th, .ccg-tee-table td { padding: 8px 10px; }
  .ccg-holes-nav { top: 0; }
  .ccg-holes-stats { gap: 24px; }
}

/* Booking — coming soon state */
.ccg-booking-soon { text-align: center; padding: 40px 28px; }
.ccg-booking-soon-badge {
  display: inline-block; background: rgba(198,154,85,.14); color: #8a6a34;
  border: 1px solid rgba(198,154,85,.45); border-radius: 30px;
  font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 18px; margin-bottom: 14px;
}
.ccg-booking-soon h3 { font-family: var(--font-display); color: var(--primary); font-size: 1.5rem; margin: 0 0 8px; }
.ccg-booking-soon p { color: var(--text-muted); font-size: .95rem; max-width: 520px; margin: 0 auto 22px; line-height: 1.7; }
.ccg-booking-soon-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ccg-booking-soon-line { color: var(--primary); border-color: var(--primary); }
.ccg-booking-soon-line:hover { background: var(--primary); color: #fff; }

/* ══════════════ Interaction & Responsive polish ══════════════ */

/* Fixed-header anchor offset — headings land below the navbar, not under it */
section[id], #booking { scroll-margin-top: 100px; }
#hero { scroll-margin-top: 0; }

/* Prevent card grids from overflowing narrow phones (min() caps the track) */
.ccg-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

/* Back-to-top button (injected by JS) */
.ccg-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: var(--transition);
}
.ccg-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.ccg-to-top:hover { background: var(--primary-hover); transform: translateY(-3px); }
/* Hide the floating button while the mobile drawer is open */
body.ccg-menu-open .ccg-to-top { opacity: 0 !important; visibility: hidden !important; }

/* Hero slide indicator dots (injected by JS) */
.ccg-hero-dots {
  position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.ccg-hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; border: none;
  background: rgba(255,255,255,.5); cursor: pointer; transition: var(--transition);
}
.ccg-hero-dots button:hover { background: rgba(255,255,255,.8); }
.ccg-hero-dots button.active { background: var(--accent); width: 28px; border-radius: 6px; }

/* Scroll-spy: highlight the nav link of the section in view */
.nav-links a.ccg-active { color: var(--primary); }
.nav-links a.ccg-active::after { width: 100%; }

/* Gallery drag-to-scroll */
.ccg-gallery-strip { cursor: grab; }
.ccg-gallery-strip.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ccg-gallery-strip.dragging img { pointer-events: none; }

/* iOS Safari can't render fixed backgrounds — avoid the broken parallax */
@media (max-width: 1024px) {
  .ccg-section { padding: 80px 24px; }
  .video-bg { background-attachment: scroll; }
}

/* Cookie banner entrance */
.ccg-cookie-banner:not([hidden]) { animation: ccgSlideUp .45s cubic-bezier(.25,.8,.25,1); }
@keyframes ccgSlideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Mobile nav drawer backdrop (element injected by JS) */
.ccg-nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,34,53,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 998;
}
.ccg-nav-backdrop.show { opacity: 1; visibility: visible; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .ccg-section { padding: 56px 20px; }
  .ccg-sec-head { margin-bottom: 34px; }

  /* Hero on phones — scenic slides, full-bleed cover, text always fits.
     (Promo posters belong in the Popup announcement, not the hero.) */
  #hero { min-height: 86vh; }
  .hero-content { margin-top: 0; padding: 0 18px; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .hero-subtitle { font-size: .9rem; margin-bottom: 18px; }
  .hero-badge { font-size: .68rem; padding: 7px 16px; }
  .hero-overlay {
    background:
      radial-gradient(ellipse 85% 45% at 50% 44%, rgba(0,18,12,.5) 0%, transparent 70%),
      linear-gradient(180deg, rgba(3,37,31,.42) 0%, rgba(3,37,31,.72) 100%);
  }
  .ccg-booking-row { margin-top: -50px; }
  .ccg-hero-dots { bottom: 10px; }
  #video-section { height: 42vh; min-height: 300px; }

  section[id], #booking { scroll-margin-top: 76px; }

  /* Navigation drawer — slide with transform (GPU) for a smooth open/close */
  #navbar { padding: 0 20px; }
  .nav-links {
    width: min(85%, 340px); padding: 26px 22px 36px; gap: 4px;
    overflow-y: auto; display: flex;
    right: 0; transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
  }
  .nav-links.open { transform: translateX(0); }
  /* Links cascade in when the drawer opens */
  .nav-links > li {
    opacity: 0; transform: translateX(20px);
    transition: opacity .35s ease, transform .35s ease;
  }
  .nav-links.open > li { opacity: 1; transform: translateX(0); }
  .nav-links.open > li:nth-child(1) { transition-delay: .10s; }
  .nav-links.open > li:nth-child(2) { transition-delay: .15s; }
  .nav-links.open > li:nth-child(3) { transition-delay: .20s; }
  .nav-links.open > li:nth-child(4) { transition-delay: .25s; }
  .nav-links.open > li:nth-child(5) { transition-delay: .30s; }
  .nav-links.open > li:nth-child(6) { transition-delay: .35s; }
  .nav-links.open > li:nth-child(7) { transition-delay: .40s; }
  .nav-links.open > li:nth-child(8) { transition-delay: .45s; }
  .nav-links.open > li:nth-child(9) { transition-delay: .50s; }
  .nav-links a {
    font-size: 1.02rem; padding: 15px 6px; width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.05);
  }
  .nav-links .nav-book-btn {
    margin-top: 18px; text-align: center; padding: 15px 24px !important;
    border-radius: 12px; font-size: 1rem; box-shadow: 0 6px 18px rgba(6,95,70,.25);
  }
  .ccg-lang {
    width: 100%; margin-top: auto; padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,.08);
    display: block;
  }

  /* Cookie banner: centered bottom-sheet, thumb-friendly stacked buttons */
  .ccg-cookie-banner {
    left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0;
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 12px; flex-direction: column; text-align: center;
  }
  .ccg-cookie-ic { font-size: 2rem; }
  .ccg-cookie-text { font-size: .84rem; flex: none; }
  .ccg-cookie-actions { width: 100%; flex-direction: column; gap: 10px; }
  .ccg-cookie-actions button { width: 100%; flex: none; padding: 13px; font-size: .82rem; }
  /* Prioritise the recommended action */
  .ccg-cookie-actions [data-cookie="accept"] { order: -1; }

  .ccg-to-top { right: 16px; bottom: 16px; }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  .ccg-section { padding: 46px 16px; }
  .ccg-booking-widget { padding: 20px; }
  .ccg-rates-card, .ccg-contact-form { padding: 26px 18px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns a { justify-content: center; }
}

/* Popup announcement */
.ccg-popup {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,34,53,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.ccg-popup.show { opacity: 1; visibility: visible; }
.ccg-popup-box {
  background: var(--bg-card); border-radius: var(--border-radius);
  max-width: 440px; width: 100%; overflow: hidden; position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  transform: scale(.94); transition: transform .35s cubic-bezier(.25,.8,.25,1);
}
.ccg-popup.show .ccg-popup-box { transform: scale(1); }
.ccg-popup-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: var(--bg-dark);
  cursor: pointer; font-size: 1rem; display: grid; place-items: center; z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.ccg-popup-close:hover { background: var(--primary); color: #fff; }
.ccg-popup-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.ccg-popup-body { padding: 26px 28px 30px; text-align: center; }
.ccg-popup-body h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); margin-bottom: 10px; }
.ccg-popup-body p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; margin-bottom: 20px; }

/* Respect reduced motion — avoid LARGE movement, but keep a gentle rise + fade
   so section transitions still read as an intentional effect (not "instant"). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Shrink big translate/zoom/slide reveals to a small, tasteful rise */
  .reveal,
  .anim-zoom .reveal,
  .anim-slide .reveal { transform: translateY(12px) !important; transition: opacity .6s ease, transform .6s ease !important; }
  .reveal.visible { transform: none !important; }
  /* Still stop infinite/looping motion (auto-scroll, floats, hero dots) */
  .ccg-float, .float, .ccg-hero-dots button { animation: none !important; }
}

/* ===================================================================
   Content detail pages (/activity-12 etc.) + image lightbox
   =================================================================== */
.ccg-detail-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px;
  font-weight: 700; font-size: .9rem; color: var(--primary); text-decoration: none;
}
.ccg-detail-back:hover { color: var(--primary-hover); }
.ccg-detail-head { margin-bottom: 28px; }
.ccg-detail-chip {
  display: inline-block; background: rgba(6,95,70,.09); color: var(--primary);
  font-weight: 700; font-size: .78rem; letter-spacing: .3px;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
}
.ccg-detail-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: var(--text-main); margin: 0 0 14px; }
.ccg-detail-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 720px; margin: 0; }
.ccg-detail-hero {
  border-radius: var(--border-radius); overflow: hidden; margin: 8px 0 32px;
  box-shadow: 0 20px 50px rgba(6,95,70,.14);
}
.ccg-detail-hero img { width: 100%; height: auto; display: block; }
.ccg-detail-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-main); }
.ccg-detail-body p { margin: 0 0 16px; }
.ccg-detail-body img { max-width: 100%; height: auto; border-radius: 12px; }
.ccg-detail-subtitle { font-size: 1.4rem; color: var(--text-main); margin: 40px 0 18px; }
.ccg-detail-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.ccg-detail-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.ccg-detail-cta {
  margin-top: 48px; padding: 38px 28px; text-align: center;
  background: linear-gradient(135deg, #0b3d2c 0%, #14603f 100%);
  border-radius: var(--border-radius);
  position: relative; overflow: hidden;
  box-shadow: 0 16px 40px rgba(6, 40, 28, .22);
}
.ccg-detail-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(198,154,85,.9), transparent);
}
.ccg-detail-cta-title { font-family: var(--font-display); color: #fff; font-size: 1.4rem; margin: 0 0 6px; }
.ccg-detail-cta p { font-size: .95rem; color: rgba(255,255,255,.78); margin: 0 0 22px; font-weight: 400; }
.ccg-detail-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ccg-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px;
  font-weight: 700; font-size: .88rem; letter-spacing: .5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ccg-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.ccg-cta-call { background: linear-gradient(160deg, #e8c88a, #c69a55); color: #143b2b; }
.ccg-cta-call:hover { color: #143b2b; }
.ccg-cta-line { background: #06c755; color: #fff; }
.ccg-cta-line:hover { color: #fff; }
.ccg-cta-mail { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.65); }
.ccg-cta-mail:hover { background: #fff; color: #0b3d2c; }

/* Lightbox */
.ccg-lightbox {
  position: fixed; inset: 0; z-index: 3000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 20, 16, .92); cursor: zoom-out;
}
.ccg-lightbox.open { display: flex; animation: ccgLbIn .2s ease; }
@keyframes ccgLbIn { from { opacity: 0; } to { opacity: 1; } }
.ccg-lightbox-img {
  max-width: 100%; max-height: 90vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.ccg-lightbox-close {
  position: absolute; top: 18px; right: 24px; background: rgba(255,255,255,.12);
  border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.ccg-lightbox-close:hover { background: rgba(255,255,255,.25); }
.ccg-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
}
.ccg-lightbox-prev { left: 18px; }
.ccg-lightbox-next { right: 18px; }
.ccg-lightbox-nav:hover { background: rgba(255,255,255,.28); }
.ccg-lightbox-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .85rem; letter-spacing: 1px;
  background: rgba(0,0,0,.35); padding: 4px 14px; border-radius: 20px;
}
@media (max-width: 600px) {
  .ccg-lightbox-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .ccg-lightbox-prev { left: 8px; }
  .ccg-lightbox-next { right: 8px; }
}
@media (max-width: 600px) {
  .ccg-detail-cta { padding: 24px 18px; }
  .ccg-detail-cta-btns a { width: 100%; }
}

/* ── Pro Shop catalogue page ── */
.ccg-more-row { display: flex; justify-content: center; margin-top: 40px; }
.ccg-shop-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.ccg-shop-filter {
  border: 1px solid var(--border-color); border-radius: 50px; padding: 8px 20px;
  font-size: .82rem; font-weight: 600; color: var(--text-muted); text-decoration: none;
  transition: all .18s ease;
}
.ccg-shop-filter:hover { border-color: var(--primary); color: var(--primary); }
.ccg-shop-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.ccg-shop-count { text-align: center; color: var(--text-muted); font-size: .85rem; margin-bottom: 26px; }
.ccg-shop-count strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.ccg-shop-empty { text-align: center; color: var(--text-muted); padding: 50px 20px; }
.ccg-shop-pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.ccg-shop-page {
  min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--border-color); border-radius: 10px; text-decoration: none;
  color: var(--text-main); font-weight: 600; font-size: .88rem; font-variant-numeric: tabular-nums;
  transition: all .18s ease;
}
.ccg-shop-page:hover { border-color: var(--primary); color: var(--primary); }
.ccg-shop-page.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Dark-section cards (Tournaments) — moved out of inline styles so each
   theme can restyle them. Keeps the estate look identical. */
.ccg-section.dark .ccg-card { background-color: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.ccg-section.dark .ccg-card-body { color: var(--text-light); }
.ccg-section.dark .ccg-card-body p { color: rgba(255,255,255,.7); }
/* Tournament call-to-action strip */
.ccg-tourn-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
  max-width: 900px; margin: 34px auto 0; padding: 22px 28px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 20px;
  background: rgba(255,255,255,.05);
}
.ccg-tourn-cta p { margin: 0; color: rgba(255,255,255,.85); font-size: .98rem; flex: 1 1 240px; }
.ccg-tourn-cta-ic { display: inline-flex; color: var(--accent); }
.ccg-tourn-cta-ic svg { width: 30px; height: 30px; }
/* Contact details are links now — keep them looking like text until hovered */
.ccg-contact-item a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.ccg-contact-item a:hover { color: var(--primary); border-bottom-color: currentColor; }
.ccg-contact-icon svg { width: 24px; height: 24px; display: block; }

/* ── Chee Chan Golf Academy Redesign Styles ── */
.ccg-academy-sec {
  padding: 70px 0;
  background: var(--bg-alt, #f8f6f0);
}
.ccg-academy-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  background: #fff;
  border: 1px solid var(--border-color, #e6e1d6);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.04);
}
.ccg-academy-hero-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.ccg-academy-hero-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ccg-academy-hero-img-wrap:hover img {
  transform: scale(1.03);
}
.ccg-academy-hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(11, 61, 44, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.ccg-academy-badge-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.ccg-academy-hero-badge strong {
  display: block;
  font-size: 0.98rem;
  color: var(--accent, #e0bd7a);
  letter-spacing: 0.5px;
}
.ccg-academy-hero-badge small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}
.ccg-academy-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary, #0b3d2c);
  background: rgba(11, 61, 44, 0.08);
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.ccg-academy-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 14px;
}
.ccg-academy-hero-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.ccg-academy-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ccg-academy-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fcfbf8;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px 14px;
  border-radius: 12px;
}
.ccg-academy-hl-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.ccg-academy-hl-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 2px;
}
.ccg-academy-hl-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Academy Programs Grid */
.ccg-academy-programs-head {
  text-align: center;
  margin-bottom: 36px;
}
.ccg-academy-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.ccg-academy-subdesc {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.ccg-academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 54px;
}
.ccg-academy-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-color, #e6e1d6);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ccg-academy-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary, #0b3d2c);
  box-shadow: 0 20px 40px rgba(11, 61, 44, 0.12);
}
.ccg-academy-card.popular {
  border: 2px solid var(--accent, #c9a55c);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}
.ccg-academy-popular-tag {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
.ccg-academy-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary, #0b3d2c);
  background: rgba(11, 61, 44, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.ccg-academy-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}
.ccg-academy-card-target {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 38px;
}
.ccg-academy-card-price {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-color, #e6e1d6);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ccg-academy-price-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary, #0b3d2c);
}
.ccg-academy-price-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.ccg-academy-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ccg-academy-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-main);
  line-height: 1.4;
}
.ccg-academy-checklist svg {
  color: var(--primary, #0b3d2c);
  flex-shrink: 0;
  margin-top: 2px;
}
.ccg-academy-card-action {
  margin-top: auto;
}
.ccg-academy-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 12px;
}

/* Academy High-Converting CTA Box */
.ccg-academy-cta-box {
  background: linear-gradient(135deg, #0b3d2c 0%, #145a43 100%);
  color: #fff;
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 48px rgba(11, 61, 44, 0.25);
  position: relative;
  overflow: hidden;
}
.ccg-academy-cta-box::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(201, 165, 92, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.ccg-academy-cta-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent, #e0bd7a);
  margin-bottom: 8px;
}
.ccg-academy-cta-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.ccg-academy-cta-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 600px;
}
.ccg-academy-cta-btns {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
@media (max-width: 992px) {
  .ccg-academy-hero { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .ccg-academy-hero-img-wrap img { height: 280px; }
  .ccg-academy-cta-box { flex-direction: column; text-align: center; padding: 32px 24px; }
  .ccg-academy-cta-btns { justify-content: center; width: 100%; }
}
@media (max-width: 576px) {
  .ccg-academy-highlights { grid-template-columns: 1fr; }
  .ccg-academy-grid { grid-template-columns: 1fr; }
}

/* ── Tournaments Section Luxury Styling ── */
.ccg-tourn-sec {
  padding: 80px 0;
  background: linear-gradient(180deg, #06231a 0%, #0b3d2c 100%) !important;
  color: #fff !important;
  position: relative;
  overflow: hidden;
}
.ccg-tourn-sec::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 165, 92, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ccg-tourn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1050px;
  margin: 0 auto 50px;
}
.ccg-tourn-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ccg-tourn-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 165, 92, 0.85);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.ccg-tourn-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: #041812;
  overflow: hidden;
}
.ccg-tourn-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ccg-tourn-card:hover .ccg-tourn-img-wrap img {
  transform: scale(1.04);
}
.ccg-tourn-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 61, 44, 0.9);
  backdrop-filter: blur(6px);
  color: var(--accent, #edd39a);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(201, 165, 92, 0.4);
}
.ccg-tourn-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ccg-tourn-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}
.ccg-tourn-card-body p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 20px;
}
.ccg-tourn-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ccg-tourn-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
.ccg-tourn-list svg {
  color: var(--accent, #edd39a);
  flex-shrink: 0;
  margin-top: 2px;
}
.ccg-tourn-card-action {
  margin-top: auto;
}
.ccg-tourn-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Tournaments CTA Strip */
.ccg-tourn-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 28px 36px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 22px;
  background: rgba(201, 165, 92, 0.1);
  backdrop-filter: blur(8px);
}
.ccg-tourn-cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ccg-tourn-cta-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201, 165, 92, 0.2);
  color: var(--accent, #edd39a);
  flex-shrink: 0;
}
.ccg-tourn-cta-ic svg {
  width: 28px;
  height: 28px;
}
.ccg-tourn-cta-left h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.ccg-tourn-cta-left p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.ccg-tourn-cta-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
@media (max-width: 868px) {
  .ccg-tourn-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .ccg-tourn-cta-left {
    flex-direction: column;
  }
  .ccg-tourn-cta-btns {
    justify-content: center;
    width: 100%;
  }
}

/* ── Navigation breathing room ──
   Measured: the full EN menu needs ~1320px. The slide-in menu only takes over
   at ≤1024px, so 1025–1400px was left cramped (and overflowing under ~1320px).
   Tighten the bar through that band instead of letting the items collide. */
@media (min-width: 1025px) and (max-width: 1400px) {
  #navbar { padding: 0 26px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .74rem; letter-spacing: .4px; }
  .nav-book-btn { padding: 9px 17px !important; }
  .nav-logo-img { height: 38px; }
  .ccg-lang-toggle { padding: 5px 9px; font-size: .72rem; }
}
/* Wide screens: the bar stays full-width, but its contents line up with the
   page's content column rather than hugging the viewport edges. */
@media (min-width: 1500px) {
  #navbar,
  .ccg-utility-bar { padding-left: calc((100% - 1320px) / 2); padding-right: calc((100% - 1320px) / 2); }
}
/* The very tightest desktop band still needed ~25px more — squeeze a little
   further here rather than move every 1024px breakpoint in the codebase. */
@media (min-width: 1025px) and (max-width: 1120px) {
  #navbar { padding: 0 18px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .7rem; letter-spacing: .2px; }
  .nav-book-btn { padding: 8px 14px !important; }
}

/* ── Dining call-to-action pair ──
   Two full captions wrap into a ragged stack on a phone, so the secondary
   action collapses to its icon there and the primary keeps the width. */
.ccg-menu-cta .ccg-cta-ic { display: inline-flex; line-height: 0; }
.ccg-menu-cta .ccg-cta-ic svg { width: 18px; height: 18px; display: block; }
.ccg-cta-line { color: #06c755; border-color: #06c755; }
.ccg-cta-line:hover { background: #06c755; border-color: #06c755; color: #fff; }
@media (max-width: 600px) {
  .ccg-menu-cta { gap: 10px; flex-wrap: nowrap; align-items: stretch; }
  .ccg-menu-cta .ccg-btn-primary { flex: 1 1 auto; justify-content: center; padding: 13px 12px; }
  .ccg-menu-cta .ccg-cta-line {
    flex: 0 0 52px; width: 52px; padding: 0; justify-content: center; border-radius: 50px;
  }
  .ccg-menu-cta .ccg-cta-line .ccg-cta-tx { display: none; }
  .ccg-menu-cta .ccg-cta-ic svg { width: 21px; height: 21px; }
}

/* ══════════════════════════════════════════════════════════
   BOOKING WIDGET — ค้นหารอบว่าง (Phase 5.2)
   โครงมาจากระบบจองเดิม แต่จัดลำดับใหม่: เลือกบริการ → เงื่อนไข →
   ช่วงเวลาที่ว่างจริง → สรุปราคาจาก API  ผิวใช้โทน ivory/gold ของ Playground
   ══════════════════════════════════════════════════════════ */
.ccg-bk { padding: 26px 28px 28px; }

/* ── 1. แท็บเลือกบริการ ── */
.ccg-bk-services {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 22px;
  border-bottom: 1px solid var(--pg-gold, #c9a55c);
  border-bottom-color: color-mix(in srgb, var(--pg-gold, #c9a55c) 35%, transparent);
}
.ccg-bk-svc {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 50px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-color);
  color: var(--text-muted); font-family: inherit; font-size: .92rem; font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.ccg-bk-svc:hover { border-color: var(--pg-gold, #c9a55c); color: var(--text-main); }
.ccg-bk-svc.is-active {
  background: var(--pg-green, #0b3d2e); border-color: var(--pg-green, #0b3d2e); color: #fff;
}
.ccg-bk-svc-ic { font-size: 1.05rem; line-height: 1; }

/* ── 2. ฟอร์มเงื่อนไข ── */
.ccg-bk-form {
  display: grid; gap: 18px; align-items: end;
  grid-template-columns: 1.4fr 1fr 1fr auto;
}
.ccg-bk .ccg-form-field label { color: var(--pg-green, #0b3d2e); }
.ccg-bk .ccg-form-field input,
.ccg-bk .ccg-form-field select { min-height: 48px; }
.ccg-bk-search { justify-content: center; min-height: 48px; white-space: nowrap; }

/* stepper จำนวนผู้เล่น — อ่านง่ายกว่า dropdown ยาว ๆ ของเดิม */
.ccg-bk-stepper {
  display: flex; align-items: stretch;
  border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden;
  background: #fff;
}
.ccg-bk-step {
  width: 46px; flex: 0 0 46px; border: 0; cursor: pointer;
  background: var(--cream, #f6f3ee); color: var(--pg-green, #0b3d2e);
  font-size: 1.3rem; line-height: 1; font-family: inherit;
  transition: background .15s ease;
}
.ccg-bk-step:hover { background: color-mix(in srgb, var(--pg-gold, #c9a55c) 22%, #fff); }
.ccg-bk-stepper input {
  flex: 1; min-width: 0; text-align: center; border: 0 !important;
  border-radius: 0 !important; font-weight: 700; font-size: 1.05rem;
  -moz-appearance: textfield; appearance: textfield;
}
.ccg-bk-stepper input::-webkit-outer-spin-button,
.ccg-bk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ccg-bk-hint {
  margin: 14px 0 0; padding: 11px 15px; border-radius: 10px;
  background: color-mix(in srgb, var(--pg-gold, #c9a55c) 13%, transparent);
  border-left: 3px solid var(--pg-gold, #c9a55c);
  color: var(--text-main); font-size: .87rem; line-height: 1.6;
}

/* ── 3–4. แผงผลลัพธ์ ── */
.ccg-bk-panel {
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--border-color);
}
.ccg-bk-panel-title {
  margin: 0 0 14px; font-family: var(--font-display), sans-serif;
  font-size: 1.06rem; color: var(--pg-green, #0b3d2e); font-weight: 700;
}

/* ชิปช่วงเวลา — เห็นราคาและที่ว่างก่อนกด ต่างจากของเดิมที่เป็น dropdown เปล่า */
.ccg-bk-slots {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
.ccg-bk-slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--border-color); border-radius: 12px;
  font-family: inherit; color: var(--text-main);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.ccg-bk-slot:hover:not(:disabled) {
  border-color: var(--pg-gold, #c9a55c); transform: translateY(-2px);
}
.ccg-bk-slot.is-picked {
  background: var(--pg-green, #0b3d2e); border-color: var(--pg-green, #0b3d2e); color: #fff;
}
.ccg-bk-slot.is-picked .ccg-bk-slot-price,
.ccg-bk-slot.is-picked .ccg-bk-slot-left { color: rgba(255,255,255,.82); }
.ccg-bk-slot.is-off { opacity: .42; cursor: not-allowed; background: var(--cream, #f6f3ee); }

/* ช่วงเวลาอื่นที่กลุ่มเดียวกันใช้ (กรณีผู้เล่นเกินโควตาต่อช่วง)
   ต้องเห็นชัดว่าเป็นชุดเดียวกับช่องที่เลือก ไม่งั้นลูกค้าจะงงว่าทำไมสรุปมี 2 เวลา */
.ccg-bk-slot.is-inplan {
  background: color-mix(in srgb, var(--pg-green, #0b3d2e) 12%, #fff);
  border-color: var(--pg-green, #0b3d2e);
  color: var(--pg-green, #0b3d2e);
  /* ช่องนี้ถูกใช้ในรอบแล้ว ห้ามจางแบบ is-off เด็ดขาด แม้จะยัง disabled อยู่ */
  opacity: 1;
  cursor: default;
}
.ccg-bk-slot.is-inplan .ccg-bk-slot-price,
.ccg-bk-slot.is-inplan .ccg-bk-slot-left { color: var(--pg-green, #0b3d2e); opacity: .75; }
.ccg-bk-slot-tag {
  margin-top: 4px; padding: 1px 8px; border-radius: 50px;
  font-size: .66rem; font-weight: 700; letter-spacing: .3px;
  background: var(--pg-gold, #c9a55c); color: #fff;
}
.ccg-bk-slot.is-picked .ccg-bk-slot-tag { background: var(--pg-gold-light, #edd39a); color: var(--pg-green, #0b3d2e); }
/* ชิปที่กดไม่ได้ยังต้องอ่านเหตุผลออก จึงไม่จางจนเกินไป */
.ccg-bk-slot.is-off .ccg-bk-slot-left { color: var(--text-main); opacity: .85; font-weight: 600; }
.ccg-bk-slot-time { font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccg-bk-slot-price { font-size: .78rem; color: var(--pg-gold-deep, #8f6f2e); font-weight: 600; }
.ccg-bk-slot-left { font-size: .68rem; color: var(--text-muted); letter-spacing: .3px; }

.ccg-bk-split {
  margin: 14px 0 0; font-size: .86rem; color: var(--text-muted); line-height: 1.6;
}

/* สรุปราคา */
.ccg-bk-quote-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.ccg-bk-quote-head .ccg-bk-panel-title { margin-bottom: 14px; }
.ccg-bk-daytype {
  font-size: .72rem; font-weight: 700; letter-spacing: .6px;
  padding: 5px 12px; border-radius: 50px;
  background: color-mix(in srgb, var(--pg-green, #0b3d2e) 10%, transparent);
  color: var(--pg-green, #0b3d2e);
}
.ccg-bk-daytype.is-weekend {
  background: color-mix(in srgb, var(--pg-gold, #c9a55c) 22%, transparent);
  color: var(--pg-gold-deep, #8f6f2e);
}
.ccg-bk-lines {
  display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; margin: 0 0 16px;
}
.ccg-bk-lines dt { color: var(--text-muted); font-size: .92rem; }
.ccg-bk-lines dd {
  margin: 0; text-align: right; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--text-main);
}
.ccg-bk-total {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-top: 14px; margin-bottom: 18px;
  border-top: 1px dashed var(--border-color);
  font-size: .95rem; color: var(--text-muted);
}
.ccg-bk-total strong {
  font-family: var(--font-display), sans-serif; font-size: 1.65rem;
  color: var(--pg-green, #0b3d2e); font-variant-numeric: tabular-nums;
}
.ccg-bk-cta { width: 100%; justify-content: center; }
.ccg-bk-fineprint {
  margin: 12px 0 0; text-align: center;
  font-size: .78rem; color: var(--text-muted); line-height: 1.6;
}

/* ── สถานะ ── */
.ccg-bk-state {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  font-size: .9rem; line-height: 1.6; text-align: center;
  background: var(--cream, #f6f3ee); color: var(--text-muted);
}
.ccg-bk-state.is-error  { background: #fdeceb; color: #a3372f; }
.ccg-bk-state.is-warn   { background: color-mix(in srgb, var(--pg-gold, #c9a55c) 16%, transparent); color: var(--pg-gold-deep, #8f6f2e); }
.ccg-bk-state.is-loading::after {
  content: ''; display: inline-block; vertical-align: -2px; margin-left: 9px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--pg-green, #0b3d2e) 30%, transparent);
  border-top-color: var(--pg-green, #0b3d2e);
  animation: ccg-bk-spin .7s linear infinite;
}
@keyframes ccg-bk-spin { to { transform: rotate(360deg); } }

/* ── responsive ── */
@media (max-width: 900px) {
  .ccg-bk-form { grid-template-columns: 1fr 1fr; }
  .ccg-bk-search { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ccg-bk { padding: 20px 18px 22px; }
  .ccg-bk-form { grid-template-columns: 1fr; }
  .ccg-bk-services { gap: 6px; }
  .ccg-bk-svc { flex: 1 1 auto; justify-content: center; padding: 10px 12px; font-size: .85rem; }
  .ccg-bk-slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .ccg-bk-total strong { font-size: 1.4rem; }
}

/* ผู้ใช้ที่เปิด Reduce Motion — คงการเปลี่ยนสีไว้ ตัดเฉพาะการเคลื่อนที่ */
@media (prefers-reduced-motion: reduce) {
  .ccg-bk-slot:hover:not(:disabled) { transform: none; }
  .ccg-bk-state.is-loading::after { animation-duration: 2.2s; }
}

/* ══════════════════════════════════════════════════════════
   หน้าจองรอบ /book — flow 3 ขั้นตอน (Phase 5.2)
   ใช้คอมโพเนนต์ชุดเดียวกับวิดเจ็ตหน้าแรก (.ccg-bk-*) แล้วเพิ่มโครงหน้าเต็ม
   ══════════════════════════════════════════════════════════ */
.ccg-book-head {
  padding: 118px 24px 34px; text-align: center;
  background: var(--pg-green, #0b3d2e); color: #fff;
}
.ccg-book-head h1 {
  margin: 0 0 10px; font-family: var(--font-display), sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem); color: #fff;
}
.ccg-book-head p {
  margin: 0 auto; max-width: 620px; line-height: 1.7;
  color: rgba(255,255,255,.78); font-size: .97rem;
}
.ccg-book-sec { padding-top: 32px; }
.ccg-book-closed { text-align: center; padding: 60px 20px; }

/* ── แถบขั้นตอน ── */
.ccg-steps {
  display: flex; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0;
  scroll-margin-top: 92px;
}
.ccg-steps li {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 12px;
  background: var(--cream, #f6f3ee); color: var(--text-muted);
  font-size: .89rem; font-weight: 600; min-width: 0;
}
.ccg-steps li > span {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: .82rem;
  background: #fff; color: var(--text-muted); border: 1px solid var(--border-color);
}
.ccg-steps li.is-current {
  background: var(--pg-green, #0b3d2e); color: #fff;
}
.ccg-steps li.is-current > span { background: var(--pg-gold, #c9a55c); color: #fff; border-color: transparent; }
.ccg-steps li.is-done { background: color-mix(in srgb, var(--pg-green, #0b3d2e) 12%, transparent); color: var(--pg-green, #0b3d2e); }
.ccg-steps li.is-done > span { background: var(--pg-green, #0b3d2e); color: #fff; border-color: transparent; }

/* ── โครง 2 คอลัมน์ ── */
.ccg-book-grid {
  display: grid; gap: 26px; align-items: start;
  grid-template-columns: minmax(0, 1fr) 340px;
}
.ccg-book-main, .ccg-book-sum {
  background: #fffdf8; border: 1px solid #e7dcc4; border-radius: var(--border-radius);
  box-shadow: 0 12px 32px rgba(61,52,39,.1);
}
.ccg-book-main { padding: 26px 28px 28px; }
.ccg-book-side { position: sticky; top: 92px; }
.ccg-book-sum { padding: 22px 22px 24px; }
.ccg-book-h {
  margin: 0 0 6px; font-family: var(--font-display), sans-serif;
  font-size: 1.25rem; color: var(--pg-green, #0b3d2e);
}
.ccg-book-lead { margin: 0 0 20px; color: var(--text-muted); font-size: .92rem; line-height: 1.7; }
.ccg-book-panel[hidden] { display: none; }

/* ── ฟอร์มข้อมูลผู้จอง ── */
.ccg-book-fields { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccg-book-wide { grid-column: 1 / -1; }
.ccg-book-fields label { color: var(--pg-green, #0b3d2e); }
.ccg-book-fields input, .ccg-book-fields textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--border-color); background: #fff;
  font-family: inherit; font-size: .95rem; color: var(--text-main);
}
.ccg-book-fields input:focus, .ccg-book-fields textarea:focus {
  outline: 2px solid var(--pg-gold, #c9a55c); outline-offset: 1px; border-color: transparent;
}
.ccg-book-fields input.is-invalid { border-color: #c0392b; }
.ccg-book-err { display: block; margin-top: 5px; color: #c0392b; font-size: .8rem; }
.ccg-book-consent {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 20px;
  font-size: .92rem; color: var(--text-main); cursor: pointer; line-height: 1.6;
}
.ccg-book-consent input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--pg-green, #0b3d2e); }
.ccg-book-consent input.is-invalid { outline: 2px solid #c0392b; outline-offset: 2px; }

.ccg-book-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.ccg-book-nav .ccg-btn-primary { margin-left: auto; }

/* ── ตารางสรุป ── */
.ccg-book-facts, .ccg-book-review {
  display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0 0 18px;
}
.ccg-book-facts dt, .ccg-book-review dt { color: var(--text-muted); font-size: .88rem; white-space: nowrap; }
.ccg-book-facts dd, .ccg-book-review dd {
  margin: 0; text-align: right; font-weight: 600; color: var(--text-main); font-size: .9rem;
  overflow-wrap: anywhere;
}
.ccg-book-review { margin-bottom: 0; padding: 18px 20px; background: var(--cream, #f6f3ee); border-radius: 14px; }
.ccg-book-facts { padding-bottom: 16px; border-bottom: 1px dashed var(--border-color); }
.ccg-book-sum-empty { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.7; }
.ccg-book-sum .ccg-bk-total { margin-bottom: 0; }

/* ── responsive ── */
@media (max-width: 1024px) {
  .ccg-book-grid { grid-template-columns: 1fr; }
  .ccg-book-side { position: static; }
  .ccg-book-sum { order: -1; }
}
@media (max-width: 640px) {
  .ccg-book-head { padding-top: 96px; }
  .ccg-book-main { padding: 20px 18px 22px; }
  .ccg-book-fields { grid-template-columns: 1fr; }
  .ccg-steps { gap: 6px; }
  .ccg-steps li { flex-direction: column; gap: 5px; padding: 10px 6px; font-size: .74rem; text-align: center; }
  .ccg-book-nav .ccg-btn-primary, .ccg-book-nav .ccg-btn-outline { flex: 1 1 auto; justify-content: center; }
  .ccg-book-nav .ccg-btn-primary { margin-left: 0; }
}
