/* Product tour page only (/product). Every selector starts with .pg-product. Tokens come from site.css. */

.pg-product .modules { margin-top: clamp(28px, 4vw, 44px); }
.pg-product .module h3 { font-size: 1.25rem; }
.pg-product .ptour { scroll-margin-top: 84px; }
.pg-product .ptour .split { align-items: start; }
.pg-product .ptour__copy { display: grid; gap: 18px; align-content: start; }
.pg-product .ptour__copy > p { color: var(--fg-2); }
.pg-product .ptour__copy h3 { font-size: 1.2rem; margin-top: 6px; }
.pg-product .ptour__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pg-product .ptour__list { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); }
.pg-product .ptour__list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.pg-product .ptour__list b { color: var(--fg); font-weight: 600; }
.pg-product .ptour__side { display: grid; gap: 20px; min-width: 0; }

/* Brand plates inside a fragment wrap instead of scrolling */
.pg-product .plates { display: flex; flex-wrap: wrap; gap: 8px; }

/* Static month calendar (product.js makes the days pickable) */
.pg-product .rcal__day:disabled { cursor: default; }
.pg-product .rcal__day[data-none] { cursor: default; }
.pg-product .calcap { display: grid; gap: 4px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pg-product .calcap b { font: 700 1.5rem/1 var(--font-display); letter-spacing: -.03em; }
.pg-product .calcap b.is-low { color: var(--green); }
.pg-product .calcap span { font-size: .875rem; color: var(--fg-3); }

/* Coast map fragment: simplified coastline + real-looking price pins */
.pg-product .coastmap { aspect-ratio: 4 / 3.6; width: 100%; }
.pg-product .coastmap .mapchip { left: auto; right: 12px; bottom: auto; top: 12px; }
.pg-product .coastmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-product .coastmap .land { fill: var(--land); }
.pg-product .coastmap .shore { fill: none; stroke: var(--nation); stroke-width: 1.2; }
.pg-product .coastmap .road { fill: none; stroke: var(--edge); stroke-width: 3; }
.pg-product .coastmap .place { font: 500 14px var(--font-text); fill: var(--fg-3); }
.pg-product .coastmap .sea { font: italic 500 14px var(--font-text); fill: var(--fg-3); }
.pg-product .coastmap .pin { cursor: default; }
.pg-product .coastmap .pin code { font-size: .75rem; margin-right: 6px; opacity: .75; font-weight: 500; }
.pg-product .coastmap .pin[data-low] { background: var(--green); color: var(--on-accent); }
.pg-product .coastmap .pin[data-low] code { opacity: .8; }
.pg-product .coastmap .dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--dot-pin); }

/* Client record */
.pg-product .client { display: grid; gap: 14px; }
.pg-product .client__who { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.pg-product .client__who b { font: 700 1.25rem/1.1 var(--font-display); letter-spacing: -.02em; }
.pg-product .timeline { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line); }
.pg-product .timeline li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--fg-2); }
.pg-product .timeline li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--fg-3); }
.pg-product .timeline li:last-child { border-bottom: 0; color: var(--fg); font-weight: 600; }
.pg-product .timeline li:last-child::before { background: var(--fg); }

/* Ledger rows reuse .dayrow; a small method pill on the left */
.pg-product .pill { min-width: 58px; text-align: center; padding: 4px 10px; border-radius: var(--r-pill); background: var(--fill); font: 600 .75rem/1.4 var(--font-text); color: var(--fg-2); }
.pg-product .dayrow__price.neg { color: var(--warn); }
.pg-product .settle { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--fg-2); display: grid; gap: 6px; }
.pg-product .settle b { color: var(--fg); }

/* Plans line under the tour */
.pg-product .planrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pg-product .planrow a { display: grid; gap: 6px; align-content: start; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
.pg-product .planrow a + a { padding-left: 20px; border-left: 1px solid var(--line); }
.pg-product .planrow b { font: 700 1.5rem/1 var(--font-display); letter-spacing: -.02em; }
.pg-product .planrow .num { font: 700 2.4rem/1 var(--font-display); letter-spacing: -.04em; }
.pg-product .planrow .num small { font-size: .4em; color: var(--fg-2); letter-spacing: 0; margin-left: 3px; }
.pg-product .planrow span:last-child { color: var(--fg-2); font-size: .9375rem; }
.pg-product .planrow a:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .pg-product .planrow { grid-template-columns: minmax(0, 1fr); }
  .pg-product .planrow a + a { padding-left: 0; border-left: 0; }
}

/* Fragments stacked inside the money / booking modules */
.pg-product .ftable td { color: var(--fg-2); }
/* Tables become one card per row on phones (labels from data-l) */
@media (max-width: 640px) {
  .pg-product .ftable--stack { min-width: 0; }
  .pg-product .ftable--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-product .ftable--stack tr { display: grid; gap: 6px; padding: 16px; border-bottom: 1px solid var(--line); }
  .pg-product .ftable--stack tr:last-child { border-bottom: 0; }
  .pg-product .ftable--stack th, .pg-product .ftable--stack td { display: block; padding: 0; border: 0; white-space: normal; }
  .pg-product .ftable--stack tbody th { font-size: 1rem; margin-bottom: 4px; }
  .pg-product .ftable--stack td[data-l]::before { content: attr(data-l); display: block; font-size: .75rem; font-weight: 600; color: var(--fg-3); }
}
