.explorer-page {
  height: calc(100vh - 140px);
  overflow: hidden;
}

.explorer-container {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.sidebar {
  width: 330px;
  background: #274b9c;
  color: white;
  padding: 30px;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
}

.section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 6px;
}

.feature-list,
.feature-list li {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  color: black;
  border-left: 4px solid #274b9c;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.feature-list li:hover {
  background: #274b9c;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.map-container {
  flex: 1;
  background: #274b9c;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.view-panel {
  flex: 1;
  width: 100%;
  display: none;
  overflow: hidden;
  padding-top: 80px;
}

.active-view {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header-bar {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  z-index: 3000;
}

.center-toggle {
  padding: 8px 20px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.universal-search {
  width: 280px;
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.universal-search input {
  width: 100%;
  border: 1.5px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  font-size: 15px;
}

#table-search {
  display: none;
}

.switch {
  width: 50px;
  height: 24px;
  position: relative;
}

.switch input {
  display: none;
}

.slider {
  background: #ccc;
  border-radius: 30px;
  position: absolute;
  inset: 0;
  transition: 0.3s;
  cursor: pointer;
}

.slider:before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: #274b9c;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

#map {
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  margin: 0 20px;
  border-radius: 8px;
  overflow: hidden;
}

.table-wrapper {
  flex: 1;
  background: white;
  border-radius: 8px;
  margin: 0 20px;
  overflow-y: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #274b9c;
  color: white;
  padding: 12px 10px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.status-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2000;
}

.favorite-heart {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.favorite-heart .heart-icon {
  font-size: 16px;
  color: #ccc;
}

.favorite-heart .heart-icon.favorited {
  color: #ff4757;
}

.favorite-heart:hover .heart-icon {
  color: #ff4757;
}

.table-wrapper {
  flex: 1;
  background: white;
  border-radius: 8px;
  margin: 0 20px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  overflow-x: auto;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(143, 139, 162);
  color: black;
  text-align: left;
  padding: 12px 15px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 200px;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
  min-width: 120px;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  min-width: 150px;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
  min-width: 150px;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
  min-width: 120px;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
  min-width: 100px;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
  min-width: 90px;
  font-family: monospace;
}

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
  min-width: 50px;
  text-align: center;
}

.favorite-table-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #ccc;
  padding: 5px 8px;
  transition: color 0.2s;
  border-radius: 4px;
}

.favorite-table-btn:hover,
.favorite-table-btn.favorited {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

@media (max-width: 900px) {
  .sidebar {
    width: 260px;
  }
}

@media (max-width: 768px) {
  .explorer-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 20px;
  }

  .header-bar {
    position: static;
    padding: 10px 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  #map {
    width: 100%;
    height: 400px;
    margin: 0;
  }

  .table-wrapper {
    max-height: 400px;
    margin: 0;
  }

  .status-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .universal-search {
    width: 100%;
  }

  .center-toggle {
    transform: scale(0.9);
    margin: auto;
  }

  .feature-list li {
    font-size: 14px;
  }
}
