/* ==========================================================================
   CONTINENTE BLANCO — SISTEMA DE DISEÑO INTERACTIVO DE ALTA GAMA (UI & UX)
   Inspirado en la elegancia visual de mckp.live: Dark Luxury, Glassmorphism & UX Amigable
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Paleta cromática polar refinada */
  --bg-deep-space: #030710;
  --bg-surface: #070e1c;
  --bg-surface-elevated: #0d192f;
  --bg-glass-panel: rgba(10, 20, 38, 0.85);
  --bg-card: rgba(13, 25, 48, 0.75);

  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-focus: rgba(56, 189, 248, 0.45);
  --border-active: #38bdf8;

  --color-cyan: #38bdf8;
  --color-cyan-glow: #7dd3fc;
  --color-emerald: #10b981;
  --color-orange: #f97316;
  --color-crimson: #ef4444;

  --text-pure: #ffffff;
  --text-lead: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;

  --glass-blur: blur(18px);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.08);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep-space);
  color: var(--text-lead);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--color-cyan);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN SUPERIOR (LUJO & MINIMALISMO)
   -------------------------------------------------------------------------- */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 7, 16, 0.88);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-cyan);
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-badge-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--color-emerald);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  50% { opacity: 0.4; }
}

.btn-audio-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-audio-toggle:hover {
  border-color: var(--border-focus);
  color: #ffffff;
}

.btn-audio-toggle.active {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

/* --------------------------------------------------------------------------
   HERO / INTRODUCCIÓN AMIGABLE (MCKP.LIVE STYLE)
   -------------------------------------------------------------------------- */
.hero-intro-section {
  padding: 3rem 2rem 2rem 2rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}

.hero-main-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.hero-main-heading span.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 1.5rem auto;
}

/* --------------------------------------------------------------------------
   MÓDULO CENTRAL: ESTUDIO CARTOGRÁFICO INTERACTIVO (SPLIT LAYOUT)
   -------------------------------------------------------------------------- */
.antarctic-studio-wrapper {
  padding: 0 2rem 4rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.antarctic-studio-grid {
  display: grid;
  grid-template-columns: 360px 1fr 400px;
  gap: 1.5rem;
  height: 760px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* Panel Izquierdo: Lista de Bases con Buscador y Filtros */
.studio-sidebar {
  display: flex;
  flex-direction: column;
  background: rgba(5, 11, 22, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  overflow: hidden;
}

.sidebar-search-box {
  position: relative;
  margin-bottom: 1rem;
}

.sidebar-search-input {
  width: 100%;
  background: rgba(13, 25, 48, 0.7);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.sidebar-search-input:focus {
  border-color: var(--border-active);
  outline: none;
  background: rgba(13, 25, 48, 0.95);
}

.sidebar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-dropdown-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: var(--shadow-card);
}

.search-dropdown-results.open {
  display: block;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.search-result-row:hover {
  background: rgba(56, 189, 248, 0.12);
}

.sidebar-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.sidebar-tab-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-align: center;
  transition: all 0.2s ease;
}

.sidebar-tab-btn:hover {
  color: #ffffff;
}

.sidebar-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-cyan);
  border: 1px solid var(--border-focus);
}

.sidebar-scroll-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

/* Tarjetas individuales de base en la lista lateral */
.base-list-card {
  background: rgba(13, 25, 48, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.base-list-card:hover {
  background: rgba(13, 25, 48, 0.9);
  border-color: var(--border-focus);
  transform: translateX(4px);
}

.base-list-card.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--border-active);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.card-thumb-wrap {
  position: relative;
  width: 70px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.8);
  padding: 1px 4px;
  border-radius: 3px;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.card-header-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.temp-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.card-location {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.type-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
}

.pill-perm { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.pill-temp { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }

.fly-prompt {
  font-size: 0.72rem;
  color: var(--color-cyan);
  font-weight: 600;
}

/* Panel Central: Mapa Leaflet */
.studio-map-area {
  position: relative;
  background: #020509;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

#polarLeafletMap {
  width: 100%;
  height: 100%;
}

.map-top-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-switch-pill {
  background: rgba(8, 16, 32, 0.9);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
  padding: 4px;
  border-radius: var(--radius-pill);
  display: flex;
  gap: 4px;
}

.layer-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.layer-btn:hover {
  color: #ffffff;
}

.layer-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border: 1px solid var(--border-focus);
  color: #ffffff;
}

.mouse-coords-hud {
  background: rgba(8, 16, 32, 0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  width: fit-content;
}

.mouse-coords-hud strong {
  color: var(--color-cyan);
}

/* Panel Derecho: Ficha Técnica & Telemetría en Vivo de la Base Activa */
.studio-detail-hud {
  background: rgba(5, 11, 22, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.hud-image-banner {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.2rem;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.hud-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.8rem;
}

.api-status-badge.live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--color-emerald);
  color: #34d399;
}

.api-status-badge.syncing {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--color-cyan);
  color: #7dd3fc;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hud-base-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.4rem;
}

.hud-base-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #ffffff;
  line-height: 1.1;
}

.hud-type-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hud-type-badge.badge-perm {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hud-type-badge.badge-temp {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.hud-coords-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* Caja Meteorológica */
.hud-weather-box {
  background: rgba(13, 25, 48, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.weather-primary-split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.live-temp-display {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.windchill-indicator {
  text-align: right;
  font-size: 0.78rem;
  color: var(--color-orange);
}

.live-windchill-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}

.weather-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
}

.m-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

.m-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-lead);
  display: block;
  margin-top: 2px;
}

.hud-highlight-p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.btn-open-dossier {
  width: 100%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(2, 132, 199, 0.5));
  border: 1px solid var(--border-active);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
  transition: all 0.2s ease;
}

.btn-open-dossier:hover {
  background: linear-gradient(135deg, var(--color-cyan), #0284c7);
  color: #000000;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   ESTILOS DE MARCADORES LEAFLET TÁCTICOS
   -------------------------------------------------------------------------- */
.polar-div-icon {
  background: transparent;
  border: none;
}

.custom-polar-marker {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-cyan);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--color-cyan);
  z-index: 2;
  transition: transform 0.2s ease;
}

.marker-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-cyan);
  animation: radar-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.marker-tag {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(3, 7, 16, 0.9);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
  white-space: nowrap;
}

