html,
body{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  overflow-x:hidden;
}

body{
  background:#f5f6fa;
  color:#111827;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",sans-serif;
  position:relative;
}

*,
*::before,
*::after{
  box-sizing:border-box;
  min-width:0;
}

img,
canvas,
video{
  display:block;
  max-width:100%;
  height:auto;
}

/* Leaflet dibuja zonas vectoriales con SVG propio.
   No aplicar la regla global de max-width/height a esos SVG o desaparecen
   los polígonos/overlays del mapa. */
.leaflet-container svg{
  display:block;
  max-width:none !important;
  height:auto !important;
}

/* ===== Base containers ===== */
.p-6{
  padding:24px !important;
}

.max-w-\[1400px\]{
  width:100%;
  max-width:1400px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

@media (max-width:768px){
  .p-6{
    padding:16px !important;
  }
}

/* Header */
.top-bar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:96px;
  background:linear-gradient(180deg,rgba(20,20,20,0.98) 0%,rgba(15,15,15,0.96) 100%);
  backdrop-filter:blur(30px);
  -webkit-backdrop-filter:blur(30px);
  border-bottom:1px solid rgba(255,255,255,0.06);
  box-shadow:0 8px 16px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.04) inset;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2000;
  transition:height .4s ease, background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease;
}

.top-bar.scrolled{
  height:80px;
  background:linear-gradient(180deg,rgba(20,20,20,0.88) 0%,rgba(15,15,15,0.82) 100%);
  backdrop-filter:blur(40px);
  -webkit-backdrop-filter:blur(40px);
  box-shadow:0 6px 12px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.03) inset;
}

.top-title{
  color:#fff;
  font-size:32px;
  line-height:40px;
  font-weight:400;
  letter-spacing:.005em;
  display:flex;
  align-items:center;
  gap:16px;
  transition:font-size .4s ease, line-height .4s ease;
}

.top-title-brand{
  display:inline-flex;
  align-items:flex-start;
  gap:4px;
  line-height:1;
}

.top-title-word{
  display:inline-block;
}

.top-title-beta{
  display:inline-block !important;
  position:relative !important;
  top:.30em !important;
  font-size:.42em;
  line-height:1;
  font-weight:800;
  letter-spacing:.06em;
  color:#ef4444;
  text-transform:uppercase;
}

.top-bar.scrolled .top-title{
  font-size:24px;
  line-height:32px;
}

.top-title img{
  height:64px;
  width:auto;
  transition:height .4s ease;
}

.top-bar.scrolled .top-title img{
  height:48px;
}

@media (max-width:900px){
  .top-bar{
    height:76px;
  }

  .top-bar.scrolled{
    height:62px;
  }

  .top-title{
    font-size:24px;
    line-height:30px;
    gap:10px;
  }

  .top-bar.scrolled .top-title{
    font-size:18px;
    line-height:24px;
  }

  .top-title img{
    height:46px;
  }

  .top-bar.scrolled .top-title img{
    height:34px;
  }
}

@media (max-width:520px){
  .top-title{
    font-size:21px;
    line-height:26px;
    gap:8px;
  }

  .top-bar.scrolled .top-title{
    font-size:16px;
    line-height:20px;
  }

  .top-title img{
    height:40px;
  }

  .top-bar.scrolled .top-title img{
    height:30px;
  }
}

/* Glass */
.glass{
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(17,24,39,0.08);
  box-shadow:0 10px 24px rgba(17,24,39,0.06);
}

/* ===== Ticker volcánico ===== */
.volcano-ticker-wrap{
  width:100%;
  max-width:100%;
  background:rgba(255,255,255,0.92);
  border-top:1px solid rgba(17,24,39,0.06);
  border-bottom:1px solid rgba(17,24,39,0.06);
  overflow:hidden;
  position:relative;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.volcano-ticker-mask{
  width:100%;
  max-width:100%;
  overflow:hidden;
  position:relative;
}

.volcano-ticker-track{
  display:flex;
  align-items:center;
  gap:28px;
  white-space:nowrap;
  width:max-content;
  min-width:max-content;
  padding:10px 18px;
  animation:volcanoTickerMove 42s linear infinite;
  will-change:transform;
}

.volcano-ticker-item{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  line-height:18px;
  font-weight:600;
  color:#111827;
  letter-spacing:.01em;
  cursor:pointer;
  user-select:none;
  transition:opacity .2s ease, transform .2s ease;
}

.volcano-ticker-item:hover{
  opacity:.72;
}

.volcano-ticker-item:active{
  transform:translateY(1px);
}

@keyframes volcanoTickerMove{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* ===== Header / search area ===== */
.header-row{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:14px;
  margin-bottom:26px;
  min-width:0;
  overflow:visible;
}

.header-row h2{
  margin:0;
  text-align:center;
  line-height:1.1;
  white-space:normal;
  min-width:0;
}

.search-stack{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:10px;
  min-width:0;
  padding-bottom:4px;
  overflow:visible;
}

.search-box{
  width:100%;
  min-width:0;
  max-width:none;
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,0.8);
  border-radius:999px;
  padding:8px 18px;
  box-shadow:0 10px 20px rgba(0,0,0,0.14);
  transition:box-shadow .25s ease, transform .25s ease;
}

.search-box::placeholder{
  color:#6b7280;
  opacity:1;
}

.search-btn{
  width:100%;
  flex:0 0 auto;
  padding:8px 18px;
  border-radius:999px;
  background:rgba(40,40,40,0.85);
  color:rgba(255,255,255,0.95);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 20px 30px -24px rgba(0,0,0,0.60),
    0 10px 18px -18px rgba(0,0,0,0.40),
    0 0 22px -20px rgba(0,0,0,0.20);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:.25s;
  min-width:108px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.search-btn:hover{
  transform:translateY(-1px);
  box-shadow:
    0 22px 34px -24px rgba(0,0,0,0.62),
    0 12px 20px -18px rgba(0,0,0,0.42),
    0 0 22px -20px rgba(0,0,0,0.20);
}

.search-btn:disabled{
  opacity:.75;
  cursor:default;
  transform:none;
}

@media (min-width:1200px){
  .header-row h2{
    text-align:left;
  }

  .header-row{
    flex-direction:row;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:26px;
  }

  .search-stack{
    width:min(440px, 100%) !important;
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
  }

  .search-box{
    flex:1 1 auto;
    width:auto;
    min-width:200px !important;
  }

  .search-btn{
    width:auto;
    flex:0 0 auto;
  }
}

/* ===== Market bar ===== */
.volcano-market-bar{
  width:100%;
  background:transparent;
  border-bottom:0;
  margin-bottom:28px;
}

.volcano-market-inner{
  max-width:1400px;
  margin:0 auto;
  padding:0;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  min-width:0;
}

.market-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  line-height:14px;
  font-weight:700;
  letter-spacing:.04em;
  border:1px solid rgba(17,24,39,0.08);
  background:rgba(17,24,39,0.03);
  color:#111827;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
  text-align:center;
}

.market-pill:hover,
.market-sort-btn:hover{
  transform:translateY(-1px);
}

.market-pill strong{
  font-size:13px;
  letter-spacing:0;
  margin-left:2px;
}

.market-pill-label{
  min-width:0;
}

.market-pill-red{
  background:rgba(239,68,68,0.06);
  border-color:rgba(239,68,68,0.12);
}

.market-pill-amber{
  background:rgba(245,158,11,0.06);
  border-color:rgba(245,158,11,0.12);
}

.market-pill-green{
  background:rgba(34,197,94,0.06);
  border-color:rgba(34,197,94,0.12);
}

.market-pill.active{
  box-shadow:0 8px 18px rgba(17,24,39,0.12);
  transform:translateY(-1px);
}

.market-divider{
  width:1px;
  height:28px;
  background:rgba(17,24,39,0.10);
  margin:0 2px;
}

.market-sort-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,0.08);
  background:rgba(17,24,39,0.03);
  color:#111827;
  font-size:12px;
  line-height:14px;
  font-weight:700;
  letter-spacing:.04em;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-align:center;
  text-transform:uppercase;
}

