body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

.panel {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 300px;
  z-index: 10;
}

h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #333;
}

p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

button {
  background-color: #0078d4;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-bottom: 10px;
  transition: background-color 0.2s;
}

button:hover:not(:disabled) {
  background-color: #005a9e;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #e1dfdd;
  color: #333;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #c8c6c4;
}

.hidden {
  display: none !important;
}

#loading {
  font-size: 0.9rem;
  color: #0078d4;
  margin-top: 10px;
  font-weight: bold;
}

#viewport-loading {
  font-size: 0.85rem;
  color: #0078d4;
  margin-top: 8px;
  font-weight: 600;
}

.error-msg {
  color: #d13438;
  font-size: 0.85rem;
  margin-top: 10px;
  padding: 10px;
  background-color: #fde7e9;
  border-radius: 4px;
}

#results {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

#results h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.result-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* Search control mengganti © CARTO, © OpenStreetMap contributors dengan POWERTEL */
#search-container {
  position: relative;
  margin-bottom: 12px;
}

#search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

#search-input:focus {
  border-color: #0078d4;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#search-results .search-result-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid #eee;
}

#search-results .search-result-item:hover {
  background-color: #f0f0f0;
}

#search-results .search-result-item:last-child {
  border-bottom: none;
}

#search-results:empty {
  display: none;
}

/* Custom attribution mengganti © CARTO, © OpenStreetMap contributors */
.custom-attribution {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  color: #333;
  z-index: 10;
  pointer-events: none;
}

.color-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 10px;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}
