/* Shared pieces used on several pages: page heads, step strip, forms, choice cards, bands, map, lightbox, legal. */

/* Inner page head */
.page-head { padding-top: var(--s4); padding-bottom: var(--gap-out); display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s1) var(--gap-out); align-items: end; }
.page-head .label { margin-bottom: var(--s0); }
.page-head h1 { max-width: 14ch; }
.page-head .lead { max-width: 36ch; }
.page-hero { margin-bottom: var(--sec); }
.page-hero img { width: 100%; aspect-ratio: 2.618; object-fit: cover; border-radius: var(--r-card); }
@media (max-width: 900px) { .page-head { grid-template-columns: 1fr; padding-top: var(--s3); } }
@media (max-width: 760px) { .page-hero img { aspect-ratio: 1.618; } }

/* The three-step strip, reused on inner pages as a compact booking path */
.path { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r-card); background: var(--t1); padding: var(--s-1); gap: var(--s-1); }
.path li { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-1) var(--s0); border-radius: calc(var(--r-card) - var(--s-1)); color: var(--muted); font-size: var(--s-05); line-height: 1.3; }
.path b { display: block; color: var(--lake); font-weight: 600; }
.path .n { flex: none; width: var(--s15); height: var(--s15); border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(52 85 95 / .35); color: var(--lake); font: 600 var(--s0)/1 var(--serif); }
.path .is-now { background: var(--white); box-shadow: var(--shadow); color: var(--ink); }
.path .is-now .n { background: var(--lake); border-color: var(--lake); color: var(--white); }
.path .is-done .n { background: var(--t2); border-color: var(--t2); color: var(--deep); }
@media (max-width: 760px) {
  .path { grid-template-columns: 1fr; }
  .path li { padding: var(--s-2) var(--s-1); }
  .path .n { width: var(--s1); height: var(--s1); font-size: var(--s-05); }
}

/* Forms */
.form { display: grid; gap: var(--s05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s05); }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field label, .field .flabel { font-weight: 600; font-size: var(--s-05); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; height: var(--s2); padding: 0 var(--s0); border: 1px solid rgb(52 85 95 / .35); border-radius: var(--s-1); background: var(--white); font-size: var(--s0); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: var(--s5); padding: var(--s-1) var(--s0); resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: var(--s2); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334555F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right var(--s0) center / var(--s0) no-repeat; }
.input:hover { border-color: rgb(52 85 95 / .6); }
.input:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px rgb(52 85 95 / .18); }
.field.has-err .input { border-color: var(--err); }
.field.has-err .input:focus { box-shadow: 0 0 0 3px rgb(179 38 30 / .15); }
.err { min-height: 0; color: var(--err); font-size: var(--s-05); }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1); align-items: start; font-size: var(--s-05); color: var(--muted); }
.check input { width: var(--s0); height: var(--s0); margin: 3px 0 0; accent-color: var(--lake); }
.check a { color: var(--lake); }
.form-note { font-size: var(--s-05); color: var(--muted); }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }

/* Choice cards (radio groups) */
.choices { display: grid; gap: var(--s-1); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: space-between; gap: var(--s0); min-height: var(--s2); padding: var(--s-1) var(--s0); border: 1px solid rgb(52 85 95 / .3); border-radius: var(--s-1); background: var(--white); font-weight: 500; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice span::after { content: ""; flex: none; width: var(--s0); height: var(--s0); border-radius: 50%; border: 1px solid rgb(52 85 95 / .45); background: var(--white); transition: box-shadow .15s, background .15s; }
.choice small { display: block; color: var(--muted); font-weight: 400; font-size: var(--s-05); }
.choice input:hover + span { border-color: var(--lake); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgb(52 85 95 / .25); }
.choice input:checked + span { border-color: var(--lake); background: var(--t1); }
.choice input:checked + span::after { background: var(--lake); box-shadow: inset 0 0 0 4px var(--white); border-color: var(--lake); }

/* Dark band (deep lake). Sage never appears here. */
.dark { background: var(--deep); color: var(--white); }
.dark h2, .dark h3, .dark .label { color: var(--white); }
.dark .muted, .dark .lead { color: rgb(255 255 255 / .74); }
.dark .quiet { color: var(--white); text-decoration-color: rgb(255 255 255 / .45); }

/* Closing call to action: photo with words on the left third */
/* string-lights.jpg: pale sky upper left, dark mountains right of centre. The words sit on the mountains. */
.closing { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: calc(var(--s7) + var(--s2)); display: flex; align-items: center; justify-content: flex-end; isolation: isolate; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 45% 55% at 76% 52%, rgb(17 51 60 / .28), transparent 75%); pointer-events: none; }
.closing-in { width: 46%; padding: var(--s3) var(--s3) var(--s3) 0; color: var(--white); }
.closing-in h2 { color: var(--white); text-shadow: var(--halo); max-width: 16ch; }
.closing-in p { margin-top: var(--s0); text-shadow: var(--halo); max-width: 40ch; }
.closing-in .acts { margin-top: var(--s1); }
.closing-in .quiet { color: var(--white); text-shadow: var(--halo); text-decoration-color: rgb(255 255 255 / .5); }
@media (max-width: 1000px) { .closing-in { width: 62%; } }
@media (max-width: 760px) {
  .closing { min-height: calc(var(--s6) + var(--s5)); }
  .closing > img { object-position: 78% 50%; }
  .closing::before { background: radial-gradient(ellipse 90% 50% at 50% 48%, rgb(17 51 60 / .3), transparent 80%); }
  .closing-in { width: 100%; padding: var(--s1) var(--s0); }
}