.market-sort-btn.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
  box-shadow:0 8px 18px rgba(17,24,39,0.16);
}

/* Activity fuera también en escritorio */
#sortActivity{
  display:none !important;
}

@media (max-width:1400px){
  .volcano-market-inner{
    padding:10px 0 12px;
    gap:10px;
  }

  .market-divider{
    display:none;
    width:100%;
    height:0;
    margin:0;
  }

  .market-pill{
    flex:0 0 calc((100% - 20px) / 3);
    max-width:180px;
  }

  .market-sort-btn{
    flex:0 0 calc((100% - 20px) / 3);
    max-width:150px;
  }
}

@media (max-width:768px){
  .volcano-market-bar{
    margin-top:18px !important;
    margin-bottom:30px !important;
  }

  .volcano-market-inner{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:10px 10px !important;
    align-items:stretch !important;
    justify-items:stretch !important;
    padding:6px 0 0 !important;
  }

  .market-divider{
    display:none !important;
  }

  .market-pill,
.market-sort-btn{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:40px !important;
  padding:9px 8px !important;
  font-size:14px !important;
  line-height:12px !important;
  gap:5px !important;
  letter-spacing:.01em !important;
  border-radius:14px !important;
}

.market-pill strong{
  font-size:14px !important;
  margin-left:0 !important;
  text-transform:uppercase !important;
  flex:0 0 auto !important;
}

#filterErupting{
  grid-column:1;
  grid-row:1;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
}

#filterErupting .market-pill-label{
  flex:1 1 auto !important;
  min-width:0 !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:clip !important;
}

  #filterUnrest{ grid-column:2; grid-row:1; }
  #filterQuiet{ grid-column:3; grid-row:1; }

  #sortDistance{ grid-column:1; grid-row:2; }
  #sortPrice{ grid-column:2; grid-row:2; }
  #sortReset{ grid-column:3; grid-row:2; }
}

/* ===== Map ===== */
#map{
  height:510px;
  border-radius:24px;
  overflow:hidden;
}

@media (max-width:900px){
  #map{
    height:650px;
    border-radius:20px;
  }
}

/* Leaflet safety */
.leaflet-container{
  width:100%;
  max-width:100%;
  overflow:hidden !important;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom,
.leaflet-control-container,
.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-marker-pane,
.leaflet-overlay-pane{
  max-width:100%;
}

.leaflet-marker-icon,
.leaflet-marker-shadow{
  max-width:none;
}

/* Map overlay quick card */
.map-overlay{
  position:absolute;
  pointer-events:auto;
  left:78px;
  bottom:24px;
  width:min(440px, calc(100% - 94px));
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(17,24,39,0.10);
  box-shadow:0 12px 24px rgba(17,24,39,0.11), 0 4px 12px rgba(17,24,39,0.06);
  border-radius:18px;
  padding:14px 14px 12px 14px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  z-index:900 !important;
}

.map-overlay.hidden{
  display:none;
}

.map-overlay-close{
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,0.10);
  background:rgba(255,255,255,0.9);
  cursor:pointer;
  font-size:18px;
  line-height:26px;
  color:#111827;
}

.map-overlay-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-right:34px;
}

.map-overlay-name{
  font-weight:650;
  font-size:14px;
  line-height:18px;
}

.map-overlay-meta{
  margin-top:2px;
  font-size:12px;
  color:rgba(17,24,39,0.65);
}

.map-overlay-score{
  text-align:right;
  min-width:78px;
  padding-right:6px;
}

.map-overlay-ves{
  font-size:22px;
  font-weight:750;
  line-height:22px;
  letter-spacing:-0.02em;
}

.map-overlay-level{
  margin-top:2px;
  font-size:11px;
  color:rgba(17,24,39,0.65);
  text-transform:uppercase;
  letter-spacing:.06em;
}

.map-overlay-chips{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.map-overlay-chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(17,24,39,0.06);
  border:1px solid rgba(17,24,39,0.08);
  white-space:nowrap;
}

.map-overlay-reco{
  margin-top:10px;
  font-size:12px;
  line-height:16px;
  color:rgba(17,24,39,0.80);
}

.map-overlay-go{
  margin-top:12px;
  width:100%;
  border-radius:12px;
  padding:10px 12px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:650;
  cursor:pointer;
  border:0;
}

.map-overlay-go:active{
  transform:translateY(1px);
}

.map-controls{
  position:absolute;
  left:16px;
  bottom:24px;
  z-index:1200 !important;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:none;
}

.map-fab{
  width:46px;
  height:46px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(17,24,39,0.10);
  background:rgba(255,255,255,0.88);
  color:#111827;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 10px 24px rgba(0,0,0,0.18);
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.map-fab:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(0,0,0,0.22);
}

