/* Map View & Left Drawer Panel */
#map { width: 100%; height: 100%; }
.panel {
  position: absolute;
  z-index: 25;
  top: 20px;
  left: 20px;
  width: min(380px, calc(100vw - 40px));
  padding: 24px 24px 36px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--border-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.eyebrow { margin: 0 0 4px; color: var(--primary); font: 700 11px var(--font-sans); text-transform: uppercase; letter-spacing: 0.8px; }
h1 { margin: 0 0 16px; font-size: 22px; font-weight: 700; color: var(--slate-900); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.status { min-height: 20px; margin-top: 10px; color: var(--slate-500); font-size: 13px; }

/* Mobile Drawer Toggle */
.drawer-toggle {
  display: none;
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  background: var(--slate-900);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* Map HUD - Zoom Counter & Rosa Náutica Overlay */
.map-hud {
  position: absolute;
  bottom: 24px;
  left: calc(min(380px, calc(100vw - 40px)) + 36px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.map-zoom-badge {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  letter-spacing: 0.5px;
  pointer-events: auto;
  user-select: none;
}
.rosa-nautica-widget {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}
.rosa-nautica-widget:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.95);
}
.rosa-nautica-needle {
  width: 26px;
  height: 26px;
  transition: transform 0.1s linear;
}

/* =====================================================================
   HUD DE COORDENADAS ESTILO GOOGLE EARTH (PARTE INFERIOR) & SELECCIÓN
   ===================================================================== */
.map-coords-hud-footer {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  padding: 6px 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  user-select: none;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}

.coords-hud-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coords-hud-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
}

.coords-hud-value {
  font: inherit;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.3px;
  cursor: pointer;
  min-height: 0;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  transition: all 0.2s ease;
}
.coords-hud-value:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}

.coords-hud-format-pills {
  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.coord-pill {
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.coord-pill:hover {
  color: #ffffff;
}
.coord-pill.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.4);
}

.coords-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.coords-copy-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.coords-hud-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.coords-hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coords-hud-stat {
  color: #cbd5e1;
  font-size: 11px;
}
.coords-hud-stat strong {
  color: #f1f5f9;
}

.coords-quick-search-btn {
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.coords-quick-search-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Pulsing coordinate marker pin */
.coord-pulse-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulseCoordPin 1.8s infinite;
  cursor: pointer;
}
@keyframes pulseCoordPin {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(56, 189, 248, 0);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    transform: scale(0.95);
  }
}

