/* ===== Layout asas ===== */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: system-ui, sans-serif;
}

/* --- Header --- */
header {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 12px 8px;
}
header h1 {
  margin: 0;
  font-size: 1.25rem;
}

/* --- Peta ambil ruang tengah --- */
main {
  flex: 1;                 /* isi ruang baki */
}
#map {
  height: 100%;            /* penuh dalam main */
}

/* --- Footer --- */
footer {
  background: #f5f5f5;
  text-align: center;
  padding: 10px 6px;
  font-size: 0.9rem;
  color: #555;
}

/* ——— Pulsing red dot ——— */
.pulse {
  width: 20px;
  height: 20px;
  position: relative;
  border-radius: 50%;
  transform: translate(-50%, -50%);   /* pusat pada koordinat */
  pointer-events: none;               /* tak ganggu klik peta */
}

.pulse::before {                      /* titik statik */
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,0,0,0.9);
  border-radius: 50%;
}

.pulse::after {                       /* gelombang kelip */
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,0,0,0.8);
  border-radius: 50%;
  animation: pulse 1.4s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.4); opacity: 1; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.4); opacity: 0; }
}

/* ===== RESPONSIF: skrin ≤ 600px ===== */
@media (max-width: 600px) {
  header {
    padding: 16px 8px 8px;
  }

  header .logo {
    width: 140px;          /* logo lebih kecil */
  }

  header h1 {
    font-size: 1rem;       /* tajuk kecil sikit */
  }

  /* Tooltip Leaflet kadang besar – kecikkan fon */
  .leaflet-tooltip {
    font-size: 0.75rem;
    padding: 2px 4px;
  }

  footer {
    font-size: 0.8rem;
    padding: 8px 4px;
  }
}

