/* Layout fixes for ParrotPlanner */

/* Ensure the footer always stays at the bottom */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > * {
  flex-shrink: 0;
}

body > main,
body > div.flex-grow,
body > .flex-col > main,
body > .flex-col > div.flex-grow {
  flex: 1 0 auto;
}

footer {
  margin-top: auto !important;
}

/* Fixed heights for ItineraryMaker container and map */
.itinerary-maker-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

/* Set explicit minimum heights for map */
#map-pane {
  height: 600px !important;
}

#map {
  height: 100% !important;
  width: 100% !important;
}

/* Desktop layout */
@media (min-width: 1024px) {
  .itinerary-maker-container {
    flex-direction: row !important;
  }
  
  #map-pane, 
  #itinerary-pane {
    height: 800px !important;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  #map-pane {
    height: 500px !important;
  }
}

/* Specific fix for single-itinerary pages */
body.single-itinerary {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.single-itinerary footer {
  margin-top: auto !important;
  position: relative;
  z-index: 50;
} 