/* ========== GLOBAL STYLES ========== */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #f5f5f5;
}

/* ========== MAIN LAYOUT ========== */
#main-container {
  display: flex;
  flex: 1;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

#left-content {
  width: 50%;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leaflet-tooltip.sector-label {
  background: transparent;
  border: none;
  font-weight: bold;
  color: #000;
  text-shadow: 1px 1px 2px #fff;
  font-size: 14px;
}

#map {
  width: 50%;
  height: 100%;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  #main-container {
    flex-direction: column;
  }

  #left-content,
  #map {
    width: 100%;
    height: 50%;
  }
}

/* ========== SEARCH STYLING ========== */
#search-container {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.auto-text {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* ========== BUTTON STYLES ========== */
.ds-button {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  background-color: #0078D4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

.ds-button:hover {
  background-color: #005ea2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.ds-button:active {
  background-color: #004a85;
}

/* ========== SUGGESTIONS DROPDOWN ========== */
ul.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: none;
}

ul.suggestions li {
  padding: 10px;
  cursor: pointer;
}

ul.suggestions li:hover {
  background-color: #f0f0f0;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@media (max-width: 500px) {
  .modal-content {
    padding: 16px;
  }
}

.hidden {
  display: none;
}

.close {
  float: right;
  font-size: 20px;
  cursor: pointer;
}

/* ========== SELECT DROPDOWN ========== */
select#address-dropdown {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ========== TAB COMPONENT ========== */
.tab-wrapper {
  font-family: sans-serif;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: #005ea2;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 5px;
  color: #fff;
}

.tab-btn.active {
  background: #003e75;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========== SPINNER ========== */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  position: relative;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.label {
  margin-top: 10px;
  font-size: 16px;
  color: #444;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


#mapdata {
	display: none;
}