/* Samostatné rozloženie pre tablety v portréte aj landscape. */
@media (min-width:641px) and (max-width:1100px),
       (min-width:1101px) and (max-width:1366px) and (pointer:coarse){
  .source-credit{top:2px!important}

  .place-search{
    top:18px!important;
    left:230px!important;
    right:84px!important;
    width:auto!important;
    max-width:none!important;
    transform:none!important;
  }
  .place-search form{height:50px!important;box-sizing:border-box}
  body:has(.leaflet-control-layers-expanded) .place-search{visibility:hidden!important}

  .leaflet-top.leaflet-right{
    top:18px!important;
    right:12px!important;
  }
  .leaflet-control-layers{margin:0!important}
  .leaflet-control-layers-expanded{
    width:min(290px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
    max-height:min(66dvh,520px)!important;
  }

  .weather-control{
    position:fixed!important;
    top:96px!important;
    right:12px!important;
    left:auto!important;
    bottom:auto!important;
    margin:0!important;
  }
  .weather-button{width:48px!important;padding:0!important}
  .weather-button span{display:none!important}
  body:has(.leaflet-control-layers-expanded) .weather-control{visibility:hidden!important}
  .weather-panel{
    position:fixed!important;
    top:156px!important;
    right:12px!important;
    bottom:auto!important;
    left:auto!important;
    width:min(330px,calc(100vw - 24px))!important;
    max-height:min(52dvh,430px)!important;
  }

  .desktop-locate{display:none!important}
  .leaflet-bottom.leaflet-left{
    left:50%!important;
    right:auto!important;
    bottom:max(16px,env(safe-area-inset-bottom,0px))!important;
    transform:translateX(-50%)!important;
  }
  .leaflet-bottom.leaflet-left .locate-control{margin:0!important}
  .leaflet-bottom.leaflet-left .locate-button{min-width:190px!important;height:44px!important;justify-content:center!important}
  .leaflet-bottom.leaflet-right{right:12px!important;bottom:max(16px,env(safe-area-inset-bottom,0px))!important}
}

@media (min-width:641px) and (max-width:1100px) and (orientation:landscape),
       (min-width:1101px) and (max-width:1366px) and (pointer:coarse) and (orientation:landscape){
  .weather-panel{max-height:min(58dvh,320px)!important}
  .leaflet-control-layers-expanded{max-height:min(72dvh,390px)!important}
}
