/* css/landscape-critical.css
   Modo landscape + táctil. Se aplica cuando <html> tiene .landscape-touch.
   Cargar en <head> con <link>, NO como <script>.
*/
html.landscape-touch #app {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  transform: none !important;
  padding-top: calc(40px + env(safe-area-inset-top, 0px)) !important;
  padding-left: calc(60px + env(safe-area-inset-left, 0px)) !important;
  padding-right: env(safe-area-inset-right, 0px) !important;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}
html.landscape-touch .navbar.fixed-top {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  height: calc(40px + env(safe-area-inset-top, 0px)) !important;
  min-height: calc(40px + env(safe-area-inset-top, 0px)) !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
}
html.landscape-touch #bottom-nav.fixed-bottom {
  top: auto !important;
  bottom: env(safe-area-inset-bottom, 0px) !important;
  left: env(safe-area-inset-left, 0px) !important;
  right: auto !important;
  width: 60px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 4px 0 !important;
  flex-direction: column !important;
  border-top: none !important;
  border-right: 1px solid rgba(0,0,0,0.1) !important;
  transform: none !important;
}
html.landscape-touch #bottom-nav .container-fluid {
  flex-direction: column !important;
  height: 100% !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 0 !important;
}
html.landscape-touch #bottom-nav .nav-btn {
  width: 100% !important;
  min-height: 38px !important;
  font-size: 0.95rem !important;
  padding: 2px 0 !important;
  flex: 0 0 auto !important;
  line-height: 1 !important;
}
html.landscape-touch #bottom-nav .nav-btn .small {
  font-size: 0.48rem !important;
}
html.landscape-touch #main-content {
  padding: 6px 8px !important;
}
html.landscape-touch #map {
  height: calc(100vh - 40px - 18px) !important;
}
html.landscape-touch #attribution-bar {
  position: fixed !important;
  bottom: env(safe-area-inset-bottom, 0px) !important;
  left: calc(60px + env(safe-area-inset-left, 0px)) !important;
  right: env(safe-area-inset-right, 0px) !important;
  width: auto !important;
  transform: none !important;
  z-index: 1028 !important;
}
@supports (height: 100dvh) {
  html.landscape-touch #map {
    height: calc(100dvh - 40px - 18px) !important;
  }
}