/* Simple CTA band used on inner pages */
.band { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s1) var(--gap-out); align-items: center; padding: var(--s3); border-radius: var(--r-card); background: var(--t1); }
.band h2 { max-width: 18ch; }
.band p { margin-top: var(--s0); color: var(--muted); max-width: 46ch; }
.band .acts { justify-content: flex-start; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: var(--s2) var(--s0); } }

/* Hand-drawn estate map */
.map { border-radius: var(--r-card); background: var(--t1); overflow: hidden; }
.map svg { width: 100%; height: auto; }
.map text { font-family: Manrope, sans-serif; }

/* Sample tags */
.tag { display: inline-flex; align-items: center; min-height: var(--s1); padding: 0 var(--s-1); border-radius: 999px; background: var(--t1); color: var(--lake); font: 600 var(--s-1)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.dark .tag { background: rgb(255 255 255 / .12); color: var(--white); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgb(17 51 60 / .94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s0); padding: var(--s3) var(--s1) var(--s2); }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; gap: var(--s0); justify-items: center; min-width: 0; }
.lb img { max-height: calc(100svh - var(--s5)); width: auto; border-radius: var(--r-img); }
.lb figcaption { color: rgb(255 255 255 / .8); font-size: var(--s-05); }
.icon-btn { width: var(--s2); height: var(--s2); border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .08); color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: rgb(255 255 255 / .18); }
.icon-btn svg { width: var(--s0); height: var(--s0); }
.lb-close { position: absolute; top: var(--s0); right: var(--s0); }
@media (max-width: 760px) { .lb { grid-template-columns: 1fr 1fr; padding: var(--s3) var(--s0) var(--s0); } .lb figure { grid-column: 1 / -1; grid-row: 1; } .lb-prev { justify-self: end; } }

/* Legal and policy pages */
.legal { display: grid; grid-template-columns: 1fr 2.618fr; gap: var(--gap-out); padding-bottom: var(--sec); }
.legal-side { position: sticky; top: calc(var(--hdr) + var(--s1)); align-self: start; display: grid; gap: var(--s0); }
.legal-side .tag { justify-self: start; }
.legal-side nav ul { display: grid; gap: var(--s-2); }
.legal-side nav a { font-size: var(--s-05); color: var(--muted); text-decoration: none; }
.legal-side nav a:hover { color: var(--lake); text-decoration: underline; }
.legal-body { max-width: 66ch; }
.legal-body h2 { font-size: var(--s1); margin-top: var(--s2); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { margin-top: var(--s0); }
.legal-body ul { list-style: disc; padding-left: var(--s0); }
.legal-body li + li { margin-top: var(--s-2); }
.legal-body a { color: var(--lake); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-side { position: static; } }

/* Fixes (2026-11-23): a deeper soft fade behind the closing words so the small line stays readable over the bright sky */
.closing::before { background: radial-gradient(ellipse 52% 62% at 74% 52%, rgb(17 51 60 / .46), transparent 78%); }
@media (max-width: 760px) { .closing::before { background: radial-gradient(ellipse 90% 60% at 40% 45%, rgb(17 51 60 / .46), transparent 80%); } }

/* Map: the real aerial from the 3D model with numbered pins (2026-11-25: "You literally have a whole 3D model"). */
.map { background: none; overflow: visible; display: grid; gap: var(--s0); }
.map-img { position: relative; border-radius: var(--r-img); overflow: hidden; }
.map-img img { display: block; width: 100%; height: auto; }
.pin { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: var(--s-2); transform: translate(calc(var(--s05) / -2), -50%); }
.pin b { display: grid; place-items: center; width: var(--s05); height: var(--s05); border-radius: 50%; background: var(--white); color: var(--lake); font: 600 var(--s-1)/1 var(--sans); box-shadow: 0 1px 2px rgb(17 51 60 / .35), 0 0 0 var(--s-2) rgb(255 255 255 / .28); }
.pin em { font: 600 var(--s-1)/1 var(--sans); font-style: normal; color: var(--white); background: rgb(17 51 60 / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: var(--s-2) var(--s-1); border-radius: 999px; white-space: nowrap; }
.map-key { display: none; margin: 0; padding: 0; list-style: none; counter-reset: k; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s0); font-size: var(--s-05); }
.map-key li { counter-increment: k; display: flex; gap: var(--s-2); align-items: baseline; }
.map-key li::before { content: counter(k); font-weight: 600; color: var(--lake); }
@media (max-width: 1100px) { .pin em { display: none; } .map-key { display: grid; } }
