/* Then & Now swipes (/then-now/, and the My Street swipe). .fine-print comes from weekend.css */
.tn-sec { padding-top: 0; }
.tn-lede { margin: calc(-1 * var(--sp-8)) 0 var(--sp-16); color: var(--ink-2); max-width: 60ch; }
.tn-spots { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: 0 0 var(--sp-16); }
.tn-spot { font: 600 .9rem/1 var(--sans); padding: var(--sp-8) var(--sp-16); border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: #fffdf8; color: var(--ink); cursor: pointer; }
.tn-spot:hover { border-color: var(--ink-3); }
.tn-spot:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.tn-wrap { position: relative; height: clamp(380px, 64vh, 640px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); background: var(--paper-3); }
.tn-wrap .tn-map { position: absolute; inset: 0; } /* beats maplibre-gl.css .maplibregl-map { position: relative } */
.tn-then { clip-path: inset(0 50% 0 0); }
.tn-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 3; cursor: ew-resize; touch-action: none; }
.tn-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fffaf2; box-shadow: 0 0 0 1px rgba(24, 34, 46, .25); }
.tn-line::after { content: ""; position: absolute; top: 50%; left: -20px; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: #fffaf2; box-shadow: var(--shadow-1);
  background-image: linear-gradient(90deg, transparent 11px, var(--ink-3) 11px, var(--ink-3) 13px, transparent 13px, transparent 27px, var(--ink-3) 27px, var(--ink-3) 29px, transparent 29px); }
