/* ===============================
   LAYOUT STYLES – CONTROLS + MAP
   =============================== */

html, body {
  height: 100%;
  margin: 0;
}

/* App-level background and stacking */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

/* ====== Core page layout ======
   Mobile-first: top controls then map
*/
.layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.panel.panel--top {
  width: 100%;
  position: static;
  z-index: var(--z-controls);
}

/* ====== Map area ====== */
main {
  flex: 1;
  padding: 0;               /* let inner map column manage spacing */
  background: #ffffff;
  border-left: none;
}

#map-area {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 0;
}

/* Map column structure */
.map {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Status wrapper positioning only */
#status-wrapper {
  position: sticky;
  top: 0;
  min-height: var(--status-height);
  z-index: var(--z-status);
}
