/* ======= PETA ======= */
#map {
  position: relative;
  height: 400px;
}
.legend {
  line-height: 1.8;
  color: #555;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 5px;
}
.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  border: 1px solid #777;
}

.marker-wrapper i {
  font-size: 30px;
  color: #198754;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ======= PENCARIAN PETA ======= */
.search-container {
  position: absolute;
  top: 11px;
  left: 50px;
  z-index: 1000;
}
#search-input {
  width: 400px;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
#search-results {
  background-color: white;
  border-radius: 5px;
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.search-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.search-item:last-child {
  border-bottom: none;
}
.search-item:hover {
  background-color: #f0f0f0;
}

/* Warna pin berdasarkan tipe desa */
.marker-wrapper i {
  font-size: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Reguler = bootstrap success (#198754) */
.marker-success i {
  color: #198754;
}

/* Tematik = bootstrap warning (#ffc107) */
.marker-warning i {
  color: #ffc107;
}

@media (width <= 576px) {
  #search-input,
  #search-results {
    width: 180px;
  }

  .map-wrapper {
    padding: 0 1.5rem;
  }
}
