



/* =========================================================
   Sticky header — transparent au load, fond au scroll (tablet+mobile)
   ========================================================= */
@media (max-width: 1120px){

  /* ÉTAT LOAD : on force transparent */
  .header-sticky.elementor-sticky,
  .header-sticky.elementor-sticky.elementor-sticky--active{
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  }

  /* Si Elementor applique le fond via pseudo/overlay */
  .header-sticky.elementor-sticky::before,
  .header-sticky.elementor-sticky.elementor-sticky--active::before{
    background: transparent !important;
    opacity: 0 !important;
  }

  /* ÉTAT SCROLL : fond visible */
  body.has-scrolled .header-sticky.elementor-sticky{
    background-color: #ffc532 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
  }

  body.has-scrolled .header-sticky.elementor-sticky::before{
    opacity: 1 !important;
  }
}
@media (max-width: 767px){

.wpml-ls-legacy-list-horizontal {
  padding-bottom: 0px !important;
  padding-top: 4px !important;
}
.wpml-ls-link span {
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 16px !important;
}
}
/* =========================================================
   Home — Form width fix
   ========================================================= */
@media only screen and (max-width: 1440px){
  .home #form-container #formBooking input{
    width: auto !important;
  }
}
@media (max-width: 767px){

.home-search ._col.col-start-date.col-dates {
    padding-right: 0px !important;
}
.hfy-wrap .hfy-search-form-wrap {
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px !important;
}
#form-container .col-location::after, #form-container .col-start-date::after, #form-container .col-end-date::after {
    display: none !important;
}
#form-container .col-location, #form-container .col-start-date, #form-container .col-end-date, #form-container .col-guests {
    margin-bottom: 10px !important;
    position: relative;
}
}

/*==================
boutons home CTA
==========*/
@media (max-width: 1024px){

  /* Le wrapper de l’icon-box se comporte comme un “bouton” */
  .home-cta-buttons .elementor-icon-box-wrapper{
    flex-wrap: wrap !important;          /* autorise le texte à passer proprement */
    align-items: center !important;
    row-gap: 6px !important;
  }

  /* Le titre (H3) : on évite le débordement */
  .home-cta-buttons .elementor-icon-box-title{
    margin: 0 !important;
    line-height: 1.1 !important;
    font-size: 14px !important;          /* ajuste si besoin: 13px / 15px */
    white-space: normal !important;      /* autorise le retour à la ligne */
    text-align: center !important;
  }
.home-cta-buttons .btn-line {
  padding: 8px 23px !important;
}
  /* Le span dans le H3 */
  .home-cta-buttons .elementor-icon-box-title span{
    display: inline-block !important;
    max-width: 100% !important;
  }

  /* Sécurités anti-overflow */
  .home-cta-buttons .elementor-icon-box-content{
    min-width: 0 !important;
  }

  /* Optionnel: icône un poil plus petite dans cette tranche */
  .home-cta-buttons .elementor-icon{
    width: 18px !important;
    height: 18px !important;
  }
    /* Centre tout le contenu du "bouton" */
  .home-cta-buttons .elementor-icon-box-wrapper{
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Centre l’icône */
  .home-cta-buttons .elementor-icon-box-icon{
    margin-bottom: 8px !important;
  }

  /* Centre le titre */
  .home-cta-buttons .elementor-icon-box-title{
    margin: 0 !important;
  }
}
/* ============================
BARRE RECHERCHE HOME
=========*/
/* =========================================================
   SEARCH FORM — ACTIONS ON NEW LINE (desktop/tablet)
   Scope: #search-properties (ta section) + #formBooking
   Objectif: Options + Rechercher passent sous les champs
   ========================================================= */
@media (min-width: 768px){

  /* On force la row en flex wrap (même si Hostify la met en grid) */
  #search-properties #formBooking .hfy-search-form-row{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 12px !important;
  }

  /* Les champs gardent une taille mini et peuvent se répartir */
  #search-properties #formBooking .hfy-search-form-row ._col{
    flex: 1 1 180px !important;
    min-width: 180px !important;
  }

  /* La colonne actions (Options + Rechercher) = pleine largeur + tout en bas */
  #search-properties #formBooking .hfy-search-form-row ._col.col-action.search-box{
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;

    order: 99 !important;              /* force en dernier */
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;

    margin-top: 10px !important;
  }

  /* Garde Options + Rechercher sur une même ligne */
  #search-properties #formBooking .hfy-search-form-row ._col.col-action.search-box .btn-open-advanced,
  #search-properties #formBooking .hfy-search-form-row ._col.col-action.search-box button.btn.btn-primary{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
}


