/* ═══════════════════════════════════════════════════════════
   HARDE DÊRSIM — Google 3D map, controls styled after Google Earth (dark)
   ═══════════════════════════════════════════════════════════ */
:root{
  --panel:#202124; --panel-2:#28292c; --field:#303134; --line:#3c4043;
  --text:#e8eaed; --muted:#9aa0a6; --blue:#8ab4f8; --blue-bg:#394457;
  --shadow:0 1px 3px rgba(0,0,0,.3), 0 4px 8px 3px rgba(0,0,0,.15);
  --safe-t:env(safe-area-inset-top); --safe-b:env(safe-area-inset-bottom);
}
*{ box-sizing:border-box; margin:0; padding:0 }
[hidden]{ display:none !important }
html, body{ width:100%; height:100%; overflow:hidden; background:#000;
  font:14px/1.43 Roboto, Arial, sans-serif; color:var(--text); -webkit-font-smoothing:antialiased }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer }
svg{ fill:currentColor }
#globe{ position:fixed; inset:0 }
#globe canvas{ outline:none }

/* ── search pill ── */
.search{ position:fixed; z-index:5; top:calc(12px + var(--safe-t)); left:12px;
  width:min(392px, calc(100vw - 24px)); }
.search input{ width:100%; height:48px; padding:0 48px 0 52px; border:0; border-radius:24px;
  background:var(--field); color:var(--text); font-size:16px; box-shadow:var(--shadow); outline:none }
.search input::placeholder{ color:var(--muted) }
.search.open input{ border-radius:24px 24px 0 0; box-shadow:none; background:var(--panel-2) }
.s-ico{ position:absolute; left:16px; top:12px; width:24px; height:24px; color:var(--muted); pointer-events:none; z-index:1 }
.s-clear{ position:absolute; right:6px; top:6px; width:36px; height:36px; border-radius:50%;
  display:grid; place-items:center; color:var(--muted); z-index:1 }
.s-clear:hover{ background:rgba(232,234,237,.08) }
.s-clear svg{ width:20px; height:20px }
.s-drop{ background:var(--panel-2); border-radius:0 0 24px 24px; box-shadow:var(--shadow);
  border-top:1px solid var(--line); padding:8px 0 12px; max-height:min(60vh, 520px); overflow:auto }
.s-head{ padding:6px 20px 8px; font-size:14px; font-weight:500 }
.s-head:empty{ display:none }
#q-list{ list-style:none }
#q-list li[role=option]{ display:flex; align-items:center; gap:14px; padding:6px 20px; cursor:pointer; min-height:48px }
#q-list li[aria-selected=true]{ background:rgba(232,234,237,.08) }
.o-ico{ flex:0 0 32px; width:32px; height:32px; border-radius:50%; background:var(--blue-bg);
  display:grid; place-items:center }
