/* New Creation 3D Pool & Backyard Estate CAD Studio Styling
 * Obsidian Lacquer + Champagne Brass Foil + Blueprint Hydraulic Telemetry
 */
.pool3d-section {
  background: radial-gradient(circle at 18% 0%, #102536 0%, #060b11 58%, #04080d 100%);
  color: #f4efe6;
  padding: 92px 0;
  border-top: 1px solid rgba(223, 192, 130, 0.22);
  border-bottom: 1px solid rgba(223, 192, 130, 0.22);
}

.pool3d-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
}

.pool3d-head h2 {
  color: #f8f4ec;
  margin-bottom: 0;
}

.pool3d-head p:not(.eyebrow) {
  color: #c1ccd7;
  max-width: 500px;
  font-size: 0.96rem;
  margin: 0;
}

.pool3d-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.pool3d-stage-card {
  background: linear-gradient(180deg, #0b1521 0%, #060c13 100%);
  border: 1px solid rgba(223, 192, 130, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.pool3d-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(5, 10, 16, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.pool3d-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e6c98f;
}

.pool3d-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
}

.pool3d-cam-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pool3d-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #d6dfe8;
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font: inherit;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.pool3d-pill:hover {
  border-color: rgba(223, 192, 130, 0.6);
  color: #fff;
}

.pool3d-pill[aria-pressed="true"],
.pool3d-pill.is-active {
  background: linear-gradient(135deg, #e3c485, #c9a35b);
  border-color: #e3c485;
  color: #07131e;
  font-weight: 750;
}

.pool3d-pill-xray[aria-pressed="true"] {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border-color: #7dd3fc;
  color: #04111d;
}

.pool3d-pill-drone[aria-pressed="true"] {
  background: linear-gradient(135deg, #34d399, #059669);
  border-color: #6ee7b7;
  color: #041510;
}

.pool3d-pill-audio[aria-pressed="true"] {
  background: linear-gradient(135deg, #f5d694, #c89d50);
  border-color: #f8e4b6;
  color: #07131e;
}

/* Engraved Champagne Brass Compass Medallion & Gold Foil Stamp Burst */
.nccew-medallion-host {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.nccew-medallion-host:hover {
  transform: scale(1.045);
}

.nccew-medallion-host:active {
  transform: scale(0.96);
}

.nccew-medallion-host[data-medallion-size="48"] { width: 48px; height: 48px; }
.nccew-medallion-host[data-medallion-size="52"] { width: 52px; height: 52px; }
.nccew-medallion-host[data-medallion-size="84"] { width: 84px; height: 84px; }
.nccew-medallion-host[data-medallion-size="88"] { width: 88px; height: 88px; }
.nccew-medallion-host[data-medallion-size="92"] { width: 92px; height: 92px; }

.nccew-medallion-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.nccew-stamp-burst-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 120;
}

.pool3d-head-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Curated Georgia Signature Estate Presets Strip */
.pool3d-studio-root {
  display: grid;
  gap: 1.15rem;
}

.pool3d-preset-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.pool3d-preset-card {
  appearance: none;
  text-align: left;
  background: linear-gradient(160deg, rgba(16, 31, 48, 0.92) 0%, rgba(8, 16, 26, 0.96) 100%);
  border: 1px solid rgba(223, 192, 130, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.28);
  border-radius: 13px;
  padding: 0.78rem 0.95rem;
  color: #f4efe6;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s, background 0.18s;
}

.pool3d-preset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 202, 142, 0.7);
}

.pool3d-preset-card[aria-pressed="true"] {
  background: linear-gradient(155deg, rgba(38, 33, 22, 0.95) 0%, rgba(13, 24, 36, 0.98) 100%);
  border-color: #ebd096;
  box-shadow: inset 0 0 0 1px rgba(235, 208, 150, 0.45), 0 14px 32px rgba(0, 0, 0, 0.42);
}

.pool3d-preset-kicker {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #dfc082;
}

.pool3d-preset-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 400;
  color: #fbf7ef;
  line-height: 1.1;
}

.pool3d-preset-sub {
  font-size: 0.69rem;
  color: #9fb2c4;
}

/* Continuous Georgia Sun-Path Scrubber */
.pool3d-sun-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 192, 130, 0.24);
  border-radius: 999px;
  padding: 0.22rem 0.68rem;
}