.tn-line span { position: absolute; top: 12px; font: 600 .75rem/1 var(--sans); letter-spacing: .08em; padding: var(--sp-8) var(--sp-8); border-radius: var(--r-tag); background: rgba(24, 34, 46, .72); color: #fffaf2; white-space: nowrap; pointer-events: none; }
.tn-line span:first-child { right: 12px; }
.tn-line span:last-child { left: 12px; }
.tn-slide { display: flex; align-items: center; gap: var(--sp-12); margin: var(--sp-16) auto 0; max-width: 560px; font: 600 .9rem/1 var(--sans); color: var(--ink-2); }
.tn-slide input { flex: 1; accent-color: var(--sea); }
.tn-places { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: 0 0 var(--sp-12); }
.tn-place { font: 700 1rem/1 var(--sans); padding: var(--sp-12) var(--sp-16); border-radius: var(--r-ctl); border: 1.5px solid var(--ink); background: #fffdf8; color: var(--ink); cursor: pointer; }
.tn-place small { font-weight: 600; color: var(--ink-3); margin-left: var(--sp-4); }
.tn-place[aria-pressed="true"] { background: var(--ink); color: #fffaf2; }
.tn-place[aria-pressed="true"] small { color: #e8d6bb; }
.tn-place:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Street level then and now (src/street-then-now.mjs): photo swipes on /then-now/#street and the neighborhood pages.
   The swipe itself is .nb-swipe (hoods.css); each pair keeps its own shape. */
.st-sec { padding-top: 0; }
.st-lede { margin: var(--sp-4) 0 var(--sp-16); max-width: 60ch; }
.st-grid { display: grid; gap: var(--sp-24); }
/* two columns that each run top to bottom, so a tall pair never leaves a hole beside a short one */
@media (min-width: 900px) { .st-grid { display: block; columns: 2; column-gap: var(--sp-24); } .st-grid > .st-swipe { break-inside: avoid; margin: 0 0 var(--sp-24); } }
.st-list { display: grid; gap: var(--sp-16); }
.st-swipe .nb-swipe-now img, .st-swipe .nb-swipe-then img { height: auto; object-fit: cover; }
.st-name { display: block; margin: 0 0 var(--sp-4); }
.st-cred { font-size: .75rem; }
.st-cred a { color: inherit; }

/* Aerial pairs viewer (src/pages/then-now.mjs airFig, js/then-now-pairs.js): one pair at a time, the strip under it */
.ph.tn-hero h1 { max-width: 24ch; }
/* the viewer sits on the header's paper, so the color change falls under the strip, not across the photo */
.tnp { padding: var(--sp-8) 0 var(--sp-32); background: var(--paper); }
.tnp + .tnp-where { padding-top: var(--sp-48); }
.tnp-view { display: grid; gap: var(--sp-48); } /* only one pair shows with JavaScript; without it the list keeps its rhythm */
.tnp-fig { display: grid; gap: var(--sp-16); align-items: end; }
/* in-page jumps land below the fixed 76px site header */
.tnp-fig, .tn-sec, .st-swipe, .tnp-where { scroll-margin-top: 92px; } /* sp-ok: header height + 16 */
.tnp-fig:not(.is-on) { display: none; }
.tnp-swipe { margin-inline: calc(-1 * var(--sp-24)); border-radius: 0; box-shadow: none; }
.tnp-swipe img { aspect-ratio: 8 / 5; }
.tnp-cap { display: grid; gap: var(--sp-8); align-content: start; }
.tnp-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); }
.tnp-yrs { margin: 0; font: 700 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.tnp-nav { display: flex; align-items: center; gap: var(--sp-8); }
.tnp-nav[hidden] { display: none; }
.tnp-step { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fffdf8; color: var(--ink); font: 700 1.12rem/1 var(--sans); cursor: pointer; }
.tnp-step:hover { border-color: var(--ink-3); }
.tnp-step:focus-visible, .tnp-th:focus-visible, .tnp-act:focus-visible, .tnp-mine:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.tnp-count { font: 600 .82rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 5.5ch; text-align: center; }
.tnp-name { margin: 0; font: 400 var(--h3-card)/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.tnp-look { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.tnp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); margin: var(--sp-4) 0 0; }
.tnp-acts .share-btn { min-height: 40px; }
.tnp-act { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-16); border-radius: 999px; border: 1.5px solid var(--line); background: #fffdf8; color: var(--ink); font: 600 .9rem/1 var(--sans); text-decoration: none; }
.tnp-act:hover { border-color: var(--ink-3); }
.tnp-cred { margin: var(--sp-4) 0 0; font-size: .75rem; line-height: 1.45; color: var(--ink-3); }
.tnp-cred a { color: inherit; }
.tnp-near a { font-weight: 600; }
@media (min-width: 600px) { .tnp-swipe { margin-inline: 0; border-radius: var(--radius); box-shadow: var(--shadow-1); } }
@media (min-width: 1100px) {
  .tnp-fig { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-32); }
  .tnp-cap { align-self: stretch; grid-template-rows: auto 1fr; }
  .tnp-cap .tnp-top + .tnp-name { margin-top: auto; }
  .tnp-cap { align-content: end; }
}
.tnp-strip { position: relative; list-style: none; display: flex; gap: var(--sp-12); margin: var(--sp-16) calc(-1 * var(--sp-24)) 0; padding: var(--sp-4) var(--sp-24) var(--sp-8); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tnp-strip li { flex: 0 0 128px; scroll-snap-align: start; }
.tnp-th { display: grid; gap: var(--sp-4); color: var(--ink); text-decoration: none; border-radius: var(--r-ctl); }
.tnp-th img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--r-ctl); border: 2px solid transparent; background: var(--paper-3); }
.tnp-th[aria-current="true"] img { border-color: var(--ink); }
.tnp-th:hover img { border-color: var(--ink-3); }
.tnp-th-n { font: 600 .82rem/1.25 var(--sans); }
.tnp-th-y { font: 600 .68rem/1 var(--sans); letter-spacing: .08em; color: var(--ink-3); }
.tnp-th[aria-current="true"] .tnp-th-n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 1100px) { .tnp-strip { margin-inline: 0; padding-inline: 0; } .tnp-strip li { flex-basis: 152px; } }

