@font-face { font-family: Montserrat; src: url('/fonts/montserrat-vf.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root { color-scheme: light; --bg: #eef0f4; --glass: rgba(255,255,255,.9); --glass-strong: rgba(255,255,255,.97); --text: #11131a; --muted: #6d7180; --line: rgba(20,24,34,.12); --shadow: 0 18px 54px rgba(22,26,38,.2); --pink: #ff3f75; --cyan: #00cfd7; }
* { box-sizing: border-box; }
html, body, .map-shell, #map { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: var(--text); background: var(--bg); font: 13px Montserrat, -apple-system, BlinkMacSystemFont, sans-serif; }
body.dark { color-scheme: dark; --bg: #07080c; --glass: rgba(14,15,21,.88); --glass-strong: rgba(17,18,24,.97); --text: #f7f7fa; --muted: #9295a2; --line: rgba(255,255,255,.12); --shadow: 0 20px 60px rgba(0,0,0,.48); --pink: #ff438b; --cyan: #00dce8; }
.map-shell { position: relative; isolation: isolate; }
#map { position: absolute; inset: 0; background: radial-gradient(circle at 30% 35%, rgba(0,220,232,.14), transparent 28%), radial-gradient(circle at 72% 63%, rgba(255,67,139,.15), transparent 31%), var(--bg); }
button { font: inherit; cursor: pointer; }
.map-header { position: absolute; z-index: 3; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.brand, .live-pill, .control-dock, .map-summary, .place-card, .privacy-note { border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.brand { padding: 8px 11px 8px 8px; display: flex; align-items: center; gap: 9px; border-radius: 17px; }
.brand img { width: 35px; height: 29px; object-fit: contain; }
.brand span { display: grid; gap: 1px; }
.brand small { color: var(--pink); font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.brand strong { font-size: 11px; }
.live-pill { padding: 8px 10px; display: flex; align-items: center; gap: 7px; border-radius: 999px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,220,232,.13), 0 0 13px var(--cyan); }
.control-dock { position: absolute; z-index: 3; top: calc(max(12px, env(safe-area-inset-top)) + 58px); left: 12px; right: 12px; padding: 6px; display: grid; grid-template-columns: auto 1fr; gap: 6px; border-radius: 18px; }
.segmented, .metric-controls { display: flex; gap: 4px; }
.segmented button, .metric-controls button { min-height: 36px; padding: 0 11px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; }
.segmented button.active { color: #fff; background: linear-gradient(135deg, var(--pink), #e62e66); }
.metric-controls { justify-content: flex-end; }
.metric-controls button { padding: 0 8px; display: flex; align-items: center; gap: 5px; }
.metric-controls button.active { color: var(--text); background: rgba(128,128,140,.13); }
.metric-controls i { width: 7px; height: 7px; border-radius: 50%; }
.metric-controls i.all { background: linear-gradient(135deg, var(--pink) 45%, var(--cyan) 55%); }
.metric-controls i.posts { background: var(--pink); }
.metric-controls i.replies { background: var(--cyan); }
.map-summary { position: absolute; z-index: 3; left: 12px; bottom: calc(54px + env(safe-area-inset-bottom)); min-width: 196px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-radius: 18px; pointer-events: none; }
.map-summary div { display: grid; gap: 2px; }
.map-summary strong { font-size: 20px; letter-spacing: -.05em; }
.map-summary span, .map-summary p { color: var(--muted); font-size: 8px; }
.map-summary p { grid-column: 1 / -1; margin: 0; }
.privacy-note { position: absolute; z-index: 3; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px 10px; border-radius: 999px; color: var(--muted); font-size: 7px; font-weight: 700; pointer-events: none; }
.privacy-note span { color: var(--cyan); }
.place-card { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 18px; border-radius: 24px; background: var(--glass-strong); animation: rise .28s ease-out; }
.place-card > button { position: absolute; top: 11px; right: 11px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: rgba(128,128,140,.12); font-size: 20px; }
.place-card p { margin: 0 42px 6px 0; color: var(--pink); font-size: 7px; font-weight: 850; letter-spacing: .16em; }
.place-card h1 { margin: 0 42px 3px 0; font-size: 22px; letter-spacing: -.04em; }
.place-card > span, .place-card > small { color: var(--muted); font-size: 9px; }
.place-stats { margin: 15px 0 7px; display: flex; align-items: end; gap: 10px; }
.place-stats strong { font-size: 32px; line-height: .9; color: var(--cyan); }
.place-stats span { color: var(--muted); font-size: 9px; }
.map-state { position: absolute; z-index: 6; inset: 0; padding: 34px; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--text); background: var(--bg); text-align: center; }
.map-state span { max-width: 260px; color: var(--muted); line-height: 1.5; }
.map-state[hidden], .place-card[hidden] { display: none; }
.loader { display: flex; gap: 6px; margin-bottom: 8px; }
.loader i { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); animation: bounce 1s infinite alternate; }
.loader i:nth-child(2) { background: #fff; animation-delay: .18s; }
.loader i:nth-child(3) { background: var(--cyan); animation-delay: .36s; }
.activity-pulse { position: absolute; width: var(--pulse-size); height: var(--pulse-size); padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: radial-gradient(circle, rgba(255,255,255,.96) 0 8%, var(--pulse-color) 10% 38%, color-mix(in srgb, var(--pulse-color) 45%, transparent) 40% 58%, transparent 60%); filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--pulse-color) 48%, transparent)); font-size: 9px; font-weight: 850; transform: translate(-50%, -50%); animation: breathe calc(2.7s + var(--pulse-delay)) ease-in-out infinite; }
.activity-pulse::after { content: ''; position: absolute; inset: 19%; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; }
@keyframes breathe { 0%,100% { transform: translate(-50%,-50%) scale(.94); } 50% { transform: translate(-50%,-50%) scale(1.08); } }
@keyframes bounce { to { transform: translateY(-8px); opacity: .45; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (max-width: 370px) { .metric-controls button { font-size: 0; padding: 0 9px; } .metric-controls i { width: 9px; height: 9px; } .segmented button { padding: 0 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }