/* --- public/home/home.css --- */

/* Override container DashLite untuk full page map */
.nk-content,
.nk-content-body,
.container-xl,
.wide-xl {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Buat peta full page */
#cesiumContainer {
  height: 100vh !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
}

/* Opsional: Sembunyikan atau atur ulang elemen lain (seperti geocoder atau panel) jika perlu */
.geocoder-container,
#listGedungPanel {
  margin: 0;
  padding: 0;
}

/* Hide default Cesium UI elements */
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-bottom,
.cesium-viewer-fullscreenContainer {
  display: none !important;
}

/* Styling untuk Info Box Bawaan Cesium */
.cesium-infoBox {
  background: rgba(0, 0, 0, 0.8); /* Latar belakang semi-transparan */
  color: #fff; /* Warna teks putih */
  border-radius: 8px; /* Sudut membulat */
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1200;
}

/* Styling untuk tabel di dalam info box bawaan Cesium */
.cesium-infoBox table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}

.cesium-infoBox table tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.6); /* Warna latar belakang untuk baris ganjil */
}

.cesium-infoBox table tr:nth-child(even) {
  background-color: rgba(58, 58, 58, 0.8); /* Warna latar belakang untuk baris genap */
}

.cesium-infoBox table td,
.cesium-infoBox table th {
  padding: 10px;
  color: #fff;
  text-align: left;
}

/* Border radius untuk sudut tabel */
.cesium-infoBox table tr:first-child td:first-child {
  border-top-left-radius: 8px;
}
.cesium-infoBox table tr:first-child td:last-child {
  border-top-right-radius: 8px;
}
.cesium-infoBox table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
.cesium-infoBox table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

/* Sliding Panel untuk List Gedung */
#listGedungPanel {
  position: fixed;
  top: 60px; /* Sesuaikan dengan tinggi header DashLite */
  left: -300px; /* Tersembunyi di luar layar */
  width: 300px;
  height: calc(100vh - 60px);
  background: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  z-index: 1700;
  transition: left 0.3s ease;
  overflow-y: auto;
}

#listGedungPanel.open {
  left: 0;
}

#listGedungPanel .panel-header {
  background: #333;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#listGedungPanel .panel-header .close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

#listGedungPanel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#listGedungPanel ul li a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

#listGedungPanel ul li a:hover {
  background: #f0f0f0;
}

/* Geocoder Container Overrides */
.geocoder-container {
  position: relative;
  height: 40px;
  min-width: 200px;
  margin-right: 10px;
}

.geocoder-container .cesium-geocoder {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 14px;
}

.geocoder-container .cesium-geocoder-results {
  position: absolute !important;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1600;
}