.map-fab:active{
  transform:translateY(1px);
}

.map-fab svg{
  width:20px;
  height:20px;
  display:block;
  stroke:currentColor;
  fill:none;
  stroke-width:2.15;
  stroke-linecap:round;
  stroke-linejoin:round;
}

#resetMap svg{
  width:23px;
  height:23px;
  stroke-width:2.5;
}

#toggleSatellite svg{
  width:22px;
  height:22px;
}

#toggleAirspace svg{
  width:23px;
  height:23px;
}

.map-fab.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}


.airspace-legend{
  min-width:220px;
  max-width:260px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(17,24,39,0.10);
  background:rgba(255,255,255,0.92);
  color:#111827;
  box-shadow:0 14px 30px rgba(0,0,0,0.18);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.airspace-legend.is-hidden{
  display:none;
}

.airspace-legend-title{
  font-size:12px;
  line-height:14px;
  font-weight:900;
  letter-spacing:0.03em;
  text-transform:uppercase;
}

.airspace-legend-subtitle{
  margin-top:4px;
  font-size:11px;
  line-height:14px;
  color:#4b5563;
}

.airspace-legend-items{
  margin-top:9px;
  display:grid;
  gap:7px;
}

.airspace-legend-item{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:11px;
  line-height:14px;
  color:#111827;
}

.airspace-legend-swatch{
  width:10px;
  height:10px;
  margin-top:2px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,0.14);
  flex:0 0 auto;
}

.airspace-legend-swatch.red{ background:#ef4444; border-color:rgba(239,68,68,0.55); }
.airspace-legend-swatch.amber{ background:#f59e0b; border-color:rgba(245,158,11,0.55); }
.airspace-legend-swatch.blue{ background:#2563eb; border-color:rgba(37,99,235,0.55); }
.airspace-legend-swatch.editorial{ background:#7c3aed; border-color:rgba(124,58,237,0.55); }

.airspace-legend-note{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid rgba(17,24,39,0.08);
  font-size:10px;
  line-height:13px;
  color:#6b7280;
}

.airspace-legend-links{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.airspace-legend-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,0.10);
  background:rgba(255,255,255,0.78);
  color:#111827;
  font-size:10px;
  line-height:12px;
  font-weight:700;
  text-decoration:none;
}

.airspace-legend-link:hover{
  background:rgba(255,255,255,0.98);
}

.airspace-legend-advisories{
  margin-top:8px;
  display:grid;
  gap:5px;
}

.airspace-legend-advisory{
  font-size:10px;
  line-height:13px;
  color:#4b5563;
}

.airspace-popup{
  min-width:240px;
  max-width:320px;
}

.airspace-popup-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.airspace-popup-title{
  font-size:13px;
  line-height:16px;
  font-weight:800;
  color:#111827;
}

.airspace-popup-layer{
  margin-top:3px;
  font-size:11px;
  line-height:14px;
  color:#6b7280;
}

.airspace-popup-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  line-height:10px;
  font-weight:900;
  letter-spacing:0.04em;
  text-transform:uppercase;
  white-space:nowrap;
}

.airspace-popup-badge.official{
  background:#111827;
  color:#fff;
}

.airspace-popup-badge.editorial{
  background:#ede9fe;
  color:#5b21b6;
}

.airspace-popup-grid{
  margin-top:10px;
  display:grid;
  gap:7px;
}

.airspace-popup-row{
  display:grid;
  grid-template-columns:86px 1fr;
  gap:8px;
  font-size:11px;
  line-height:14px;
}

.airspace-popup-row b{
  color:#6b7280;
  font-weight:700;
}

.airspace-popup-row span{
  color:#111827;
}

.airspace-popup-condition{
  display:block;
  max-height:108px;
  overflow-y:auto;
  padding-right:6px;
  white-space:normal;
  word-break:break-word;
  overscroll-behavior:contain;
}

.airspace-popup-condition::-webkit-scrollbar{
  width:8px;
}

.airspace-popup-condition::-webkit-scrollbar-thumb{
  background:rgba(100,116,139,0.38);
  border-radius:999px;
}

.airspace-popup-condition::-webkit-scrollbar-track{
  background:rgba(148,163,184,0.10);
  border-radius:999px;
}

.airspace-popup-link{
  color:#111827;
  font-weight:700;
  text-decoration:underline;
}

.airspace-popup-wrap .leaflet-popup-content-wrapper{
  border-radius:18px;
  box-shadow:0 18px 36px rgba(15,23,42,0.20);
}

.airspace-popup-wrap .leaflet-popup-content{
  margin:14px 16px;
}

.airspace-popup-wrap .leaflet-popup-close-button{
  top:8px;
  right:10px;
  color:#64748b;
  font-size:18px;
  font-weight:700;
}


@media (max-width:900px){
  .airspace-legend{
    min-width:200px;
    max-width:220px;
    padding:9px 10px;
    border-radius:14px;
  }
}


@media (max-width:900px){
  .map-controls{
    left:12px;
    bottom:14px;
    gap:8px;
  }

  .map-fab{
    width:44px;
    height:44px;
  }

  .map-fab svg{
    width:20px;
    height:20px;
  }

  .map-overlay{
    left:64px;
    right:14px;
    bottom:14px;
    width:auto;
    min-height:142px;
    max-height:142px;
    padding:10px 12px 10px 12px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    overflow:hidden;
  }

  .map-overlay-head{
    gap:10px;
    padding-right:36px;
  }

  .map-overlay-score{
    min-width:70px;
    padding-right:8px;
  }

  .map-overlay-name{
    font-size:13px;
    line-height:16px;
  }

  .map-overlay-meta{
    font-size:11px;
    line-height:14px;
  }

  .map-overlay-ves{
    font-size:20px;
    line-height:20px;
  }

  .map-overlay-level{
    font-size:10px;
    line-height:12px;
  }

  .map-overlay-chips{
    margin-top:8px;
    gap:5px;
    max-height:34px;
    overflow:hidden;
  }

  .map-overlay-chip{
    font-size:10px;
    line-height:12px;
    padding:5px 8px;
  }

  .map-overlay-reco{
    margin-top:8px;
    font-size:11px;
    line-height:14px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .map-overlay-go{
    margin-top:8px;
    padding:8px 10px;
    font-size:11px;
    border-radius:10px;
  }
}

/* ===== Map markers ===== */
.map-marker-wrap{
  position:relative;
  width:0;
  height:0;
  overflow:visible;
  pointer-events:auto;
}

.map-anchor{
  position:absolute;
  left:0;
  top:0;
  transform:translate(-50%, -50%);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
}

.volcano-icon{
  flex:0 0 auto;
  font-size:20px;
  pointer-events:auto;
  transition:font-size .25s ease, transform .25s ease;
}

.volcano-icon.active{
  font-size:25px;
  transform:translateY(-1px);
}

.map-label{
  position:absolute;
  top:50%;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  white-space:nowrap;
  font-size:12px;
  line-height:13px;
  font-weight:700;
  transform:translateY(-50%);
  pointer-events:auto;
}

.map-label.active{
  font-weight:800;
}

.map-label.side-right{
  left:14px;
  text-align:left;
}

.map-label.side-left{
  right:14px;
  text-align:right;
}

.map-label.row-offset-0{ margin-top:0; }
.map-label.row-offset-1{ margin-top:-12px; }
.map-label.row-offset-2{ margin-top:12px; }
.map-label.row-offset-3{ margin-top:-22px; }
.map-label.row-offset-4{ margin-top:22px; }

.map-label-text{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#111827;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.95),
     1px -1px 0 rgba(255,255,255,0.95),
    -1px  1px 0 rgba(255,255,255,0.95),
     1px  1px 0 rgba(255,255,255,0.95),
     0 0 8px rgba(255,255,255,0.75);
}

.map-label.side-left .map-label-text{
  justify-content:flex-end;
  text-align:right;
}

.map-label.side-right .map-label-text{
  justify-content:flex-start;
  text-align:left;
}

.map-satellite .map-label-text{
  color:#fff;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.92),
     1px -1px 0 rgba(0,0,0,0.92),
    -1px  1px 0 rgba(0,0,0,0.92),
     1px  1px 0 rgba(0,0,0,0.92),
     0 0 8px rgba(0,0,0,0.72);
}

.map-label-name{
  font-weight:800;
}

.map-mini-traffic{
  display:inline-flex;
  align-items:center;
  transform:translateY(.5px);
}

.map-mini-traffic .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(17,24,39,0.10);
}

.map-satellite .map-mini-traffic .dot{
  box-shadow:0 0 0 1px rgba(255,255,255,0.16);
}

.map-mini-traffic .dot.green{ background:#22c55e; }
.map-mini-traffic .dot.amber{ background:#f59e0b; }
.map-mini-traffic .dot.red{ background:#ef4444; }

.map-mini-traffic .dot.red.active{
  animation:pulseRed 1.8s infinite;
}

@media (max-width:768px){
  .map-label{
    font-size:11px;
    line-height:12px;
  }

  .map-mini-traffic .dot{
    width:6px;
    height:6px;
  }

  .volcano-icon{
    font-size:18px;
  }

  .volcano-icon.active{
    font-size:22px;
  }
}

/* ===== Cards grid ===== */
#volcanoList{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  min-width:0;
  padding:8px 14px 12px;
  box-sizing:border-box;
  overflow:visible;
}

@media (min-width:1400px){
  #volcanoList{
    grid-template-columns:1fr 1fr;
  }
}

.volcano-card{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:stretch;
  cursor:pointer;
  transition:.3s ease;
  min-width:0;
  overflow:visible;
}

@media (min-width:1400px){
  .volcano-card{
    grid-template-columns:1fr 1fr;
    gap:20px;
  }
}

.volcano-card.active{
  transform:none;
  outline:none;
  box-shadow:0 18px 28px -18px rgba(17,24,39,0.38), 0 8px 16px -12px rgba(17,24,39,0.20), inset 0 0 0 2px rgba(17,24,39,0.14);
}

.left-column,
.data-column{
  width:100%;
  min-width:0;
}

.title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  width:100%;
  gap:12px;
  flex-wrap:nowrap;
}

.illustration-wrapper{
  width:100%;
  max-width:320px;
  height:168px;
  overflow:hidden;
  border-radius:18px;
  margin-top:16px;
  position:relative;
  background:rgba(255,255,255,0.25);
}

.illustration-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
}

.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  line-height:14px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(17,24,39,0.04);
  border:1px solid rgba(17,24,39,0.08);
  color:rgba(0,0,0,0.78);
  font-weight:650;
  letter-spacing:.02em;
}

