/* Load after template styles. Targeted refined UI, typography and responsive layout. */
.mfp-wrap.corte-media-centered button.mfp-arrow {
  position: fixed;
  top: var(--corte-media-center-y, 50vh);
  width: 48px;
  height: 48px;
  margin: 0 !important;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: var(--primary-color, #cba055);
  opacity: 1;
  transform: translateY(-50%) !important;
  transform-origin: center;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.mfp-wrap.corte-media-centered .mfp-arrow-left { left: max(12px, env(safe-area-inset-left)); }
.mfp-wrap.corte-media-centered .mfp-arrow-right { right: max(12px, env(safe-area-inset-right)); }
.mfp-wrap.corte-media-centered button.mfp-arrow::before { display: none; }
.mfp-wrap.corte-media-centered button.mfp-arrow::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: 0;
  border: 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  opacity: 1;
}
.mfp-wrap.corte-media-centered .mfp-arrow-left::after { transform: translate(-35%,-50%) rotate(-135deg); }
.mfp-wrap.corte-media-centered .mfp-arrow-right::after { transform: translate(-65%,-50%) rotate(45deg); }
.mfp-wrap.corte-media-centered button.mfp-arrow:hover { filter: brightness(.92); }
.mfp-wrap.corte-media-centered button.mfp-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.owl-custom-nav.menu-float.corte-carousel-centered > .btn-prev,
.owl-custom-nav.menu-float.corte-carousel-centered > .btn-next {
  top: var(--corte-photo-center-y, 50%);
  margin: 0;
  transform: translateY(-50%);
  z-index: 20;
}
.owl-custom-nav.menu-float.corte-carousel-centered > .btn-prev::before,
.owl-custom-nav.menu-float.corte-carousel-centered > .btn-next::before {
  box-sizing: border-box;
  width: 44px;
  height: 48px;
  padding: 0;
  line-height: 48px;
}
.owl-custom-nav.menu-float.corte-carousel-centered > a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.owl-carousel.corte-photo-carousel > .owl-nav > .owl-prev,
.owl-carousel.corte-photo-carousel > .owl-nav > .owl-next {
  top: var(--corte-photo-center-y, 50%);
  margin-top: 0;
  transform: translateY(-50%);
}
.owl-carousel.corte-photo-carousel > .owl-nav > .owl-prev:hover,
.owl-carousel.corte-photo-carousel > .owl-nav > .owl-next:hover {
  transform: translateY(-50%) scale(1.06);
}
.swiper.corte-photo-swiper .swiper-button-prev,
.swiper.corte-photo-swiper .swiper-button-next {
  top: var(--corte-photo-center-y, 50%);
  margin-top: 0;
  transform: translateY(-50%);
}
@media (max-width: 600px) {
  .mfp-wrap.corte-media-centered button.mfp-arrow { width:44px; height:44px; }
  .mfp-wrap.corte-media-centered .mfp-arrow-left { left:max(6px, env(safe-area-inset-left)); }
  .mfp-wrap.corte-media-centered .mfp-arrow-right { right:max(6px, env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) {
  .mfp-wrap.corte-media-centered button.mfp-arrow { transition:none; }
}

/* ==========================================================================
   Échelle Globale Desktop (Ratio Équilibré 90%)
   ========================================================================== */
@media (min-width: 992px) {
  html {
    font-size: 90%;
  }
}

/* ==========================================================================
   Rythme Vertical & Espacement Entre Sections (Zéro Perte de Place)
   ========================================================================== */
/* Bandeaux de haut de page harmonisés */
section.corte-page-banner,
section.jarallax {
  padding: 60px 0 !important;
}

/* Sections standard du site (hors réservation et modules applicatifs) */
section:not(.corte-page-banner):not(.jarallax):not(.no-top):not(.no-bottom):not(.corte-booking-section):not(.matrix-planning-card):not(.rooms-horizontal-list):not(.drawer-section):not(.drawer-cal-section) {
  padding: 55px 0 !important;
}

/* Transition fluide et aérée sous le bandeau panoramique ou hero */
section.corte-page-banner + section:not(.corte-booking-section),
section.jarallax + section:not(.corte-booking-section),
main > section:nth-of-type(2):not(.corte-booking-section) {
  padding-top: 36px !important;
}

/* ==========================================================================
   Section & Application de Réservation — Marges & Mise en Page Parfaites
   ========================================================================== */
/* Transition sous le bandeau panoramique pour la réservation */
section.corte-page-banner + .corte-booking-section,
.corte-booking-section {
  padding: 24px 0 80px !important;
  background-color: #FAF8F5 !important;
}

.corte-booking-container {
  max-width: 1420px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 2.5vw, 40px) !important;
}

/* Matrice planning : padding intérieur rétabli et aéré (24px 28px) */
.corte-booking-section section.matrix-planning-card,
section.matrix-planning-card {
  padding: 24px 28px !important;
  margin-bottom: 28px !important;
  background-color: #FFFFFF !important;
  border: 1px solid #EAE5DE !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

/* Liste des logements : zéro padding parasite et espacement fluide entre cartes */
.corte-booking-section section.rooms-horizontal-list,
section.rooms-horizontal-list {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  margin-bottom: 50px !important;
}

.corte-booking-section .room-card--horizontal {
  margin-bottom: 0 !important;
}

/* Suppression du doublon vert redondant sous le planning */
#availabilityNotice {
  display: none !important;
}

/* Suppression des spacers parasites */
.spacer-single { height: 18px !important; }
.spacer-double { height: 32px !important; }

@media (max-width: 767px) {
  section:not(.corte-page-banner):not(.jarallax):not(.no-top):not(.no-bottom):not(.corte-booking-section):not(.matrix-planning-card):not(.rooms-horizontal-list):not(.drawer-section):not(.drawer-cal-section) {
    padding: 38px 0 !important;
  }
  section.corte-page-banner + section:not(.corte-booking-section),
  section.jarallax + section:not(.corte-booking-section),
  main > section:first-of-type:not(.corte-page-banner):not(.jarallax):not(.corte-booking-section):not(.corte-home-hero):not(.no-top) {
    padding-top: 26px !important;
  }
  section.corte-home-hero,
  main > section:first-of-type.corte-home-hero {
    padding: 0 !important;
    padding-top: 0 !important;
  }
  .corte-booking-section section.matrix-planning-card,
  section.matrix-planning-card {
    padding: 16px 14px !important;
  }
}

/* ==========================================================================
   Cadrage d'Images & Élimination des Bordures Parasites
   ========================================================================== */
/* Neutralisation des fonds parasites des grilles photos */
.responsive-photo-grid {
  background: transparent !important;
  gap: 0 !important;
}
.lodging-patchwork {
  background: transparent !important;
  gap: 0 !important;
}

/* Vignettes superposées : bordure nette et ombre douce sans liseré parasite */
.soft-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
img.soft-shadow,
.soft-shadow img {
  border: 0 !important;
  outline: 0 !important;
}

/* Rendu impeccable des images arrondies */
.rounded-1 {
  border-radius: 14px !important;
}
img.rounded-1 {
  display: block;
  object-fit: cover;
  border: 0 !important;
  outline: 0 !important;
}

/* Cartes de chambres : intégration photo fluide et sans bordure blanche asymétrique */
.room-item {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}
.room-item .p-40 {
  padding: 28px !important;
}

/* ==========================================================================
   Harmonisation Typographique Globale (Échelle Resserrée Stéphane UI)
   ========================================================================== */
/* H1 des bandeaux institutionnels et de contenu */
.corte-page-banner h1,
.jarallax h1,
h1.fs-60 {
  font-size: clamp(32px, 3vw, 40px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

/* H1 spécifique aux articles de blog (noble et équilibré) */
.article-banner h1,
.single-post h1,
main.blog-read h1 {
  font-size: clamp(28px, 2.4vw, 34px) !important;
  line-height: 1.25 !important;
}

/* Subtitle au-dessus ou sous le titre de bandeau */
.corte-page-banner .subtitle,
.jarallax .subtitle,
section .subtitle {
  font-size: 13.5px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  margin-bottom: 0.4rem !important;
}

/* H2 intertitres de section (homogènes d'une page à l'autre) */
section h2,
h2.fs-40,
.home-sections h2 {
  font-size: clamp(24px, 2vw, 28px) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.015em !important;
  font-weight: 500 !important;
  margin-bottom: 1rem !important;
}

/* H3 de sous-sections et widgets */
h3,
.col-lg-8 h3,
.corte-room-details h3,
.accommodation-heading h3 {
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: #222222;
}

/* Préserver strictement les textes clairs sur fonds sombres */
.bg-dark h3,
.bg-dark-2 h3,
.section-dark h3,
.text-light h3,
.jarallax h3,
.corte-page-banner h3,
footer h3,
.subfooter h3,
.bg-dark-2 a,
.bg-dark-2 p,
.bg-dark-2 .journal-card-title,
.bg-dark-2 .journal-card-excerpt {
  color: #ffffff !important;
}

/* Corps de texte et paragraphes */
section p {
  font-size: 16px;
  line-height: 1.65;
  color: #555555;
}
p.lead {
  font-size: 17.5px !important;
  line-height: 1.6 !important;
}

/* Justification typographique propre et césures intelligentes */
section p,
.home-sections p,
.corte-room-details p,
.accommodation-details p,
.room-item p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  text-align-last: left !important;
}

/* Les introductions de section et chapeaux centrés restent strictement centrés */
.journal-intro p,
.journal-intro p span,
.text-center > p,
section .text-center p {
  text-align: center !important;
  text-align-last: center !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 3 boutons d'hébergements sur une seule ligne en responsive */
nav.lodgings-overview-nav,
.lodgings-overview-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
nav.lodgings-overview-nav a.btn-main,
.lodgings-overview-nav a.btn-main,
.lodgings-overview-nav .btn-main {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 33.33% !important;
  padding: 8px 3px !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: clamp(10px, 2.7vw, 13px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: -0.02em !important;
  border-radius: 6px !important;
}
nav.lodgings-overview-nav a.btn-main span,
.lodgings-overview-nav a.btn-main span,
.lodgings-overview-nav .btn-main span {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

/* Cartouche pratique des hébergements en responsive (grille 2x2 + prix centré pleine largeur) */
@media (max-width: 767px) {
  .accommodation-practical {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 14px !important;
    padding: 16px 14px !important;
    align-items: center !important;
  }
  .accommodation-practical > .me-4 {
    margin: 0 !important;
    padding: 4px 0 4px 28px !important;
    font-size: 14px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .accommodation-practical > .me-4 img {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: auto !important;
  }
  .accommodation-practical > div:last-child {
    grid-column: 1 / -1 !important;
    margin: 8px 0 0 0 !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
  }
  .accommodation-practical > div:last-child h2 {
    font-size: 24px !important;
    margin: 0 !important;
    text-align: center !important;
    display: inline-block !important;
  }
  .accommodation-practical > div:last-child h2 span {
    font-size: 15px !important;
  }
}

/* ==========================================================================
   Correction du double scroller du menu mobile
   ========================================================================== */
@media (max-width: 992px) {
  html:has(header.header-mobile.menu-open),
  body:has(header.header-mobile.menu-open),
  html.corte-menu-open,
  body.corte-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body:not(.de-sidebar) > header.header-mobile.menu-open {
    background: #ffffff !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.de-sidebar) > header.header-mobile.menu-open #mainmenu {
    overflow: visible !important;
    height: auto !important;
  }

  /* Affichage de l'icône burger pour ouvrir ou fermer le menu */
  #menu-btn.menu-open:before {
    content: "\f0c9" !important;
  }
}

/* ==========================================================================
   Affichage adaptatif des caractéristiques d'hébergement (.card-facts)
   - 3 informations (ou moins) : sur 1 ligne dès que l'espace le permet
   - 4 informations : 2 informations par ligne (grille 2x2)
   ========================================================================== */
.accommodation-heading .card-facts,
.card-facts {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  column-gap: 16px !important;
  row-gap: 8px !important;
}

.accommodation-heading .card-facts > div,
.card-facts > div {
  flex: 0 0 auto !important;
  margin-right: 0 !important;
  white-space: nowrap !important;
}

/* Si 4 informations (ou plus) : disposition en 2 colonnes (2 infos par ligne) */
.accommodation-heading .card-facts:has(> :nth-child(4)),
.card-facts:has(> :nth-child(4)) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
  row-gap: 8px !important;
}

.accommodation-heading .card-facts:has(> :nth-child(4)) > div,
.card-facts:has(> :nth-child(4)) > div {
  white-space: normal !important;
}

@media (max-width: 767px) {
  .accommodation-heading .card-facts,
  .card-facts {
    column-gap: 12px !important;
    row-gap: 6px !important;
    font-size: 13.5px !important;
  }
  .accommodation-heading .card-facts > div.ps-30,
  .card-facts > div.ps-30 {
    padding-left: 23px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.3 !important;
  }
  .accommodation-heading .card-facts > div.ps-30 img,
  .card-facts > div.ps-30 img {
    width: 17px !important;
    top: 2px !important;
  }
  .accommodation-heading .card-facts:has(> :nth-child(4)),
  .card-facts:has(> :nth-child(4)) {
    column-gap: 12px !important;
    row-gap: 6px !important;
  }
}

/* Alignement parfait en hauteur des 3 cards 'Les plaisirs de Soave' / 'I piaceri di Soave' */
.col-lg-4:has(.bg-dark-2) .overflow-hidden.rounded-1 {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
.col-lg-4:has(.bg-dark-2) .p-40.bg-dark-2 {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.col-lg-4:has(.bg-dark-2) .hover.relative {
  flex: 0 0 auto !important;
}

