body {
  margin: 0;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  background: #0d1a2b;
  color: #fff;
}

/* ================================
   LAYOUT REAL DE DOS COLUMNAS
================================ */

#layout {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
}

/* ================================
   PANEL IZQUIERDO REAL (420px)
================================ */

#sidePanel {
  width: 420px;
  min-width: 420px;
  max-width: 420px;
  height: 100vh;

  background: rgba(20,20,30,0.92);
  backdrop-filter: blur(16px);

  display: flex;
  flex-direction: column;

  overflow-y: auto;
  padding: 20px;

  box-shadow: 4px 0 22px rgba(0,0,0,.35);
  transition: width 0.35s ease, min-width 0.35s ease;

  position: relative;
}

#sidePanel.collapsed {
  width: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

/* ================================
   LOGO ESQUINA SUPERIOR IZQUIERDA
================================ */

#furiaLogo {
  width: 88px;
  margin-bottom: 20px;
}

/* ================================
   BOTÓN COLAPSAR EN PARTE INFERIOR
================================ */

.collapseBottomBtn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;

  cursor: pointer;
  color: white;
  margin-top: auto;
  align-self: center;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 15px;

  transition: background 0.2s;
}

.collapseBottomBtn:hover {
  background: rgba(255,255,255,0.32);
}

/* ================================
   BOTÓN FLOTANTE PARA EXPANDIR
================================ */

.floatingExpandBtn {
  position: absolute;
  left: 10px;
  top: 20px;
  z-index: 20;
  display: none;

  background: rgba(20,20,30,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  color: white;

  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.floatingExpandBtn.visible {
  display: block;
}

/* ================================
   MAPA
================================ */

#mapContainer {
  flex: 1;
  height: 100vh;
}

#cesiumContainer {
  width: 100%;
  height: 100%;
}

/* ================================
   CONTENIDO PANEL
================================ */

.glass-subpanel {
  background: rgba(15,20,40,0.6);
  padding: 12px;
  border-radius: 14px;
  margin-top: 12px;
}

#panoWrap {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
}

#elevationProfile {
  margin-top: 14px;
  background: rgba(20,30,48,.6);
  padding: 16px;
  border-radius: 14px;
}

.glass-button {
  background: linear-gradient(135deg,#00b09b,#96c93d);
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  color: #000;
  margin-top: 8px;
}

.glass-button.sm {
  padding: 6px 10px;
  border-radius: 12px;
}

/* ================================
   MÓVIL
================================ */

@media (max-width: 900px) {

  #layout {
    flex-direction: column;
  }

  #sidePanel {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 50vh;
  }

  #sidePanel.collapsed {
    height: 0;
    min-height: 0;
    padding: 0;
  }

  .floatingExpandBtn {
    left: 50%;
    transform: translateX(-50%);
  }

  #mapContainer {
    height: calc(100vh - 50px);
  }
}
