/* KL Golf Hub — 3D condition viewer ("See every detail") */
.bv-section {
  --bv-green: #0e4f35;
  --bv-green-600: #0b4029;
  --bv-green-50: #e9f2ec;
  --bv-ink: #070d19;
  --bv-muted: #475569;
  background: linear-gradient(180deg, #ffffff 0%, #f5f6f5 14%, #f1f3f1 100%);
}

.bv-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--bv-green); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.bv-eyebrow-dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--bv-green); box-shadow: 0 0 0 4px rgba(14,79,53,.14); }

/* Stage */
.bv-stage {
  position: relative; isolation: isolate; width: 100%;
  aspect-ratio: 1 / 1.08; min-height: 320px; max-height: 80vh;
  border-radius: 28px; overflow: hidden;
  /* High-key product-shot backdrop: white sweep fading to the softest grey. */
  background:
    radial-gradient(75% 60% at 50% 42%, #ffffff 0%, rgba(255,255,255,0) 72%),
    radial-gradient(125% 100% at 50% 35%, #ffffff 0%, #f6f7f6 60%, #eceeec 100%);
  box-shadow: 0 0 0 1px rgba(7,13,25,.06), 0 1px 0 rgba(255,255,255,.9) inset, 0 40px 80px -48px rgba(14,79,53,.45);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
@media (min-width: 640px) { .bv-stage { aspect-ratio: 4 / 3; border-radius: 32px; } }
@media (min-width: 1024px) { .bv-stage { aspect-ratio: 16 / 9; } }

.bv-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .45s ease;
  touch-action: manipulation; cursor: grab; outline: none;
}
.bv-stage.is-dragging .bv-canvas { cursor: grabbing; }
.bv-stage[data-inspect="true"] .bv-canvas { touch-action: none; }
.bv-stage[data-state="ready"] .bv-canvas { opacity: 1; }
.bv-stage[data-state="ready"] .bv-canvas.is-swapping { opacity: .15; transition-duration: .17s; }
.bv-canvas:focus-visible { outline: 3px solid rgba(14,79,53,.55); outline-offset: -3px; border-radius: inherit; }

/* Overlay UI */
.bv-ui { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s ease; }
.bv-ui > * { pointer-events: auto; }
.bv-stage:not([data-state="ready"]) .bv-ui { opacity: 0; visibility: hidden; }

.bv-glass {
  background: rgba(255,255,255,.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(7,13,25,.07);
  box-shadow: 0 8px 24px -14px rgba(7,13,25,.35);
}

.bv-chip {
  position: absolute; top: 14px; left: 14px; max-width: calc(100% - 180px);
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px; pointer-events: none;
}
.bv-chip-badge {
  flex: none; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bv-green); color: #fff;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.bv-chip-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.bv-chip-text strong { font-size: 13px; font-weight: 700; color: var(--bv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-chip-text span { font-size: 12px; color: var(--bv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bv-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 2px; padding: 3px; border-radius: 999px; }
.bv-tool {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  color: var(--bv-ink); cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.bv-tool:hover { background: rgba(14,79,53,.08); color: var(--bv-green); }
.bv-tool:focus-visible { outline: 2px solid var(--bv-green); outline-offset: 1px; }
.bv-tool svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .bv-chip { top: 10px; left: 10px; max-width: calc(100% - 150px); padding-right: 12px; }
  .bv-tools { top: 10px; right: 10px; gap: 0; }
  .bv-tool { width: 38px; height: 38px; }
}

.bv-bottom {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.bv-bottom > * { pointer-events: auto; }
.bv-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(7,13,25,.62);
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.bv-hint svg { width: 18px; height: 18px; color: var(--bv-green); }
.bv-stage[data-hint="off"] .bv-hint,
.bv-stage[data-inspect="true"] .bv-hint { opacity: 0; transform: translateY(6px); }

.bv-inspect {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--bv-green); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 24px -12px rgba(14,79,53,.8);
  cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.bv-inspect:hover { background: var(--bv-green-600); }
.bv-inspect:active { transform: scale(.97); }
.bv-inspect:focus-visible { outline: 3px solid rgba(14,79,53,.35); outline-offset: 2px; }
.bv-inspect svg { width: 18px; height: 18px; }
.bv-inspect .bv-i-back { display: none; }
.bv-stage[data-inspect="true"] .bv-inspect { background: #fff; color: var(--bv-green); box-shadow: 0 0 0 1px rgba(14,79,53,.25), 0 10px 24px -14px rgba(7,13,25,.4); }
.bv-stage[data-inspect="true"] .bv-inspect .bv-i-back { display: block; }
.bv-stage[data-inspect="true"] .bv-inspect .bv-i-zoom { display: none; }

/* 3D-anchored labels */
.bv-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.bv-tag { position: absolute; left: 0; top: 0; will-change: transform, opacity; opacity: 0; visibility: hidden; }
.bv-tag-line {
  position: absolute; left: 0; top: -0.75px; height: 1.5px; width: 0;
  background: rgba(14,79,53,.6); transform-origin: 0 50%;
}
.bv-tag-dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 3px var(--bv-green), 0 2px 10px rgba(7,13,25,.35);
}
.bv-tag-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 999px;
  border: 2px solid var(--bv-green); animation: bv-pulse 2.2s ease-out infinite;
}
@keyframes bv-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
.bv-tag-pill {
  position: absolute; top: 0; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1px; white-space: nowrap;
  padding: 6px 11px; border-radius: 12px;
  background: rgba(255,255,255,.93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(7,13,25,.07);
  box-shadow: 0 10px 24px -12px rgba(7,13,25,.45);
  line-height: 1.2;
}
.bv-tag[data-side="right"] .bv-tag-pill { left: 18px; }
.bv-tag[data-side="left"] .bv-tag-pill { right: 18px; }
.bv-tag-pill strong { font-size: 12.5px; font-weight: 700; color: var(--bv-ink); }
.bv-tag-pill span { font-size: 11.5px; color: var(--bv-muted); }
@media (max-width: 480px) { .bv-tag-pill span { display: none; } .bv-tag-pill { padding: 5px 9px; } }

.bv-ctag {
  position: absolute; left: 0; top: 0; will-change: transform, opacity;
  display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.9); border: 1px solid rgba(14,79,53,.18);
  box-shadow: 0 8px 20px -12px rgba(7,13,25,.4);
}
.bv-ctag strong { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; color: var(--bv-green); text-transform: uppercase; letter-spacing: .03em; }
.bv-ctag span { font-size: 12px; font-weight: 600; color: var(--bv-muted); }

/* Loading */
.bv-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s ease, visibility .6s;
}
.bv-stage[data-state="ready"] .bv-loading,
.bv-stage[data-state="fallback"] .bv-loading { opacity: 0; visibility: hidden; }
.bv-loading-ball {
  position: relative; width: min(34%, 220px); aspect-ratio: 1; border-radius: 999px; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eef0ee 45%, #d9ded9 100%);
  box-shadow: 0 30px 40px -28px rgba(7,13,25,.45);
}
.bv-loading-ball::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: .55;
  background-image: radial-gradient(circle, rgba(7,13,25,.10) 0 28%, transparent 31%);
  background-size: 14px 14px;
}
.bv-loading-ball::after {
  content: ''; position: absolute; inset: -20%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%);
  animation: bv-shimmer 1.6s ease-in-out infinite;
}
@keyframes bv-shimmer { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.bv-loading p { font-size: 13px; font-weight: 600; color: var(--bv-muted); letter-spacing: .02em; }

/* Fallback (no WebGL / failed load) */
.bv-fallback { position: absolute; inset: 0; z-index: 2; }
.bv-fallback img { width: 100%; height: 100%; object-fit: cover; }
.bv-fallback-msg {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 12px 14px; border-radius: 16px; font-size: 13.5px; color: var(--bv-ink); line-height: 1.4;
  background: rgba(255,255,255,.92);
}
.bv-fallback-msg strong { display: block; font-size: 14.5px; }

/* Selector */
.bv-seg {
  display: flex; gap: 2px; padding: 4px; margin: 22px auto 0; width: 100%; max-width: 440px;
  background: #e5e9e6; border-radius: 999px;
}
.bv-seg button {
  flex: 1 1 0; min-height: 44px; padding: 0 10px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; color: #334155; white-space: nowrap;
  cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.bv-seg button:hover { color: var(--bv-green); }
.bv-seg button[aria-pressed="true"] { background: #fff; color: var(--bv-green); box-shadow: 0 1px 2px rgba(7,13,25,.08), 0 6px 16px -10px rgba(7,13,25,.35); }
.bv-seg button:focus-visible { outline: 2px solid var(--bv-green); outline-offset: 1px; }

/* Grade cards */
.bv-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: 22px; background: #fff; cursor: pointer;
  border: 1px solid rgba(7,13,25,.07);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.bv-card:hover { border-color: rgba(14,79,53,.3); }
.bv-card[data-active="true"] { border-color: var(--bv-green); box-shadow: 0 0 0 1px var(--bv-green), 0 24px 44px -30px rgba(14,79,53,.55); }
.bv-card-badge {
  flex: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px;
  background: var(--bv-green-50); color: var(--bv-green); transition: background-color .25s ease, color .25s ease;
}
.bv-card[data-active="true"] .bv-card-badge { background: var(--bv-green); color: #fff; }
.bv-card-range { margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--bv-green); }
.bv-card-sum { font-weight: 700; color: var(--bv-ink); font-size: 16px; }
.bv-card-copy { font-size: 14px; color: var(--bv-muted); line-height: 1.5; }
.bv-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--bv-green); color: #fff; font-weight: 600; font-size: 15px;
  transition: background-color .2s ease, transform .2s ease;
}
.bv-cta:hover { background: var(--bv-green-600); }
.bv-cta:active { transform: scale(.97); }
.bv-cta:focus-visible { outline: 3px solid rgba(14,79,53,.35); outline-offset: 2px; }
.bv-cta svg { width: 16px; height: 16px; }

.bv-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--bv-ink); text-align: center; }
.bv-trust svg { width: 20px; height: 20px; color: var(--bv-green); flex: none; }
.bv-note { margin-top: 6px; font-size: 12px; color: #64748b; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .bv-tag-dot::after, .bv-loading-ball::after { animation: none; }
}