.coord-inline{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}

.coord-copy-btn{
  appearance:none;
  border:1px solid rgba(17,24,39,0.14);
  background:#ffffff;
  color:#111827;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(17,24,39,0.06);
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.coord-copy-btn:hover{
  background:rgba(17,24,39,0.06);
  box-shadow:0 5px 14px rgba(17,24,39,0.09);
}

.coord-copy-btn:active{
  transform:translateY(1px);
}

.coord-copy-btn.copied{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.weather-panel{
  margin-top:0;
  padding:14px 14px 12px;
  border-radius:22px;
  background:rgba(255,255,255,0.72);
  border:1px solid rgba(17,24,39,0.08);
  box-shadow:0 10px 26px rgba(0,0,0,0.07);
  overflow:hidden;
  min-width:0;
}

.weather-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.weather-title{
  font-size:11px;
  letter-spacing:.10em;
  text-transform:uppercase;
  opacity:.82;
  font-weight:900;
}

.weather-now{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0px, 1fr);
  gap:10px;
  margin-bottom:14px;
}

.weather-kpi{
  border-radius:16px;
  background:rgba(17,24,39,0.04);
  border:1px solid rgba(17,24,39,0.08);
  padding:10px;
  min-width:0;
}

.weather-kpi-label{
  font-size:10px;
  line-height:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.65;
  margin-bottom:4px;
  font-weight:800;
}

.weather-kpi-value{
  font-size:15px;
  line-height:18px;
  font-weight:900;
  letter-spacing:-0.01em;
}

.weather-day-date{
  font-size:11px;
  line-height:13px;
  font-weight:900;
  margin-bottom:6px;
}

.weather-days{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.weather-day-row{
  border-radius:16px;
  background:rgba(17,24,39,0.04);
  border:1px solid rgba(17,24,39,0.08);
  padding:12px 12px;
  min-width:0;
}

.weather-day-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.weather-day-date{
  font-size:11px;
  line-height:13px;
  font-weight:900;
  margin-bottom:0;
}

.weather-day-cond{
  font-size:11px;
  line-height:13px;
  font-weight:800;
  text-align:right;
  opacity:.9;
  max-width:50%;
  overflow-wrap:anywhere;
}

.weather-day-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  font-size:11px;
  line-height:15px;
  opacity:.9;
}

.weather-day-meta strong{
  color:#111827;
}

.weather-sep{
  opacity:.45;
}

.weather-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  line-height:12px;
  font-weight:900;
  border:1px solid rgba(17,24,39,0.08);
  background:rgba(17,24,39,0.04);
  white-space:nowrap;
}

