/* Family in town? 5 ready-made days (/things-to-do/visitors/, src/pages/visitors.mjs). A photo header, the date
   picker and five photo cards on the first screen, a sticky jump strip, then each day: a photo header with its send
   button, the hour-by-hour line (time, walk or drive with parking, lunch picks) beside a sticky map and the day's
   swaps. Every rule names a vz- class (css-split puts class-less rules on every page). */

/* ---------- header ---------- */
.ph.vz-hero { padding-bottom: var(--sp-24); background: radial-gradient(70% 80% at 85% 0%, rgba(239, 161, 58, .2), transparent 62%), var(--paper); }
.vz-hero h1 { max-width: 15ch; }
.vz-hero .lede { max-width: 36em; }
.vz-hero-ph { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-2); }
.vz-hero-ph img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.vz-hero-ph figcaption { position: absolute; left: var(--sp-12); bottom: var(--sp-12); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(14, 26, 36, .5); color: #fffaf2; font: 500 .75rem/1.3 var(--sans); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 900px) {
  .vz-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
  .vz-hero .ph-top.solo { position: absolute; top: var(--sp-8); right: 0; margin: 0; float: none; }
  .vz-hero-ph { margin-top: calc(34px + var(--sp-16)); }
  .vz-hero-ph img { aspect-ratio: 4 / 3; max-height: 340px; }
}
@media (max-width: 899px) { .vz-hero-ph { margin-top: var(--sp-16); } .vz-hero-ph img { max-height: 220px; } }

