/* === The Event Calendar: Adapt width image on single event to text width === */
.tribe-events-event-image img {
height: auto;
max-width: 100% !important;
}

/* === Hide a Section for Logged out Users === */
body:not(.logged-in) .hide-for-logged-out {
display: none !important;
}

/* === Hide quick-listing-actions Section for Logged out Users === */
body:not(.logged-in) .quick-listing-actions #qa-6c8424,
body:not(.logged-in) .quick-listing-actions #qa-e098df,
body:not(.logged-in) .quick-listing-actions #qa-cd03bd,
body:not(.logged-in) .quick-listing-actions #qa-470682,
body:not(.logged-in) .quick-listing-actions #qa-679f76 {
    filter: blur(3px);
    pointer-events: none; /* Prevent interactions with blurred content */
}

/* === Hide ALL label on head of preview cards for Logged out Users (price, open/closed, rating) === */
/*to hide the head labels like open now, price, rating */
body:not(.logged-in) .lf-head-btn {
display: none !important;
}

body:not(.logged-in) .lmb-calltoaction.ml-track-btn {
display: none !important;
}

/*to hide the upcoming_events label on the preview card */
body:not(.logged-in) .lf-contact li:nth-child(2) {
  display: none !important;
}

/* === Make filter tab also available for listing categories and regions on mobile === */
.active-term .form-group.fc-search {
    display:none;
}
.sidebar-tabs {
    display: flex !important;
}

/* === The Event Calendar: Change color Progress Bar and "The Ball" === */
.progress-bar-container .progress-bar-container__progressbar {
    height: 5px;
    margin-top: 1px;
    margin-right: -1px;
	background-color: #edae49;
    float: left;
}

.progress-bar-container .progress-bar-container__ball {
    height: 7px;
    border-radius: 50%;
    background-color: #edae49;
    width: 5px;
    float: left;
    padding: 5px;
    margin-top: -2px
}

/* === The Event Calendar: Change color svg icon series on hover === */
.tribe-events .tribe-events-series-archive__icon:hover {
    		color: var(--tec-color-accent-primary) !important;
	}

	a.tribe-events-calendar-series-archive__link:hover .tribe-common-c-svgicon {
    		color: var(--tec-color-accent-primary) !important;
	}

/* === Blur a section for Logged out Users === */
/* BLUR: tout sauf le bandeau */
body:not(.logged-in) .blur-for-logged-out {
  filter: blur(3px);
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* === Custom CSS EDD checkout === */
#edd_checkout_form_wrap legend {
    display: block;
    font-size: 140%;
    line-height: 3;
    font-weight: 400;
    width: 100%;
    margin: 0 0 21px;
    padding: 0;
}

#edd_checkout_form_wrap span.edd-description {
    color: #66666694;
    font-size: 95%;
    line-height: 1;
    display: block;
    margin: 0 0 5px;
}


#edd_checkout_form_wrap label {
    font-weight: 600;
    display: block;
    position: relative;
    line-height: 100%;
    font-size: 120%;
    margin: 0 0 5px;
    line-height: 2;
}


#edd_secure_site_wrapper {
    padding: 4px 4px 4px 0;
    font-weight: 300;
}


#edd_checkout_cart th {
    font-weight: 500;
    font-size: 100%;
    line-height: 20px;
}

#edd_checkout_cart {
    font-size: 115%;
    line-height: 20px;
    text-align: left;
    width: 100%;
    border: none;
    margin: 0 0 21px;
    table-layout: auto;
}

.eddr-cart-item-notice {
    text-align: left;
    font-size: .85em;
}


.eddr-cart-item-notice {
    text-align: left;
    font-size: .75em;
}


#edd-purchase-button, .edd-submit, [type=submit].edd-submit {
    display: inline-block;
    padding: 6px 12px;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.428571429;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



#edd_cart_item_name {
    font-weight: 500;
    font-size: 100%;
    line-height: 20px;
}

#edd_checkout_user_info {
    font-size: 20px;
    line-height: 22px;
}

