/* -----------------------
   FULL PAGE
------------------------ */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#title {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 500;   /* instead of 300 */

    text-align: center;
    pointer-events: none;
    color: #1a0078;
    font-family: "Terminal Grotesque", Arial, sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1;
}

#subtitle{
    position:absolute;

    left:20px;
    bottom:20px;

    width:420px;

    font-family:"Arial Narrow", Arial, sans-serif;
    font-size:15px;
    line-height:1.4;

    color:#1a0078;

    z-index:500;

    pointer-events:none;
}
/* -----------------------
   MAP
------------------------ */
#map {
  height: 100vh;
  width: 100%;
}

/* -----------------------
   POPUPS (UNCHANGED)
------------------------ */
.leaflet-popup-content {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.popup h3 {
  margin: 0 0 6px 0;
}

.popup .desc {
  white-space: pre-line;
}

.popup .area {
  margin-top: 8px;
}

/* -----------------------
   🔥 CRITICAL CIRCLE FIX
------------------------ */

/* prevents SVG distortion */
.leaflet-overlay-pane svg {
  transform: translateZ(0);
}

/* prevents stroke scaling weirdness */
.leaflet-interactive {
  vector-effect: non-scaling-stroke;
}

/* improves curve rendering */
.leaflet-overlay-pane path {
  shape-rendering: geometricPrecision;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* =========================
   FORCE FONT RESTORE (FIX)
========================= */


/* Popup text */
.leaflet-popup-content {
  font-family: "Arial Narrow", Arial, sans-serif !important;
}

/* Ensure Leaflet doesn't override styling */
.leaflet-popup-content-wrapper {
  font-family: "Arial Narrow", Arial, sans-serif !important;
}
@font-face {
  font-family: "Terminal Grotesque";
  src: url("terminal-grotesque.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.leaflet-popup-pane {
  z-index: 1000 !important;
}
#title{
    z-index:500;
}

#subtitle{
    z-index:500;
}