/* Shared look for every page: the photo field, one accent, one card style, one set of corners. Loaded last. */
:root { --accent: #c8532a; --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --edge: rgba(255, 255, 255, .12); --sheen: rgba(255, 255, 255, .06); --panel: rgba(40, 33, 27, .86); }

/* The photo field behind everything */
.h-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.h-spin { position: absolute; left: 50%; top: 50%; display: grid; gap: 3px; animation: h-turn 240s linear infinite; will-change: transform; backface-visibility: hidden; contain: strict; }
.h-spin img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; opacity: .12; transition: opacity .9s ease; }
@keyframes h-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .h-spin { animation: none; transform: rotate(45deg); } }
@media (max-width: 700px) { .h-spin img { opacity: .1; } }
.h-nofield .h-field { display: none; }

/* One card: a dark glass panel with a thin light edge */
.h-card, .rail .hit, .hit { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.h-card:hover, .hit:hover { border-color: rgba(255, 255, 255, .24); }

/* One accent: warm orange for the chosen filter and the main buttons */
.h-tag[aria-pressed="true"] { background: var(--accent); color: #fff; }
.h-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.h-seg button[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.h-searchbox input { border: 1px solid var(--edge); background: var(--sheen); }
.h-searchbox input:focus { outline: none; border-color: rgba(200, 83, 42, .7); }
.h-seg { background: var(--sheen); border: 1px solid var(--edge); }
.h-tag { background: var(--sheen); border: 1px solid var(--edge); }
.h-tag:hover { background: rgba(255, 255, 255, .12); }

/* Top bar matches the Map page's: quiet, with a hairline */
.h-nav { background: rgba(21, 17, 14, .72); border-bottom: 1px solid var(--edge); }

/* One accent (ember) for every link, step number and highlight; the only blue left is the "you are here" dot. */

/* Sections that had a solid block now let the pattern show through */
.band.alt { background: rgba(40, 33, 27, .72); }

/* Phones: the list sheet scrolls on its own, then hands the swipe back to the page so nothing feels stuck */
@media (max-width: 800px) { .pbody { overscroll-behavior: auto; } }
/* Phones: the map is always live (one finger pans, two fingers zoom) and never fills the whole screen.
   A strip of the next section always shows under it. Drag there, or on the header above, to scroll the page. */
@media (max-width: 800px) {
  .app { height: calc(100vh - 118px); height: calc(100svh - 118px); min-height: 480px; }   /* svh: the phone's toolbar sliding in and out while you scroll must not resize the map (that made everything shift) */
  #glance { padding-top: 26px; padding-bottom: 40px; }
  #glance .kicker { margin-top: 0; }
}

/* Photo tile for a place with no picture yet: its colour and initials */
.thumb.noimg { display: grid; place-items: center; aspect-ratio: 16 / 10; width: 100%; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 62%, #15110e), color-mix(in srgb, var(--c) 18%, #15110e)); }
.thumb.noimg span { font-size: 38px; font-weight: 700; letter-spacing: -.02em; color: rgba(255, 255, 255, .88); }

/* The map's height is fixed to the *small* viewport on every screen, so scrolling never resizes it. */
.app { height: 100vh; height: 100svh; }
@media (max-width: 800px) { .app { height: calc(100vh - 118px); height: calc(100svh - 118px); } }

/* Instagram: a quiet link in every footer, and a small pill on the home page */
.ig { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ig svg { flex: none; }
.h-foot .ig, .foot .fine .ig { color: inherit; }
.foot .fine .ig { color: var(--muted); } .foot .fine .ig:hover { color: var(--ink); }
.h-ig { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 14px 0 0; padding: 0; border: 1px solid var(--edge); border-radius: 999px; background: var(--sheen); color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.h-landing .h-ig { margin-left: max(24px, env(safe-area-inset-left, 0px)); }
.h-ig:hover, .h-ig:focus-visible { background: rgba(255, 255, 255, .12); color: var(--ink); border-color: rgba(255, 255, 255, .3); }
@media (min-width: 1100px) { .h-landing .h-ig { margin-left: calc((100vw - 1040px) / 2 + 24px); } }
@media (max-width: 820px) { .h-landing .h-ig { margin-left: 18px; } }

.h-ig svg { width: 18px; height: 18px; }
.ig svg { width: 18px; height: 18px; }

/* Stay up to date: the home page sign-up card */
.h-signup { max-width: 816px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left, 0px)) clamp(36px, 6vw, 64px); }
.h-signup form { padding: clamp(20px, 4vw, 30px); border: 1px solid var(--edge); border-radius: 22px; background: var(--sheen); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 8px 24px rgba(0, 0, 0, .18); }
.h-signup h2 { margin: 0; font-size: clamp(21px, 2.6vw, 26px); font-weight: 650; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.h-signupsub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.h-signupchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.h-signupchips label { position: relative; cursor: pointer; }
.h-signupchips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.h-signupchips span { display: inline-block; padding: 9px 18px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 14.5px; font-weight: 500; color: var(--muted); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.h-signupchips label:hover span { color: var(--ink); background: rgba(255, 255, 255, .1); }
.h-signupchips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.h-signupchips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.h-signuprow { display: flex; gap: 10px; margin-top: 16px; }
.h-signuprow input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(0, 0, 0, .22); color: var(--ink); font: inherit; font-size: 16px; }
.h-signuprow input::placeholder { color: var(--muted); }
.h-signuprow input:focus { outline: none; border-color: rgba(200, 83, 42, .75); box-shadow: 0 0 0 3px rgba(200, 83, 42, .16); }
.h-signuprow button { flex: none; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .15s ease, transform .15s ease; }
.h-signuprow button:hover { filter: brightness(1.08); }
.h-signuprow button:active { transform: scale(.98); }
.h-signuprow button:disabled { opacity: .6; cursor: default; }
.h-signupmsg { margin: 12px 4px 0; font-size: 14px; color: var(--muted); }
.h-signupmsg.err { color: #ff8b8b; }
.h-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h-signupdone { display: grid; justify-items: start; gap: 6px; }
.h-signupcheck { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(126, 232, 162, .16); color: #7ee8a2; font-size: 20px; }
.h-signupdone h2 { margin-top: 6px; }
.h-signupdone p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .h-signup { padding-left: 18px; padding-right: 18px; } }
@media (max-width: 480px) { .h-signuprow { flex-direction: column; } .h-signuprow button { width: 100%; } }