/* === Custom CSS EDD Log in form === */
#edd_login_form legend, #edd_register_form legend {
    font-size: 170%;
    margin-bottom: 2em;
}

/* === Hide section for all logged-in users except administrator === */
/* Hide section for logged-in users except administrator */
.logged-in:not(.user-role-administrator) .hide-for-logged-in {
  display: none;
}

/* === code snippet to hide a menu element for desktop users with id=menu-item-86760 (Get the App) === */
/* Default styles for the menu element */
#main-menu li {
  display: block;
  margin: 0;
}

/* Hide the menu element for desktop users */
@media screen and (min-width: 768px) {
  #menu-item-86760 {
    display: none;
  }
}

/* === code snippet to hide a menu element for desktop users with id=menu-item-86760 (Log in on mobiles) === */
/* Default styles for the menu element */
#main-menu li {
  display: block;
  margin: 0;
}

/* Hide the menu element for desktop users */
@media screen and (min-width: 768px) {
  #menu-item-86919 {
    display: none;
  }
}

/* === Hide element on tablets and mobile devices (Show on desktops) === */
/* Hide on tablets and mobile devices */
.hide-on-mobile {
    display: none;
}

/* Show on desktops */
@media screen and (min-width: 1024px) {
    .hide-on-mobile {
        display: block;
    }
}

/* === Show element on mobile devices and tablets only (Hide element on desktops) === */
/* Hide content by default */
.show-on-mobile {
    display: none;
}

/* Show content on mobile devices - devices with a screen width up to 768px */
@media (max-width: 768px) {
    .show-on-mobile {
        display: block;
    }
}

/* === Blur calendar event views for logged out users + redirect to /our-subscription-plans/ when clicked === */
/* Blur archive calendar for logged-out users */
body:not(.logged-in) .tribe-events-view {
  filter: blur(4px);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
  cursor: default;
}

/* === Mettre visuellement en valeur les liens Booking.com === */
/* =========================================================
   Boutons OTA – Booking / Expedia / Agoda
   Fond unique #1e73be + logos SVG blancs
   Mobile-friendly: texte long + logo sous le texte sur mobile
   ========================================================= */

/* ===== BASE COMMUNE (TOUS les boutons) ===== */
.booking-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  min-height: 52px;
  padding: 22px 22px;

  background-color: #1e73be;
  color: #fff !important;

  font-weight: 650;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.2px;

  text-align: center;
  text-decoration: none !important;

  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;


  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
	

  /* wrapping behaviour */
  flex-wrap: wrap;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
  row-gap: 8px;
}

/* Supprimer le soulignement dans tous les états */
.booking-button a,
.booking-button a:hover,
.booking-button a:focus,
.booking-button a:active,
.booking-button a:visited {
  text-decoration: none !important;
}

/* ===== LOGO (fallback commun) ===== */
.booking-button a::after {
  content: "";
  width: 28px;   /* fallback */
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  flex: 0 0 auto;
  filter: brightness(0) invert(1); /* logos blancs */
}

/* ===== BOOKING ===== */
.booking-button a[href*="booking.com"]::after,
.booking-button a[href*="booking.stay22.com"]::after {
  background-image: url("/wp-content/uploads/2025/12/Booking.svg");
  width: 26px;
  height: 26px;
}

/* ===== EXPEDIA (expedia.com CONFIRMÉ) ===== */
.booking-button a[href*="expedia.com"]::after,
.booking-button a[href*="expedia.stay22.com"]::after {
  background-image: url("/wp-content/uploads/2025/12/Expedia.svg");
  width: 20px;
  height: 20px;
}

/* ===== AGODA ===== */
.booking-button a[href*="agoda.com"]::after,
.booking-button a[href*="agoda.stay22.com"]::after {
  background-image: url("/wp-content/uploads/2025/12/Agoda_white.svg");
  width: 24px;
  height: 24px;
}

