/* GeoStatement — road-atlas look: ink header, condensed signage headings, mono for dates and data. */
:root {
  --ground: #F3F4F0; --surface: #FFFFFF; --ink: #16202A; --ink-2: #3B4650; --muted: #56616B; --faint: #8A949C;
  --line: #DCE0DA; --line-2: #C9CFC8; --line-soft: #EDEFEB;
  --amber: #F2A541; --lived: #1D4E63; --visited: #6DB57A; --green: #2F6B3A; --want-a: #3E8A4F; --want-b: #DCEFD8; --none: #E4E7E2;
  --danger: #B23A24; --etsy: #D5531F;
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.45 var(--f-body); }
a { color: var(--lived); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; }
h2 { font-size: 30px; } h3 { font-size: 22px; }
p { margin: 0; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Layout */
.wrap { max-width: 1360px; margin: 0 auto; padding: 32px 24px 64px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.narrow h2 { margin: 28px 0 8px; font-size: 26px; }
.narrow ul { padding-left: 1.2em; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .grow { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.split > .map-card { flex: 3 1 520px; min-width: 0; }
/* State journal: the map gets the larger share, so crowded corners have room for city names. */
.split > .map-card ~ .grow { flex: 2 1 380px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.center { text-align: center; display: block; }
.push { margin-left: auto; }

/* Type helpers */
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.eyebrow.light { color: #C9D1D8; }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--f-mono); }
.dim { color: var(--faint); font-weight: 600; }
.page-title { font-size: 64px; letter-spacing: -.5px; }
.big-count { font-size: 96px; letter-spacing: -1px; line-height: .95; margin-top: 6px; }
.state-title { font-size: 88px; letter-spacing: -1px; line-height: .95; margin-top: 6px; }
.c-lived { color: var(--lived); } .c-visited, .c-green { color: var(--green); }
.err { color: var(--danger); font-size: 14px; font-weight: 500; }
.note { background: #FBEAD2; color: #5C3A0A; padding: 10px 14px; border-radius: 10px; }
.empty { color: var(--muted); padding: 22px; border: 1.5px dashed #B9C0BA; border-radius: var(--r); text-align: center; }
.empty-card { background: var(--surface); border: 1.5px dashed #B9C0BA; border-radius: 18px; padding: 40px 24px; text-align: center; }
.empty-card > * + * { margin-top: 12px; }
.empty-card p { color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .big-count { font-size: 68px; } .state-title, .page-title { font-size: 48px; } }

/* Header */
.topbar { background: var(--ink); color: #fff; }
.topbar-in { max-width: 1360px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: .5px; }
.brand:hover { color: #fff; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.mainnav a, .navlink { color: #C9D1D8; text-decoration: none; padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.mainnav a:hover, .navlink:hover { color: #fff; background: #222D38; }
.mainnav a[aria-current="page"] { color: #fff; background: #2A3743; font-weight: 600; }
.acct { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid #3B4A57; }
.acct:hover, .acct[aria-current="page"] { color: #fff; background: #2A3743; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--amber); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 17px; flex: none; }
.avatar-xl { width: 96px; height: 96px; font-size: 44px; }
.flash { max-width: 1360px; margin: 16px auto 0; padding: 12px 18px; border-radius: 12px; background: #DCEFD8; color: #1E4A2A; font-weight: 500; width: calc(100% - 48px); }
.flash-error { background: #F8E2DD; color: #7A2414; }
.announce { background: #FBEAD2; color: #5C3A0A; text-align: center; padding: 10px 16px; font-weight: 500; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in { max-width: 1360px; margin: 0 auto; padding: 20px 24px 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A3743; color: #fff; }
.btn-accent { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-accent:hover { filter: brightness(1.05); color: var(--ink); }
.btn-etsy { background: var(--etsy); border-color: var(--etsy); color: #fff; }
.btn-etsy:hover { background: #B8461B; color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8E2A17; color: #fff; }
.btn-danger-quiet { background: transparent; border: 0; color: var(--danger); font-weight: 600; cursor: pointer; min-height: 44px; }
.btn-lg { min-height: 52px; font-size: 17px; padding: 0 24px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-light { color: var(--amber); font-weight: 600; }
.link-light:hover { color: #fff; }

/* Cards, tiles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.sub-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; }
.hero-row > :first-child { flex: 1 1 420px; min-width: 0; }
.tiles { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.tile span { font-size: 14px; color: var(--muted); font-weight: 500; }
.tile b { font-family: var(--f-display); font-size: 40px; line-height: 1.1; }
.tile small { font-size: 22px; color: var(--faint); }
.tile em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink); }
.tile-link:hover { border-color: var(--ink); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: #DCEFD8; color: #245C33; }
.trip-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.trip-card:hover { border-color: var(--ink); color: var(--ink); }
.status-pill { display: inline-block; font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--none); color: var(--ink); width: fit-content; }
.status-lived { background: var(--lived); color: #fff; }
.status-visited { background: var(--visited); color: var(--ink); }
.status-want { background: repeating-linear-gradient(45deg, var(--want-b) 0 4px, #EAF5E7 4px 8px); color: #245C33; box-shadow: inset 0 0 0 1.5px var(--want-a); }
.crumbs { font-size: 15px; color: var(--muted); }

/* Pills / segmented */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pill .n { font-family: var(--f-mono); font-weight: 400; opacity: .8; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill .dot { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.pills-dark .pill { background: transparent; border-color: #4A5966; color: #fff; }
.pills-dark .pill[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg button { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg-wide { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.seg-wide button { border: 0; padding: 8px 18px; text-align: left; }
.seg-wide button small { display: block; font-weight: 400; font-size: 13px; opacity: .85; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
.field input, .field select, .field textarea, .inline select { min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line-2); padding: 0 14px; background: var(--surface); font-weight: 400; width: 100%; min-width: 0; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.narrow-field { max-width: 320px; }
.inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.inline select { width: auto; min-height: 44px; }
.prefix { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; }
.prefix > span { padding-left: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; font-size: 14px; }
.prefix input { border: 0 !important; padding-left: 2px !important; }
.pw { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.pw input { flex: 1; min-width: 0; border: 0 !important; min-height: 45px; padding: 0 14px; border-radius: 10px; background: transparent; }
.pw-toggle { border: 0; background: transparent; color: var(--lived); font-weight: 600; padding: 0 14px; min-height: 44px; cursor: pointer; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 400; color: var(--muted); }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--green); }
.rules li.ok::before { content: "✓ "; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.switch-row > span > * { display: block; }
.switch { appearance: none; -webkit-appearance: none; width: 56px; height: 32px; border-radius: 999px; background: #A9B0AA; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(24px); }
.share-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #F1F7EF; padding: 14px 16px; border-radius: 12px; }
.danger-box { border: 1.5px solid #F0C7BE; background: #FDF3F1; border-radius: var(--r); padding: 18px; }
.danger-box h3 { color: #8E2A17; font-size: 20px; }

/* Auth pages */
.auth .foot { display: none; }
.auth-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-panel { flex: 1 1 460px; background: var(--ink); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-head { font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: 1; }
.auth-head span { color: var(--amber); }
.auth-map { width: 100%; max-width: 560px; margin-top: 24px; display: block; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: #DCE2E7; }
.auth-points strong { color: #fff; }
.auth-card { flex: 1 1 480px; max-width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px max(24px, calc((100% - 440px) / 2)); }
.auth-card h1 { font-size: 48px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 760px) { .auth-panel { padding: 28px 24px; } .auth-head { font-size: 40px; } .auth-points, .auth-map { display: none; } }

/* Maps */
.map-box { margin-top: 16px; }
.map-box svg, #tripmap, .hero-map, #usmap { width: 100%; height: auto; display: block; }
.us-state { cursor: pointer; transition: opacity .15s; }
.us-state:hover { opacity: .8; }
.us-label { font: 600 12px var(--f-display); pointer-events: none; }
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.sw-lived { background: var(--lived); } .sw-visited { background: var(--visited); }
.sw-want { background: repeating-linear-gradient(45deg, var(--want-a) 0 2px, var(--want-b) 2px 5px); }
.sw-none { background: var(--none); box-shadow: inset 0 0 0 1px #B9C0BA; }
.strip { display: flex; gap: 3px; height: 14px; }
.strip i { flex: 1 1 0; border-radius: 3px; }
.strip-64 { flex: 1 1 520px; align-self: center; }
.state-name { font-size: 44px; margin-top: 4px; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.state-tile { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }
.state-tile:hover, .state-tile[aria-pressed="true"] { border-color: var(--ink); }
.state-tile .ab { font-family: var(--f-mono); font-size: 13px; color: var(--muted); width: 22px; }
.state-tile .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state-svg { width: 100%; max-width: 860px; max-height: 70vh; display: block; margin: 0 auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.zoom-wrap { position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden; background: #F6F8F5; }
.zoom-ctl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(22,32,42,.25); }
.zoom-btn { width: 40px; height: 40px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.zoom-btn:last-child { border-bottom: 0; font-size: 18px; }
.zoom-btn:hover { background: #F3F4F0; }
.zoom-btn:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.zoom-level { position: absolute; left: 10px; bottom: 8px; font: 500 12px var(--f-mono); color: var(--muted); pointer-events: none; }
.zoom-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 24px); background: rgba(22,32,42,.88); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 14px; text-align: center; pointer-events: none; }
.pin-group text { font-weight: 600; }
.city-name { font-family: var(--f-body); stroke: #fff; stroke-linejoin: round; paint-order: stroke; }
.park-name { font-family: var(--f-body); font-weight: 700; fill: #1F5A2E; stroke: #fff; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.park-name-sub { font-weight: 600; fill: #2F6B3A; }
.site-letter { font-family: var(--f-body); font-weight: 700; fill: #fff; pointer-events: none; }
.site-name { font-family: var(--f-body); font-weight: 700; stroke: #fff; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.site-name-sub { font-weight: 500; }
.water-name { font-family: var(--f-body); font-style: italic; font-weight: 600; fill: #2B6CA3; stroke: #fff; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.county-name { font-family: var(--f-body); font-weight: 600; letter-spacing: 0.08em; fill: #6B7780; stroke: #fff; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.forest-name { font-family: var(--f-body); font-style: italic; font-weight: 600; fill: #2F6B3A; stroke: #fff; stroke-linejoin: round; paint-order: stroke; }
.map-toggles { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-legend { margin: 4px 0 0; line-height: 1.9; }
.site-legend .sl { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; color: #fff; font-weight: 700; font-size: 11px; margin: 0 2px 0 8px; vertical-align: -3px; }
.site-legend .sl:first-child { margin-left: 0; }
.pin-name { font: 600 12px var(--f-body); fill: var(--ink); stroke: #fff; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.state-svg.adding { cursor: crosshair; }
.hint { background: #FBEAD2; color: #5C3A0A; padding: 8px 12px; border-radius: 10px; margin-top: 10px; font-size: 15px; }
.pin { cursor: pointer; }
.pin text { font-family: var(--f-mono); font-weight: 500; fill: #fff; pointer-events: none; }

/* Journal list & form */
.place-list { list-style: none; margin: 0; padding: 0; }
.place-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; }
.place-row:hover { background: #F7F8F5; }
.place-row[aria-current="true"] { background: #F1F4EE; }
.place-num { flex: none; width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font: 500 13px var(--f-mono); }
.place-row .t { font-weight: 600; font-size: 17px; display: block; }
.place-row .s { font-size: 14px; color: var(--muted); display: block; }
.place-detail { padding: 4px 12px 14px 56px; }
.place-detail img { border-radius: 12px; max-height: 280px; object-fit: cover; margin: 8px 0; }
.place-detail p { white-space: pre-line; color: var(--ink-2); }
.place-form { background: #F7F8F5; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.place-form .full { grid-column: 1 / -1; }
.badge-new { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 2px 7px; border-radius: 6px; background: var(--amber); color: var(--ink); }

/* Parks */
.park-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.park-item { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
.park-item.on { border-color: #BFDDBA; }
.park-item.new { border-color: var(--amber); }
.park-item .nm { font-weight: 600; font-size: 17px; }
.park-item .st { display: block; font-size: 14px; color: var(--muted); }
.park-toggle { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid #A9B0AA; background: var(--surface); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.park-toggle[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.feature-park { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.feature-park h2 { font-size: 44px; margin-top: 4px; }
.feature-park p { color: #DCE2E7; max-width: 720px; margin-top: 8px; }
.badge-64 { width: 120px; height: 120px; border-radius: 999px; background: var(--amber); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.badge-64 span { font: 12px var(--f-mono); letter-spacing: 1.5px; }
.badge-64 b { font: 700 52px/1 var(--f-display); }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }

/* Trips */
.chip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.chip .sw { flex: none; }
.chip .eff { display: block; font-size: 13px; }
.icon-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--ground); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.stop-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 16px; background: #F7F8F5; border: 1px solid var(--line); border-radius: var(--r); }
.stop-form .span2 { grid-column: span 2; }
.stop-form .span-all { grid-column: 1 / -1; }
@media (max-width: 520px) { .stop-form .span2 { grid-column: 1 / -1; } }
.stop-list { list-style: none; margin: 0; padding: 0; }
.stop-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 14px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.stop-list .day { font: 13px var(--f-mono); color: var(--muted); text-transform: uppercase; }
.cat-pill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.sum-name { font-weight: 600; font-size: 19px; }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sum-grid > div { background: var(--surface); padding: 12px 14px; }
.sum-grid span { display: block; font-size: 13px; color: var(--muted); }
.sum-grid b { font: 700 30px var(--f-display); }
.outcome { background: #F1F7EF; border-radius: 12px; padding: 14px 16px; }
.outcome b { display: block; }
.outcome span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 600px) { .stop-list li { grid-template-columns: 70px minmax(0, 1fr) auto; } .stop-list .cat-pill { display: none; } }

/* Shop */
.band { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.band p { color: #C9D1D8; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.product { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.product:hover { border-color: var(--ink); color: var(--ink); }
.product .ph { position: relative; aspect-ratio: 1 / 1; background: #ECEEE8; }
.product .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product .chip-st { position: absolute; left: 10px; top: 10px; background: #fff; border-radius: 999px; padding: 4px 10px; font: 700 15px var(--f-display); box-shadow: 0 1px 4px rgba(22,32,42,.18); }
.product .badge { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(22,32,42,.18); }
.product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product .meta { display: flex; justify-content: space-between; font: 11px var(--f-mono); letter-spacing: 1px; color: var(--muted); }
.product h3 { font-size: 22px; line-height: 1.1; }
.product .sub { color: var(--muted); font-size: 14px; flex: 1; }
.product .buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.product .price { font: 700 24px var(--f-display); }
.product .go { background: var(--etsy); color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 15px; }
.place-card { display: flex; flex-direction: column; gap: 6px; }
.place-card img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }

/* Account */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.tiles3 { flex: 1 1 420px; }
.side-nav { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.side-nav a, .side-signout { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; border: 0; background: transparent; width: 100%; cursor: pointer; text-align: left; }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.side-nav a:hover { background: #E7E9E3; }
.side-nav a[aria-current="page"]:hover { background: var(--ink); }
.side-signout { color: var(--danger); }

/* Landing */
.landing { overflow: hidden; }
.hero { max-width: 1360px; margin: 0 auto; padding: 56px 24px 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-text { flex: 1 1 460px; }
.hero-text h1 { font-size: 72px; margin: 8px 0 12px; }
.hero-text h1 span { color: var(--lived); }
.hero-text .row { margin-top: 24px; }
.hero-map { flex: 1 1 480px; max-width: 680px; }
.features { max-width: 1360px; margin: 0 auto; padding: 16px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature p { color: var(--ink-2); margin-top: 8px; }
.shop-teaser { max-width: 1312px; margin: 24px auto 0; padding: 24px 28px; background: var(--ink); color: #fff; border-radius: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; width: calc(100% - 48px); }
.shop-teaser p { color: #C9D1D8; }
.shop-teaser .btn-dark { background: var(--amber); border-color: var(--amber); color: var(--ink); }
@media (max-width: 700px) { .hero-text h1 { font-size: 48px; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.error { background: var(--danger); }

/* Place search, linking and sharing */
.ps-wrap { position: relative; }
.ps-list { list-style: none; margin: 4px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 20; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 12px 28px rgba(22,32,42,.18); max-height: 340px; overflow-y: auto; }
.ps-item { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; min-height: 44px; }
.ps-item:hover, .ps-item:focus { background: #F1F4EE; }
.ps-badge { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #DCEFD8; color: #245C33; }
.ps-empty { padding: 10px; color: var(--muted); font-size: 14px; }
.ps-attr { padding: 6px 10px 2px; font-size: 11px; color: var(--faint); border-top: 1px solid var(--line-soft); margin-top: 4px; }
.linked:not(:empty) { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #F1F7EF; border: 1px solid #BFDDBA; }
.share-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.share-row .check { min-height: 32px; }
.share-row input:disabled + b { color: var(--faint); }
.link-btn { border: 0; background: transparent; color: var(--lived); font-weight: 600; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.stars { color: #C9822A; letter-spacing: 1px; }
.visit { padding: 16px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.visit img { border-radius: 12px; max-height: 320px; object-fit: cover; width: fit-content; }
.visit p { color: var(--ink-2); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-bar .field { min-width: 180px; }
.visit .link-btn, .visit > a { align-self: flex-start; }
.place-title { font-size: 56px; }
@media (max-width: 700px) { .place-title { font-size: 40px; } }

/* "What would you like to see on the map?" layer menu */
.layer-menu { position: relative; margin: 12px 0 4px; }
.layer-menu > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); font-weight: 600; cursor: pointer; }
.layer-menu > summary::-webkit-details-marker { display: none; }
.layer-menu > summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.layer-menu .lm-count { font: 500 13px var(--f-mono); color: var(--muted); }
.layer-menu .lm-caret { margin-left: auto; transition: transform .15s; }
.layer-menu[open] .lm-caret { transform: rotate(180deg); }
.layer-menu .lm-panel { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(22,32,42,.18); padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 20px; }
.layer-menu .lm-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.layer-menu .lm-group legend { padding: 0; margin-bottom: 2px; font: 600 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.layer-menu .layer-opt { min-height: 36px; font-size: 15px; }
.layer-menu .lm-actions { grid-column: 1 / -1; display: flex; gap: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.map-credits { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 0 12px; }

/* Place form: address lookup; journal entry comments */
.addr-row { display: flex; gap: 8px; }
.addr-row input { flex: 1; min-width: 0; }
.addr-wrap .ps-list { position: static; margin-top: 6px; }
.comments { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.comments h4 { margin: 0 0 6px; font-size: 15px; }
.comment-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.comment-list li { background: #F6F8F5; border-radius: 10px; padding: 8px 12px; }
.comment-list p { margin: 0 0 2px; white-space: pre-line; }
.comment-new { display: flex; gap: 8px; align-items: flex-start; }
.comment-new textarea { flex: 1; min-width: 0; }

/* Verified places */
.verified-badge { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; font: 700 15px var(--f-body); letter-spacing: 0; color: #1E5A2E; background: #DCEFD8; border: 1.5px solid #8CC49A; border-radius: 999px; padding: 3px 10px; }
.verified-chip { display: inline-block; font-size: 12px; font-weight: 700; color: #1E5A2E; background: #DCEFD8; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
.btn-verify { border-color: #2F6B3A; color: #1E5A2E; }
.inline-form { display: inline; }
.verify-ask > summary { list-style: none; }
.verify-ask > summary::-webkit-details-marker { display: none; }
.verify-ask[open] { flex-basis: 100%; }
.verify-ask form { margin-top: 10px; max-width: 520px; }
.table-wrap { overflow-x: auto; }
.simple-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.simple-table th, .simple-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.role-pill { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 1px 10px; }
.role-admin { background: #16202A; color: #fff; }
.role-member { background: #E4E7E2; color: #16202A; }
