:root {
  color-scheme: light;
  --bg: #F3F5F7; --surface: #FFFFFF; --surface2: #E9EEF2; --field: #F4F7F9;
  --ink: #0F1B2D; --mute: #5C6B7A; --line: #D9E0E6; --line-strong: #B4C0CB;
  --accent: #FF5A1F; --on-accent: #0F1B2D; --emph: #D94A12; --dot: #0F1B2D;
  --sea: #BFD9E8; --land: #F2F0EA;
  --err: #B3261E; --err-bg: #FDECEA; --err-line: #F3C2BD;
  --pin-stroke: #FFFFFF; --pin-shadow: 0 2px 6px rgba(15,27,45,.3);
  --r: 10px; --chip-r: 6px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-h: 'Bricolage Grotesque', 'IBM Plex Sans', sans-serif;
  --font-data: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
p { margin: 0; }
a { color: inherit; }

.app { height: 100dvh; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.hdr { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.hdr .wordmark { flex: 1; font-family: var(--font-h); font-weight: 700; font-size: 16.5px; letter-spacing: -.005em; white-space: nowrap; }
.hdr .title { flex: 1; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .back { background: none; border: 0; padding: 4px 8px 4px 0; font-size: 18px; color: var(--ink); line-height: 1; }

.chip { border: 1px solid var(--line); border-radius: var(--chip-r); padding: 5px 11px; background: var(--surface); font-size: 13px; line-height: 1.35; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }

.intro { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: none; background: var(--surface); border-bottom: 1px solid var(--line); }
.h { font-size: 20px; font-weight: 600; line-height: 1.22; text-wrap: balance; letter-spacing: -.005em; }

.map { position: relative; flex: 1; min-height: 200px; background: var(--sea); }
.map .maplibregl-map { position: absolute; inset: 0; }

.peek { position: relative; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px 11px; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; flex: none; color: var(--ink); }
.peek .prog { position: absolute; left: 0; top: -1px; height: 2px; background: var(--accent); width: 0; }
.peek.auto .prog { animation: fill 4s linear forwards; }
@keyframes fill { from { width: 0 } to { width: 100% } }
.peek img { width: 58px; height: 58px; border-radius: var(--r); object-fit: cover; flex: none; background: var(--surface2); }
.peek .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.peek .when { font-family: var(--font-data); font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.peek .where { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.peek .cats { font-size: 13px; color: var(--mute); }

.foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; flex: none; }
.btn { display: block; width: 100%; border: 1px solid transparent; border-radius: var(--r); min-height: 50px; padding: 12px 16px; font-weight: 700; font-size: 16px; text-align: center; background: var(--accent); color: var(--on-accent); letter-spacing: -.005em; }
.btn.sec { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.credit { font-size: 12px; color: var(--mute); text-align: center; }
.credit a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

.body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px; overflow: auto; }
.photo { display: block; border-radius: var(--r); background: var(--surface2); max-width: 100%; height: auto; max-height: 56dvh; margin: 0 auto; object-fit: contain; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; }
.kv dd.data { font-family: var(--font-data); font-size: 13.5px; }
.mute { color: var(--mute); font-size: 13px; }
.mini { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); padding: 0; text-align: left; display: flex; flex-direction: column; flex: none; color: var(--ink); width: 100%; }
.mini .map { min-height: 140px; flex: none; }
.mini .cap { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; border-top: 1px solid var(--line); }
.mini .cap .mute { font-weight: 500; white-space: nowrap; }
.step { font-family: var(--font-data); font-size: 11.5px; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.lbl2 { font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.lbl2 .mute { font-weight: 500; }
.field { width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 13px; color: var(--ink); font: inherit; font-size: 14.5px; }
.field::placeholder { color: var(--mute); }
textarea.field { min-height: 70px; resize: vertical; }
.err { background: var(--err-bg); color: var(--err); border: 1px solid var(--err-line); border-radius: var(--r); padding: 10px 12px; font-size: 13.5px; line-height: 1.4; }
.cam { position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 16px; width: 100%; aspect-ratio: 3 / 4; max-height: 56dvh; margin: 0 auto; padding: 0; }
.cam svg { width: 44px; height: 44px; fill: none; stroke: var(--emph); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cam .sub { font-weight: 400; font-size: 13px; color: var(--mute); }
.cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: translate(-50%, -100%) rotate(-45deg); border: 2px solid var(--pin-stroke); box-shadow: var(--pin-shadow); pointer-events: none; z-index: 2; }
.pin.faint { opacity: .45; }
.pick-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: 0 6px 20px rgba(15,27,45,.2); display: flex; flex-direction: column; gap: 10px; }
.pick-card .q { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.pick-card .s { font-size: 13px; color: var(--mute); line-height: 1.4; }
.pick-card .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } /* не .row: тот — строка списка пляжей, с border-bottom */
.btn.sm { width: auto; min-height: 42px; padding: 9px 14px; font-size: 15px; }
.lnk { background: none; border: 0; padding: 9px 10px; font-weight: 600; font-size: 14px; color: var(--ink); }
.bc { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 7px; background: var(--surface); }
.bc .nm { font-weight: 700; font-size: 18px; }
.bc .st b { color: var(--emph); }
.sharecard { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; flex: none; background: var(--surface2); display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; }
.spin { width: 26px; height: 26px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp 1s linear infinite; margin: 0 auto; }
@keyframes sp { to { transform: rotate(360deg) } }
.list { display: flex; flex-direction: column; }
.row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; color: var(--ink); }
.row img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface2); }
@media (prefers-reduced-motion: reduce) { .peek.auto .prog, .spin { animation: none; } }
