/* Pool designer (customize.html) only. Owner: Hugo (from Oct 30 2026).
   Loaded after v2.css and luxe.css; overrides, never edits, Dennis's shared files. */

/* ---- five real footprints (plan bug 2): water insets per standard size, inside the deck */
.pool-plan { --wt: 15%; --wr: 18%; --wb: 16%; --wl: 13%; }
.pool-plan[data-size="12x24"] { --wt: 25%; --wr: 27%; --wb: 26%; --wl: 20%; }
.pool-plan[data-size="14x28"] { --wt: 20%; --wr: 22.5%; --wb: 21%; --wl: 16.5%; }
.pool-plan[data-size="16x32"] { --wt: 15%; --wr: 18%; --wb: 16%; --wl: 13%; }
.pool-plan[data-size="18x36"] { --wt: 10.5%; --wr: 14%; --wb: 11.5%; --wl: 9.5%; }
.pool-plan[data-size="20x40"] { --wt: 6%; --wr: 10.5%; --wb: 7%; --wl: 6%; }
.pool-plan .pool-water { inset: var(--wt) var(--wr) var(--wb) var(--wl); transition: inset .45s ease, background .45s ease, border-color .3s ease, border-radius .3s ease; }
.pool-plan .pool-coping { inset: calc(var(--wt) - 7px) calc(var(--wr) - 7px) calc(var(--wb) - 7px) calc(var(--wl) - 7px); transition: inset .45s ease; }