/* Where each pair sits, and the My Street hook beside it */
.tnp-where-grid { display: grid; gap: var(--sp-24); }
.tnp-where .eat-h2 { margin-top: 0; }
.tnp-map { height: 260px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); background: var(--paper-3); }
.tnp-key { display: flex; align-items: center; gap: var(--sp-8); margin: var(--sp-12) 0 0; font: 600 .82rem/1 var(--sans); color: var(--ink-2); }
.tnp-key .tnp-dot-st { margin-left: var(--sp-12); }
.tnp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fffaf2; box-shadow: 0 0 0 1px rgba(24, 34, 46, .3); }
.tnp-dot-air, .tnp-pin-air { background: var(--sun); }
.tnp-dot-st, .tnp-pin-st { background: var(--sea); }
.tnp-pin { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 3px solid #fffaf2; box-shadow: 0 1px 4px rgba(24, 34, 46, .45); cursor: pointer; }
.tnp-pin-st { width: 24px; height: 24px; }
.tnp-pin-n { width: 32px; height: 32px; background: var(--ink); color: #fffaf2; font: 700 .82rem/1 var(--sans); }
.tnp-pin-n.tnp-pin-has-air { background: var(--sun); color: var(--ink); }
.tnp-pin:hover, .tnp-pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.tnp-pop { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.tnp-pop-b { display: flex; align-items: center; gap: var(--sp-8); width: 100%; min-height: 40px; padding: var(--sp-4) var(--sp-8); border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink); font: 600 .82rem/1.25 var(--sans); text-align: left; cursor: pointer; }
.tnp-pop-b:hover, .tnp-pop-b:focus-visible { background: var(--paper-3); outline: none; }
.tnp-pop-b small { color: var(--ink-3); font-weight: 600; }
.tnp-pop-b .tnp-dot { flex: 0 0 auto; }
.tnp-mine { display: grid; gap: var(--sp-8); align-content: start; padding: var(--sp-16); border-radius: var(--radius); background: #fffdf8; box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.tnp-mine img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--r-ctl); }
.tnp-mine-t { margin-top: var(--sp-4); font: 400 var(--h3-card)/1.15 var(--serif); }
.tnp-mine-s { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.tnp-mine-go { font: 700 .9rem/1 var(--sans); color: var(--sea); }
.tnp-mine:hover .tnp-mine-go { text-decoration: underline; }
@media (min-width: 900px) {
  .tnp-where-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: end; }
  .tnp-map { height: 380px; }
}

/* More old Santa Barbara */
.tnp-more { padding-top: 0; }
.tnp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-12); }
.tnp-links a { display: grid; gap: var(--sp-4); height: 100%; padding: var(--sp-16); border-radius: var(--radius); border: 1.5px solid var(--line); background: #fffdf8; color: var(--ink); text-decoration: none; }
.tnp-links a:hover { border-color: var(--ink-3); }
.tnp-links b { font: 600 1rem/1.25 var(--sans); }
.tnp-links span { font-size: .82rem; line-height: 1.4; color: var(--ink-3); }
@media (min-width: 700px) { .tnp-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tnp-links { grid-template-columns: repeat(4, 1fr); } }
.tnp-fine { margin-top: var(--sp-24); }
/* Phones: the My Street card sits as a row, and the live map's place and spot buttons scroll sideways in one line each */
@media (max-width: 899px) {
  .tnp-mine { grid-template-columns: 128px minmax(0, 1fr); column-gap: var(--sp-16); row-gap: var(--sp-4); align-items: start; }
  .tnp-mine img { grid-row: 1 / span 3; }
  .tnp-mine-t { margin-top: 0; font-size: var(--h2-card); }
}
@media (max-width: 599px) {
  .tn-places, .tn-spots { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--sp-24)); padding: var(--sp-4) var(--sp-24); scrollbar-width: none; }
  .tn-place, .tn-spot { flex: 0 0 auto; white-space: nowrap; }
  .tn-place { padding: var(--sp-12) var(--sp-16); font-size: .9rem; }
}
