@import url('https://fonts.googleapis.com/css2?family=Nosifer&display=swap');

/* =========================
   THEME VARIABLES
========================= */
:root{
  --bg: #0e0e10;
  --panel: #121216;
  --panel2: #0b0b0d;
  --text: #f2f2f2;
  --muted: rgba(242,242,242,0.70);

  --red: #ff0000;
  --red2: #880000;

  --border: rgba(255,255,255,0.10);
  --shadow: 0 18px 55px rgba(0,0,0,0.55);

  --radius: 18px;
}

/* =========================
   GLOBAL RESET
========================= */
* { box-sizing: border-box; }

/* =========================
   BASE TYPOGRAPHY
   (Comfortaa everywhere)
========================= */
html, body{
  margin:0;
  padding:0;
  height:100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Comfortaa', sans-serif;
}

/* =========================
   HEADER
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.70));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Gothic display font ONLY here */
.title-wrap h1{
  margin: 0;
  font-family: 'Nosifer', cursive;
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 2px 2px 10px var(--red2);
  letter-spacing: 0.01em;
}

.subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 640px;
}

/* =========================
   HEADER ACTIONS
========================= */
.header-actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

.pill{
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Comfortaa', sans-serif;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pill:hover{
  transform: translateY(-1px);
  border-color: rgba(255,0,0,0.30);
  background: rgba(255,0,0,0.08);
}

.pill.ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.14);
}

/* =========================
   MAIN LAYOUT
========================= */
.site-main{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px 90px;
}

.map-card{
  background:
    radial-gradient(circle at top left, rgba(255,0,0,0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(136,0,0,0.12), transparent 55%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#map{
  width: 100%;
  height: calc(100vh - 170px);
  min-height: 520px;
}

/* =========================
   LEAFLET POLISH
========================= */
.leaflet-control-zoom a{
  background: rgba(0,0,0,0.70);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.leaflet-control-zoom a:hover{
  background: rgba(255,0,0,0.10);
}

.leaflet-popup-content-wrapper{
  background: rgba(0,0,0,0.92);
  border: 1px solid rgba(255,0,0,0.25);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.65);
}

.leaflet-popup-tip{
  background: rgba(0,0,0,0.92);
}

.leaflet-popup-content{
  margin: 12px 14px;
  color: #fff;
  font-family: 'Comfortaa', sans-serif;
}

.popup-title{
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px 0;
}

.popup-meta{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.popup-chip{
  display:inline-block;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,0,0,0.10);
  border: 1px solid rgba(255,0,0,0.25);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* =========================
   CLUSTER POLISH
========================= */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large{
  background-color: rgba(255,0,0,0.18);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div{
  background-color: rgba(0,0,0,0.80);
  color: #fff;
  border: 1px solid rgba(255,0,0,0.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

/* =========================
   BOTTOM BANNER
========================= */
.bottom-banner{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
}

.bottom-banner-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 12px 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.bb-left{
  display:flex;
  align-items:center;
  gap: 12px;
}

.bb-badge{
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,0,0,0.10);
  border: 1px solid rgba(255,0,0,0.25);
}

.bb-title{
  font-weight: 700;
  font-size: 0.95rem;
}

.bb-subtitle{
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.70);
}

.bb-button{
  display:inline-block;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  font-family: 'Comfortaa', sans-serif;
}

.bb-close{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* =========================
   FOOTER
========================= */
.site-footer{
  border-top: 1px solid var(--border);
  background: var(--panel2);
  padding: 26px 16px;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

/* Gothic allowed again for footer heading */
.site-footer h3{
  margin: 0 0 10px 0;
  font-family: 'Nosifer', cursive;
  text-shadow: 2px 2px 10px var(--red2);
  color: #fff;
  font-size: 1.4rem;
}

.site-footer p{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Comfortaa', sans-serif;
}

.site-footer a{
  color: #ff4d4d;
  text-decoration: underline;
  font-weight: 700;
  font-family: 'Comfortaa', sans-serif;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 780px){
  .footer-inner{
    grid-template-columns: 1fr;
  }

  #map{
    height: calc(100vh - 190px);
    min-height: 460px;
  }

  .bb-subtitle{
    display:none;
  }
}