.weather-loading,
.weather-error{
  font-size:12px;
  line-height:16px;
  opacity:.72;
}

.weather-subtitle{
  font-size:11px;
  line-height:13px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.68;
  margin:12px 0 12px;
}

@media (max-width:900px){
  .weather-now{
    grid-template-columns:minmax(0, 1fr) minmax(0px, 1fr);
  }
}

.light{
  width:14px;
  height:14px;
  min-width:14px;
  min-height:14px;
  flex:0 0 14px;
  border-radius:50%;
  opacity:.2;
}

.green{ background:#22c55e; }
.amber{ background:#f59e0b; }
.red{ background:#ef4444; }
.active-light{ opacity:1; }

@keyframes pulseRed{
  0%{ box-shadow:0 0 0 0 rgba(239,68,68,0.6); }
  70%{ box-shadow:0 0 0 12px rgba(239,68,68,0); }
  100%{ box-shadow:0 0 0 0 rgba(239,68,68,0); }
}

.pulse-red{ animation:pulseRed 1.8s infinite; }

.seismic-row{
  width:auto;
  min-width:224px;
  flex:0 0 auto;
}
.data-column{ flex:1; }

.right-box,
.left-box{
  background:rgba(17,24,39,0.03);
  border:1px solid rgba(17,24,39,0.06);
  border-radius:26px;
  padding:18px;
  min-width:0;
  overflow:hidden;
}

.footer{
  width:100%;
  min-height:64px;
  background:rgba(0,0,0,0.95);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 18px;
  color:#fff;
  font-size:.9rem;
  margin-top:64px;
  text-align:center;
  flex-wrap:wrap;
}

.footer-sep{
  opacity:.55;
}

@media (max-width:900px){
  .footer{
    gap:8px;
    font-size:.88rem;
  }
}

.spinner{
  width:14px;
  height:14px;
  border:2px solid rgba(255,255,255,0.25);
  border-top:2px solid rgba(255,255,255,0.95);
  border-radius:50%;
  animation:spin .6s linear infinite;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

@media (max-width:900px){
  .volcano-card{
    grid-template-columns:1fr;
    gap:24px;
  }

  .illustration-wrapper{
    width:100%;
    height:auto;
    aspect-ratio:224/168;
    border-radius:26px;
    max-width:none;
  }

  .seismic-row{
    width:auto;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center !important;
    gap:16px;
    flex:0 0 auto;
  }

  .eruption{
    text-align:center;
  }

  .data-column{
    text-align:center;
  }

  .status-row-mobile{
    display:flex;
    justify-content:center;
    margin-top:12px;
  }
}

.left-stack{
  display:grid;
  gap:12px;
}

.card-section{
  border-radius:22px;
  background:rgba(17,24,39,0.03);
  border:1px solid rgba(17,24,39,0.06);
  padding:15px 15px 13px;
  min-width:0;
  overflow:hidden;
}

.card-section-title{
  font-size:11px;
  letter-spacing:.10em;
  text-transform:uppercase;
  opacity:.82;
  margin-bottom:10px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:8px;
}


.official-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:14px;
  min-height:42px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,0.10);
  background:rgba(17,24,39,0.045);
  color:rgba(17,24,39,0.88);
  font-size:13px;
  line-height:16px;
  font-weight:650;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  box-shadow:0 4px 12px rgba(17,24,39,0.05);
}
.official-btn:hover{
  transform:translateY(-1px);
  background:rgba(17,24,39,0.07);
  border-color:rgba(17,24,39,0.14);
  box-shadow:0 8px 16px rgba(17,24,39,0.08);
}
.official-btn:active{
  transform:translateY(0);
}
.official-btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}

.travel-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.travel-line{
  font-size:12px;
  line-height:16px;
  opacity:.92;
}

.travel-line strong{
  color:#111827;
  font-weight:600;
}

@media (max-width:900px){
  .left-stack{
    gap:10px;
  }

  .card-section{
    padding:14px 14px 12px;
    border-radius:20px;
  }

  .travel-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
}

/* ===== Tech panel ===== */
.tech-toggle,
.pilot-toggle{
  flex-wrap:nowrap;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:20px;
  padding:10px 12px;
  min-height:44px;
  border-radius:18px;
  background:rgba(17,24,39,0.04);
  border:1px solid rgba(17,24,39,0.08);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  user-select:none;
  transition:.2s;
  min-width:0;
  overflow:hidden;
}

.tech-toggle{
  margin-top:12px;
}

.tech-toggle:hover,
.pilot-toggle:hover{
  background:rgba(0,0,0,0.08);
}

.tech-toggle > span:first-child,
.pilot-toggle > span:first-child{
  min-width:0;
  flex:1 1 auto;
}

.tech-panel{
  margin-top:6px;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,0.72);
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 10px 24px rgba(0,0,0,0.06);
  display:none;
  min-width:0;
  overflow:hidden;
}

.tech-panel.open{ display:block; }

.tech-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  min-width:0;
}

.tech-box{
  border-radius:16px;
  background:rgba(17,24,39,0.03);
  border:1px solid rgba(0,0,0,0.06);
  padding:10px 12px;
  min-width:0;
  overflow:hidden;
}

.tech-title{
  font-size:11px;
  letter-spacing:.10em;
  text-transform:uppercase;
  opacity:.75;
  margin-bottom:6px;
  font-weight:700;
}

