/* ==========================================================================
   Orbit4Humanity — Sea Level Rise Simulator Stylesheet
   Developer: Daniel Kawalo
   ========================================================================== */

/* Main Layout */
.simulator-page {
  padding-top: 5.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section-sea-level {
  position: relative;
  padding: 5rem 0 3rem 0;
  border-top: 1px solid var(--border-glass);
  background: radial-gradient(circle at 50% 15%, rgba(0, 242, 254, 0.05) 0%, transparent 60%);
  scroll-margin-top: 4.5rem;
}

.simulator-header-strip {
  max-width: 1440px;
  margin: 0 auto 1rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.sim-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.sim-breadcrumb a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.sim-breadcrumb a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.sim-headline-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-title-wrap h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-title-wrap h1 i {
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan-glow);
}

.sim-title-wrap p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  max-width: 780px;
}

/* Control Hub Toolbar */
.sim-controls-toolbar {
  max-width: 1440px;
  margin: 0 auto 1.25rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.sim-toolbar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toolbar-primary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mode Switcher: 2D vs 3D */
.mode-switcher-group {
  display: inline-flex;
  background: rgba(3, 8, 22, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.btn-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-mode-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-mode-toggle.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(56, 189, 248, 0.25));
  border: 1px solid var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.btn-mode-toggle.active i {
  color: var(--neon-cyan);
}

/* Sea Level Height Input & Steppers */
.height-control-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(3, 8, 22, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
}

.btn-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-step:hover {
  background: var(--neon-cyan);
  color: #030712;
  border-color: var(--neon-cyan);
}

.height-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0 0.5rem;
}

.height-label-micro {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.1em;
}

.height-number-input {
  width: 90px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--neon-cyan);
  text-align: right;
  outline: none;
}

.height-number-input:focus {
  border-bottom: 1px solid var(--neon-cyan);
}

.height-unit-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

/* Action Controls (Play, Share, Reset) */
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-ctrl:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
  color: #ffffff;
}

.btn-ctrl.btn-accent {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-ctrl.btn-accent:hover {
  background: var(--neon-cyan);
  color: #030712;
}

/* Slider Track Row */
.slider-track-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slider-labels-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}

.slider-container {
  position: relative;
  width: 100%;
}

.range-slider-sim {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1e3a8a 0%, #0284c7 45%, #00f2fe 50%, #f59e0b 80%, #ef4444 100%);
  outline: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.range-slider-sim::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan);
  cursor: grab;
  transition: transform 0.15s ease-in-out;
}

.range-slider-sim::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-slider-sim::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan);
  cursor: grab;
}

/* Presets Strip */
.presets-scenarios-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.presets-scenarios-strip::-webkit-scrollbar {
  height: 4px;
}

.presets-scenarios-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.2);
  border-radius: 2px;
}

.preset-pill {
  white-space: nowrap;
  background: rgba(3, 8, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.preset-pill:hover {
  border-color: var(--neon-cyan);
  color: #ffffff;
  background: rgba(0, 242, 254, 0.1);
}

.preset-pill.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   Main Map Viewport & Simulation Stage
   ========================================================================== */
.simulator-stage-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  position: relative;
}

.stage-viewport-box {
  position: relative;
  width: 100%;
  height: 640px;
  background: #020611;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Real Satellite MapLibre Container */
#maplibreMap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

.maplibregl-ctrl-attrib {
  background: rgba(3, 8, 22, 0.8) !important;
  color: #64748b !important;
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.maplibregl-ctrl-attrib a {
  color: var(--neon-cyan) !important;
}

/* 2D Canvas Container */
.viewport-2d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.viewport-2d.is-hidden {
  display: none !important;
}

#map2DCanvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#map2DCanvas.is-dragging {
  cursor: grabbing;
}

/* 3D WebGL Canvas Container */
.viewport-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0;
}

/* 3D Globe explicitly hidden for now */
#globe3DCanvas,
#viewport3DContainer,
.viewport-3d {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

#globe3DCanvas:active {
  cursor: grabbing;
}

/* Floating Viewport Tool HUDs */
.hud-probe-reticle {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(3, 8, 22, 0.88);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  backdrop-filter: blur(15px);
  pointer-events: none;
  z-index: 20;
  max-width: 320px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.probe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  color: #64748b;
  letter-spacing: 0.08em;
}

.probe-header i {
  color: var(--neon-cyan);
}

.probe-coords {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.probe-elevation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.probe-elevation-val {
  font-weight: 700;
  color: var(--neon-cyan);
}

.probe-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.2rem;
}

.probe-status-pill.status-dry {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--neon-emerald);
  color: var(--neon-emerald);
}