/* ---------- the date picker ---------- */
.vz-sec { padding-top: var(--sp-24); }
.vz-pick { display: grid; gap: var(--sp-8); padding: var(--sp-16); border-radius: var(--radius); background: var(--sea-deep); color: #fffaf2; }
.vz-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-12); }
.vz-pick label { font: 400 var(--h2-card)/1.2 var(--serif); }
.vz-pick input[type="date"] { min-height: 40px; padding: 0 var(--sp-12); border: 1px solid rgba(255, 250, 242, .35); border-radius: var(--r-ctl); background: rgba(255, 250, 242, .08); color: #fffaf2; font: 600 1rem var(--sans); color-scheme: dark; }
.vz-pick input[type="date"]:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.vz-quick { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.vz-q { min-height: 40px; padding: 0 .9em; border: 1px solid rgba(255, 250, 242, .3); border-radius: var(--r-ctl); background: transparent; color: #fffaf2; font: 600 .9rem var(--sans); cursor: pointer; }
.vz-q small { font-weight: 500; opacity: .75; }
.vz-q[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.vz-q:focus-visible { outline: 3px solid var(--sun-2); outline-offset: 2px; }
.vz-pick-note { margin: 0; color: rgba(255, 250, 242, .85); font: 500 .9rem/1.45 var(--sans); max-width: 70ch; }

/* ---------- the five cards ---------- */
.vz-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-12); margin: var(--sp-16) 0 var(--sp-24); }
.vz-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--sea-deep); color: #fffaf2; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.vz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.vz-card:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.vz-card-ph, .vz-card-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vz-card-ph .pcred { display: none; }
.vz-card-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 26, 36, .88), rgba(14, 26, 36, .1) 60%); }
.vz-card-t { position: absolute; left: var(--sp-12); right: var(--sp-12); bottom: var(--sp-12); display: grid; gap: var(--sp-4); }
.vz-card-t small { font: 700 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sun-2); }
.vz-card-t b { font: 400 var(--h3-card)/1.1 var(--serif); }
.vz-card-t span { font: 500 .82rem/1.3 var(--sans); opacity: .88; }
.vz-card-tag { position: absolute; top: var(--sp-8); left: var(--sp-8); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: var(--sun); color: var(--ink); font: 700 .68rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.vz-card.is-fit { box-shadow: 0 0 0 3px var(--sun); }
.vz-card-tag[hidden] { display: none; }
@media (max-width: 899px) {
  .vz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vz-card { aspect-ratio: 4 / 3; }
  .vz-card:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .vz-card-t span { display: none; }
}

/* ---------- jump strip ---------- */
.vz-jump { position: sticky; top: 76px; z-index: 20; margin: 0 0 var(--sp-8); padding: var(--sp-8) 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.vz-jump ul { display: flex; gap: var(--sp-8); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.vz-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9em; border-radius: 999px; color: var(--ink-2); font: 600 .9rem var(--sans); text-decoration: none; white-space: nowrap; }
.vz-jump a:hover { background: var(--paper-2); color: var(--ink); }
.vz-jump a[aria-current] { background: var(--ink); color: #fffaf2; }

/* ---------- one day ---------- */
.vz-day { scroll-margin-top: 140px; padding-top: var(--sp-48); }
.vz-dh { display: grid; gap: var(--sp-16) var(--sp-32); align-items: center; }
.vz-dh-ph { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.vz-dh-ph img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vz-dh-n { position: absolute; left: var(--sp-16); bottom: var(--sp-8); color: #fffaf2; font: 400 3rem/1 var(--serif); text-shadow: 0 2px 18px rgba(14, 26, 36, .55); }
.vz-for { margin: 0 0 var(--sp-4); color: var(--tile); font: 700 .68rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.vz-h2 { margin: 0; font: 400 var(--h2-sec)/1.1 var(--serif); }
.vz-line { margin: var(--sp-8) 0 0; font-size: 1.12rem; line-height: 1.45; color: var(--ink-2); max-width: 40em; }
.vz-stats { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: var(--sp-12) 0 0; padding: 0; list-style: none; }
.vz-stats li { padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: var(--paper-2); color: var(--ink-2); font: 600 .82rem var(--sans); }
.vz-when { margin: var(--sp-12) 0 0; color: var(--ink-3); font: 600 .82rem var(--sans); }
.vz-when:empty { display: none; }
.vz-send-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-12); margin-top: var(--sp-16); }
.vz-send { display: inline-flex; align-items: center; gap: var(--sp-8); min-height: 44px; padding: 0 1.1em; border: 0; border-radius: 999px; background: var(--tile); color: #fffaf2; font: 600 .9rem var(--sans); cursor: pointer; transition: background .2s; }
.vz-send:hover { background: var(--tile-deep); }
.vz-send:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.vz-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.vz-sent { color: var(--sea); font: 600 .82rem var(--sans); }
@media (min-width: 900px) {
  .vz-dh { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .vz-dh-ph img { aspect-ratio: 3 / 2; max-height: 300px; }
}

.vz-body { display: grid; gap: var(--sp-24); margin-top: var(--sp-24); }
@media (min-width: 960px) {
  .vz-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--sp-32); align-items: start; }
  .vz-side { position: sticky; top: 140px; }
}

/* the hour-by-hour line: time on the left, a rail with a dot, then the stop */
.vz-tl { margin: 0; padding: 0; list-style: none; display: grid; }
.vz-stop { position: relative; display: grid; gap: var(--sp-8); padding-left: 28px; } /* sp-ok: rail width */
.vz-stop::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--paper-3); }
.vz-stop:first-child::before { top: 14px; }
.vz-stop:last-child::before { bottom: auto; height: 14px; }
.vz-stop-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4) var(--sp-16); padding: var(--sp-8) 0 var(--sp-24); }
.vz-stop-in::before { content: ""; position: absolute; left: -26px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--sea); }
.vz-stop.is-lunch .vz-stop-in::before { border-color: var(--tile); }
.vz-stop.is-sunset .vz-stop-in::before { border-color: var(--sun); background: var(--sun); }
.vz-stop.is-flagged .vz-stop-in::before { border-color: var(--tile); background: var(--tile); }
.vz-time { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-8); margin: 0; font: 700 .9rem var(--sans); color: var(--sea); font-variant-numeric: tabular-nums; }
.vz-tag { padding: 2px var(--sp-8); border-radius: var(--r-tag); background: color-mix(in srgb, var(--tile) 12%, transparent); color: var(--tile-deep); font: 700 .68rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; } /* sp-ok: 2px tag padding */
.vz-tag.is-sun { background: color-mix(in srgb, var(--sun) 25%, transparent); color: #7a4a06; }
.vz-stop-b { min-width: 0; }
.vz-stop-h { margin: 0; font: 600 1.12rem/1.3 var(--sans); }
.vz-stop-h a { color: var(--ink); text-decoration-color: var(--paper-3); text-underline-offset: 3px; }
.vz-stop-h a:hover { text-decoration-color: var(--tile); }
.vz-stop-b > p { margin: var(--sp-4) 0 0; color: var(--ink-2); line-height: 1.5; }
.vz-facts { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-12); font: 500 .82rem/1.4 var(--sans); }
.vz-facts span { color: var(--ink-3); }
.vz-facts a { color: var(--ink-2); }
.vz-flag { padding: var(--sp-8) var(--sp-12); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--tile) 10%, #fffaf2); color: var(--tile-deep); font: 600 .82rem/1.45 var(--sans); }
.vz-flag[hidden], .vz-sky[hidden] { display: none; }
.vz-sky { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-4) var(--sp-8); font: 500 .9rem/1.4 var(--sans); }
.vz-sky > span + span { grid-column: 2; }
.vz-sky .tmark { --sz: 28px; border-radius: 7px; }
.vz-stop-ph { align-self: start; margin: var(--sp-4) 0 0; position: relative; width: 132px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.vz-stop-ph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.vz-stop-ph .pcred { transform: scale(.8); transform-origin: bottom right; }
@media (max-width: 599px) { .vz-stop-ph { width: 88px; } }

/* how you get there, on the rail between two stops */
.vz-leg { position: relative; display: flex; gap: var(--sp-8); align-items: flex-start; margin: 0 0 var(--sp-4); color: var(--ink-3); font: 500 .82rem/1.45 var(--sans); }
.vz-leg-i { position: absolute; left: -28px; top: 0; display: grid; place-items: center; width: 16px; height: 18px; background: var(--paper); color: var(--ink-3); font: 700 .68rem var(--sans); }
.vz-leg a { color: var(--ink-2); }

/* lunch picks */
.vz-lunch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-12); margin: var(--sp-12) 0 0; padding: 0; list-style: none; }
.vz-lunch li[hidden] { display: none; }
.vz-lunch-card { display: grid; align-content: start; height: 100%; border-radius: var(--radius-sm); overflow: hidden; background: #fffaf2; box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease); }
.vz-lunch-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.vz-lunch-ph { display: block; aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.vz-lunch-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vz-lunch-ph .pcred { display: none; }
.vz-lunch-t { display: grid; gap: var(--sp-4); padding: var(--sp-8) var(--sp-12) var(--sp-12); align-content: start; }
.vz-lunch-t b { font: 600 .9rem/1.25 var(--sans); }
.vz-lunch-t small { font: 500 .75rem/1.4 var(--sans); color: var(--ink-2); }
.vz-muted { color: var(--ink-3); }
.vz-lunch-t small.vz-muted:empty { display: none; }
.vz-lunch-one { position: relative; margin-top: var(--sp-12); max-width: 420px; }
.vz-lunch-one > .pcred { top: var(--sp-8); left: var(--sp-8); right: auto; bottom: auto; z-index: 3; }
.vz-lunch-card.is-solo { grid-template-columns: 140px 1fr; }
.vz-lunch-card.is-solo .vz-lunch-ph { aspect-ratio: auto; height: 100%; }
@media (max-width: 599px) {
  .vz-lunch { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-4); margin-right: calc(var(--sp-16) * -1); }
  .vz-lunch li { scroll-snap-align: start; }
}

/* the map and the swaps */
.vz-map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #f3e9d8; box-shadow: var(--shadow-1); }
.vz-sketch { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vz-sk-land { fill: #f3e9d8; }
.vz-sk-coast polyline { fill: none; stroke: #7fb3bd; stroke-width: 3; stroke-linejoin: round; }
.vz-sk-route { fill: none; stroke: var(--sea); stroke-width: 2; stroke-dasharray: 5 5; opacity: .7; }
.vz-sk-pin circle { fill: var(--sea); stroke: #fffaf2; stroke-width: 2; }
.vz-sk-pin text { fill: #fffaf2; font: 700 12px var(--sans); } /* type-ok: svg/drawn label */
.vz-live { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.vz-map.is-live .vz-live { opacity: 1; }
.vz-pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sea); color: #fffaf2; border: 2px solid #fffaf2; box-shadow: 0 2px 6px rgba(14, 26, 36, .3); font: 700 .75rem/1 var(--sans); }
.vz-pin.is-sun { background: var(--sun); color: var(--ink); }
.vz-map-cap { margin: var(--sp-8) 0 0; font: 600 .82rem var(--sans); }
.vz-map-cap a { color: var(--sea); }
.vz-swaps { margin-top: var(--sp-16); padding: var(--sp-16); border-radius: var(--radius); background: #fffaf2; box-shadow: var(--shadow-1); }
.vz-swaps[hidden] { display: none; }
.vz-swaps-h { margin: 0 0 var(--sp-8); font: 400 var(--h2-card)/1.2 var(--serif); }
.vz-swaps ul { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.vz-swaps a { display: grid; gap: 2px; padding: var(--sp-8) 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; } /* sp-ok: title to its subtitle */
.vz-swaps li:first-child a { border-top: 0; }
.vz-swaps a b { font: 600 .9rem/1.3 var(--sans); }
.vz-swaps a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.vz-swaps a span { color: var(--ink-3); font: 500 .82rem var(--sans); }

/* good to know */
.vz-know { padding-top: var(--sp-64); }
.vz-know-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-16); margin: var(--sp-16) 0 var(--sp-24); }
.vz-know-grid .guide-card { margin: 0; }
