* { box-sizing: border-box; margin: 0; padding: 0; }

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

body.fullscreen-app { overflow: hidden; }

.map-shell { position: relative; height: 100vh; overflow: hidden; }
.map-shell.embedded { height: 74vh; min-height: 420px; }

#map { position: absolute; inset: 0; }

.panel {
  position: absolute;
  z-index: 10;
  background: rgba(16, 20, 27, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.brand {
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand .live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #9fb4cc;
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.brand .live.off { color: #5b6470; }
.brand .live.off .dot { background: #5b6470; animation: none; }

.brand .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.status {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  font-size: 13px;
  color: #9fb4cc;
  transition: opacity 0.4s;
}

.status.hidden { opacity: 0; pointer-events: none; }

.timeline {
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(680px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.playbtn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #e8ecf3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.playbtn:hover { background: rgba(255, 255, 255, 0.15); }

.scrubwrap { position: relative; flex: 1; display: flex; align-items: center; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e8ecf3;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e8ecf3;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.timebox {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 64px;
  line-height: 1.25;
}

#timeLabel { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.rel { font-size: 11px; color: #9fb4cc; font-variant-numeric: tabular-nums; }

.legend {
  right: 14px;
  bottom: 18px;
  padding: 9px 12px;
}

.ramp {
  width: 110px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8fd6f0, #3f8ee0, #f2d75c, #f0973c, #e3484d);
}

.ramplabels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9fb4cc;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .legend { display: none; }
  .brand { padding: 8px 11px; font-size: 13px; }
  .timeline { bottom: 12px; padding: 10px 12px; gap: 10px; }
}

/* ---- content pages (city pages, directory) ---- */

.page-head {
  max-width: 1060px;
  margin: 0 auto;
  padding: 22px 20px 16px;
}

.crumbs {
  font-size: 13px;
  color: #9fb4cc;
  margin-bottom: 10px;
}

.crumbs a { color: #9fb4cc; text-decoration: none; }
.crumbs a:hover { color: #e8ecf3; }

.page-head h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.answer {
  font-size: 16px;
  line-height: 1.5;
  color: #c7d2e0;
  max-width: 720px;
}

.answer strong { color: #e8ecf3; }

.page-content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.page-content h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 26px 0 10px;
}

.page-content p {
  font-size: 15px;
  line-height: 1.65;
  color: #aab6c6;
  max-width: 760px;
  margin-bottom: 12px;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  list-style: none;
  margin-top: 14px;
}

.city-grid a {
  display: block;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e8ecf3;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}

.city-grid a:hover { background: rgba(255, 255, 255, 0.09); }

.city-grid .sub { display: block; font-size: 12px; color: #9fb4cc; margin-top: 2px; }

.country-block { margin-bottom: 26px; }

.site-footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 20px 30px;
  font-size: 13px;
  color: #6b7787;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer a { color: #9fb4cc; }

.cities-link {
  left: 14px;
  bottom: 18px;
  padding: 9px 14px;
  font-size: 13px;
}

.cities-link a { color: #e8ecf3; text-decoration: none; font-weight: 600; }

@media (max-width: 720px) {
  .cities-link { bottom: 76px; }
}
