/* Interactive Global Atlas — Ultra-Fast Static CSS (Zero External Dependencies) */
:root {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-card-hover: #26354d;
  --bg-ocean: #070d19;
  --border-color: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --purple: #a855f7;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #7dd3fc;
}

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0.5rem 0;
  gap: 0.75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.utc-live-pill {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Hero & Mode Switcher */
.hero-section {
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 65%);
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 740px;
}

/* Mode Tabs */
.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.mode-tab:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.mode-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), 0 8px 20px -4px rgba(56, 189, 248, 0.25);
}

.mode-tab-icon {
  font-size: 1.55rem;
  flex-shrink: 0;
}

.mode-tab-title {
  font-weight: 700;
  font-size: 0.98rem;
  display: block;
}

.mode-tab-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* Atlas Workspace (Controls + Interactive SVG Map + Side Inspector) */
.atlas-workspace {
  padding: 1.25rem 0 2.5rem;
}

.control-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.control-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.select-input, .search-input {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease;
}

.select-input:focus, .search-input:focus {
  border-color: var(--accent-blue);
}

.range-slider {
  accent-color: var(--accent-blue);
  cursor: pointer;
  width: 150px;
}

/* Map + Inspector Grid */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 1.25rem;
  align-items: start;
}

.map-Stage-card {
  background: var(--bg-ocean);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-canvas-wrap {
  width: 100%;
  height: 540px;
  position: relative;
  cursor: grab;
  user-select: none;
}

.map-canvas-wrap:active {
  cursor: grabbing;
}

#atlas-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.country-shape {
  stroke: #0f172a;
  stroke-width: 0.6px;
  transition: fill 0.2s ease, opacity 0.15s ease, stroke-width 0.15s ease;
  cursor: pointer;
}

.country-shape:hover {
  stroke: #ffffff;
  stroke-width: 1.4px;
  filter: brightness(1.18);
}

.country-shape.selected {
  stroke: #38bdf8;
  stroke-width: 2px;
}

.bg-landmass {
  fill: #1e293b;
  stroke: #0f172a;
  stroke-width: 0.5px;
  opacity: 0.65;
}

.tz-band {
  transition: opacity 0.2s ease;
}

.city-pin {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.city-pin:hover circle {
  r: 6.5px;
}

/* Map Floating Controls & Legend */
.map-zoom-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 15;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.zoom-btn:hover {
  background: var(--accent-blue);
  color: #0b1120;
}

.map-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  z-index: 15;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-swatch {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  display: inline-block;
}

.map-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--accent-blue);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.84rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  max-width: 270px;
  display: none;
}

/* Side Inspector Panel */
.inspector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 84px;
}

.inspector-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
}

.inspector-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

.inspector-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.stat-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
}

.stat-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: block;
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Meeting Planner 24-Hour Overlap Matrix */
.meeting-planner-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.timeline-city-label {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.timeline-city-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hours-track {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
}

.hour-cell {
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}

.hour-work {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.hour-evening {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hour-night {
  background: rgba(15, 23, 42, 0.8);
  color: #64748b;
}

.hour-overlap {
  box-shadow: inset 0 0 0 2px #38bdf8;
}

/* Cards & Tables for Programmatic SEO Sections */
.section-block {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-green { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-red { background: rgba(244, 63, 94, 0.18); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.badge-blue { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.92;
  color: #ffffff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
}

.data-table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}

/* AdSense Placement Containers (CLS-Safe Fixed Reserve) */
.ad-slot {
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  margin: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Breadcrumbs & Editorial Content */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.prose-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.prose-box h2 {
  font-size: 1.35rem;
  margin: 1.25rem 0 0.6rem;
  color: var(--text-primary);
}

.prose-box h2:first-child {
  margin-top: 0;
}

.prose-box p {
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.prose-box ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-secondary);
}

.prose-box li {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #070b14;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

@media (max-width: 1024px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
  .inspector-card {
    position: static;
  }
  .mode-tabs {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .nav-bar {
    flex-wrap: wrap;
    padding: 0.65rem 0;
    gap: 0.6rem;
  }
  .brand {
    order: 1;
  }
  .utc-live-pill {
    order: 2;
  }
  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(51, 65, 85, 0.45);
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 1.05rem;
    gap: 0.5rem;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .utc-live-pill {
    font-size: 0.75rem;
    padding: 0.28rem 0.6rem;
  }
  .timeline-row {
    grid-template-columns: 1fr;
  }
  .map-canvas-wrap {
    height: 390px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