.tech-title-info{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.tech-title-info .info-wrap{
  margin-left:auto;
  flex:0 0 auto;
}

.tech-line{
  font-size:12px;
  line-height:16px;
  opacity:.92;
  display:flex;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.tech-line span,
.tech-line b,
.tech-line a{
  min-width:0;
}

.tech-line b{
  font-weight:600;
  text-align:right;
  overflow-wrap:anywhere;
}

.tech-muted{
  opacity:.7;
  font-weight:400;
  }


.tech-link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: normal;
  overflow-wrap: normal;
}
.tech-link:hover{
  opacity: .85;
}

/* ===== Pilot / Filmación (EVA) panel ===== */
.pilot-panel{
  margin-top:0;
  padding:16px 16px 14px;
  border-radius:22px;
  background:rgba(255,255,255,0.72);
  border:1px solid rgba(17,24,39,0.08);
  box-shadow:0 10px 26px rgba(0,0,0,0.07);
  overflow:hidden;
  min-width:0;
}

.pilot-title{
  font-size:11px;
  letter-spacing:.10em;
  text-transform:uppercase;
  opacity:.82;
  margin-bottom:10px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.pilot-title .pilot-mini{
  font-size:12px;
  opacity:.70;
  letter-spacing:0;
  text-transform:none;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(17,24,39,0.04);
  border:1px solid rgba(17,24,39,0.08);
  white-space:nowrap;
}

.pilot-kpi{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  min-width:0;
}

.pilot-score{
  font-size:30px;
  line-height:32px;
  font-weight:900;
  letter-spacing:-0.03em;
  white-space:nowrap;
}

.pilot-sub{
  font-size:12px;
  opacity:.75;
  margin-top:4px;
  font-weight:500;
}

.pilot-sub-info{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.pilot-group-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:12px 0 8px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.74;
  font-weight:700;
}

.pilot-group-title .info-wrap,
.pilot-sub-info .info-wrap{
  margin-left:auto;
  flex:0 0 auto;
}

.pilot-label-with-info{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#111827;
  font-weight:600;
}

.pilot-label-with-info .info-wrap{
  flex:0 0 auto;
}

.pilot-level{
  font-size:12px;
  font-weight:900;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(17,24,39,0.04);
  border:1px solid rgba(17,24,39,0.10);
  white-space:nowrap;
}

.pilot-bar{
  height:10px;
  border-radius:999px;
  background:rgba(0,0,0,0.08);
  border:1px solid rgba(17,24,39,0.10);
  overflow:hidden;
  margin:10px 0 12px;
}

.pilot-bar > div{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.70));
  transition:width .25s ease;
}

.pilot-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.pilot-chip{
  font-size:12px;
  font-weight:700;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(17,24,39,0.04);
  border:1px solid rgba(17,24,39,0.10);
  white-space:nowrap;
}

.pilot-notes{
  font-size:12px;
  line-height:16px;
  opacity:.94;
  display:grid;
  gap:7px;
  min-width:0;
}

.pilot-note{
  display:flex;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}

.pilot-note > span{
  color:#111827;
  min-width:0;
}

.pilot-note b{
  font-weight:600;
}

.pilot-subline,
[data-visual="lava"],
[data-visual="insta"]{
  margin-top:2px;
  margin-bottom:6px;
  font-size:12px;
  line-height:16px;
  color:#111827 !important;
  font-weight:500 !important;
  opacity:.92 !important;
  min-width:0;
  overflow-wrap:anywhere;
}

.volcano-signal-grid{
  display:grid;
  gap:8px;
  margin:12px 0 10px;
}

.volcano-signal-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  min-width:0;
}

.volcano-signal-line{
  font-size:12px;
  line-height:16px;
  opacity:.92;
  min-width:0;
  color:rgba(17,24,39,0.92);
}

.volcano-signal-line strong{
  color:#111827;
  font-weight:600;
}

.volcano-signal-chart-inline{
  display:inline-flex;
  align-items:flex-end;
  justify-content:flex-end;
  flex:0 0 auto;
  opacity:.78;
}

.volcano-signal-chart-inline svg{
  display:block;
}

.volcano-signal-right{
  white-space:nowrap;
  text-align:right;
  flex:0 0 auto;
}

@media (max-width:900px){
  .volcano-signal-row{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .volcano-signal-right{
    text-align:left;
  }

  .volcano-signal-chart-inline{
    justify-content:flex-start;
  }
}

.pilot-reco{
  margin-top:10px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(17,24,39,0.04);
  border:1px solid rgba(17,24,39,0.10);
  font-size:12px;
  line-height:16px;
  font-weight:600;
  overflow-wrap:anywhere;
}

[data-tech-arrow],
[data-pilot-arrow]{
  white-space:nowrap;
  flex:0 0 auto;
  font-size:22px;
  line-height:1;
  opacity:.82;
}

.pilot-toggle-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-width:0;
}

.pilot-toggle-left{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1 1 auto;
}

.pilot-toggle-title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:800;
}

.pilot-toggle-right{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  white-space:nowrap;
  min-width:0;
}

.pilot-badge{
  display:none !important;
}

.pilot-mini-score,
[data-visual="score-mini"]{
  font-size:12px;
  font-weight:900;
  white-space:nowrap !important;
  line-height:1;
  display:inline-flex;
  align-items:baseline;
  gap:1px;
}

[data-visual="score"],
[data-visual="score-mini"]{
  white-space:nowrap !important;
}

.pilot-bar-mini{
  width:64px;
  height:6px;
  border-radius:999px;
  background:rgba(0,0,0,0.10);
  overflow:hidden;
}

.pilot-bar-mini > span{
  display:block;
  height:100%;
  width:0%;
  border-radius:999px;
  background:rgba(0,0,0,0.35);
  transition:width .25s;
}

.pilot-panel.open{ display:block; }
.pilot-reco b{ font-weight:900; }

/* ===== Info tooltip ===== */
.info-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  min-width:18px;
  overflow:hidden;
  vertical-align:middle;
}

.info-btn{
  position:relative;
  width:18px;
  height:18px;
  min-width:18px;
  min-height:18px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,0.18);
  background:rgba(255,255,255,0.9);
  color:rgba(17,24,39,0.60);
  font-size:12px;
  line-height:18px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  z-index:10;
  overflow:hidden;
}

.info-btn:hover{
  color:rgba(17,24,39,0.92);
  border-color:rgba(17,24,39,0.28);
}

.info-btn::after{
  display:none !important;
}


