* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #050d1f; color: #fff; font-family: system-ui, sans-serif; overflow: hidden; }
.hidden { display: none !important; }
.muted { opacity: .7; margin: 2px 0; }
.small { font-size: 12px; }
#map, #flat { position: fixed; inset: 0; }
#flat { background: radial-gradient(circle at 50% 40%, #0b2552, #050d1f); }
#flat svg { display: block; }

/* Equal Earth */
.sphere { fill: #0a2a5e; stroke: #1e3a6e; }
.graticule { fill: none; stroke: #ffffff22; stroke-width: .5; }
.country { fill: #2f9e6b; stroke: #0a1f44; stroke-width: .5; cursor: crosshair; }
.country:hover { fill: #3cc088; }
.sel { fill: none; stroke: #fff; stroke-width: 2; pointer-events: none; }
.fpin { cursor: pointer; filter: drop-shadow(0 3px 3px #000a); }
.fpin rect { fill: #0a1f44; stroke-width: 2; }

/* Üst çubuk */
#topbar { position: fixed; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 10px 14px; background: linear-gradient(#0a1f44dd, transparent); z-index: 5; transition: opacity .6s; }
.brand { font-weight: 800; letter-spacing: 2px; }
.brand span { color: #10b981; font-weight: 500; letter-spacing: 0; }
#search { flex: 1; min-width: 150px; max-width: 380px; padding: 9px 14px; border-radius: 20px; border: 1px solid #1e3a6e; background: #0a1f44; color: #fff; }
.seg { display: flex; border: 1px solid #1e3a6e; border-radius: 20px; overflow: hidden; }
.seg button, .pill { background: #0a1f44; color: #fff; border: 0; padding: 9px 14px; cursor: pointer; }
.pill { border: 1px solid #1e3a6e; border-radius: 20px; }
.seg button.on, .pill.on { background: #10b981; color: #04210f; font-weight: 700; }
select { background: #0a1f44; color: #fff; border: 1px solid #1e3a6e; border-radius: 8px; padding: 8px; }
.round { background: #0a1f44; color: #fff; border: 1px solid #1e3a6e; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; }
.link { background: none; border: 0; color: #fff; cursor: pointer; padding: 0 4px; font-size: 14px; }

/* Ana konum kutusu */
#homeChip { position: fixed; left: 14px; bottom: 28px; z-index: 5; display: flex; gap: 8px; align-items: center;
  background: #0a1f44ee; border: 1px solid #1e3a6e; border-radius: 20px; padding: 6px 12px; font-size: 14px; transition: opacity .6s; }
#hTime { font-variant-numeric: tabular-nums; font-weight: 700; color: #10b981; }

/* Bilgi kartı */
#card { position: fixed; right: 14px; top: 66px; width: min(350px, calc(100vw - 28px)); max-height: calc(100vh - 90px); overflow: auto;
  padding: 18px; background: #0a1f44ee; border: 1px solid #10b981; border-radius: 14px; backdrop-filter: blur(8px); z-index: 6; transition: opacity .4s; }
#card h2 { margin: 0; color: #10b981; font-size: 18px; }
#card h3 { margin: 10px 0 6px; font-size: 15px; }
#card ul { padding-left: 18px; margin: 6px 0; }
#closeCard { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; }
.bizhead { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.bizhead img { width: 52px; height: 52px; border-radius: 12px; }
.clock { background: #050d1f; border-radius: 10px; padding: 10px 12px; }
#cTime { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wx { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
#wxIcon { font-size: 38px; }
#wxTemp { font-size: 22px; }
.primary { width: 100%; padding: 10px; border: 0; border-radius: 10px; background: #10b981; color: #04210f; font-weight: 700; cursor: pointer; }
.note { font-size: 11px; opacity: .6; }

/* 3D rozetler (MapLibre marker'ın kendi transform'una dokunmamak için iç elemanda) */
.pin { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--c); background: #0a1f44; overflow: hidden;
  transform: perspective(220px) rotateX(20deg); transform-origin: 50% 100%; cursor: pointer; transition: transform .2s;
  box-shadow: 0 1px 0 var(--c), 0 4px 0 #00000066, 0 10px 14px #000a; }
.pin img { width: 100%; height: 100%; display: block; }
.pin.hq { width: 54px; height: 54px; border-radius: 15px; border-width: 3px; }
.pin:hover { transform: perspective(220px) rotateX(0) translateY(-6px) scale(1.12); }

/* Ekran koruyucu */
body.screensaver #topbar, body.screensaver #card, body.screensaver #homeChip { opacity: 0; pointer-events: none; }
