/* City Drawer — Phase 1 POC styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0b0e14;
  color: #eef1f6;
}

#map { position: fixed; inset: 0; }
#map gmp-map-3d { width: 100%; height: 100%; }

/* Top bar */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(rgba(11, 14, 20, 0.85), rgba(11, 14, 20, 0));
  z-index: 10;
  pointer-events: none;
}
#topbar > * { pointer-events: auto; }

#wordmark {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 15px;
  white-space: nowrap;
}
#wordmark #cityname {
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.75;
  margin-left: 8px;
}

#flybar { display: flex; gap: 8px; flex-wrap: wrap; }
.flybtn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 14, 20, 0.55);
  color: #eef1f6;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s, border-color 0.15s;
}
.flybtn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5); }

/* Viewpoint toggle (drone / isometric / airplane / street) */
#viewbar {
  display: flex;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  background: rgba(11, 14, 20, 0.55);
}
.viewbtn {
  border: none;
  background: transparent;
  color: #eef1f6;
  font-size: 12px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.viewbtn:hover { background: rgba(255, 255, 255, 0.12); }
.viewbtn.active { background: #eef1f6; color: #0b0e14; font-weight: 600; }

/* Popover card content */
.card-header { font-weight: 700; font-size: 15px; }
.card-body { font-size: 13px; line-height: 1.45; max-width: 260px; }
.card-body p { margin: 6px 0; }
.card-meta { display: flex; align-items: center; gap: 10px; }
.card-meta a { color: #6db3ff; text-decoration: none; }
.card-meta a:hover { text-decoration: underline; }
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(109, 179, 255, 0.18);
  color: #6db3ff;
}

/* Splash */
#splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0b0e14;
  z-index: 20;
  transition: opacity 0.6s;
}
#splash.hidden { opacity: 0; pointer-events: none; }
.splash-word { font-weight: 800; letter-spacing: 0.22em; font-size: 22px; }
.splash-sub { font-size: 13px; opacity: 0.6; }

/* Fallback screen */
#fallback {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: #0b0e14;
  z-index: 15;
  padding: 40px 20px;
}
.fb-inner { max-width: 560px; margin: 0 auto; }
.fb-inner h1 { font-size: 20px; letter-spacing: 0.14em; margin-bottom: 6px; }
.fb-inner h1 span { font-weight: 400; opacity: 0.75; letter-spacing: 0.02em; }
.fb-msg { font-size: 14px; opacity: 0.7; margin-bottom: 24px; }
.fb-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.fb-card h2 { font-size: 16px; margin-bottom: 6px; }
.fb-card p { font-size: 13px; line-height: 1.45; margin: 4px 0; }

@media (max-width: 640px) {
  #topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
}