/* =========================================================
   SEARCH FORM — MOBILE CENTER ALIGN
   (ton code, conservé, juste un poil blindé)
   ========================================================= */
@media (max-width: 767px){

  #search-properties #formBooking{
    display: flex !important;
    justify-content: center !important;
  }

  #search-properties #formBooking .search-form-fields{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  #search-properties #formBooking .hfy-search-form-row{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 420px !important;
    gap: 4px !important;
  }

  #search-properties #formBooking .hfy-search-form-row ._col{
    width: 100% !important;
    text-align: center !important;
  }

  #search-properties #formBooking .hfy-search-form-row ._col input,
  #search-properties #formBooking .hfy-search-form-row ._col select{
    text-align: center !important;
  }

  #search-properties #formBooking .hfy-search-form-row ._col.col-action.search-box{
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  #search-properties #formBooking .col-action button{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  #search-properties #formBooking .col-action .btn-open-advanced{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
}
/* =========================================================
   Cards hover off (touch devices)
   ========================================================= */
@media (hover: none){
  .list-card{ transform:none !important; box-shadow:none !important; }
  .list-card .additional-details{ max-height: none; opacity:1; transform:none; }
}

/* =========================================================
   Typography / titles
   ========================================================= */
@media (max-width: 767px){
  h2{ text-align: center !important; }
  .hfy-listing-title-block{ text-align: center; }

  #single-listing-gallery h1{
    font-size: 27px;
    line-height: 26px;
    color: #fff;
    text-align: center;
    letter-spacing: -1px;
  }
}
/* ========================================================= DETAILS LINSTIN PAGE ========================================================= */ 
  @media (max-width: 767px) {
    #single-listing-gallery .hfy-listing-gallery > .list .img-wrap {
      box-shadow: 0 0px 7px rgba(63, 63, 12, 0.8) !important;
    }
    .hfy-listing-title {
      font-size: 28px !important;
      line-height: 29px !important;
      letter-spacing: -1.3px !important;
      word-spacing: 2px !important;
    }
    .upstays-sticky-book.is-visible:hover {
      background-color: #FFC532 !important;
    }
    .hfy-listing-info-after-summary {
      text-align: center;
    }
    .hfy-listing-info-summary {
      text-align: center;
      font-size: 15px;
      line-height: 20px;
    }
    .hfy-listing-info-more, .hfy-listing-info-less {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: auto; /* ✅ pas pleine largeur */ margin-left: auto; /* ✅ centrage */ margin-right: auto;
    }
    .hfy-listing-hotel-facilities {
      display: flex;
      flex-wrap: wrap; /* ✅ autorise passage à la ligne */ justify-content: center; /* optionnel, plus joli */ gap: 8px 12px; /* espace vertical / horizontal */
    }
    .hfy-listing-hotel-facilities i {
      width: 19px;
      height: 19px;
    }
    .hfy-wrap.hfy-theme1 .hfy-listing-hotel-facilities > div {
      font-size: 12px;
      font-weight: 600;
      padding: 3px 10px 3px 8px;
    }
    .hfy-theme1 .hfy-listing-hotel-facilities > div i {
      margin-right: 5px;
    } 
  }
    /*bouton close calendrier*/ /* ========================================================= Datepicker fullscreen — croix close centrée (MOBILE ONLY) ========================================================= */ 
    @media (max-width: 767px) {
      #datepicker-hotel-datepicker.datepicker--open .datepicker__months {
        padding-top: 44px;
        position: relative;
      }
      #datepicker-hotel-datepicker .upstays-datepicker-close {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #FFC532;
        border: none !important;
        color: #ffffff;
        font-size: 22px;
        line-height: 1;
        font-weight: 400;
        cursor: pointer;
        z-index: 9999;
        -webkit-tap-highlight-color: transparent;
      }
      #datepicker-hotel-datepicker .upstays-datepicker-close:active {
        transform: translateX(-50%) scale(0.95);
      }
    } /* ========================================================= REVIEWS — Mobile: compact + no overflow (garde demi-étoiles) ========================================================= */ 
    @media (max-width: 767px) {
      .hfy-reviews-summary-modern {
        display: flex !important;
        flex-direction: column !important; /* ✅ sinon overflow */ gap: 10px;
        padding: 10px !important;
        border-radius: 12px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* ✅ coupe tout débordement résiduel */
      }
      .reviews-summary-header {
        width: 100% !important;
        align-items: center !important;
        margin-bottom: 0px !important;
        padding-bottom: 5px;
      } /* Bloc note globale + étoiles + "avis" : compact */ .main-rating {
        flex-direction: row !important;
        align-items: center;
        justify-content: center !important;
        gap: 0px !important;
        flex-wrap: wrap; /* ✅ si besoin */ text-align: center;
      }
      .rating-number {
        font-size: 43px !important;
        line-height: 1 !important;
      }
      .rating-text {
        font-size: 14px !important;
        line-height: 1.2 !important;
      } /* ⭐ Stars : on garde le système inline width (demi-étoiles) => on shrink le conteneur, sans toucher aux widths */ .review-rating-inline {
        min-width: 0;
        max-width: 100%;
      }
      .review-rating-inline .review-stars {
        display: inline-block;
        transform: scale(0.62) !important; /* ✅ plus petit */ transform-origin: center !important;
        max-width: 100%;
      } /* Le span clip (remplissage) doit rester un clipper */ .review-rating-inline .review-stars > span {
        display: inline-block;
        overflow: hidden;
        vertical-align: middle;
        max-width: 100%;
      } /* Détails catégories : full width, padding réduit */ .reviews-summary-details {
        width: 100%;
        max-width: 100%;
      }
      .rating-categories {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        max-width: 100%;
      }
      .rating-category {
        padding: 4px 8px !important;
        width: 100% !important;
        box-sizing: border-box;
        gap: 8px;
      } /* Labels : on évite le nowrap qui force l’overflow */ .category-label {
        font-size: 13px !important;
        margin-right: 6px !important;
        white-space: normal !important; /* ✅ autorise retour à la ligne */ overflow: hidden;
        text-overflow: ellipsis;
      }
      .category-label {
        white-space: nowrap !important;
        max-width: 55%;
      }
      */ /* Les notes à droite sont déjà hidden chez toi */ .review-rating-inline .review-rating-number {
        display: none !important;
      }
    }
  
/* =========================================================
   Amenities grid
   ========================================================= */
@media (max-width: 1100px){
  .hfy-wrap .hfy-listing-amenities{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px){
  .hfy-wrap .hfy-listing-amenities{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px){
  .hfy-wrap .hfy-listing-amenities{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Listing gallery — mobile rail (Elementor: elementor-element-777092e)
   ========================================================= */
@media (max-width: 767px){

  .elementor-element-777092e,
  .elementor-element-777092e .elementor-widget-container,
  .elementor-element-777092e .elementor-shortcode,
  .elementor-element-777092e .hfy-wrap,
  .elementor-element-777092e section.hfy-listing-gallery{
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-element-777092e section.hfy-listing-gallery{
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    padding: 0 !important;
    grid-template-columns: unset !important;
    justify-content: unset !important;
    justify-items: unset !important;
    position: relative !important; /* wrapper pour flèches */
  }

  .elementor-element-777092e section.hfy-listing-gallery > .main.img-wrap{
    display: none !important;
  }

  .elementor-element-777092e section.hfy-listing-gallery > .list{
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin-top: auto !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding: 12px !important;

    grid-template-columns: unset !important;
  }

  .elementor-element-777092e section.hfy-listing-gallery > .list .img-wrap{
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;

    display: block !important;
    flex: 0 0 48% !important;
    min-width: 48% !important;

    height: 92px !important;
    min-height: 92px !important;

    border-radius: 12px !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;
  }

  .elementor-element-777092e section.hfy-listing-gallery > .list .img-wrap img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .elementor-element-777092e section.hfy-listing-gallery > .list::-webkit-scrollbar{
    display: none;
  }

  .elementor-element-777092e section.hfy-listing-gallery .list .img-wrap.hfy-thumb-hidden{
    display: none !important;
  }

  /* Pleine largeur (fix spécifique) */
  #single-listing-gallery .hfy-listing-gallery > .list{ width: 100% !important; }
  #single-listing-gallery .hfy-listing-gallery{ height: auto !important; padding: 0px !important; }

  /* Flèches */
  .hfy-thumb-nav{
    position: absolute;
    bottom: 60px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    user-select: none;
  }
  .hfy-thumb-nav.left{ left: -12px; }
  .hfy-thumb-nav.right{ right: -12px; }
  .hfy-thumb-nav svg{ width: 18px; height: 18px; }
}


/* =========================================================
   SLIDE PANEL (<=900px) — spacing + CTA bigger
   (header only)
   ========================================================= */
@media (max-width: 1024px){

  /* 1) Espacement entre items du panel */
  .header-sticky #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item{
    margin: 10px 0 !important; /* ajuste (8-14px) */
  }

  /* 2) Un peu plus de confort sur les liens */
  .header-sticky #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link{
    padding: 12px 18px !important;
    line-height: 1.2 !important;
  }

  /* 3) CTA "Prendre rendez-vous" plus grand + texte centré */
  .header-sticky #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-cta-rdv > a.mega-menu-link{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;   /* centre horizontal */
    text-align: center !important;

    width: 100% !important;              /* full width dans le panel */
    min-height: 56px !important;         /* plus grand */
    padding: 16px 22px !important;

    border-radius: 50px !important;
  }
  .elementor-sticky--active .cta-rdv .mega-menu-link{
  background-color: #4e531454 !important;
}
}
/****** PAGE LISTINGS*******/
@media (min-width: 768px) and (max-width: 1024px) {
  .listings-map-hidden #search-properties .listings .row.listing-block {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
}
@media screen and (max-width: 767px) {

.listings-map-hidden #search-properties .listings .row.listing-block {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
}
@media (min-width: 768px) and (max-width: 1120px) {
    #search-properties-map .hfy-listings-map-toggle {
      position: fixed !important;
      left: 50% !important;
      right: auto !important;
      transform: translateX(-50%) !important;
      bottom: 40px !important; /* ajuste si besoin */ z-index: 9999 !important;
      margin: 0 !important;
    } /* On neutralise les vieux positionnements */ #search-properties-map .hfy-listings-map-toggle {
      top: auto !important;
    }
  }
  @media (min-width: 768px) and (max-width: 1120px) {
    #search-properties-map .hfy-listings-map-toggle .btn {
      min-width: 220px;
      text-align: center;
    }
  }
  @media (max-width: 767px) {
    .hfy-listings-map-toggle-mobile {
      display: flex !important;
      justify-content: center !important;
      width: 100% !important;
      margin: 20px 0 !important;
    }
    .hfy-listings-map-toggle-mobile .btn {
      text-align: center;
    }
  }
  @media only screen and (max-width: 768px) {
    #search-properties-map .hfy-listings-map-toggle {
      position: fixed !important; /* ou absolute si ton layout lâ€™exige */ left: 50% !important;
      right: auto !important;
      transform: translateX(-50%) !important;
      bottom: 10px !important; /* ajuste si besoin */ z-index: 999;
    }
  }
  @media (max-width: 767px) {
    .upstays-breadcrumb {
      line-height: 16px; /* réduit l’espace vertical */ row-gap: 2px; /* espace entre lignes */
    }
    ._col.col-action.search-box {
      display: flex;
      align-content: center;
      flex-direction: column;
    }
    .hfy-wrap .hfy-search-form-wrap {
      padding: 0.6rem !important;
      border-radius: 10px !important;
    }
    #search-advanced-container ._col:not(.col-action) {
      padding: 0px 10px !important;
      margin: 5px !important;
    }
    .btn-open-advanced {
      border-radius: 20px;
    }
    .btn-open-advanced {
      padding: 5px !important;
      font-size: 13px !important;
      font-weight: 500 !important;
      font-family: 'Roboto', sans-serif !important;
    }
    #search-advanced-container ._col.col-action button {
      background-color: #FFC532 !important;
      border-radius: 50px !important;
      padding: 5px !important;
      color: #fff !important;
      font-size: 14px !important;
      font-family: 'Roboto', sans-serif !important;
    }
  }
  @media (min-width: 768px) and (max-width: 1024px) and (hover: none) and (pointer: coarse) { /* 1) On cache le month picker (dropdown) injectÃ© par le JS */ #datepicker-hotel-datepicker .datepicker__month-dropdown {
      display: none !important;
    } /* 2) Carrousel horizontal : 2 mois visibles (50% / 50%) */ #datepicker-hotel-datepicker .datepicker__months {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      gap: 0 !important; /* important : Ã©viter que le plugin te colle une hauteur Ã©norme */ height: auto !important;
      max-height: none !important;
    } /* 3) Chaque table de mois prend la moitiÃ© de la largeur (2 visibles) */ #datepicker-hotel-datepicker .datepicker__month {
      flex: 0 0 50% !important;
      width: 50% !important;
      min-width: 50% !important;
      max-width: 50% !important;
      scroll-snap-align: start;
      table-layout: fixed; /* Ã©vite les trucs qui dÃ©bordent */ box-sizing: border-box;
      padding: 0 12px; /* petit confort visuel */
    } /* 4) Fix des headers (flÃ¨ches qui se superposent / dÃ©calages) */ #datepicker-hotel-datepicker .datepicker__month-caption th {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    #datepicker-hotel-datepicker .datepicker__month-caption th:first-child, #datepicker-hotel-datepicker .datepicker__month-caption th:last-child {
      width: 40px !important;
    } /* 5) Optionnel : rendre le swipe plus "propre" (barre scroll invisible) */ #datepicker-hotel-datepicker .datepicker__months::-webkit-scrollbar {
      height: 0;
    }
  }
  @media (max-width: 767px) { /* EmpÃªche le calendrier de dÃ©passer */ #datepicker-hotel-datepicker, #datepicker-hotel-datepicker .datepicker__inner {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box;
    } /* Container principal */ #datepicker-hotel-datepicker .datepicker__months {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box;
      position: relative;
      padding: 0 12px 16px;
    } /* Dropdown month picker */ #datepicker-hotel-datepicker .datepicker__month-dropdown {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box;
      display: block;
      margin: 8px 0 12px;
      height: 44px;
      border-radius: 10px;
      margin-top: 4em;
    } /* Track horizontal (injectÃ© par le JS) */ #datepicker-hotel-datepicker .datepicker__months-track {
      display: flex;
      flex-wrap: nowrap;
      gap: 0;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box; /* un peu de place pour les flÃ¨ches */ padding: 0 34px;
    } /* Cache la scrollbar */ #datepicker-hotel-datepicker .datepicker__months-track::-webkit-scrollbar {
      height: 0;
    } /* 1 mois = 1 slide */ #datepicker-hotel-datepicker .datepicker__months-track > .datepicker__month {
      flex: 0 0 100%;
      width: 100%;
      max-width: 100%;
      scroll-snap-align: start;
      box-sizing: border-box;
    } /* Tables mois : pas de largeur fixe */ #datepicker-hotel-datepicker .datepicker__month {
      margin: 0 !important;
    }
    #datepicker-hotel-datepicker table.datepicker__month {
      width: 100% !important;
      max-width: 100% !important;
      table-layout: fixed;
    } /* FlÃ¨ches custom (injectÃ©es par le JS) */ #datepicker-hotel-datepicker .datepicker__mobile-nav {
      position: absolute;
      top: 64px; /* juste sous le dropdown */ z-index: 5;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 0;
      background: rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    #datepicker-hotel-datepicker .datepicker__mobile-nav svg {
      width: 18px;
      height: 18px;
    }
    #datepicker-hotel-datepicker .datepicker__mobile-nav--prev {
      left: 8px;
    }
    #datepicker-hotel-datepicker .datepicker__mobile-nav--next {
      right: 8px;
    } /* Optionnel : on masque les flÃ¨ches natives dans les headers de mois (sinon Ã§a fait doublon) */ #datepicker-hotel-datepicker .datepicker__month-button {
      display: none !important;
    }
  }
  /* ===== STICKY RESERVATION BUTTON - ELEMENTOR ===== */ 
  @media (max-width: 1120px) {
    #btn-reservation {
      position: fixed !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 20px !important;
      width: 100% !important;
      display: flex !important;
      justify-content: center !important;
      z-index: 999999 !important;
      transform: translateY(120%) !important;
      opacity: 0 !important;
      transition: all 0.35s ease !important;
    } /* Visible */ body.show-sticky-reserve #btn-reservation {
      transform: translateY(0) !important;
      opacity: 1 !important;
    } /* Hidden when near form */ body.hide-sticky-reserve #btn-reservation {
      transform: translateY(120%) !important;
      opacity: 0 !important;
    } /* Style bouton */ #btn-reservation .elementor-button {
      background: #FFC532 !important; /* adapte couleur */ color: #fff !important;
      border-radius: 40px !important;
      padding: 14px 28px !important;
      font-weight: 600 !important;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    }
  }