.probe-status-pill.status-flooded {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid #f43f5e;
  color: #f43f5e;
  animation: pulseWarning 1.5s infinite;
}

.probe-status-pill.status-ocean {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.probe-status-pill.status-shelf {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #f59e0b;
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Floating Zoom & Compass HUD (Right) */
.hud-zoom-controls {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 20;
}

.btn-hud-action {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(3, 8, 22, 0.85);
  border: 1px solid var(--border-glass);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.btn-hud-action:hover {
  background: var(--neon-cyan);
  color: #030712;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

/* City Spotlight Quick Jump Drawer (Bottom of Viewport) */
.hud-city-strip {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(3, 8, 22, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(20px);
  z-index: 20;
  overflow-x: auto;
  scrollbar-width: none;
}

.hud-city-strip::-webkit-scrollbar {
  display: none;
}

.city-strip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-city-chip {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.btn-city-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
  color: #ffffff;
}

.btn-city-chip.at-risk {
  border-color: rgba(244, 63, 94, 0.4);
}

.btn-city-chip.at-risk .flag-dot {
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
}

.flag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-emerald);
}

/* ==========================================================================
   Impact Metrics & Telemetry Matrix
   ========================================================================== */
.sim-impact-section {
  max-width: 1440px;
  margin: 1.5rem auto 2.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.impact-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(15px);
  transition: var(--transition-smooth);
}

.impact-metric-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.metric-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.metric-icon-box.cyan {
  background: rgba(0, 242, 254, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.metric-icon-box.rose {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.metric-icon-box.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.metric-icon-box.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-content {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.metric-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.metric-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Educational Science & Guide Section (Matching runcell standard)
   ========================================================================== */
.sim-science-section {
  max-width: 1440px;
  margin: 1rem auto 4rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.science-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

.science-header {
  margin-bottom: 2rem;
}

.science-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.science-header h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.science-header p {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 850px;
}

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

.science-col {
  background: rgba(3, 8, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
}

.science-col h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.science-col h3 i {
  color: var(--neon-cyan);
}

.science-col p, .science-col li {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

.science-col ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* FAQ Accordion */
.science-faq-group {
  margin-top: 2rem;
}

.science-faq-group h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.faq-item {
  background: rgba(3, 8, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item[open] {
  border-color: var(--border-glass);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--neon-cyan);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.75rem;
}

/* Nav Link Highlighter for Menu */
.nav-link-simulator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.nav-badge-new {
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  background: linear-gradient(135deg, var(--neon-cyan), #0284c7);
  color: #030712;
  border-radius: 4px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
  animation: pulseGlowBadge 2s infinite ease-in-out;
}

@keyframes pulseGlowBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* Toast Notification for Share / Snapshot */
.toast-alert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(3, 8, 22, 0.95);
  border: 1px solid var(--neon-cyan);
  border-radius: 10px;
  padding: 0.85rem 1.4rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.25);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stage-viewport-box {
    height: 520px;
  }
}

@media (max-width: 768px) {
  .simulator-page {
    padding-top: 4.8rem;
  }
  .sim-headline-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar-primary-row {
    flex-direction: column;
    align-items: stretch;
  }
  .height-control-cluster {
    justify-content: space-between;
  }
  .toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .stage-viewport-box {
    height: 420px;
  }
  .hud-probe-reticle {
    max-width: 260px;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
  }
  .science-columns-grid {
    grid-template-columns: 1fr;
  }
  .science-container-card {
    padding: 1.5rem;
  }
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Full-Width Simulator Studio Layout & Immersive Cockpit
   ========================================================================== */
body.full-width-page {
  overflow-x: hidden;
}

body.full-width-page .nav-container {
  max-width: 100%;
  padding: 0 2rem;
}

body.full-width-page .simulator-header-strip {
  max-width: 100%;
  padding: 0 2rem;
}

body.full-width-page .sim-controls-toolbar {
  max-width: 100%;
  padding: 0 2rem;
}

body.full-width-page .sim-toolbar-card {
  border-radius: 14px;
}

body.full-width-page .simulator-stage-wrap {
  max-width: 100%;
  padding: 0 2rem;
}

body.full-width-page .stage-viewport-box {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 720px;
  border-radius: 16px;
}

body.full-width-page .sim-impact-section {
  max-width: 100%;
  padding: 0 2rem;
}

body.full-width-page .sim-science-section {
  max-width: 100%;
  padding: 0 2rem;
}

/* ==========================================================================
   Fullscreen Immersive Cockpit Mode: Stage + Floating sim-toolbar-card
   ========================================================================== */
body.simulator-fullscreen {
  overflow: hidden !important;
}

body.simulator-fullscreen .site-header,
body.simulator-fullscreen .simulator-header-strip,
body.simulator-fullscreen .sim-impact-section,
body.simulator-fullscreen .sim-science-section,
body.simulator-fullscreen .site-footer {
  display: none !important;
}

body.simulator-fullscreen .simulator-stage-wrap {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
}

body.simulator-fullscreen .stage-viewport-box,
.stage-viewport-box.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 99990 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

body.simulator-fullscreen .stage-viewport-box #maplibreMap,
body.simulator-fullscreen .stage-viewport-box .viewport-2d,
body.simulator-fullscreen .stage-viewport-box .viewport-3d,
.stage-viewport-box.is-fullscreen #maplibreMap,
.stage-viewport-box.is-fullscreen .viewport-2d,
.stage-viewport-box.is-fullscreen .viewport-3d {
  width: 100% !important;
  height: 100% !important;
}

/* Floating sim-controls-toolbar & sim-toolbar-card on Full Screen */
body.simulator-fullscreen .sim-controls-toolbar {
  position: fixed !important;
  top: 1rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100vw - 2.5rem) !important;
  max-width: 1380px !important;
  z-index: 100000 !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.simulator-fullscreen .sim-toolbar-card {
  pointer-events: auto !important;
  background: rgba(3, 8, 22, 0.94) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 254, 0.2) !important;
  padding: 0.85rem 1.25rem !important;
  border-radius: 14px !important;
}

/* Compact Collapsed Toolbar State */
.sim-toolbar-card.is-collapsed .slider-track-row,
.sim-toolbar-card.is-collapsed .presets-scenarios-strip,
.sim-toolbar-card.is-collapsed .indonesia-nav-strip {
  display: none !important;
}

.sim-toolbar-card.is-collapsed {
  padding: 0.65rem 1rem !important;
}

/* HUD positioning in Fullscreen */
body.simulator-fullscreen .hud-probe-reticle,
.stage-viewport-box.is-fullscreen .hud-probe-reticle {
  top: auto !important;
  bottom: 5rem !important;
  left: 1.5rem !important;
  z-index: 99998 !important;
}

body.simulator-fullscreen .hud-zoom-controls,
.stage-viewport-box.is-fullscreen .hud-zoom-controls {
  top: auto !important;
  bottom: 5rem !important;
  right: 1.5rem !important;
  z-index: 99998 !important;
}

body.simulator-fullscreen .hud-city-strip,
.stage-viewport-box.is-fullscreen .hud-city-strip {
  bottom: 1rem !important;
  z-index: 99998 !important;
}

@media (max-width: 992px) {
  body.full-width-page .nav-container,
  body.full-width-page .simulator-header-strip,
  body.full-width-page .sim-controls-toolbar,
  body.full-width-page .simulator-stage-wrap,
  body.full-width-page .sim-impact-section,
  body.full-width-page .sim-science-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.full-width-page .stage-viewport-box {
    height: 560px;
    min-height: 500px;
  }
}

/* ==========================================================================
   Indonesian Provinces & Cities Altimetry Navigation Strip
   ========================================================================== */
.indonesia-nav-strip {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.indonesia-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.indonesia-flag-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #f43f5e;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.province-select-wrap {
  display: inline-flex;
  align-items: center;
}

.province-dropdown {
  background: rgba(3, 8, 22, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 8px;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.province-dropdown:hover,
.province-dropdown:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.province-dropdown option {
  background: #030816;
  color: #e2e8f0;
}

.db-actions-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-db-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 7px;
  padding: 0.35rem 0.7rem;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-db-action:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--neon-cyan);
  color: #ffffff;
}

.indonesia-city-chips {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
}

.indonesia-city-chips::-webkit-scrollbar {
  height: 4px;
}

.indonesia-city-chips::-webkit-scrollbar-thumb {
  background: rgba(244, 63, 94, 0.3);
  border-radius: 2px;
}

.city-pill-indo {
  white-space: nowrap;
  background: rgba(3, 8, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.city-pill-indo:hover {
  border-color: var(--neon-cyan);
  color: #ffffff;
  background: rgba(0, 242, 254, 0.12);
}

.city-pill-indo.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.city-pill-indo.jakarta-primary {
  border-color: rgba(244, 63, 94, 0.4);
}

.city-pill-indo.jakarta-primary.active {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

/* Local DB Saved Scenarios Modal */
.db-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 17, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.db-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.db-modal-card {
  background: #030816;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.db-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.db-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.15s;
}

.btn-close-modal:hover {
  color: #ffffff;
}

.db-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.db-scenario-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.db-scenario-item:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.06);
}

.db-scenario-meta h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.db-scenario-meta p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-load-scenario {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-load-scenario:hover {
  background: var(--neon-cyan);
  color: #030712;
}

.save-scenario-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.save-form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

.save-form-input:focus {
  border-color: var(--neon-cyan);
}

/* ==========================================================================
   Space Simulation Immersive Map Layout
   ========================================================================== */
body.simulator-layout {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #030712 !important;
}

body.simulator-layout .site-header {
  display: none !important;
}

body.simulator-layout .mobile-drawer {
  display: none !important;
}

/* Simulator Main Canvas Viewport (100% Fullscreen Map) */
.sim-main-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  flex: 1;
}

.sim-stage-box {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1 !important;
}

.sim-stage-box #maplibreMap {
  width: 100% !important;
  height: 100% !important;
}

/* Floating Show-Menu Button (When Left Side Menu is Hidden) */
.side-pannel-open-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  background: rgba(8, 14, 28, 0.94);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 50px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 242, 254, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(calc(-100% - 30px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.side-pannel-open-btn.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.side-pannel-open-btn:hover {
  background: rgba(12, 20, 40, 0.98);
  border-color: var(--neon-cyan);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 25px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

.side-pannel-open-btn .show-chevron {
  color: var(--neon-cyan);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.side-pannel-open-btn:hover .show-chevron {
  transform: translateX(3px);
}

.side-pannel-open-btn .compact {
  width: 22px;
  height: 22px;
}

.side-pannel-open-btn .compact .core-dot {
  width: 6px;
  height: 6px;
}

.side-pannel-open-btn .compact .orbit-ring-svg {
  width: 18px;
  height: 18px;
}

.brand-name-compact {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.show-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.1rem;
}

/* Simulator Unified Left Side Panel ("side-pannel") */
.side-pannel,
.side-pannel {
  position: absolute;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: 410px;
  max-width: calc(100vw - 28px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(8, 14, 28, 0.94);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: visible;
}

.side-pannel.is-collapsed,
.side-pannel.is-collapsed {
  transform: translateX(calc(-100% - 30px));
  opacity: 0;
  pointer-events: none;
}

/* Compact Wrap & Expandable Content Structure */
.side-pannel-compact-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.side-pannel-mobile-quickbar {
  display: none;
}

.side-pannel-expand-btn {
  display: none;
}

.side-pannel-expandable-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Side-Pannel Brand Header */
.side-pannel-brand-header {
  padding: 12px 14px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.side-pannel-brand-header .brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.side-pannel-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.side-pannel-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Site Navigation Row inside Side-Pannel */
.side-pannel-nav-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 14px 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-pannel-nav-row::-webkit-scrollbar {
  display: none;
}

.side-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.side-nav-pill:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
  color: #ffffff;
}

.side-nav-pill.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.side-nav-uplink-btn {
  padding: 0.38rem 0.75rem !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
  white-space: nowrap;
}

/* Edge Collapse Handle Button (Side Panel Chevron Tab) */
.side-pannel-collapse-edge,
.side-pannel-collapse-edge {
  position: absolute;
  top: 14px;
  right: -26px;
  width: 26px;
  height: 48px;
  background: rgba(8, 14, 28, 0.94);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-left: none;
  border-radius: 0 10px 10px 0;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 6px 0 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 242, 254, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 125;
}

.side-pannel-collapse-edge:hover,
.side-pannel-collapse-edge:hover {
  background: rgba(14, 22, 44, 0.98);
  color: #ffffff;
  border-color: var(--neon-cyan);
  box-shadow: 8px 0 20px rgba(0, 242, 254, 0.25);
  width: 29px;
}

.side-pannel-collapse-edge i,
.side-pannel-collapse-edge i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.side-pannel-collapse-edge:hover i,
.side-pannel-collapse-edge:hover i {
  transform: translateX(-2px);
}

.side-pannel-collapse-edge i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.side-pannel-collapse-edge:hover i {
  transform: translateX(-2px);
}

/* Panel Header */
.side-pannel-header {
  padding: 10px 12px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Menu Toggle Hamburger in Search Bar */
.side-pannel-menu-toggle {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.side-pannel-menu-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Panel Body & Scrollable Area */
.side-pannel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.25) transparent;
}

.side-pannel-body::-webkit-scrollbar {
  width: 5px;
}

.side-pannel-body::-webkit-scrollbar-track {
  background: transparent;
}

.side-pannel-body::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.25);
  border-radius: 10px;
}

.side-pannel-body::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Panel Card Blocks */
.side-pannel-card {
  background: rgba(2, 6, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.side-pannel-card:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.side-pannel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.side-pannel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.side-pannel-card .sim-steppers-wrap {
  width: 100%;
  justify-content: center;
}

.side-pannel-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.side-pannel-actions .sim-btn-action {
  justify-content: center;
  padding: 0.5rem 0.4rem;
  font-size: 0.75rem;
  width: 100%;
}

.sim-search-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(0, 242, 254, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sim-search-bar i.search-icon {
  color: var(--neon-cyan);
  font-size: 0.95rem;
}

.sim-location-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sim-city-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 2rem 0.4rem 0.35rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 0.45rem) center;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.sim-city-select:focus {
  outline: none;
}

.sim-city-select option {
  background: #090e1c;
  color: #f8fafc;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

.sim-city-select option:checked {
  background: #0d233a;
  color: #00f2fe;
  font-weight: 700;
}

.sim-city-select optgroup {
  background: #030712;
  color: #00f2fe;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 6px 4px;
}

.sim-btn-focus {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--neon-cyan);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-focus:hover {
  background: var(--neon-cyan);
  color: #030712;
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

/* Google Maps Live Search Results Dropdown */
.sim-search-results {
  pointer-events: auto;
  background: rgba(10, 16, 32, 0.96);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
}

.sim-search-section-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem 0.2rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.15rem;
}

.sim-search-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}

.sim-search-item:hover,
.sim-search-item.is-selected {
  background: rgba(0, 242, 254, 0.15);
  color: #ffffff;
}

.sim-search-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sim-search-item-icon.city-primary {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.sim-search-item-icon.city-coastal {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--neon-cyan);
}

.sim-search-item-icon.province {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--neon-amber);
}

.sim-search-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sim-search-item-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.sim-search-item-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-search-item-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--neon-cyan);
  white-space: nowrap;
}

.sim-search-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
  font-family: var(--font-heading);
}

body.simulator-layout .hud-scanline,
body.simulator-layout .space-ambient-bg {
  display: none !important;
}

/* Category Preset Pills (Horizontally Scrollable) */
.sim-presets-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sim-presets-bar::-webkit-scrollbar {
  display: none;
}

.sim-presets-bar .preset-pill {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: rgba(8, 14, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-presets-bar .preset-pill:hover,
.sim-presets-bar .preset-pill.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

/* Bottom-Center: Floating Sea Level Rise Controller Dock */
.sim-controller-dock {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(720px, calc(100% - 2.5rem));
  background: rgba(10, 16, 32, 0.94);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 16px;
  padding: 0.75rem 1.15rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sim-dock-primary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sim-steppers-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(2, 6, 18, 0.6);
  padding: 3px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-steppers-wrap .btn-step {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.sim-height-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.4rem;
}

.sim-height-badge input.height-number-input {
  width: 65px;
  padding: 0.25rem 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  color: #ffffff;
}

.sim-height-badge .height-unit-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.sim-dock-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.sim-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-action:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
  color: #ffffff;
}

.sim-btn-play {
  background: linear-gradient(135deg, var(--neon-cyan), #0284c7);
  color: #030712;
  border: none;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.sim-btn-play:hover {
  background: #38bdf8;
  color: #030712;
  box-shadow: 0 0 25px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

.sim-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sim-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #64748b;
}

.sim-slider-row input[type="range"] {
  width: 100%;
}

/* Bottom-Right: Map Tools Stack (Layers, Zoom, Recenter, Fullscreen) */
/* Bottom-Right: Floating Map Navigation Tools Stack */
.map-tools-stack {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

/* Layer / View Mode Switcher (Hidden for now) */
.map-layer-toggle {
  display: none !important;
  align-items: center;
  background: rgba(10, 16, 32, 0.94);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 15px rgba(0, 242, 254, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  gap: 4px;
}

.map-layer-toggle button {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-layer-toggle button i {
  font-size: 0.85rem;
}

.map-layer-toggle button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.map-layer-toggle button.active {
  background: linear-gradient(135deg, var(--neon-cyan), #0284c7);
  color: #030712;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.4);
}

/* Map Dedicated Compass Button */
.map-compass-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 16, 32, 0.94);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.map-compass-btn:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: var(--neon-cyan);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 242, 254, 0.3);
  transform: translateY(-1px);
}

.map-compass-btn:active {
  transform: scale(0.95);
}

.map-compass-btn #compassNeedle {
  font-size: 1.15rem;
  color: #f43f5e;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.compass-n-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-top: 1px;
}

/* Map Navigation Tools Cluster (Zoom & Recenter) */
.map-tool-cluster {
  display: flex;
  flex-direction: column;
  background: rgba(10, 16, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 242, 254, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.map-tool-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-tool-btn:last-child {
  border-bottom: none;
}

.map-tool-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
}

.map-tool-btn:active {
  background: rgba(0, 242, 254, 0.25);
  transform: scale(0.92);
}

/* Bottom-Left: Place & Impact Information Card */
.place-info-card {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 100;
  width: 320px;
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.place-info-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.place-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.place-info-title-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.place-info-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-info-coords {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
}

.place-info-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: rgba(2, 6, 18, 0.5);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.place-metric-item {
  display: flex;
  flex-direction: column;
}

.place-metric-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #64748b;
  text-transform: uppercase;
}

.place-metric-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.sim-btn-guide {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-guide:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: #ffffff;
}

/* Slide-Up Google Maps Science Guide & FAQ Drawer Sheet */
.sim-guide-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100vw;
  height: 100%;
  background: rgba(8, 14, 28, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.8);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-guide-drawer.is-open {
  transform: translateX(0);
}

.sim-drawer-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.sim-btn-close-drawer {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn-close-drawer:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.sim-drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* Mobile Bottom Dock (Hidden on Desktop) */
.sim-mobile-bottom-dock {
  display: none;
}

.mobile-controller-ref-hint {
  display: none;
}

/* Mobile & Tablet Responsiveness for Simulator Mode (side-pannel) */
@media (max-width: 992px) {
  .side-pannel {
    width: 360px;
  }
  .map-tools-stack {
    bottom: 1.25rem;
    right: 0.85rem;
  }
}

@media (max-width: 768px) {
  .side-pannel {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: auto;
    width: calc(100vw - 16px);
    max-width: none;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .side-pannel.is-collapsed {
    transform: translateX(calc(-100% - 20px));
  }
  
  .side-pannel-collapse-edge {
    display: none;
  }

  /* Compact Mode on Mobile: small footprint, only search & summary */
  .side-pannel-compact-wrap {
    padding: 2px 2px 4px 2px;
  }

  .side-pannel-brand-header {
    padding: 8px 12px 6px;
  }

  .side-pannel-brand-header .brand-logo .brand-name {
    font-size: 0.92rem;
  }

  .side-pannel-brand-header .brand-logo .brand-sub {
    font-size: 0.55rem;
  }

  /* Small & Compact City & Province Dropdown on Mobile */
  .side-pannel .sim-search-bar {
    margin: 3px 6px;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    gap: 0.35rem;
    min-height: 28px;
  }

  .side-pannel .sim-location-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 0.68rem;
  }

  .side-pannel .sim-city-select {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.15rem 1.4rem 0.15rem 0.25rem;
    height: 26px;
    line-height: 26px;
    background-size: 9px 9px;
    background-position: calc(100% - 0.25rem) center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .side-pannel .sim-city-select option {
    font-size: 0.74rem;
    padding: 6px 10px;
  }

  .side-pannel .sim-city-select optgroup {
    font-size: 0.68rem;
    padding: 4px 6px 2px;
  }

  .side-pannel .sim-btn-focus {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 0.68rem;
  }

  .side-pannel .province-dropdown {
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
    height: 26px;
  }

  /* Mobile Quick Summary Bar */
  .side-pannel-mobile-quickbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 12px 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
  }

  .mobile-loc-tag {
    color: #e2e8f0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
  }

  .mobile-height-tag {
    color: var(--neon-cyan);
    font-weight: 700;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
  }

  /* Mobile Expand Menu Button */
  .side-pannel-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3px 8px 8px 8px;
    padding: 0.45rem 1rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .side-pannel-expand-btn:hover {
    background: rgba(0, 242, 254, 0.18);
    border-color: var(--neon-cyan);
  }

  .side-pannel-expand-btn .expand-btn-icon {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    transition: transform 0.25s ease;
  }

  /* Expandable Content: Collapsed by Default on Mobile */
  .side-pannel-expandable-content {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* When User Clicks Expand Menu */
  .side-pannel.is-mobile-expanded {
    bottom: 8px;
    max-height: calc(100vh - 16px);
  }

  .side-pannel.is-mobile-expanded .side-pannel-expandable-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 190px);
  }

  .side-pannel.is-mobile-expanded .side-pannel-expand-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    margin-bottom: 6px;
  }

  .side-pannel-open-btn {
    top: 8px;
    left: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    gap: 0.45rem;
  }

  .side-pannel-nav-row {
    padding: 6px 12px 8px;
    gap: 0.35rem;
  }

  .side-nav-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.74rem;
  }

  .side-pannel-header {
    padding: 6px 10px;
  }

  .side-pannel-body {
    padding: 8px 10px 14px;
    gap: 0.75rem;
  }

  .side-pannel-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .sim-btn-action span {
    display: inline-block;
  }

  /* Mobile Sea Level Adjustment Bottom Dock (Sitting beside .map-tool-cluster) */
  .sim-mobile-bottom-dock {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    left: 8px;
    right: 56px; /* Sits directly beside .map-tools-stack at right: 8px */
    z-index: 105;
    pointer-events: auto;
  }

  .mobile-controller-ref-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px dashed rgba(0, 242, 254, 0.35);
    border-radius: 10px;
    font-size: 0.75rem;
    color: #cbd5e1;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
  }

  .sim-mobile-bottom-dock .side-pannel-controller {
    background: rgba(10, 16, 32, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 14px;
    padding: 0.45rem 0.65rem 0.55rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
  }

  .sim-mobile-bottom-dock .side-pannel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.1rem;
  }

  .sim-mobile-bottom-dock .side-pannel-title {
    font-size: 0.76rem;
    font-weight: 700;
  }

  .sim-mobile-bottom-dock .sim-steppers-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
  }

  .sim-mobile-bottom-dock .btn-step {
    padding: 0.3rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    min-width: 32px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    cursor: pointer;
    touch-action: manipulation;
  }

  .sim-mobile-bottom-dock .btn-step:hover,
  .sim-mobile-bottom-dock .btn-step:active {
    background: rgba(0, 242, 254, 0.25);
    border-color: var(--neon-cyan);
    color: #ffffff;
  }

  .sim-mobile-bottom-dock .sim-height-badge {
    height: 30px;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: 8px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.35);
  }

  .sim-mobile-bottom-dock .sim-height-badge input.height-number-input {
    width: 48px;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    outline: none;
  }

  .sim-mobile-bottom-dock .sim-height-badge .height-unit-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
  }

  .sim-mobile-bottom-dock .sim-slider-row {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .sim-mobile-bottom-dock .sim-slider-labels {
    font-size: 0.58rem;
    display: flex;
    justify-content: space-between;
    color: #64748b;
  }

  .sim-mobile-bottom-dock .sim-slider-row input[type="range"] {
    height: 18px;
    margin: 0;
  }

  .sim-mobile-bottom-dock .side-pannel-actions {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 0.15rem;
  }

  .sim-mobile-bottom-dock .side-pannel-actions::-webkit-scrollbar {
    display: none;
  }

  .sim-mobile-bottom-dock .sim-btn-action {
    flex: 1 0 auto;
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    white-space: nowrap;
    border-radius: 6px;
    height: 28px;
  }

  /* Coordinate Bottom-Right Stack with the Bottom Dock */
  .map-tools-stack {
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    right: 8px;
    gap: 0.45rem;
  }

  .map-compass-btn {
    width: 38px;
    height: 38px;
  }

  .map-tool-cluster {
    border-radius: 10px;
  }

  .map-tool-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
}