.global-tooltip{
  position:fixed;
  left:12px;
  top:12px;
  z-index:99999;
  width:min(280px, calc(100vw - 24px));
  max-width:min(280px, calc(100vw - 24px));
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,0.98);
  border:1px solid rgba(17,24,39,0.10);
  box-shadow:0 18px 44px rgba(17,24,39,0.12);
  color:rgba(17,24,39,0.92);
  font-size:12px;
  line-height:16px;
  font-weight:600;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:opacity .12s ease, transform .12s ease, visibility .12s ease;
  overflow-wrap:break-word;
  word-break:break-word;
}

.global-tooltip.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.tech-alert{
  margin-bottom:12px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(239,68,68,0.06);
  border:1px solid rgba(239,68,68,0.14);
  box-shadow:0 8px 18px rgba(17,24,39,0.05);
}

.tech-alert-title{
  font-size:12px;
  line-height:16px;
  font-weight:900;
  color:#991b1b;
  margin-bottom:4px;
  letter-spacing:.02em;
}

.tech-alert-text{
  font-size:12px;
  line-height:16px;
  color:rgba(17,24,39,0.82);
}

.tech-alert-meta{
  margin-top:6px;
  font-size:11px;
  line-height:15px;
  color:rgba(17,24,39,0.68);
}

/* ===== Hard anti-overflow guards ===== */
.relative,
.relative.mb-8,
#volcanoTicker,
.volcano-market-bar,
.header-row,
#volcanoList,
.glass{
  max-width:100%;
}

body > *{
  max-width:100%;
}

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden !important;
}

body{
  position:relative;
}

#map,
.relative.mb-8,
.volcano-ticker-wrap,
.volcano-ticker-mask,
.max-w-\[1400px\],
.p-6,
.header-row,
.volcano-market-bar{
  max-width:100%;
  overflow-x:hidden;
}

.global-tooltip{
  max-width:min(280px, calc(100vw - 24px));
}

.map-controls{
  max-width:calc(100% - 24px);
}

.map-overlay{
  max-width:calc(100% - 32px);
}

.search-stack,
.search-box,
.search-btn,
.volcano-card,
.left-column,
.data-column,
.left-box,
.right-box{
  min-width:0;
}

/* No limitar globalmente todos los descendientes del body: eso rompe los
   marcadores/labels de Leaflet al vivir en contenedores de ancho 0. */

.leaflet-marker-pane .leaflet-marker-icon,
.leaflet-marker-pane .leaflet-marker-icon *,
.leaflet-overlay-pane,
.leaflet-overlay-pane *,
.map-marker-wrap,
.map-marker-wrap *,
.map-anchor,
.map-label,
.map-label-text,
.map-label-name,
.map-mini-traffic,
.volcano-icon{
  max-width:none !important;
  overflow:visible !important;
}

.leaflet-marker-pane,
.leaflet-overlay-pane{
  overflow:visible !important;
}

.right-box,
.left-box,
.pilot-toggle,
.tech-toggle,
.pilot-toggle-head,
.pilot-toggle-left,
.pilot-toggle-right{
  min-width:0;
}

.map-overlay,
.map-controls,
.global-tooltip{
  box-sizing:border-box;
}

.back-to-map-fab-safe{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:1800;
  width:52px;
  height:52px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(17,24,39,0.12);
  background:rgba(17,24,39,0.94);
  color:#fff;
  box-shadow:none;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(12px);
  transition:opacity .22s ease, transform .22s ease, background .22s ease, border-color .22s ease;
  max-width:none !important;
}

.back-to-map-fab-safe.show{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.back-to-map-fab-safe:hover{
  box-shadow:none;
}

.back-to-map-fab-safe:active{
  transform:translateY(1px);
}

.back-to-map-fab-safe svg,
.back-to-map-fab-safe path{
  width:22px;
  height:22px;
  display:block;
  stroke:currentColor;
  fill:none;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
  max-width:none !important;
}

/* ===== Stack compacto de información en mapa ===== */
.map-info-stack{
  position:absolute;
  left:78px;
  bottom:24px;
  width:min(440px, calc(100% - 94px));
  max-height:calc(100% - 30px);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:900 !important;
  pointer-events:none;
  overflow-y:auto;
  padding-right:4px;
}

.map-info-stack::-webkit-scrollbar{
  width:7px;
}

.map-info-stack::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,0.74);
  border-radius:999px;
}

.map-info-stack::-webkit-scrollbar-track{
  background:rgba(226,232,240,0.42);
  border-radius:999px;
}

.map-info-stack > *{
  pointer-events:auto;
}

.map-overlay,
.airspace-zone-overlay{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  width:100%;
  min-width:100%;
  margin:0;
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(17,24,39,0.10);
  box-shadow:0 16px 30px rgba(17,24,39,0.14);
  border-radius:18px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  overflow:hidden;
}

.map-overlay{
  padding:10px 12px 9px 12px;
}

.map-overlay.hidden,
.airspace-zone-overlay.hidden{
  display:none;
}

.map-overlay-close,
.airspace-zone-overlay-close{
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,0.10);
  background:rgba(255,255,255,0.9);
  cursor:pointer;
  font-size:18px;
  line-height:26px;
  color:#111827;
}

.map-overlay-head.compact{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-right:34px;
}

.map-overlay-title-wrap{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  flex:1 1 auto;
}

.map-overlay-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  width:100%;
}

.map-overlay-country{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:auto;
  height:auto;
  padding:0;
  border-radius:0;
  background:none;
  border:0;
  font-size:11px;
  font-weight:760;
  letter-spacing:.04em;
  color:rgba(17,24,39,0.72);
  text-transform:uppercase;
  white-space:nowrap;
  flex:0 0 auto;
}

.map-overlay-name{
  min-width:0;
  font-weight:700;
  font-size:15px;
  line-height:18px;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.map-overlay-type{
  min-width:0;
  font-size:11px;
  line-height:13px;
  color:rgba(17,24,39,0.56);
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.map-overlay-score.compact{
  min-width:112px;
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:6px;
  text-align:right;
  padding-right:4px;
}

.map-overlay-ves{
  font-size:22px;
  font-weight:780;
  line-height:22px;
  letter-spacing:-0.03em;
}

.map-overlay-level{
  margin-top:0;
  font-size:12px;
  line-height:13px;
  color:rgba(17,24,39,0.58);
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:800;
  white-space:nowrap;
}

.map-overlay-reco.compact{
  margin-top:4px;
  font-size:11px;
  line-height:14px;
  color:rgba(17,24,39,0.82);
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:14px;
}

.map-overlay-go.compact{
  margin-top:5px;
  width:100%;
  border-radius:12px;
  padding:7px 12px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:680;
  cursor:pointer;
  border:0;
}

.airspace-zone-overlay{
  padding:12px 12px 12px 12px;
}

.airspace-zone-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.airspace-zone-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-right:34px;
}

.airspace-zone-card-title{
  font-size:13px;
  line-height:17px;
  font-weight:700;
  color:#0f172a;
}

.airspace-zone-card-layer{
  margin-top:3px;
  font-size:11px;
  line-height:14px;
  color:rgba(15,23,42,0.62);
}

.airspace-zone-card-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:74px;
  padding:6px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  border:1px solid transparent;
  text-transform:uppercase;
}