@media (max-width: 767px){

  /* =========================
     0) Bouton "Afficher la carte" centrÃ©
     ========================= */
  #search-properties-map .hfy-listings-map-toggle.hfy-listings-map-toggle-mobile{
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 16px !important;
    transform: translateX(-50%) !important;
    z-index: 10003 !important;
    display: inline-flex !important;
    justify-content: center !important;
  }

  /* =========================
     1) Backdrop (uniquement quand ouvert)
     ========================= */
  #search-properties-map{
    position: relative;
  }
  #search-properties-map.listings-map-visible::before{
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
  }

  /* =========================
     2) Overlay MAP (plein Ã©cran)
     - on ne touche pas Ã  la colonne en fermÃ©
     ========================= */
  /* Ã‰TAT FERMÃ‰ : on cache la map wrapper (Ã©vite le carrÃ© blanc) */
  #map-column .hfy-map-wrapper{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;

    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
    z-index: 10001 !important;

    background: #fff; /* Ã©vite transparence/flash */
  }

  /* Ã‰TAT OUVERT : on affiche la map wrapper */
  .listings-map-visible #map-column .hfy-map-wrapper{
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;

    transition: transform .25s ease, opacity .25s ease;
  }

  /* =========================
     3) Close button centrÃ©, rond, jaune, croix blanche
     ========================= */
  #map-column .hfy-map-close-btn{
    position: fixed !important;
    top: 16px !important;
    left: 40px !important;
    transform: translateX(-50%) !important;

    width: 48px !important;
    height: 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #FFC400 !important;
    border-radius: 999px !important;
    border: none !important;

    z-index: 10002 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.25) !important;
    cursor: pointer;
  }

  #map-column .hfy-map-close-btn svg path{
    stroke: #ffffff !important;
  }

  /* =========================
     4) La liste ne doit pas se mettre en "2 cartes"
     ========================= */
  .listings-map-visible .hfy-listings,
  .listings-map-visible .hfy-listings-grid,
  .listings-map-visible .listings,
  .listings-map-visible .properties-list{
    grid-template-columns: 1fr !important;
  }

  .listings-map-visible .hfy-listing-card,
  .listings-map-visible .listing-card,
  .listings-map-visible .property-card{
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* =========================
     5) Ã‰vite scroll derriÃ¨re quand la map est ouverte
     (si .listings-map-visible est sur #search-properties-map)
     ========================= */
  #search-properties-map.listings-map-visible{
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* =========================
     6) Petit fix Google Maps infowindow
     ========================= */
  .gm-style .gm-style-iw-d{
    box-sizing: border-box;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
/*map responsive*/
/* TABLETTE: popup map centrÃ©e, 70vh x 80vw */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Le "popup" lui-mÃªme */
  .hfy-listing-map{
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: 95vw !important;
    height: 70vh !important;

    max-width: 1100px;   /* optionnel */
    max-height: 80vh;    /* optionnel */
    z-index: 999999 !important;

    background: #fff;    /* utile si tu veux un vrai bloc */
    border-radius: 16px; /* optionnel */
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.25); /* optionnel */
  }

  /* Le conteneur de la map doit remplir le popup */
  .hfy-map-wrapper{
    width: 100% !important;
    height: 100% !important;
  }
   /* ðŸ”¥ Backdrop */
  .hfy-map-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999998;
  }
  .hfy-map-close-btn {
    position: absolute !important;

    top: 8vh !important;               /* ajuste si besoin */
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFC400 !important; /* jaune */
    border-radius: 50% !important;
    border: none !important;

    z-index: 1000000 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
    cursor: pointer;
  }

  /* Croix blanche */
  .hfy-map-close-btn svg path {
    stroke: #ffffff !important;
  }
  .gm-style .gm-style-iw-d {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: auto;
    padding: 0px !important;
    overflow: hidden !important;
}
}