.marker-permanent .marker-dot {
  background: var(--color-emerald);
  box-shadow: 0 0 12px var(--color-emerald);
}
.marker-permanent .marker-pulse {
  border-color: var(--color-emerald);
}

.custom-polar-marker.selected .marker-dot {
  transform: scale(1.4);
  background: var(--color-orange);
  border-color: #ffffff;
  box-shadow: 0 0 20px var(--color-orange);
}

.custom-polar-marker.selected .marker-pulse {
  border-color: var(--color-orange);
  animation-duration: 1.2s;
}

@keyframes radar-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

.tactical-tooltip {
  background: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-focus) !important;
  border-radius: 6px !important;
  box-shadow: var(--shadow-card) !important;
  padding: 8px 12px !important;
}

/* --------------------------------------------------------------------------
   DOCK FLOTANTE INFERIOR
   -------------------------------------------------------------------------- */
.bottom-floating-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(7, 14, 28, 0.92);
  border: 1px solid var(--border-focus);
  backdrop-filter: var(--glass-blur);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 90vw;
  scrollbar-width: none;
}

.bottom-floating-dock::-webkit-scrollbar {
  display: none;
}

.dock-chip {
  background: rgba(13, 25, 48, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dock-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

.dock-chip.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--border-active);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.chip-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
}

.dock-chip.perm .chip-status-dot {
  background: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
}

.chip-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.chip-name {
  font-size: 0.78rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   MODAL DE EXPEDIENTE POLAR
   -------------------------------------------------------------------------- */
.polar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.88);
  backdrop-filter: blur(16px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.polar-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.polar-modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-card);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.polar-modal-overlay.active .polar-modal-window {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 14, 28, 0.8);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--color-orange);
}

.modal-hero {
  padding: 4rem 2.5rem 2rem 2.5rem;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.modal-badge.badge-perm { background: rgba(16, 185, 129, 0.3); color: #34d399; border: 1px solid #10b981; }
.modal-badge.badge-temp { background: rgba(56, 189, 248, 0.3); color: #7dd3fc; border: 1px solid #38bdf8; }

.modal-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #ffffff;
  line-height: 1.1;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.modal-inner-content {
  padding: 2rem 2.5rem;
}

.modal-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

.modal-stat {
  background: rgba(13, 25, 48, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  display: block;
}

.section-subheading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #ffffff;
  margin: 1.6rem 0 0.8rem 0;
}

.modal-text {
  font-size: 0.95rem;
  color: var(--text-lead);
  line-height: 1.7;
}

.modal-list {
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

.modal-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .antarctic-studio-grid {
    grid-template-columns: 320px 1fr 340px;
    height: 720px;
  }
}

@media (max-width: 1024px) {
  .antarctic-studio-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .studio-map-area {
    height: 480px;
  }

  .studio-sidebar {
    max-height: 380px;
  }

  .studio-detail-hud {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 0.8rem 1rem;
  }

  .brand-title {
    font-size: 1.4rem;
  }

  .hero-intro-section {
    padding: 2rem 1rem 1.5rem 1rem;
  }

  .hero-main-heading {
    font-size: 2.2rem;
  }

  .antarctic-studio-wrapper {
    padding: 0 1rem 4rem 1rem;
  }
}
