/* app.css - KampÇantam v2. Emerald + sage, glass, micro-interactions. Mobile-first. */
:root {
  --emerald: #047857; --emerald-d: #065f46; --emerald-dd: #064e3b; --forest: #14532d; --sage: #8aa899; --sage-l: #e7efe9; --moss: #ecfdf5;
  --slate: #1e293b; --slate-2: #475569; --line: #e2e8f0; --bg: #f4f7f5; --white: #fff;
  --tent: #ea580c; --ban: #dc2626; --warn: #d97706; --info: #0369a1; --gold: #f59e0b;
  --nav-h: 66px; --top-h: 60px; --r: 18px;
  --sh: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(6,78,59,.08); --sh-up: 0 2px 4px rgba(15,23,42,.08), 0 16px 36px rgba(6,78,59,.16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-d: 'Outfit', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--font); color: var(--slate); background: var(--bg); overscroll-behavior: none; }
body.noscroll { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-d); margin: 0; letter-spacing: -.2px; }
.h1 { font-size: 1.6rem; color: var(--emerald-dd); margin-bottom: .5rem; }
h2 { font-size: 1.12rem; } a { color: var(--emerald); }
.muted { color: var(--slate-2); font-size: .92rem; } .small { font-size: .8rem; }
button { font-family: inherit; }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; display: flex; align-items: center; justify-content: space-between; z-index: 1000;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(6,78,59,.1); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--emerald-dd); min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 10px rgba(6,78,59,.35), 0 0 0 2px #fff; background: #fff; flex: none; transition: transform .3s; }
.brand:active .brand-logo { transform: rotate(-8deg) scale(.94); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-text b { font: 700 1.15rem var(--font-d); letter-spacing: -.3px; }
.brand-text small { margin-top: 3px; font-size: .62rem; font-weight: 600; letter-spacing: .3px; color: #fff; background: var(--emerald); border-radius: 999px; padding: 2px 8px; width: max-content; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--slate); border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pill:active { transform: scale(.95); }
.pill-add { background: linear-gradient(135deg, var(--emerald), #10b981); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(4,120,87,.4); display: none; }
.pill-google { box-shadow: var(--sh); }
.avatar-btn { border: 2px solid #fff; padding: 0; border-radius: 50%; width: 38px; height: 38px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 10px rgba(6,78,59,.35); background: #fff; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

main { position: fixed; inset: calc(var(--top-h) + env(safe-area-inset-top)) 0 calc(var(--nav-h) + env(safe-area-inset-bottom)) 0; }
.view { display: none; position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.view.active { display: block; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page { padding: 16px 14px 32px; max-width: 760px; margin: 0 auto; } .page.wide { max-width: 1080px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #064e3b 0%, #0f172a 55%, #022c22 100%); padding: 34px 16px 74px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: drift 12s ease-in-out infinite alternate; }
.g1 { width: 280px; height: 280px; background: #10b981; top: -90px; right: -60px; } .g2 { width: 240px; height: 240px; background: #65a30d; bottom: -80px; left: -70px; animation-delay: -5s; opacity: .35; }
@keyframes drift { to { transform: translate(24px, 18px) scale(1.12); } }
.hero-trees { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.05; margin: 14px 0 8px; font-weight: 700; background: linear-gradient(90deg, #fff, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 auto 22px; color: #bbf7d0; max-width: 520px; }
.glass { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 10px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.3); }
.search-bar { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px; border-radius: 22px; text-align: left; }
.search-bar label { display: block; }
.search-bar label span { display: block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: #a7f3d0; padding: 0 6px 3px; }
.search-bar select { width: 100%; border: 0; border-radius: 14px; padding: 12px 12px; font: 500 .95rem var(--font); background: rgba(255,255,255,.92); color: var(--slate); }
.btn-find { background: linear-gradient(135deg, #10b981, #047857); }
.btn-glow { margin-top: 16px; border: 1px solid rgba(167,243,208,.6); background: rgba(16,185,129,.22); color: #ecfdf5; font: 600 .98rem var(--font); padding: 13px 22px; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 0 rgba(52,211,153,.6), 0 8px 28px rgba(16,185,129,.35); animation: glow 2.4s infinite; transition: transform .15s; }
.btn-glow:active { transform: scale(.96); }
@keyframes glow { 70% { box-shadow: 0 0 0 16px rgba(52,211,153,0), 0 8px 28px rgba(16,185,129,.35); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0), 0 8px 28px rgba(16,185,129,.35); } }
@media (min-width: 720px) { .search-bar { grid-template-columns: 1fr 1fr auto; align-items: end; } .search-bar .btn { height: 46px; } }

.ticker { display: flex; align-items: center; gap: 10px; margin: -34px 14px 0; position: relative; z-index: 3; text-decoration: none; color: #fff; padding: 13px 16px; border-radius: 16px; font-size: .88rem; line-height: 1.35;
  background: linear-gradient(100deg, #ea580c, #dc2626); box-shadow: 0 10px 30px rgba(220,38,38,.35); max-width: 1052px; margin-inline: auto; width: calc(100% - 28px); transition: transform .15s; }
.ticker:active { transform: scale(.985); } .ticker-ico { font-size: 1.3rem; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { transform: scale(1.2); } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 2px 12px; }
.section-head h2 { font-size: 1.3rem; color: var(--emerald-dd); }
.link { border: 0; background: none; color: var(--emerald); font-weight: 600; cursor: pointer; font-size: .9rem; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } .grid.one { grid-template-columns: 1fr; }
.kcard { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; animation: fadeUp .4s ease both; }
@media (hover: hover) { .kcard:hover { transform: translateY(-4px); box-shadow: var(--sh-up); } .kcard:hover .kimg img { transform: scale(1.06); } }
.kcard.is-ban { box-shadow: 0 0 0 2px var(--ban), var(--sh); }
.kimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; background: var(--sage-l); }
.kimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.kimg::after { content: ''; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(2,44,34,.65)); pointer-events: none; }
.scene { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.scene > svg:first-child { width: 64px; height: 64px; fill: rgba(255,255,255,.9); position: relative; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.scene .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; fill: rgba(2,44,34,.35); }
.kchips { position: absolute; z-index: 2; left: 8px; right: 44px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.kchips.static { position: static; margin-top: 4px; }
.cp { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 3px 9px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.cp-green { background: rgba(4,120,87,.92); color: #fff; } .cp-orange { background: rgba(234,88,12,.92); color: #fff; } .cp-blue { background: rgba(3,105,161,.92); color: #fff; }
.cp-yellow { background: rgba(245,158,11,.95); color: #422006; } .cp-grey { background: rgba(71,85,105,.88); color: #fff; } .cp-red { background: rgba(185,28,28,.92); color: #fff; } .cp-ban { background: #dc2626; color: #fff; }
.static .cp-green { background: #d1fae5; color: #065f46; } .static .cp-orange { background: #ffedd5; color: #c2410c; } .static .cp-blue { background: #e0f2fe; color: #075985; } .static .cp-yellow { background: #fef3c7; color: #92400e; } .static .cp-grey { background: #f1f5f9; color: #475569; } .static .cp-red { background: #fee2e2; color: #b91c1c; }
.heart { position: absolute; z-index: 3; right: 8px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #be123c; font-size: 1.15rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .2s; }
.heart:active { transform: scale(.8); } .heart.on { animation: pop .35s; } @keyframes pop { 40% { transform: scale(1.35); } }
.kbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kbody h3 { font-size: 1.05rem; color: var(--emerald-dd); }
.kloc { display: flex; justify-content: space-between; gap: 8px; color: var(--slate-2); font-size: .85rem; } .km { color: var(--emerald-d); white-space: nowrap; }
.kbtns { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; } .kbtns .btn { flex: 1; text-align: center; }
.sk .kimg { animation: shimmer 1.2s infinite linear; background: linear-gradient(90deg, #e7efe9 25%, #f4f7f5 50%, #e7efe9 75%); background-size: 200% 100%; } .sk h3, .sk .kloc { background: #e7efe9; border-radius: 6px; color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }

.btn { display: inline-block; border: 0; background: linear-gradient(135deg, var(--emerald), #059669); color: #fff; border-radius: 14px; padding: 12px 18px; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 14px rgba(4,120,87,.28); }
.btn:active { transform: scale(.96); } .btn[disabled] { opacity: .6; }
.btn.sm { padding: 8px 12px; font-size: .84rem; border-radius: 12px; }
.btn-ghost { background: #fff; color: var(--emerald-d); border: 1px solid #a7d7c3; box-shadow: none; }
.btn-glass { background: rgba(255,255,255,.88); color: var(--emerald-dd); backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.btn.danger { background: var(--ban); box-shadow: none; }
.empty { text-align: center; padding: 28px 10px; color: var(--slate-2); grid-column: 1 / -1; }

.mini-map-card { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-up); height: 320px; background: var(--sage-l); }
#miniMap { position: absolute; inset: 0; } .mini-map-card .btn { position: absolute; top: 12px; right: 12px; z-index: 600; }
.cta-band { margin: 28px 0 8px; padding: 20px; border-radius: 22px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: #fff; background: linear-gradient(135deg, #065f46, #14532d); box-shadow: var(--sh); }
.cta-band h3 { font-size: 1.15rem; } .cta-band p { margin: 4px 0 0; color: #bbf7d0; font-size: .9rem; } .cta-band .btn { background: #fff; color: var(--emerald-dd); box-shadow: none; }

/* ---------- map view ---------- */
#v-map { overflow: hidden; } #map { position: absolute; inset: 0; z-index: 1; }
.chips { position: absolute; z-index: 500; top: 10px; left: 0; right: 0; display: flex; gap: 8px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; } .chips.inline { position: static; padding: 0; margin: 0 0 14px; }
.chip { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--slate); border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,.14); cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s; }
.chip:active { transform: scale(.94); } .chip.on { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.legend { position: absolute; z-index: 500; left: 10px; bottom: 14px; display: flex; gap: 10px; background: rgba(255,255,255,.94); padding: 6px 10px; border-radius: 10px; font-size: .75rem; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.legend span { display: flex; align-items: center; gap: 4px; } .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-caravan { background: var(--emerald); } .dot-tent { background: var(--tent); } .dot-ban { background: var(--ban); }
.banner { position: absolute; z-index: 500; left: 10px; right: 10px; top: 58px; background: var(--ban); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: .85rem; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.pin svg { transform: rotate(45deg); width: 18px; height: 18px; fill: #fff; }
.pin-caravan { background: var(--emerald); } .pin-tent { background: var(--tent); } .pin-ban { background: var(--ban); } .pin-pick { background: #2563eb; }
.me { width: 16px; height: 16px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25); }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search input, .search select, .form input, .form select, .form textarea, .wizard input:not([type=radio]):not([type=checkbox]), .wizard select, .wizard textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; background: #fff; color: var(--slate); }
.search select { max-width: 160px; }

/* ---------- news ---------- */
.ncat { background: #fff; border-radius: 20px; box-shadow: var(--sh); margin: 16px 0; overflow: hidden; }
.ncat > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, #1d4ed8, #0369a1); }
.nc-valilik > header { background: linear-gradient(120deg, #1e3a8a, #0369a1); } .nc-ogm > header { background: linear-gradient(120deg, #b91c1c, #ea580c); } .nc-belediye > header { background: linear-gradient(120deg, #047857, #0d9488); } .nc-diger > header { background: linear-gradient(120deg, #475569, #64748b); }
.ncat-ico { font-size: 1.8rem; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(255,255,255,.18); border-radius: 14px; }
.ncat header h2 { font-size: 1.05rem; } .ncat header small { opacity: .85; } .ncount { margin-left: auto; background: rgba(255,255,255,.22); border-radius: 999px; padding: 3px 11px; font-size: .85rem; }
.news { margin: 10px 12px; padding: 12px 14px; border-radius: 14px; background: #f8fafc; border-left: 5px solid var(--info); }
.news.lv-yasak { border-left-color: var(--ban); background: #fef2f2; } .news.lv-uyari { border-left-color: var(--warn); background: #fffbeb; }
.news h3 { font-size: 1rem; margin: 4px 0; } .news p { margin: 4px 0 8px; font-size: .92rem; } .news .meta { font-size: .78rem; color: var(--slate-2); }
.doc { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--emerald-d); background: #fff; border: 1px solid #a7d7c3; border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.nempty { padding: 14px 18px 18px; color: var(--slate-2); font-size: .9rem; }
.lv { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; color: #fff; background: var(--info); } .lv-yasak { background: var(--ban); } .lv-uyari { background: var(--warn); }
.card { background: #fff; border-radius: 20px; padding: 16px; margin: 0 0 14px; box-shadow: var(--sh); }
.card h2 { margin-bottom: 10px; color: var(--emerald-dd); }
.sources .src { display: block; padding: 10px 12px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--slate); transition: background .2s, transform .15s; } .sources .src:active { transform: scale(.98); } .sources .src:hover { background: var(--moss); }
.sources small { display: block; color: var(--slate-2); }

/* ---------- radar / nearby ---------- */
.radar-wrap { text-align: center; padding: 8px 0 18px; }
.radar { position: relative; width: 200px; height: 200px; margin: 6px auto 14px; border-radius: 50%; background: radial-gradient(circle, #064e3b 0%, #022c22 100%); box-shadow: 0 0 0 6px #d1fae5, var(--sh-up); overflow: hidden; }
.radar i { position: absolute; inset: 0; margin: auto; border: 1px solid rgba(110,231,183,.45); border-radius: 50%; } .radar i:nth-child(1) { width: 33%; height: 33%; } .radar i:nth-child(2) { width: 66%; height: 66%; } .radar i:nth-child(3) { width: 98%; height: 98%; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(52,211,153,0) 0deg, rgba(52,211,153,.55) 70deg, rgba(52,211,153,0) 72deg); opacity: .35; animation: spin 4s linear infinite; }
.radar.scanning .sweep { opacity: 1; animation-duration: 1.2s; }
.radar-dot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 0 rgba(110,231,183,.8); animation: ping 1.8s infinite; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes ping { 80%, 100% { box-shadow: 0 0 0 40px rgba(110,231,183,0); } }
.where { font: 600 1.05rem var(--font-d); color: var(--emerald-dd); margin-bottom: 12px; min-height: 1.5em; }
.near-list { display: grid; gap: 10px; }
.nrow { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--sh); cursor: pointer; animation: slideIn .4s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.nthumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; flex: none; } .nthumb img, .nthumb .scene { width: 100%; height: 100%; object-fit: cover; }
.nthumb .scene > svg:first-child { width: 30px; height: 30px; }
.ninfo { flex: 1; min-width: 0; } .ninfo b { display: block; color: var(--emerald-dd); } .ninfo small { color: var(--slate-2); }
.go { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--moss); text-decoration: none; font-size: 1.2rem; flex: none; }

/* ---------- profile ---------- */
.login-card { text-align: center; } .modal-logo { border-radius: 50%; box-shadow: 0 4px 18px rgba(6,78,59,.35); margin-bottom: 10px; background: #fff; }
.gsi-slot { display: flex; justify-content: center; min-height: 44px; margin: 14px 0 4px; }
.profile-card { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #ecfdf5, #fff); } .p-avatar { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(6,78,59,.3); object-fit: cover; }
.badge-ok { display: inline-block; margin: 4px 0; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #059669, #0d9488); }
.row-gap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; } .center { justify-content: center; }
.mrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .mrow small { display: block; color: var(--slate-2); }
.st { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; } .st-pending { background: #fef3c7; color: #92400e; } .st-ok { background: #d1fae5; color: #065f46; } .st-no { background: #fee2e2; color: #991b1b; }
.star { color: var(--gold); letter-spacing: 1px; }

/* ---------- detail sheet ---------- */
.back { position: fixed; inset: 0; z-index: 1900; background: rgba(2,24,18,.55); backdrop-filter: blur(3px); animation: fade .25s; } @keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 2000; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,.35); animation: rise .32s cubic-bezier(.2,.9,.3,1); padding-bottom: env(safe-area-inset-bottom); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.s-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px 24px 0 0; } .s-photo img, .s-photo .scene { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(transparent, rgba(2,44,34,.7)); }
.s-body { padding: 16px 18px 22px; } .s-body h2 { font-size: 1.45rem; color: var(--emerald-dd); }
.warn { background: #fee2e2; color: #991b1b; border-radius: 12px; padding: 9px 12px; font-size: .88rem; margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; } .facts div { background: var(--moss); border-radius: 12px; padding: 8px 10px; font-size: .88rem; } .facts b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .4px; color: var(--slate-2); }
.desc { margin: 8px 0; } .approx { font-size: .8rem; color: var(--slate-2); background: #f8fafc; border-radius: 10px; padding: 7px 10px; margin: 6px 0; } .credit { font-size: .74rem; color: var(--slate-2); margin: 6px 0; }
.sheet .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.x { position: absolute; top: 10px; right: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--slate); } .x.light { background: rgba(0,0,0,.45); color: #fff; }
.comments { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; } .comments h3 { margin-bottom: 8px; }
.cform { display: grid; gap: 8px; margin-bottom: 12px; } .cform textarea { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; resize: vertical; }
.stars button { border: 0; background: none; font-size: 1.6rem; color: #cbd5e1; cursor: pointer; padding: 0 2px; transition: transform .15s; } .stars button.on { color: var(--gold); } .stars button:active { transform: scale(1.3); }
.clist .c { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); } .clist img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; } .clist small { margin-left: 8px; color: var(--slate-2); } .clist p { margin: 2px 0 0; font-size: .92rem; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(2,24,18,.6); backdrop-filter: blur(6px); animation: fade .25s; }
.modal[hidden], .sheet[hidden], .back[hidden], .toast[hidden] { display: none; }
.modal-card { position: relative; width: min(440px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 26px; padding: 26px 22px 22px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: rise .3s cubic-bezier(.2,.9,.3,1); }
.glass-dark { background: linear-gradient(160deg, rgba(6,78,59,.96), rgba(15,23,42,.96)); color: #ecfdf5; } .glass-dark h2 { color: #fff; } .glass-dark p { color: #a7f3d0; } .glass-dark .x { background: rgba(255,255,255,.15); color: #fff; }
.glass-dark .modal-logo { width: 84px; height: 84px; }
.wizard { text-align: left; width: min(560px, 100%); } .wizard h2 { color: var(--emerald-dd); margin-bottom: 10px; padding-right: 34px; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; } .steps i { flex: 1; height: 5px; border-radius: 4px; background: #d1fae5; transition: background .3s; } .steps i.on { background: var(--emerald); }
.wz-step { display: none; } .wz-step.on { display: block; animation: fadeUp .3s ease both; }
.wizard label { display: block; font-size: .82rem; font-weight: 600; color: var(--slate-2); margin-bottom: 12px; } .wizard label > :is(input, select, textarea) { margin-top: 5px; font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.types { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; } .types legend { font-size: .82rem; font-weight: 600; color: var(--slate-2); margin-bottom: 6px; padding: 0; }
.type { margin: 0 !important; cursor: pointer; } .type input { position: absolute; opacity: 0; } .type span { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; transition: border-color .2s, background .2s; } .type b { display: block; font-size: .95rem; color: var(--slate); } .type small { color: var(--slate-2); font-weight: 400; }
.type input:checked + span { border-color: var(--emerald); background: var(--moss); } .type input:focus-visible + span { outline: 2px solid var(--emerald); }
#pickMap { height: 260px; border-radius: 16px; overflow: hidden; margin: 8px 0; box-shadow: var(--sh); }
.toggles { display: flex; gap: 10px; margin: 12px 0; } .tg { flex: 1; margin: 0 !important; } .tg input { position: absolute; opacity: 0; } .tg span { display: block; text-align: center; border: 2px solid var(--line); border-radius: 14px; padding: 10px; font-weight: 600; color: var(--slate); transition: all .2s; } .tg input:checked + span { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.review div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; } .review b { width: 110px; flex: none; color: var(--slate-2); } .review span { word-break: break-word; }
.err { color: #b91c1c; background: #fee2e2; border-radius: 10px; padding: 8px 12px; font-size: .88rem; } .err[hidden] { display: none; }
.wz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; } .wz-nav .btn { flex: 1; }

.toast { position: fixed; z-index: 4000; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: #064e3b; color: #fff; border-radius: 999px; padding: 11px 20px; font-size: .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: all .25s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- bottom nav ---------- */
.bottomnav { position: fixed; z-index: 1500; inset: auto 0 0 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(255,255,255,.9); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid rgba(6,78,59,.1); }
.nav { position: relative; border: 0; background: none; color: #64748b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .64rem; font-weight: 500; cursor: pointer; transition: color .2s, transform .15s; }
.nav:active { transform: scale(.9); } .nav svg { width: 23px; height: 23px; fill: currentColor; } .nav.active { color: var(--emerald); font-weight: 700; }
.nav.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--emerald); }
.nav-add { color: var(--emerald-d); } .fab { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; font: 400 2rem/1 var(--font); color: #fff; background: linear-gradient(135deg, #10b981, #047857); box-shadow: 0 6px 20px rgba(4,120,87,.55), 0 0 0 4px #fff; animation: fabpulse 3s infinite; }
@keyframes fabpulse { 50% { box-shadow: 0 6px 26px rgba(16,185,129,.8), 0 0 0 4px #fff; } }
.badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--ban); color: #fff; font-size: .65rem; font-style: normal; display: grid; place-items: center; padding: 0 4px; }

/* leaflet */
.leaflet-container { font-family: var(--font); } .leaflet-popup-content-wrapper { border-radius: 14px; }

/* ---------- admin ---------- */
body.admin { background: var(--bg); overflow: auto; height: auto; } body.admin main { position: static; inset: auto; } .admin-wrap { max-width: 760px; margin: 0 auto; padding: 18px 14px 40px; }
.admin-wrap .form label { display: block; font-size: .85rem; color: var(--slate-2); margin-bottom: 10px; } .form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.flash { background: var(--moss); border: 1px solid #a7f3d0; padding: 8px 12px; border-radius: 10px; }
.admin-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .admin-item.off { opacity: .55; } .admin-item small { display: block; color: var(--slate-2); }
.admin-item form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .admin-item form input { padding: 6px 9px; border: 1px solid #cbd5e1; border-radius: 10px; }

@media (min-width: 900px) {
  .pill-add { display: inline-flex; } .bottomnav { left: 50%; right: auto; transform: translateX(-50%); width: 640px; border-radius: 20px 20px 0 0; border: 1px solid var(--line); }
  .sheet { left: 50%; right: auto; transform: translateX(-50%); width: 640px; animation: none; } .hero { padding-top: 56px; }
}
@media (max-width: 380px) { .brand-text small { display: none; } .nav { font-size: .6rem; } .two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .view { scroll-behavior: auto; } }

/* ---------- v3: auth modal, footer, weather, vehicle badges ---------- */
.auth-card { text-align: left; width: min(460px, 100%); padding: 0 0 22px; overflow-x: hidden; }
.auth-head { text-align: center; padding: 22px 22px 14px; color: #fff; background: linear-gradient(160deg, #064e3b, #0f172a); }
.auth-head h2 { color: #fff; font-size: 1.35rem; margin-top: 6px; } .auth-head p { color: #a7f3d0; margin: 4px 0 0; font-size: .9rem; }
.auth-head .modal-logo { width: 64px; height: 64px; margin: 0; }
.auth-card .gsi-slot, .auth-card > .muted, .or, .auth-tabs, .auth-form { margin-left: 22px; margin-right: 22px; }
.auth-card .gsi-slot { margin-top: 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--slate-2); font-size: .8rem; margin-top: 6px; margin-bottom: 8px; } .or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--sage-l); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.auth-tabs button { border: 0; background: none; border-radius: 9px; padding: 8px 4px; font-size: .78rem; font-weight: 600; color: var(--slate-2); cursor: pointer; transition: all .2s; } .auth-tabs button.on { background: #fff; color: var(--emerald-d); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.auth-form { display: none; } .auth-form.on { display: block; animation: fadeUp .25s ease both; }
.auth-form label { display: block; font-size: .8rem; font-weight: 600; color: var(--slate-2); margin-bottom: 12px; }
.auth-form input:not([type=checkbox]) { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 12px; font: 400 .95rem var(--font); background: #fff; color: var(--slate); }
.auth-form input:focus { outline: 2px solid var(--emerald); border-color: transparent; }
.auth-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .8rem; line-height: 1.4; } .auth-form .check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--emerald); }
.auth-form .btn { width: 100%; margin-top: 4px; } .auth-form .link { display: block; margin: 10px auto 0; }
.code { text-align: center; font: 700 1.6rem var(--font-d) !important; letter-spacing: .5em; }
.auth-form .err { margin: 0 0 10px; }

.site-foot { padding: 22px 16px calc(24px + 8px); text-align: center; color: var(--slate-2); border-top: 1px solid var(--line); margin-top: 28px; background: linear-gradient(#fff, var(--bg)); }
.mt-sign { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); text-align: left; opacity: .9; transition: opacity .2s; } .mt-sign:hover { opacity: 1; }
.mt-sign img { border-radius: 8px; } .mt-sign b { display: block; font: 600 .85rem var(--font-d); letter-spacing: .3px; color: var(--emerald-dd); } .mt-sign small { color: var(--slate-2); font-size: .74rem; }
.site-foot nav { margin-top: 10px; display: flex; justify-content: center; gap: 16px; font-size: .78rem; } .site-foot nav a { color: var(--slate-2); }
.about p { margin: 0 0 10px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .9rem; } .switch input { width: 20px; height: 20px; accent-color: var(--emerald); }

.vehicles { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 0; margin: 4px 0 12px; } .vehicles legend { font-size: .82rem; font-weight: 600; color: var(--slate-2); padding: 0 6px; }

.access { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.acc { font-size: .78rem; font-weight: 600; border-radius: 10px; padding: 5px 10px; border: 1px solid transparent; }
.acc-yes { background: #d1fae5; color: #065f46; border-color: #a7f3d0; } .acc-caution { background: #fef3c7; color: #92400e; border-color: #fde68a; } .acc-no { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.weather { display: flex; align-items: center; gap: 14px; margin: 14px 0; padding: 12px 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0369a1, #0e7490); box-shadow: var(--sh); }
.weather.skeleton { background: linear-gradient(90deg, #e7efe9 25%, #f4f7f5 50%, #e7efe9 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; color: var(--slate-2); }
.w-ico { font-size: 2.4rem; line-height: 1; } .w-temp { font: 700 1.8rem var(--font-d); } .w-meta { font-size: .85rem; opacity: .95; } .w-meta b { font-weight: 600; }
.w-wind { margin-left: auto; text-align: right; font-size: .82rem; } .w-wind strong { display: block; font: 600 1.15rem var(--font-d); }
.w-warn { grid-column: 1 / -1; font-size: .8rem; background: rgba(0,0,0,.22); border-radius: 10px; padding: 5px 10px; margin-top: 6px; }
.weather.wind-high { background: linear-gradient(135deg, #b45309, #dc2626); }
.w-credit { font-size: .7rem; color: var(--slate-2); margin: -8px 2px 8px; }
.weather { flex-wrap: wrap; }