/* Floating Multi-Selection HUD (Modo Mostrar Todo) */
.mostrar-todo-selection-hud {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 34;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 35px;
  padding: 6px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

/* Category Filters Bar for Mostrar Todo */
.category-filter-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.category-filter-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(13, 148, 136, 0.4);
}
.category-filter-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: 15px;
  max-height: 15px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0d9488;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
  box-shadow: none;
  outline: none;
}
.category-badge-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* Google Earth Popup Styling (Fino, Pulcro y Espacioso) */
.maplibregl-popup-content, .mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
  border: 1px solid #cbd5e1 !important;
  font-family: var(--font-sans) !important;
  background: #ffffff !important;
}
.maplibregl-popup-close-button, .mapboxgl-popup-close-button {
  color: #0f172a !important;
  font-size: 18px !important;
  padding: 4px 10px !important;
  z-index: 10 !important;
  outline: none !important;
  font-weight: bold !important;
}
.maplibregl-popup-close-button:hover, .mapboxgl-popup-close-button:hover {
  background: #cbd5e1 !important;
  border-radius: 4px;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #ffffff !important; }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: #ffffff !important; }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #ffffff !important; }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #ffffff !important; }

.earth-popup {
  font-size: 11px;
  color: #0f172a;
  background: #ffffff;
  min-width: 320px;
  max-width: 440px;
  width: 390px;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.earth-popup-title-bar {
  padding: 7px 12px;
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.earth-popup-header {
  background: #b2c8e8; /* Azul Google Earth Pro */
  color: #1e3a8a;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 10px;
  text-align: center;
  border-bottom: 1px solid #93c5fd;
  word-break: break-word;
  letter-spacing: 0.3px;
}
.earth-popup-scroll {
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.earth-popup table {
  width: 100%;
  border-collapse: collapse;
  white-space: normal;
  font-size: 11px;
  line-height: 1.35;
}
.earth-popup tr:nth-child(even) { background: #eaf0f8; }
.earth-popup tr:nth-child(odd) { background: #ffffff; }
.earth-popup td {
  padding: 3px 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  word-break: break-word;
  font-size: 11px;
}
.earth-popup td:first-child {
  font-weight: 600;
  color: #475569;
  width: 36%;
  background: rgba(0, 0, 0, 0.02);
}
.earth-popup td strong,
.earth-popup td b {
  color: #0f172a;
  font-weight: 700;
}
.earth-popup-actions {
  padding: 8px 10px;
  background: #f8fafc;
  border-top: 1px solid #cbd5e1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Adaptación completa de metadatos en dispositivos móviles (< 768px) */

/* Basemap Switcher System */
.basemap-selector-section {
  border-top: 1px solid var(--border-color);
  margin-top: 14px;
  padding-top: 10px;
}
.basemap-pill-btn {
  background: var(--slate-100, #f1f5f9);
  color: var(--slate-700, #334155);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  user-select: none;
}
.basemap-pill-btn:hover {
  background: var(--slate-200, #e2e8f0);
  border-color: #0284c7;
  transform: translateY(-1px);
}
.basemap-pill-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.38);
}

/* Floating Quick Basemap Selector on Map Canvas */
.floating-basemap-box {
  position: absolute;
  top: 105px;
  right: 10px;
  z-index: 15;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 3px;
  display: flex;
  gap: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  user-select: none;
}
.floating-basemap-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.floating-basemap-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
.floating-basemap-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.5);
}

/* User GPS Pulse Marker */
.user-gps-pulse-marker {
  position: relative;
  width: 22px;
  height: 22px;
}
.gps-dot {
  width: 14px;
  height: 14px;
  background: #0284c7;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.gps-pulse {
  width: 22px;
  height: 22px;
  background: rgba(2, 132, 199, 0.4);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: gpsPulseAnim 2s infinite ease-out;
}
@keyframes gpsPulseAnim {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* === ESTILOS PARA FUNCIÓN POLÍGONO Y PLANO CATASTRAL 1:12.500 === */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

#poligonoDesignerToolbar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  animation: slideDownHud 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.poligono-divider {
  height: 20px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.poligono-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
@keyframes slideDownHud {
  from { opacity: 0; transform: translate(-50%, -15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.plano-catastral-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.plano-catastral-container {
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 1440px;
  height: 96vh;
  max-height: 96vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0,0,0,0.6);
  border: 2px solid #0f172a;
  font-family: var(--font-sans);
}
.plano-catastral-header {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-bottom: 3px solid #f59e0b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.plano-flag-bar {
  height: 4px;
  background: linear-gradient(to right, #dc2626 33.3%, #facc15 33.3% 66.6%, #16a34a 66.6%);
  width: 100%;
}
.plano-catastral-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  background: #f8fafc;
}
.plano-map-section {
  flex: 1.6;
  position: relative;
  border-right: 2px solid #cbd5e1;
  display: flex;
  flex-direction: column;
}
.plano-data-section {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plano-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
}
.plano-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.plano-scale-badge {
  background: #d97706;
  color: #ffffff;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.plano-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  border: 1px solid #cbd5e1;
}
.plano-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #334155;
  text-align: left;
}
.plano-table td {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-family: monospace;
  font-size: 11px;
}
.plano-table tr:nth-child(even) {
  background: #f8fafc;
}

/* Escala Gráfica 1:12.500 Widget sobre el mapa */
.plano-graphic-scale {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #0f172a;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  font-size: 10px;
  color: #0f172a;
  font-weight: 700;
}
.plano-scale-bar-ruler {
  display: flex;
  height: 6px;
  width: 160px;
  border: 1px solid #000;
  margin: 3px 0;
}
.plano-scale-seg {
  flex: 1;
}
.plano-scale-seg.black { background: #000; }
.plano-scale-seg.white { background: #fff; }


/* ==========================================================================
   FICHA LATERAL DESLIZABLE AERO-GEOLÓGICA (CONCESSION SLIDE DRAWER)
   ========================================================================== */
.concession-slide-drawer {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 44px;
  width: 420px;
  max-width: calc(100vw - 24px);
  z-index: 1000;
  background: rgba(8, 40, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(47, 168, 132, 0.35);
  border-radius: 14px;
  box-shadow: -10px 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(47, 168, 132, 0.12);
  color: #f0fdfa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(115%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.concession-slide-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Cabecera del Drawer */
.drawer-header {
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(17, 24, 34, 0.85) 0%, rgba(8, 40, 32, 0.6) 100%);
  border-bottom: 1px solid rgba(47, 168, 132, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.drawer-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1E6B56, #2FA884, #C87D55);
}

.drawer-title-wrap {
  flex: 1;
  min-width: 0;
}

.drawer-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.drawer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.drawer-badge.badge-vigente {
  background: rgba(5, 150, 105, 0.25);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.drawer-badge.badge-tramite {
  background: rgba(200, 125, 85, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(200, 125, 85, 0.45);
}

.drawer-badge.badge-conflicto {
  background: rgba(220, 38, 38, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.drawer-badge.badge-parque {
  background: rgba(14, 165, 233, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.drawer-pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  animation: drawerPulse 1.8s infinite;
}

@keyframes drawerPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(47, 168, 132, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(47, 168, 132, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(47, 168, 132, 0); }
}

.drawer-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.drawer-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Contenido Scrolleable */
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-content::-webkit-scrollbar {
  width: 6px;
}
.drawer-content::-webkit-scrollbar-thumb {
  background: rgba(47, 168, 132, 0.35);
  border-radius: 4px;
}

/* Tarjetas internas del Drawer */
.drawer-card {
  background: rgba(17, 24, 34, 0.6);
  border: 1px solid rgba(47, 168, 132, 0.22);
  border-radius: 10px;
  padding: 12px;
}

.drawer-card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #2FA884;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-grid-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11.5px;
}

.drawer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-meta-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.drawer-meta-val {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  word-break: break-word;
}

.drawer-meta-val.mono {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-variant-numeric: tabular-nums;
  color: #38bdf8;
}

.drawer-meta-val.copper {
  color: #C87D55;
  font-weight: 800;
}

/* Tabla de Vértices UTM JetBrains Mono */
.drawer-vertices-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.drawer-vertices-table th {
  background: rgba(8, 40, 32, 0.85);
  color: #2FA884;
  padding: 5px 6px;
  text-align: right;
  font-weight: 800;
  border-bottom: 1px solid rgba(47, 168, 132, 0.3);
  font-size: 9.5px;
  letter-spacing: 0.4px;
}

.drawer-vertices-table th:first-child,
.drawer-vertices-table td:first-child {
  text-align: center;
}

.drawer-vertices-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  text-align: right;
}

.drawer-vertices-table tr:hover td {
  background: rgba(47, 168, 132, 0.12);
  color: #fff;
}

/* Barra de Acciones Rápidas (Footer fijo) */
.drawer-actions-bar {
  padding: 12px 16px;
  background: rgba(17, 24, 34, 0.95);
  border-top: 1px solid rgba(47, 168, 132, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.drawer-action-btn.btn-copper {
  background: linear-gradient(135deg, #C87D55 0%, #B87333 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(200, 125, 85, 0.35);
}

.drawer-action-btn.btn-copper:hover {
  background: linear-gradient(135deg, #d48b63 0%, #C87D55 100%);
  transform: translateY(-1px);
}

.drawer-action-btn.btn-emerald {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.drawer-action-btn.btn-emerald:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  transform: translateY(-1px);
}

.drawer-action-btn.btn-slate {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.drawer-action-btn.btn-slate:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
  .concession-slide-drawer {
    top: auto;
    bottom: 60px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    max-height: 70vh;
    border-radius: 14px 14px 0 0;
    transform: translateY(115%);
  }
  .concession-slide-drawer.is-open {
    transform: translateY(0);
  }
}