.airspace-zone-card-badge.official{
  background:rgba(239,68,68,0.10);
  color:#b91c1c;
  border-color:rgba(239,68,68,0.18);
}

.airspace-zone-card-badge.editorial{
  background:rgba(124,58,237,0.10);
  color:#6d28d9;
  border-color:rgba(124,58,237,0.18);
}

.airspace-zone-card-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.34fr) minmax(112px, 0.90fr);
  gap:8px;
}

.airspace-zone-card-metric{
  border:1px solid rgba(15,23,42,0.08);
  background:rgba(248,250,252,0.88);
  border-radius:12px;
  padding:8px 9px;
}

.airspace-zone-card-metric b,
.airspace-zone-card-section b,
.airspace-zone-card-meta b{
  display:block;
  font-size:10px;
  line-height:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(15,23,42,0.48);
  font-weight:800;
  margin-bottom:4px;
}

.airspace-zone-card-metric span,
.airspace-zone-card-meta span,
.airspace-zone-card-section span{
  display:block;
  font-size:11px;
  line-height:14px;
  color:#0f172a;
}

.airspace-zone-card-metric.vertical span{
  white-space:nowrap;
  font-size:11px;
}

.airspace-zone-card-inline{
  display:flex;
  align-items:center;
  gap:6px;
}

.airspace-zone-card-inline b{
  display:inline;
  margin:0;
  font-size:10px;
  line-height:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(15,23,42,0.48);
  font-weight:800;
}

.airspace-zone-card-inline span{
  display:inline;
  min-width:0;
}

.airspace-zone-card-section{
  border:1px solid rgba(15,23,42,0.08);
  background:rgba(248,250,252,0.94);
  border-radius:12px;
  padding:8px 10px;
}

 .airspace-zone-card-condition{
  max-height:36px;
  overflow-y:auto;
  padding-right:6px;
}

.airspace-zone-card-condition::-webkit-scrollbar{
  width:8px;
}

.airspace-zone-card-condition::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,0.72);
  border-radius:999px;
}

.airspace-zone-card-condition::-webkit-scrollbar-track{
  background:rgba(226,232,240,0.62);
  border-radius:999px;
}

.airspace-zone-card-meta{
  display:flex;
  flex-direction:column;
  gap:1px;
}

.airspace-zone-card-meta-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:6px;
  padding:0;
  line-height:13px;
}

.airspace-zone-card-meta-row:first-child{
  margin-bottom:-1px;
}

.airspace-zone-card-meta-main{
  min-width:0;
  flex:1 1 auto;
}

.airspace-zone-card-meta-row b{
  display:inline;
  margin:0 4px 0 0;
}

.airspace-zone-card-meta-row span{
  display:inline;
  line-height:13px;
}

.airspace-zone-card-source-line{
  display:flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:4px;
  flex-wrap:wrap;
}

.airspace-zone-card-source-line > div{
  min-width:0;
}

.airspace-zone-card-link{
  display:inline;
  padding:0;
  border-radius:0;
  font-size:11px;
  line-height:13px;
  font-weight:700;
  text-decoration:underline;
  color:#0f172a;
  background:none;
  border:0;
  white-space:nowrap;
}

@media (max-width:900px){
  .airspace-legend{ display:none !important; }

  .map-info-stack{
    left:64px;
    right:14px;
    bottom:14px;
    width:auto;
    max-height:calc(100% - 24px);
    gap:8px;
    overflow-y:auto;
    padding-right:2px;
  }

  .map-info-stack::-webkit-scrollbar{
    width:6px;
  }

  .map-info-stack::-webkit-scrollbar-thumb{
    background:rgba(148,163,184,0.75);
    border-radius:999px;
  }

  .map-overlay,
  .airspace-zone-overlay{
    border-radius:16px;
  }

  .map-overlay{
    min-height:auto;
    max-height:none;
    padding:10px 12px 10px 12px;
  }

  .map-overlay-head.compact{
    gap:8px;
  }

  .map-overlay-title-wrap{
    gap:2px;
  }

  .map-overlay-title-row{
    gap:6px;
  }

  .map-overlay-country{
    min-width:auto;
    height:auto;
    padding:0;
    font-size:10px;
  }

  .map-overlay-name{
    font-size:14px;
    line-height:16px;
  }

  .map-overlay-score.compact{
    min-width:104px;
    gap:5px;
    padding-right:5px;
  }

  .map-overlay-ves{
    font-size:20px;
    line-height:20px;
  }

  .map-overlay-level{
    font-size:11px;
    line-height:12px;
  }

  .map-overlay-reco.compact{
    margin-top:4px;
    font-size:11px;
    line-height:13px;
    min-height:13px;
  }

  .map-overlay-go.compact{
    margin-top:5px;
    font-size:11px;
    padding:7px 10px;
  }

  .airspace-zone-overlay{
    padding:10px 12px;
  }

  .airspace-zone-card{
    gap:8px;
  }

  .airspace-zone-card-grid{
    grid-template-columns:minmax(0, 1.42fr) minmax(92px, 0.74fr);
    gap:7px;
  }

  .airspace-zone-card-metric,
  .airspace-zone-card-section{
    padding:8px 9px;
  }

  .airspace-zone-card-title{
    font-size:12px;
    line-height:16px;
  }

  .airspace-zone-card-layer,
  .airspace-zone-card-metric span,
  .airspace-zone-card-meta span,
  .airspace-zone-card-section span{
    font-size:11px;
    line-height:14px;
  }

  .airspace-zone-card-condition{
    max-height:32px;
  }

  .airspace-zone-card-source-line{
    flex-direction:row;
    align-items:baseline;
    justify-content:flex-start;
    gap:4px;
  }
}

