:root {
  --strip-width: 120px;
  --strip-width-collapsed: 60px;
  --panel-width: 300px;
  --strip-bg: #f2f2f2;
  --panel-bg: #fff;
  --border-color: #ccc;
  --shadow: 2px 0 6px rgba(0,0,0,0.2);
  --button-bg: #eee;
  --transition: 0.3s ease;
}

/* --- Left Strip --- */
#leftStrip {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--strip-width);
  height: 100%;
  background: var(--strip-bg);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: width var(--transition);
}

#leftStrip.collapsed {
  width: var(--strip-width-collapsed);
}

#leftStrip button {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  background: var(--button-bg);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#leftStrip button img {
  width: 22px;
  height: 22px;
}

/* --- Panels --- */
#infoPanel,
#layers-panel {
  position: absolute;
  top: 0;
  left: var(--strip-width);
  width: var(--panel-width);
  height: 100%;
  background: var(--panel-bg);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform var(--transition), left var(--transition);
  z-index: 999;
  display: flex;
  flex-direction: column;
}

#leftStrip.collapsed ~ #infoPanel,
#leftStrip.collapsed ~ #layers-panel {
  left: var(--strip-width-collapsed);
}

#infoPanel.open,
#layers-panel.open {
  transform: translateX(0);
}

/* --- Panel Headers --- */
#infoHeader,
#layersHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

#infoHeader h2,
#layersHeader h2 {
  margin: 0;
  font-size: 18px;
}

#infoHeader button,
#layersHeader button {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
}

/* --- Info Content --- */
#infoContent {
  padding: 15px;
  overflow-y: auto;
  line-height: 1.6;
}

#infoContent img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
  border-radius: 4px;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.details-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.details-table td:first-child {
  font-weight: bold;
  color: #444;
  width: 40%;
}

.details-table a {
  color: #0078d4;
  text-decoration: none;
}

/* --- Layers List --- */
#layer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#layer-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  border-bottom: 1px solid var(--border-color);
}

#layer-list label {
  flex: 1;
  cursor: pointer;
}

/* --- Map Positioning --- */
#map {
  position: absolute;
  top: 0;
  left: var(--strip-width);
  width: calc(100% - var(--strip-width));
  height: 100%;
  transition: left var(--transition), width var(--transition);
}

#map.collapsed {
  left: var(--strip-width-collapsed);
  width: calc(100% - var(--strip-width-collapsed));
}

#map.shifted {
  left: calc(var(--strip-width) + var(--panel-width));
  width: calc(100% - var(--strip-width) - var(--panel-width));
}

#map.collapsed.shifted {
  left: calc(var(--strip-width-collapsed) + var(--panel-width));
  width: calc(100% - var(--strip-width-collapsed) - var(--panel-width));
}