/* ---- concrete vs vinyl (plan bug 3): wide natural-stone coping vs slim bright coping, rounded liner corners */
.pool-plan[data-material="concrete"] .pool-water { border-color: #ece5d3; }
.pool-plan[data-material="concrete"] .pool-coping { background: #ece5d3; }
.pool-plan[data-material="vinyl"] .pool-water { border-width: 4px; border-color: #f6f7f5; border-radius: 10px; box-shadow: inset 0 0 0 3px #2d6f8a55, inset 4px 5px 12px #003b5140, 0 4px 7px #243b3520; }
.pool-plan[data-material="vinyl"][data-shape="freeform"] .pool-water { border-radius: 0; }
.pool-plan[data-material="vinyl"] .pool-coping { background: #f6f7f5; inset: calc(var(--wt) - 4px) calc(var(--wr) - 4px) calc(var(--wb) - 4px) calc(var(--wl) - 4px); }

/* ---- spa sits on the pool's far edge and spills in, like Caley's inspiration (plan bug 4) */
.pool-plan .pool-spa { top: calc((var(--wt) + 100% - var(--wb)) / 2); right: calc(var(--wr) - 9%); width: 18%; transform: translateY(-50%); z-index: 2; border-width: 5px; transition: right .45s ease, top .45s ease; }
.pool-plan[data-spa-shape="rectangle"] .pool-spa { width: 15%; aspect-ratio: .62; right: calc(var(--wr) - 7.5%); }
.pool-plan .pool-spa::after { content: ''; position: absolute; left: -9px; top: 22%; bottom: 22%; width: 5px; background: linear-gradient(90deg, #ffffffe0, #ffffff40); border-radius: 2px; }
.pool-plan[data-spa-shape="round"] .pool-spa::after { top: 30%; bottom: 30%; }

/* ---- each step type reads clearly (plan bug 5) */
.pool-plan[data-steps="full-width"] .pool-steps { width: 13%; height: auto; bottom: 0; border-radius: 0; }
.pool-plan[data-steps="square-corner"] .pool-steps { width: 16%; height: 32%; bottom: auto; border-radius: 0; background: linear-gradient(#ffffff70,#ffffff70) 0 0/100% 33.3% no-repeat, linear-gradient(#ffffff55,#ffffff55) 0 0/66.6% 66.6% no-repeat, linear-gradient(#ffffff40,#ffffff40) 0 0/33.3% 100% no-repeat; border-right: 0; }
.pool-plan[data-steps="wedding-cake"] .pool-steps { width: 20%; height: 36%; bottom: auto; border-radius: 0 0 100% 0; background: repeating-radial-gradient(circle at 0 0, #ffffff78 0 9px, #ffffff38 9px 11px); border-right: 0; }

/* ---- ledge and loungers out of the spa's way */
.pool-plan .pool-ledge { right: auto; left: 24%; bottom: 0; width: 30%; height: 26%; }
.pool-plan .pool-lounger { top: auto; right: auto; bottom: 1.5%; left: 30%; width: 15%; height: 6%; transform: none; background: repeating-linear-gradient(90deg,#f9f7eb 0 3px,#d1c8b5 4px 5px); }
.pool-plan .pool-lounger--two { left: 48%; }
.pool-plan[data-size="20x40"] .pool-lounger, .pool-plan[data-size="18x36"] .pool-lounger { bottom: -1%; }

/* ---- phones: a small copy of the picture stays in view while choosing (plan bug 1) */
.config-mini { display: none; }
@media (max-width: 61.99rem) {
  .config-mini { display: block; position: sticky; top: 72px; height: 0; z-index: 30; }
  .config-mini__bar { position: absolute; top: 0; left: calc(-1 * var(--gutter, 1rem)); right: calc(-1 * var(--gutter, 1rem)); display: flex; align-items: center; gap: .75rem; padding: .5rem var(--gutter, 1rem); background: #fbfaf6f2; border-bottom: 1px solid var(--hairline, #ddd); box-shadow: 0 6px 14px #1d2b2a14; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
  .config-mini.is-on .config-mini__bar { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .config-mini__pic { flex: 0 0 auto; width: 92px; }
  .config-mini__pic .pool-plan { border-radius: 3px; }
  .config-mini__pic .pool-plant, .config-mini__pic .pool-lounger { display: none; }
  .config-mini__text { margin: 0; font-size: .85rem; font-weight: 600; line-height: 1.3; }
  .config-mini__note { margin: .1rem 0 0; font-size: .72rem; color: var(--ink-muted, #666); letter-spacing: .04em; text-transform: uppercase; }
  /* jumps from the section nav land below the header and the mini picture */
  .config-group, #your-brief, #get-your-quote { scroll-margin-top: 170px; }
}

/* ---- tap targets 44px (plan bug 8; Vera QA #2 to #6, #34) */
.config-link { display: inline-flex; align-items: center; min-height: 44px; }
.config-investment .config-link { display: flex; width: fit-content; font-size: .88rem; font-weight: 600; }
.config-nav a { min-width: 44px; justify-content: center; }
.brief-edit { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .pool-plan .pool-water, .pool-plan .pool-coping, .pool-plan .pool-spa, .config-mini__bar { transition: none; }
}
@media print { .config-mini { display: none !important; } }

/* ---- round 2: the realistic picture, layered on one Gemini base scene */
.pool-scene, .pool-scene__tag { display: none; }
.pool-plan.has-scene { background: #3d5a32; }
.pool-plan.has-scene > :not(.pool-scene):not(.pool-scene__tag) { display: none; }
.pool-plan.has-scene .pool-scene { display: block; position: absolute; inset: 0; }
.pool-scene__frame { position: absolute; left: 0; width: 100%; aspect-ratio: 1024 / 765; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .4s ease; }
/* short desktop screens: Dennis's wider 2.1 picture box keeps the quote button on screen; show the pool band of the scene */
@media (min-width: 62rem) and (max-height: 950px) { .pool-scene__frame { top: -8%; transform: none; } }
.pool-scene__frame:first-child { opacity: 1; }
.pool-scene__frame.is-in { opacity: 1; }
.pool-scene__frame img { position: absolute; display: block; height: auto; max-width: none; pointer-events: none; user-select: none; }
.pool-plan.has-scene .pool-scene__tag { display: block; position: absolute; left: .5rem; bottom: .5rem; z-index: 3; padding: .15rem .45rem; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #1d2b2ab3; border-radius: 2px; }
.config-mini .pool-scene__tag { display: none !important; }
@media (prefers-reduced-motion: reduce) { .pool-scene__frame { transition: none; } }
/* Round 3 (Caley, text Oct 31 7:53 AM ET): pool brief title block and call to action buttons */
@media print {
  .pb-hero { margin: 0 0 8pt; }
  .pb-brand { margin: 0 0 2pt; font: 600 10pt/1.2 Helvetica, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7e5f2e; }
  .pb-sub { margin: 0; font: italic 400 13pt/1.3 Georgia, "Times New Roman", serif; color: #6b6257; }
  .pb-cta { display: flex; flex-wrap: wrap; gap: 8pt; margin: 8pt 0 12pt; }
  .pb-btn { display: inline-block; padding: 6pt 14pt; border-radius: 4pt; background: #1d2228; color: #fff !important; font-weight: 600; text-decoration: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* r3b: the site's reveal effect left the brief's title, headings and buttons at opacity 0 in the PDF */
@media print { body.is-printing-brief .print-brief, body.is-printing-brief .print-brief * { opacity: 1 !important; transform: none !important; } }
/* r3c: the page's dark html background filled the rest of the last PDF page */
@media print { html:has(body.is-printing-brief) { background: #fff !important; } }
/* ---- round 4 (Hugo, Nov 2): Caley 291 custom stairs note; phone picture kept in view (Vera review) */
.config-group > .config-note { clear: both; margin: .9rem 0 0; color: var(--ink-muted, #555); font-size: .95rem; }
@media (max-width: 61.99rem) {
  /* the picture in view on phones is a real, readable crop of the yard (pool + patio), not a 92 px thumbnail,
     so colour, size, spa, steps and add-on changes are seen without scrolling up */
  .config-mini__pic { width: 46vw; max-width: 230px; aspect-ratio: 690 / 540; overflow: hidden; position: relative; border-radius: 4px; }
  .config-mini__pic .pool-plan { position: absolute; width: 148.41%; max-width: none; left: -31.16%; top: -32.41%; margin: 0; aspect-ratio: 1024 / 765; border-radius: 0; }
  .config-mini__pic .pool-plan:not(.has-scene) { position: static; width: 100%; }
  .config-mini__pic .pool-scene__frame { transition: none !important; opacity: 1 !important; }
  .config-mini__bar { padding-top: .4rem; padding-bottom: .4rem; }
}
/* r4: the patio, pool and loungers (scene y 175 to 650) are the subject; keep them centred in the wide desktop box */
.pool-scene__frame { top: 50%; transform: translateY(-54%); }
@media (min-width: 62rem) and (max-height: 950px) { .pool-scene__frame { top: 50%; transform: translateY(-54%); } }
/* r4c: the finishes rail shows it scrolls (QA Nov 2, 1440: a half-cut card with no cue) */
.finish-band .finish-scroll { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 4.5rem), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 4.5rem), transparent); scrollbar-width: thin; }
.finish-band .finish-scroll.is-end { -webkit-mask-image: none; mask-image: none; }
/* r4d: a preview taller than the screen scrolls with the page, so "Review your pool brief" can always be reached */
.config-preview__sticky.is-tall { position: static; }
/* CR-20261103-8 (Nov 3): desktop pool preview stays in view on the left while the options scroll (replaces r4d's static fallback). Phones keep the compact sticky bar above. */
@media (min-width: 62rem) {
  .config-preview__sticky { position: sticky; top: var(--cfg-top, 7.5rem); }
  .config-preview__sticky.is-tall { position: sticky; max-height: calc(100vh - var(--cfg-top, 7.5rem) - 1rem); overflow-y: auto; scrollbar-width: thin; padding-right: .25rem; }
  .config-preview__sticky.is-tall #preview-h { margin-bottom: .5rem; }
  .config-preview__sticky.is-tall .pool-plan { aspect-ratio: 2.4; }
}

/* ---- spa sub-questions (Jacky Nov 3 ~10 PM ET): v2.css floats every legend inside .config-group at full width
   (meant for the step title). The nested Spa shape / Spa water colour legends inherited it, so their options were
   pushed beside a full-width float into a 0 px column outside the card. Sub-question legends sit in normal flow,
   and their options are a grid of equal buttons inside the card. */
.config-group .config-sub { min-width: 0; }
.config-sub > legend { padding: 0; margin: 0 0 .6rem; font-size: 1.05rem; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.config-sub .config-choices--chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .5rem; }
@media (min-width: 34rem) { .config-sub .config-choices--chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.config-sub .config-choice--chip { min-width: 0; min-height: 48px; padding: .7rem .85rem; align-items: center; }
.config-sub .config-choice--chip strong { line-height: 1.25; }

/* ---- r7 (Karen r6 fixes 2, 3, 5): option grids follow how many options a step has and how wide its card is,
   so no step ends on a lone half-width card and no caption is squeezed to one word per line.
   Narrow card (phones, under 26rem): every photo step (pairs too, r8 Karen r7 fix 2) is full-width rows, photo left, text right.
   26rem and up: pairs and fours 2-up; threes are rows until 36rem, then one row of three; an odd last card (5, 7)
   spans the row as a wide card. */
.config-group { container: cfg / inline-size; }
.config-choices--photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container cfg (max-width: 25.99rem) {
  .config-choices--photo:has(> .config-choice:nth-child(2)) { grid-template-columns: 1fr; }
  .config-choices--photo:has(> .config-choice:nth-child(2)) > .config-choice--photo { grid-template-columns: 6.5rem auto 1fr; align-items: center; align-content: stretch; gap: .75rem; padding: 0; min-height: 6rem; }
  .config-choices--photo:has(> .config-choice:nth-child(2)) > .config-choice--photo .config-choice__img { grid-column: 1; grid-row: 1; width: 100%; height: 100%; min-height: 6rem; aspect-ratio: auto; }
  .config-choices--photo:has(> .config-choice:nth-child(2)) > .config-choice--photo input { margin-left: 0; }
  .config-choices--photo:has(> .config-choice:nth-child(2)) > .config-choice--photo > span { padding: .75rem .9rem .75rem 0; }
}
@container cfg (min-width: 26rem) and (max-width: 41.99rem) {
  .config-choices--photo:has(> .config-choice:nth-child(3):last-child) { grid-template-columns: 1fr; }
  .config-choices--photo:has(> .config-choice:nth-child(3):last-child) > .config-choice--photo { grid-template-columns: minmax(9rem, 36%) auto 1fr; align-items: center; align-content: stretch; gap: .9rem; padding: 0; min-height: 7rem; }
  .config-choices--photo:has(> .config-choice:nth-child(3):last-child) > .config-choice--photo .config-choice__img { grid-column: 1; grid-row: 1; width: 100%; height: 100%; min-height: 7rem; aspect-ratio: auto; }
  .config-choices--photo:has(> .config-choice:nth-child(3):last-child) > .config-choice--photo input { margin-left: 0; }
  .config-choices--photo:has(> .config-choice:nth-child(3):last-child) > .config-choice--photo > span { padding: .9rem 1rem .9rem 0; }
}
@container cfg (min-width: 42rem) {
  .config-choices--photo:has(> .config-choice:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container cfg (min-width: 26rem) {
  .config-choices--photo:has(> .config-choice:nth-child(5)) > .config-choice--photo:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(9rem, 38%) auto 1fr; align-items: center; align-content: stretch; gap: .9rem; padding: 0; min-height: 8rem; }
  .config-choices--photo:has(> .config-choice:nth-child(5)) > .config-choice--photo:last-child:nth-child(odd) .config-choice__img { grid-column: 1; grid-row: 1; width: 100%; height: 100%; min-height: 8rem; aspect-ratio: auto; }
  .config-choices--photo:has(> .config-choice:nth-child(5)) > .config-choice--photo:last-child:nth-child(odd) input { margin-left: 0; }
  .config-choices--photo:has(> .config-choice:nth-child(5)) > .config-choice--photo:last-child:nth-child(odd) > span { padding: .9rem 1rem .9rem 0; }
  /* Karen fix 7: the four Pebble Tec finishes as a 2 x 2 set, no hidden sideways scroll for mouse users */
  .finish-band .finish-scroll { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .finish-band .finish-scroll__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; }
  .finish-band .finish-scroll__item { flex: none; }
}
/* phone picture bar: solid paper so the step heading underneath never shows through it */
@media (max-width: 61.99rem) { .config-mini__bar { background: var(--paper, #fbfaf6); } }
/* Karen r6 fix 4: phone picture bar about 100 px tall (was 154), so fixed bars stay under 30% of a phone screen */
@media (max-width: 61.99rem) {
  .config-mini__pic { width: 34vw; max-width: 150px; }
  .config-mini__text { font-size: .82rem; }
}
/* Karen r6 fix 1: the bottom Call / brief bar keeps the dark phone style up to where it hides (48.99rem); between
   46rem and 49rem it turned light glass while CALL stayed ivory (contrast about 1.1 to 1) */
@media (min-width: 46rem) and (max-width: 48.99rem) {
  .actionbar { background: rgb(12,10,9); /* Karen r27 fix 5: opaque over the designer picture */ border-top: 1px solid var(--lx-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
/* Karen r27b fix 1 (Nov 4): on phones too the designer page's bar is solid, so the picture tag and footer never show through */
@media (max-width: 45.99rem) {
  .actionbar { background: rgb(12,10,9) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Karen r6 fix 6: until a photo arrives its box is a soft water-and-garden tone, not flat tan */
.config-choice__img { background: linear-gradient(160deg, #d5e3df 0%, #b8d0cf 55%, #c9d6c3 100%); }

/* r8 (Karen r7 fix 1): chip grids never end on a lone half-width chip.
   Spa shape (3 chips): one row of three at every width. How deep? (5 or 6 depths): 2 columns on narrow
   cards with an odd last chip spanning the row, 3 columns from 26rem, 5 in one row from 44rem when 5 show. */
.config-sub .config-choices--chips:has(> .config-choice:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.config-choices--depth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container cfg (max-width: 25.99rem) {
  .config-choices--depth > .config-choice:nth-last-child(1 of :not([hidden])):nth-child(odd of :not([hidden])) { grid-column: 1 / -1; }
}
@container cfg (min-width: 26rem) {
  /* r8c (Karen r8 fixes 2, 3): a 6-track grid; three per row, and when 5 depths show the last two share the row */
  .config-choices--depth { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .config-choices--depth > .config-choice { grid-column: span 2; }
  .config-choices--depth:has(> .config-choice[hidden]) > .config-choice:nth-last-child(-n+2 of :not([hidden])) { grid-column: span 3; }
}
/* r8c: a depth range never breaks across lines */
.config-choices--depth .config-choice strong { white-space: nowrap; }
/* r8c (Karen r8 fix 1): on narrow cards Spa shape is 2 + 1 with Round spanning the row, so "Rectangle" has room */
@container cfg (max-width: 25.99rem) {
  .config-sub .config-choices--chips:has(> .config-choice:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-sub .config-choices--chips > .config-choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* r8 (Karen r7 fix 3): first paint. The cross-page fade into the designer is short, and the empty photo boxes
   and the picture panel show the soft water tone, never a flat block, until their images draw. */
::view-transition-new(root) { animation-duration: 140ms; }
::view-transition-old(root) { animation-duration: 100ms; }
.pool-scene { background: linear-gradient(160deg, #cfdcd3 0%, #b8d0cf 60%, #c9d6c3 100%); }