.o-ico svg{ width:18px; height:18px; fill:var(--c, var(--blue)) }
.o-txt{ min-width:0; flex:1 }
.o-txt b{ display:block; font-weight:400; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.o-txt small{ display:block; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.o-txt mark{ background:none; color:inherit; font-weight:700 }
#q-list .note{ padding:10px 20px; color:var(--muted) }

.brand{ position:fixed; z-index:4; top:calc(20px + var(--safe-t)); right:16px; padding:6px 14px; border-radius:16px;
  background:rgba(32,33,36,.85); font-weight:500; pointer-events:none }
.brand em{ font-style:normal; color:#ff8a5c }

/* ── feature card (right on wide screens, bottom sheet on phones) ── */
.card{ position:fixed; z-index:6; top:calc(76px + var(--safe-t)); right:12px; width:360px; max-height:calc(100vh - 170px);
  overflow:auto; background:var(--panel); border-radius:8px; box-shadow:var(--shadow) }
.c-head{ display:flex; align-items:flex-start; gap:8px; padding:14px 8px 6px 20px }
.c-head h2{ flex:1; font-size:18px; font-weight:400; line-height:1.35; padding-top:6px; word-break:break-word }
.icon-btn{ width:40px; height:40px; border-radius:50%; display:grid; place-items:center; color:var(--muted); flex:0 0 40px }
.icon-btn:hover{ background:rgba(232,234,237,.08) }
.icon-btn svg{ width:22px; height:22px }
.c-body{ padding:0 20px 16px }
.c-sub{ color:var(--text); margin-bottom:10px }
.c-kind{ display:inline-flex; align-items:center; gap:6px; margin:0 0 12px; padding:3px 10px 3px 8px; border-radius:12px;
  background:rgba(232,234,237,.08); font-size:12px }
.c-kind i{ width:10px; height:10px; border-radius:50%; background:var(--c) }
.c-row{ padding:12px 0; border-top:1px solid var(--line) }
.c-row dt{ color:var(--text); font-weight:500 }
.c-row dd{ color:var(--muted) }

/* ── controls, bottom right ── */
.ctl{ position:fixed; z-index:5; right:12px; bottom:calc(40px + var(--safe-b)); display:flex; align-items:center; gap:10px }
.round{ position:relative; width:40px; height:40px; border-radius:50%; background:var(--panel); box-shadow:var(--shadow);
  display:grid; place-items:center; color:var(--text) }
.round:hover, .zoom button:hover{ background:#2f3033 }
.round svg{ width:22px; height:22px }
.round.txt{ font-weight:500; font-size:13px }
.round[aria-expanded=true], .round.on{ color:var(--blue) }
.round:disabled{ opacity:.5; cursor:default }
#f-badge{ position:absolute; top:-3px; right:-3px; min-width:18px; height:18px; padding:0 5px; border-radius:9px;
  background:var(--blue); color:#202124; font-size:11px; font-weight:700; line-height:18px }
#compass{ transition:transform .1s linear }
.zoom{ display:flex; height:40px; border-radius:20px; background:var(--panel); box-shadow:var(--shadow); overflow:hidden }
.zoom button{ width:44px; height:40px; display:grid; place-items:center }
.zoom button + button{ border-left:1px solid var(--line) }
.zoom svg{ width:20px; height:20px }

/* ── filter panel ── */
.fpanel{ position:fixed; z-index:6; right:12px; bottom:calc(92px + var(--safe-b)); width:min(340px, calc(100vw - 24px));
  max-height:calc(100vh - 200px); overflow:auto; padding:14px 16px 16px; background:var(--panel); border-radius:8px; box-shadow:var(--shadow) }
.fhead{ display:flex; justify-content:space-between; align-items:center; font-weight:500; margin-bottom:4px }
.flink{ color:var(--blue); font-weight:500 }
.fpanel h3{ font-size:12px; font-weight:500; color:var(--muted); margin:12px 0 6px; text-transform:uppercase; letter-spacing:.04em }
.chips{ display:flex; flex-wrap:wrap; gap:8px }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:16px; border:1px solid #5f6368; font-size:13px }
.chip i{ width:10px; height:10px; border-radius:50% }
.chip small{ color:var(--muted) }
.chip[aria-pressed=true]{ background:var(--blue-bg); border-color:var(--blue); color:var(--blue) }
.chip.zero{ opacity:.45 }

/* ── bottom bar ── */
.bar{ position:fixed; z-index:4; left:0; right:0; bottom:0; height:calc(24px + var(--safe-b)); padding:0 12px var(--safe-b) 12px;
  display:flex; justify-content:flex-end; gap:18px; align-items:center; font-size:11px; color:#fff;
  background:linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events:none; text-shadow:0 0 2px #000 }
.cesium-viewer-bottom{ left:8px; right:auto; bottom:calc(3px + var(--safe-b)); z-index:5 }
.cesium-credit-textContainer, .cesium-credit-expand-link{ font-size:11px }

.status{ position:fixed; z-index:7; left:50%; top:50%; transform:translate(-50%,-50%); max-width:calc(100vw - 32px);
  padding:12px 18px; border-radius:8px; background:var(--panel); box-shadow:var(--shadow); text-align:center }

/* ── phones ── */
@media (max-width: 640px){
  .brand{ display:none }
  .search{ width:calc(100vw - 24px) }
  .card{ top:auto; left:0; right:0; bottom:0; width:auto; max-height:52vh; border-radius:16px 16px 0 0;
    padding-bottom:var(--safe-b) }
  .card::before{ content:""; display:block; width:32px; height:4px; margin:8px auto 0; border-radius:2px; background:#5f6368 }
  .ctl{ bottom:calc(64px + var(--safe-b)) }
  .fpanel{ bottom:calc(116px + var(--safe-b)) }
  .bar #b-pos{ display:none }
  body.sheet .ctl{ display:none }
}
