/* OFQD V241.165 — Carte mobile ultra-compacte.
   Objectif : rendre beaucoup plus de carte visible sans supprimer aucun filtre.
   Aucun impact PC. */
@media (max-width:760px){
  .ofqd-map-premium-v266{
    padding-top:4px!important;
  }

  /* Titre : utile mais nettement moins haut. */
  .ofqd-map-premium-v266 .ofqd-map-page-head{
    margin:0 8px 5px!important;
    padding:9px 12px!important;
    min-height:44px!important;
    border-radius:14px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-page-head h1{
    font-size:23px!important;
    line-height:1!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-page-head::after,
  .ofqd-map-premium-v266 .ofqd-map-page-head::before{display:none!important}

  .ofqd-map-premium-v266 .ofqd-map-shell{
    border-radius:14px 14px 0 0!important;
  }

  /* Recherche compacte. */
  .ofqd-map-premium-v266 .ofqd-map-topbar{
    padding:5px 8px!important;
    gap:4px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-search-zone,
  .ofqd-map-premium-v266 .ofqd-map-territory-zone{gap:4px!important}
  .ofqd-map-premium-v266 .ofqd-map-search-wrap{
    height:40px!important;
    min-height:40px!important;
    border-radius:12px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-search-wrap input,
  .ofqd-map-premium-v266 #ofqdMapSearch{
    height:38px!important;
    min-height:38px!important;
    padding:6px 9px 6px 12px!important;
    font-size:14px!important;
    border-radius:11px 0 0 11px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-search-wrap button,
  .ofqd-map-premium-v266 #ofqdMapSearchBtn{
    flex-basis:43px!important;
    width:43px!important;
    min-width:43px!important;
    height:38px!important;
    min-height:38px!important;
    border-radius:0 11px 11px 0!important;
  }
  .ofqd-map-premium-v266 #ofqdMapSearchBtn svg{width:18px!important;height:18px!important}

  /* Les 6 territoires restent tous visibles en 3 x 2, mais sur seulement ~60 px. */
  .ofqd-map-premium-v266 .ofqd-map-view-switch{
    gap:4px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-view-switch button{
    height:29px!important;
    min-height:29px!important;
    padding:0 5px!important;
    border-radius:9px!important;
    font-size:9.2px!important;
    gap:4px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-view-switch button svg{
    width:12px!important;
    height:12px!important;
    min-width:12px!important;
    max-width:12px!important;
    min-height:12px!important;
    max-height:12px!important;
    flex-basis:12px!important;
  }

  /* Catégories et période : moins de hauteur, même fonctionnement. */
  .ofqd-map-premium-v266 .ofqd-map-filterbar{
    padding:5px 8px!important;
    gap:4px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-theme-filters{
    gap:4px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-theme-filters button{
    height:30px!important;
    min-height:30px!important;
    padding:0 7px!important;
    border-radius:9px!important;
    font-size:9.5px!important;
    gap:4px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-theme-filters button svg{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
    max-width:13px!important;
    min-height:13px!important;
    max-height:13px!important;
    flex-basis:13px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-radius-control,
  .ofqd-map-premium-v266 .ofqd-map-period-control{
    min-height:31px!important;
    height:31px!important;
    padding:2px 3px 2px 7px!important;
    gap:4px!important;
    border-radius:9px!important;
    font-size:9.5px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-filterbar .ofqd-map-radius-control>span,
  .ofqd-map-premium-v266 .ofqd-map-filterbar .ofqd-map-period-control>span{
    font-size:9.5px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-radius-control select,
  .ofqd-map-premium-v266 .ofqd-map-period-control select{
    height:26px!important;
    min-height:26px!important;
    padding:2px 22px 2px 6px!important;
    font-size:10px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-period-control select{
    min-width:92px!important;
    max-width:104px!important;
  }

  /* La place récupérée est rendue à la carte. */
  .ofqd-map-premium-v266 .ofqd-map-stage-wrap{
    height:calc(100dvh - 185px)!important;
    min-height:500px!important;
  }

  /* Bottom sheet plus discret quand il est fermé. */
  .ofqd-map-premium-v266 .ofqd-map-results-head{
    flex:0 0 54px!important;
    min-height:54px!important;
    padding:7px 12px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-results-head::before{
    width:58px!important;
    height:4px!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-results-head strong{
    font-size:27px!important;
    line-height:1!important;
  }
  .ofqd-map-premium-v266 .ofqd-map-results-title>span{
    font-size:9px!important;
  }
  .ofqd-map-premium-v266 #ofqdMapCountLabel{
    font-size:10px!important;
    line-height:1.12!important;
  }
}

@media (max-width:390px){
  .ofqd-map-premium-v266 .ofqd-map-page-head h1{font-size:21px!important}
  .ofqd-map-premium-v266 .ofqd-map-view-switch button{font-size:8.6px!important;padding:0 4px!important}
  .ofqd-map-premium-v266 .ofqd-map-theme-filters button{font-size:9px!important;padding:0 6px!important}
}