/**** PAGE LISTING UNIQUE ****/
/* =========================================================
   Mobile: big image then horizontal thumbs
   ========================================================= */
@media (max-width: 768px){
  #single-listing-gallery .hfy-listing-gallery{
    grid-template-columns: 1fr;
  }

  #single-listing-gallery .hfy-listing-gallery > .main.img-wrap{
    height: 320px;
  }

  #single-listing-gallery .hfy-listing-gallery > .list{
    height: auto;
    flex-direction: row !important;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
  }

  #single-listing-gallery .hfy-listing-gallery > .list .img-wrap{
    flex: 0 0 140px;
    height: 100px;
          box-shadow: 0 0px 7px rgba(63, 63, 12, 0.8) !important;

  }
}
/****FORMULAIRE FOOTER HOME*/
/* =========================================================
   CONTACT HOME — Bouton 100% width (mobile)
   ========================================================= */
@media (max-width: 767px){

  .form-home .elementor-field-type-submit.elementor-field-group{
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  display: inline !important;
}

.form-home .elementor-field-type-submit.elementor-field-group .elementor-button{
  width: 100% !important;
  display: block !important;
}
.form-home .elementor-form .elementor-button.elementor-size-sm {
    min-height: 52px;
}
}

/* =========================================================
   NEWSLETTER FORM — Mobile optimisation
   ========================================================= */