.pool3d-sun-range {
  width: 96px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  accent-color: #e4c486;
  cursor: pointer;
}

.pool3d-sun-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  color: #f3deb0;
  min-width: 58px;
  text-align: right;
}

.pool3d-viewport-host {
  position: relative;
  width: 100%;
  height: 510px;
  background: #050b12;
}

.pool3d-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.pool3d-canvas-wrap:active {
  cursor: grabbing;
}

.pool3d-gl-canvas,
.pool3d-hud-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pool3d-hud-canvas {
  pointer-events: none;
}

.pool3d-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  padding: 0.75rem 1.15rem;
  background: rgba(6, 12, 20, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pool3d-light-group,
.pool3d-led-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.pool3d-mini-label {
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93a4b5;
  margin-right: 0.25rem;
  font-weight: 700;
}

.pool3d-led-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s, border-color 0.16s;
}

.pool3d-led-dot:hover {
  transform: scale(1.1);
}

.pool3d-led-dot[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 2px #dfc082;
  transform: scale(1.12);
}

.pool3d-led-alpine { background: radial-gradient(circle at 35% 35%, #ffffff, #bae6fd); }
.pool3d-led-cobalt { background: radial-gradient(circle at 35% 35%, #60a5fa, #1d4ed8); }
.pool3d-led-caribbean { background: radial-gradient(circle at 35% 35%, #67e8f9, #0891b2); }
.pool3d-led-emerald { background: radial-gradient(circle at 35% 35%, #6ee7b7, #059669); }
.pool3d-led-champagne { background: radial-gradient(circle at 35% 35%, #fde68a, #d97706); }
.pool3d-led-magenta { background: radial-gradient(circle at 35% 35%, #f0abfc, #9333ea); }

.pool3d-hint {
  font-size: 0.72rem;
  color: #9fb0c1;
}

.pool3d-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.pool3d-metric {
  background: #08111b;
  padding: 0.85rem 1rem;
}

.pool3d-metric span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa2b4;
  margin-bottom: 0.2rem;
}

.pool3d-metric strong {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 400;
  color: #f8f3ea;
  line-height: 1.15;
}

.pool3d-metric small {
  display: block;
  font-size: 0.7rem;
  color: #dfc082;
  margin-top: 0.15rem;
}

/* Right-hand CAD Control Deck */
.pool3d-deck {
  background: linear-gradient(180deg, #0c1724 0%, #071019 100%);
  border: 1px solid rgba(223, 192, 130, 0.26);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.pool3d-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  background: rgba(4, 9, 15, 0.8);
  padding: 0.32rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.15rem;
}

.pool3d-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a6b5c4;
  padding: 0.52rem 0.35rem;
  border-radius: 9px;
  font: inherit;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.18s;
}

.pool3d-tab[aria-selected="true"] {
  background: rgba(223, 192, 130, 0.18);
  color: #f6e4be;
  box-shadow: inset 0 0 0 1px rgba(223, 192, 130, 0.48);
}

.pool3d-pane[hidden] {
  display: none;
}

.pool3d-group {
  margin-bottom: 1.05rem;
}

.pool3d-group-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 750;
  color: #e4c68b;
  margin: 0 0 0.55rem;
}

.pool3d-group-title span {
  color: #95a7b8;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.pool3d-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.pool3d-chip-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pool3d-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: #dce4ec;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: border-color 0.16s, background 0.16s;
}

.pool3d-chip:hover {
  border-color: rgba(223, 192, 130, 0.55);
}

.pool3d-chip[aria-pressed="true"] {
  background: rgba(223, 192, 130, 0.18);
  border-color: #dfc082;
  color: #fff;
}

.pool3d-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pool3d-slider-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.pool3d-slider-box label {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  font-weight: 650;
  color: #cfd9e3;
  margin-bottom: 0.35rem;
}

.pool3d-slider-box label output {
  color: #e7c98f;
  font-weight: 750;
}

.pool3d-slider-box input[type="range"] {
  width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #dfc082;
  cursor: pointer;
}

.pool3d-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.pool3d-toggle-list {
  display: grid;
  gap: 0.45rem;
}

.pool3d-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.pool3d-toggle-row strong {
  display: block;
  font-size: 0.78rem;
  color: #f3eee4;
}

.pool3d-toggle-row small {
  display: block;
  font-size: 0.69rem;
  color: #95a7b8;
}

.pool3d-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pool3d-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(223, 192, 130, 0.4);
  background: rgba(223, 192, 130, 0.1);
  color: #f6e4be;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pool3d-step-val {
  min-width: 22px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 750;
  color: #fff;
}

.pool3d-switch {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.pool3d-switch[aria-pressed="true"] {
  background: linear-gradient(135deg, #e3c485, #c9a35b);
  border-color: #e3c485;
  color: #07131e;
}

.pool3d-cta-stack {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.55rem;
}

.pool3d-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pool3d-cta-row .btn {
  flex: 1 1 180px;
}

.pool3d-secondary-btn {
  appearance: none;
  border: 1px solid rgba(223, 192, 130, 0.42);
  background: rgba(223, 192, 130, 0.08);
  color: #f3e2be;
  border-radius: 999px;
  min-height: 46px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}

.pool3d-secondary-btn:hover {
  background: rgba(223, 192, 130, 0.18);
}

.pool3d-fineprint {
  font-size: 0.7rem;
  color: #8fa2b4;
  line-height: 1.45;
  margin: 0;
}

/* Estimate 3D Blueprint Card */
.estimate-3d-card {
  background: linear-gradient(145deg, #081522, #0d2133);
  color: #f4efe6;
  border: 1px solid rgba(223, 192, 130, 0.4);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.2rem;
}

.estimate-3d-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.estimate-3d-head strong {
  color: #e6c88d;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.estimate-3d-head a {
  font-size: 0.76rem;
  color: #7dd3fc;
  text-decoration: underline;
  font-weight: 650;
}

.estimate-3d-summary {
  font-size: 0.86rem;
  color: #dce5ee;
  margin: 0;
}

@media (max-width: 1080px) {
  .pool3d-workbench {
    grid-template-columns: 1fr;
  }
  .pool3d-preset-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pool3d-viewport-host {
    height: 440px;
  }
}

@media (max-width: 640px) {
  .pool3d-section {
    padding: 60px 0;
  }
  .pool3d-head {
    display: block;
  }
  .pool3d-head-brand {
    align-items: flex-start;
  }
  .pool3d-head p:not(.eyebrow) {
    margin-top: 0.8rem;
  }
  .pool3d-preset-strip {
    grid-template-columns: 1fr;
  }
  .pool3d-viewport-host {
    height: 340px;
  }
  .pool3d-telemetry {
    grid-template-columns: 1fr 1fr;
  }
  .pool3d-sliders,
  .pool3d-swatches,
  .pool3d-chip-grid {
    grid-template-columns: 1fr;
  }
  .pool3d-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

/* First view: a small brass basin fills while the 3D scene is prepared. */
.pool3d-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 38%, #0c1826 0%, #050b12 72%);
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.9s;
}
.pool3d-loading[data-done="ready"] { opacity: 0; visibility: hidden; }
.pool3d-loading[data-done="plan"] { background: none; place-content: end center; padding-bottom: 14px; }
.pool3d-loading[data-done="plan"] .pool3d-loading-basin { display: none; }
.pool3d-loading-basin {
  position: relative;
  width: 132px;
  height: 58px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(#07101a, #07101a) padding-box, linear-gradient(135deg, #8a6a2c, #f3deb0 45%, #b08a45 70%, #6f531f) border-box;
  box-shadow: inset 0 0 0 3px rgba(228, 196, 134, 0.14), 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.pool3d-loading-basin i {
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, #7dd3fc 0%, #1c7fb6 55%, #0b3f66 100%);
  transform-origin: 50% 100%;
  transform: scaleY(0.08);
  animation: pool3d-fill 2.4s cubic-bezier(0.3, 0.7, 0.2, 1) infinite alternate;
}
.pool3d-loading-text {
  max-width: 34ch;
  font: 600 11px/1.5 Manrope, system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e4c486;
}
.pool3d-loading[data-done="plan"] .pool3d-loading-text {
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(6, 11, 18, 0.86);
  border: 1px solid rgba(228, 196, 134, 0.5);
  color: #f7f2e8;
}
@keyframes pool3d-fill { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .pool3d-loading { transition: none; }
  .pool3d-loading-basin i { animation: none; transform: scaleY(0.7); }
}