/* ===== Si ce n’est pas une OTA connue → pas de slot vide ===== */
.booking-button a:not([href*="booking.com"])
                 :not([href*="booking.stay22.com"])
                 :not([href*="expedia.com"])
                 :not([href*="expedia.stay22.com"])
                 :not([href*="agoda.com"])
                 :not([href*="agoda.stay22.com"])::after {
  content: none;
}

/* ===== HOVER ===== */
.booking-button a:hover {
  background-color: rgba(30, 115, 190, 0.88);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   MOBILE FRIENDLY
   - plus d’air
   - logo sur sa propre ligne
   ========================================================= */

@media screen and (max-width: 600px) {
  .booking-button a {
    padding: 14px 18px;
  }

  /* Logo descend sous le texte */
  .booking-button a::after {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* Mobile: slightly smaller text for long CTA */
@media screen and (max-width: 600px) {
  .booking-button a,
  .see-tickets a {
    font-size: 19px !important;   /* ← ajuste ici */
    font-weight: 500 !important;    /* ← bold */
    line-height: 1.3 !important;
  }
}

/* Desktop only: adjust CTA text size */
@media screen and (min-width: 601px) {
  .booking-button a,
  .see-tickets a {
    font-size: 19px !important;   /* ← ajuste ici */
    font-weight: 500 !important;    /* ← bold */
    line-height: 1.25 !important;
  }
}

@media screen and (max-width: 600px) { .booking-button a::after { display: none !important; } }

/* =========================================================
   Stronger resting shadow for CTA buttons (OTA + Tickets)
   ========================================================= */

/* RESTING STATE — more visible elevation */
.booking-button a,
.see-tickets a {
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.20),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

/* DESKTOP HOVER — clear but controlled lift */
@media (hover: hover) and (pointer: fine) {
  .booking-button a:hover,
  .see-tickets a:hover {
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.28),
      0 4px 10px rgba(0, 0, 0, 0.18);
  }
}

/* ACTIVE / PRESSED */
.booking-button a:active,
.see-tickets a:active {
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.14);
}

/* === Full-width blog posts === */
/* Blog featured image size custom */ 
.blog-featured-image img {
    max-height: 600px;
    object-fit: cover;
}

/* Supprime le décalage Bootstrap et centre le contenu des articles */
@media (min-width: 768px) {
  .single-post .col-md-8.col-md-offset-2 {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  width: 80% !important;
  max-width: 100%; /* temporairement pour voir le plein effet */
  padding: 0 40px; /* plus d'espace interne, ajustable */
  box-sizing: border-box;
  }
}

/* Justifie le texte et améliore la lecture */
.single-post .col-md-8.col-md-offset-2 p {
  text-align: justify;
  line-height: 1.8;
  font-size: 1.08rem;
  margin-bottom: 1.5em;
}

/* Images insérées dans l'article */
.single-post .col-md-8.col-md-offset-2 img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Responsive : réduit le padding sur mobile */
@media (max-width: 768px) {
  .single-post .col-md-8.col-md-offset-2 {
    padding: 0 20px;
  }
}

/* Images insérées dans les articles : même largeur que le texte + crop si nécessaire */
.single-post .col-md-8.col-md-offset-2 img {
  width: 100%;
  max-width: 100%; /* occupe toute la largeur du bloc de texte */
  height: 400px; /* ou 500px selon le rendu souhaité */
  object-fit: cover;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Harmonisation des blocs Gutenberg */
.single-post .col-md-8.col-md-offset-2 figure,
.single-post .col-md-8.col-md-offset-2 .wp-block-image {
  text-align: center;
  margin: 2rem auto;
  width: 100%;
  max-width: 100%;
}

/* Images insérées via l'éditeur Gutenberg */
.single-post .col-md-8.col-md-offset-2 .wp-block-image img {
  width: 100%;
  height: 600px; /* même hauteur que ci-dessus */
  object-fit: cover;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .single-post .col-md-8.col-md-offset-2 img,
  .single-post .col-md-8.col-md-offset-2 .wp-block-image img {
    height: 250px;
  }
}

/* === Afficher les 2 derniers articles de blog dans sidebar === */
.treehouse-latest-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 0px;
}

.treehouse-post-preview {
  flex: 1 1 calc(50% - 15px);
  box-sizing: border-box;
  background: #f9f9f9;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Image wrapper (si tu veux forcer une taille homogène) */
.treehouse-post-preview a img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  height: 220px; /* hauteur par défaut (desktop) */
}

.treehouse-post-preview h3 {
  margin-top: 12px;
  font-size: 1.2em;
  font-weight: 600;
}

.treehouse-post-preview a {
  text-decoration: none;
  color: #222;
}

.treehouse-post-date {
  font-size: 0.9em;
  color: #888;
  margin: 6px 0;
}

.treehouse-post-excerpt {
  font-size: 0.95em;
  line-height: 1.5;
}

/* Responsive : 1 article par ligne sur mobile */
@media (max-width: 768px) {
  .treehouse-post-preview {
    flex: 1 1 100%;
  }
}


.treehouse-post-preview h3 {
  margin-bottom: 0; /* ou 4px si tu veux un petit espace */
}

.treehouse-post-preview {
  padding-bottom: 12px; /* réduit l’espace intérieur bas */
}
.treehouse-blog-slider {
  position: relative;
  padding-bottom: 40px; /* espace réservé pour les flèches */
}

.swiper-button-next,
.swiper-button-prev {
  top: auto;
  bottom: 10px;
}

@media (max-width: 768px) {
  .treehouse-post-preview a img {
    height: 330px !important;
  }
}

/* === Affichage OTA (shows only correct OTA based on country of origin) === */
/* Force-hide all OTA widgets by default */
#booking-ads,
#expedia-ads,
#agoda-ads {
  display: none !important;
}