@media (max-width: 767px){

  .form-news{
    position: relative;
    width: 100%;
    padding: 12px 16px !important;
    border-radius: 28px !important;
  }

  .form-news::after{
    inset: -6px !important;          /* moins agressif */
    border-radius: 32px !important;  /* cohérent avec mobile */
    border-width: 1px !important;
  }

  /* Si input + bouton sont en ligne, on passe en colonne */
  .form-news form{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
  }

  .form-news input{
    width: 100% !important;
    border-radius: 24px !important;
  }

  .form-news button{
    width: 100% !important;
    border-radius: 24px !important;
  }

}
/* =========================================================
PAGE CONCIERGERIE
   ========================================================= */
   @media (max-width: 1024px){

#tabs .e-n-tab-title {
    padding: 10px !important;
}
    .elementor.elementor .elementor-widget-n-tabs.e-n-tabs-tablet .e-n-tab-title:first-child {
        margin-block-start: var(--n-tabs-title-gap);
    }
   }
   
   
/********LOGO BLOC**********/


/* Desktop → 1 ligne */
@media (max-width: 1199px) and (min-width: 1025px){
  .logo-bloc > *{
    flex: 0 0 auto;
  }
}

/* Tablette → 2 lignes */
@media (max-width: 1024px) and (min-width: 768px){
  .logo-bloc > *{
    flex: 0 0 22%; /* ≈ 4 par ligne */
  }
}

