
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
  }

  /* ====== MAP ====== */
  #map {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100%;
    width: 100%;
    z-index: 1; /* pastikan peta di bawah elemen lain */
  }
  /* ====== TOMBOL DI KANAN BAWAH ====== */
  .btn {
    position: fixed;
    right: 20px;
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    z-index: 9999; /* di atas peta */
  }

  #btn-my-location {
    bottom: 130px;
    background-color: #ffffff;
  }

  #btn-use-location {
    bottom: 40px;
    right: 20px;
    background: #0069d9;
    color: #fff;
    font-size: 25px;
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
  }

  /* ====== POPUP FORM ====== */
  #popupForm {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* paling atas */
  }

  #popupForm form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  }

  #popupForm input, #popupForm select, #popupForm button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  #popupForm button[type="button"] {
    background: #dc3545;
    color: white;
  }

  #popupForm button[type="submit"] {
    background: #007bff;
    color: white;
  }

  /* Jika ada CSS Leaflet yang menimpa layer */
  .leaflet-container {
    z-index: 0 !important;
  }

  .leaflet-control {
    z-index: 400; /* biarkan tombol zoom tetap di atas layer peta */
  }

  .leaflet-control-layers {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none !important;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    padding: 8px 10px;
    transition: all 0.3s ease;
  }
  
  .leaflet-control-layers:hover {
    background: rgba(255, 255, 255, 0.95) !important;
  }
  
  .leaflet-control-layers label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    cursor: pointer;
  }
  
  .leaflet-control-layers label span {
    font-weight: 500;
  }
  
  .leaflet-control-layers input {
    accent-color: #007bff;
  }
  
  .map-target-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .target-icon {
    width: 26px;
    height: 26px;
    pointer-events: none;
  }

  .map-target-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
  }

  .map-target-btn:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.7);
  }

/* map-mode bar: pindah ke kiri bawah */
.map-mode-bar {
  position: fixed !important;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 8px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

/* mode-item tetap sama */
.mode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 40px;
}

/* responsive untuk HP */
@media (max-width: 420px) {
  .map-mode-bar {
    left: 10px;
    bottom: 12px;
  }
  .mode-item {
    min-width: 56px;
    padding: 6px 8px;
  }
}

  .mode-item:hover {
    background: rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
  }
  
  .mode-item.active {
    background: linear-gradient(180deg, #e0e0e0, #cfcfcf);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .mode-item .icon {
    font-size: 15px;
  }
  
  .mode-item .label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
  }
 /* ====== SEARCH BOX ====== */
#searchBox {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 450px;
  padding: 10px 15px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: all 0.3s ease;
}

/* Responsif untuk ukuran layar kecil */
@media (max-width: 768px) {
  #searchBox {
    width: 88%;
    font-size: 14px;
    padding: 9px 12px;
  }
}

@media (max-width: 480px) {
  #searchBox {
    width: 90%;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
  }
}


/* Tombol bulat mengambang */
.map-fab {
  position: fixed;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.map-fab:hover {
  transform: scale(1.05);
}

.map-fab:active {
  transform: scale(0.92);
  background: #f0f0f0;
}

/* Urutan tombol */
#btn-my-location {
  bottom: 90px;
}

#btn-use-location {
  bottom: 30px;
}

/* Ikon di tombol */
.icon {
  width: 26px;
  height: 26px;
  pointer-events: none;
}
/* Hilangkan efek kedip biru (focus/active) di tombol mobile */
button:focus,
button:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Untuk elemen di HP yang masih nyala highlight-nya */
* {
  -webkit-tap-highlight-color: transparent;
}