/* Show ONLY the selected OTA */
body.ota-booking #booking-ads { display: block !important; }
body.ota-expedia #expedia-ads { display: block !important; }
body.ota-agoda   #agoda-ads   { display: block !important; }

/* === Book Now floating button === */
/* =========================================================
   Floating CTA button – final version
   Solid UX, premium shadow, mobile-friendly
   ========================================================= */

body .floating-widget {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom)); /* ~0.5cm higher + iOS safe area */
  transform: translateX(-50%);
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* Visual */
  background-color: rgba(30, 115, 190, 0.94) !important; /* quasi-solide au repos */
  color: #fff !important;
  text-decoration: none !important;

  /* Sizing / touch target */
  min-height: 52px;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;

  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;

  /* Strong resting shadow (CTA visible while scrolling) */
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.20),
    0 2px 6px rgba(0, 0, 0, 0.14);

  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;

  -webkit-tap-highlight-color: transparent;
}

/* Keep all inner elements white (text, icons, SVGs) */
body .floating-widget * {
  color: inherit !important;
}

body .floating-widget svg,
body .floating-widget svg * {
  fill: currentColor !important;
}

/* Hover = READY TO CLICK (desktop only) */
@media (hover: hover) and (pointer: fine) {
  body .floating-widget:hover {
    background-color: #1e73be !important; /* fully solid on hover */
    transform: translateX(-50%) translateY(-1px);
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.28),
      0 4px 10px rgba(0, 0, 0, 0.18);
  }
}

/* Active / pressed feedback */
body .floating-widget:active {
  transform: translateX(-50%) translateY(0);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   Mobile tweaks – bigger & easier to tap
   ========================================================= */

@media (max-width: 600px) {
  body .floating-widget {
    bottom: calc(30px + env(safe-area-inset-bottom)); /* slightly higher on mobile */
    min-height: 58px;
    padding: 16px 26px;
    font-size: 18px;
    border-radius: 12px;
  }
}

/* =========================================================
   Font Awesome — font-display swap
   ========================================================= */

@font-face {
    font-family: "Font Awesome 5 Brands";
    font-display: swap;
}
@font-face {
    font-family: "Font Awesome 5 Free";
    font-display: swap;
}
@font-face {
    font-family: "Font Awesome 5 Solid";
    font-display: swap;
}