/* Mobile → 3 lignes */
@media (max-width: 767px){
  .logo-bloc > *{
    flex: 0 0 30%; /* ≈ 3 par ligne */
  }
}
/* Base */
.logo-bloc{
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  column-gap: 32px; /* espace horizontal */
  row-gap: 32px;    /* espace vertical desktop */
}

/* 📲 Tablet : réduire espace entre lignes */
@media (max-width: 1024px){
  .logo-bloc{
    row-gap: 0px !important; /* ↓ espace vertical seulement */
  }
}

/* 📱 Mobile : encore plus compact */
@media (max-width: 767px){
  .logo-bloc{
    row-gap:0px !important;
  }
}
/***** GAUGE ****/
  @media (max-width: 767px){

.up-gauge_surtitle {
	font-size: 11px;
}
.up-gauge__value {
	font-size: 40px;

}
}
/****** PAGE CONCIERGERIE****/
/* ===============================
   REVIEWS – Flèches visibles tablette
   =============================== */

@media (max-width: 1024px){

  .reviews-slider 
  .ti-widget[data-layout-id="37"][data-set-id="light-minimal"] 
  .ti-controls{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    opacity: 1 !important;
  }

  .reviews-slider 
  .ti-widget[data-layout-id="37"][data-set-id="light-minimal"] 
  .ti-controls .ti-next,
  .reviews-slider 
  .ti-widget[data-layout-id="37"][data-set-id="light-minimal"] 
  .ti-controls .ti-prev{
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
  }
   .reviews-slider .ti-controls .ti-prev{
    left: 0 !important;
  }

  .reviews-slider .ti-controls .ti-next{
    right: 0 !important;
  }
.reviews-slider .ti-controls .ti-prev,
  .reviews-slider .ti-controls .ti-next{
    transform: none !important;
  }
   .reviews-slider .ti-widget{
    direction: ltr !important;
  }
  /* remet l'ordre normal des contrôles */
  .reviews-slider 
  .ti-widget[data-layout-id="37"][data-set-id="light-minimal"]
  .ti-controls{
    flex-direction: row !important;
  }

  /* sécurise les SVG (au cas où Trustindex re-swap) */
  .reviews-slider 
  .ti-widget[data-layout-id="37"][data-set-id="light-minimal"]
  .ti-controls .ti-prev{
    background-image: url("https://upstays.com/wp-content/uploads/2025/12/carousel-left.svg") !important;
  }

  .reviews-slider 
  .ti-widget[data-layout-id="37"][data-set-id="light-minimal"]
  .ti-controls .ti-next{
    background-image: url("https://upstays.com/wp-content/uploads/2025/12/carousel-right.svg") !important;
  }
  @media (max-width: 1024px){

  /* reset pour éviter que Trustindex réécrase */
  .reviews-slider .ti-controls .ti-prev,
  .reviews-slider .ti-controls .ti-next{
    background: none !important;
  }

  /* 1er bouton (à gauche) = flèche gauche */
  .reviews-slider 
  .ti-widget[data-layout-id="37"][data-set-id="light-minimal"] 
  .ti-controls > :first-child{
    background: transparent url("https://upstays.com/wp-content/uploads/2025/12/carousel-left.svg") center/contain no-repeat !important;
    width: 44px !important;
    height: 44px !important;
  }

  /* dernier bouton (à droite) = flèche droite */
  .reviews-slider 
  .ti-widget[data-layout-id="37"][data-set-id="light-minimal"] 
  .ti-controls > :last-child{
    background: transparent url("https://upstays.com/wp-content/uploads/2025/12/carousel-right.svg") center/contain no-repeat !important;
    width: 44px !important;
    height: 44px !important;
  }

}

}