body {
  background: var(--body-bg);
}

.container {
  padding: 30px;
}

.toggle-theme {
  padding: 6px 12px;
}

hr {
  margin: 15px 0 20px;
}

.map-layout {
  display: flex;
  flex-direction: row;
  height: 75vh;
  gap: 20px;
}

#sidebar {
  width: 320px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--shadow-color);
  overflow-y: auto;
  padding: 15px;
}

#sidebar h2 {
  text-align: center;
  margin: 5px 0 15px;
}

#confList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conf-item {
  padding: 10px;
  border-left: 6px solid var(--accent-5);
  border-radius: 8px;
  background: var(--card-bg);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conf-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.conf-item.active {
  border-left-color: var(--accent-3);
  background: rgba(133, 153, 0, 0.12);
}

.conf-details {
  display: none;
  margin-top: 8px;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  color: var(--text-color);
}

.conf-item.active .conf-details {
  display: block;
}

.conf-details img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.conf-details p {
  margin: 8px 0 0 0;
  padding: 0 4px 8px 0;
}

#map {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.leaflet-container {
  height: 100%;
  width: 100%;
}

@media (max-width: 900px) {
  .map-layout {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    height: 40vh;
    order: 2;
  }

  #map {
    order: 1;
    height: 60vh;
  }
}
