/*
 * Styling af all calendars made with fullcalendar.io library.
 * There are 3 types of calendars :
 * - list of all calendars : targetted with .fc-timeline
 * -- popup will be targetted with ccb_popup-sejour
 * - two-columns cabin-type calendar, present on a cabin page : targetted with .fc-multimonth
 * - single-column cabin-type calendar, present on cabin funnel : targetted with .fc-daygrid
 * To target all calendars, we will use ".fc" class.
 * The ".fc" class can be used with other children classes to override fullcalendar default styles
 */

/* -------------------------------------------- *
 * VARIABLES GLOBALES ET SURCHARGES FULCALENDAR *
 * -------------------------------------------- */
 :root {
  --ccb-primary: #0e2a29;
  --ccb-primary-rgb: 14, 42, 41;
  --ccb-secondary: #f7f1ea;
  --ccb-secondary-rgb: 247, 241, 234;
  --ccb-tertiary: #053838;
  --ccb-tertiary-rgb: 5, 56, 56;
  --ccb-discount: #c2611c;
  --ccb-discount-rgb: 194, 97, 28;
  --ccb-text-font-regular: "DM Sans", sans-serif;
  --ccb-heading-font: "TTTRavels Next", sans-serif;
  --fc-today-bg-color: transparent;
  --fc-neutral-bg-color: transparent;
}

/* FONTS */
.ccb-text-font-regular {
  font-family: "DM Sans", sans-serif;
}
.ccb-heading-font {
  font-family: "TTTRavels Next", sans-serif;
}

/* ----------------- *
 * SURCHARGE WEBFLOW *
 * ----------------- */
.fc-multimonth a {
  line-height: 1;
}


/*
 * CALENDRIERS CABANES, GÉNÉRAL ET POOLS
 */

/* Flèche désactivée */
.fc .fc-button-primary:disabled {
  background-color: unset;
  border: none;
}

/* Supprimer les bordures des calendriers */
.fc-theme-standard td,
.fc-theme-standard th {
  border-color: transparent;
}

/* Supprimer l'opacité des calendriers */
.fc .fc-bg-event {
  opacity: 1;
}

/* Afficher en entier les mots qui remplacent les prix*/
.ccb_custom-start-date .fc-event-title,
.ccb_custom-end-date .fc-event-title {
  overflow: visible;
}

/* Style pour les titres (prix) */
.ccb_custom-end-date .fc-event-title::after,
.ccb_custom-start-date .fc-event-title::after {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--ccb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lendemain disponible au départ */
.fc-multimonth .ccb_custom-next-day-available {
  background-color: rgba(var(--ccb-tertiary-rgb), .3);
}

/* Jours disponibles au départ */
.ccb_custom-day-available:hover,
.ccb_custom-day-available-first,
.ccb_custom-day-available-last {
  border: 1px dashed var(--ccb-primary) !important;
}

/* Style jour promo et inclus */
.fc-multimonth td.ccb_day-discounted {
  color: var(--ccb-discount);
}

.fc-multimonth td.ccb_day-discounted::before,
.cabanes-legend-item_ill.ccb_day-discounted::after,
.ccb_legend-discount::after,
.fc-multimonth td.ccb_day-included:not(.ccb_day-booked):not(.ccb_day-unavailable) .fc-daygrid-day-frame::after,
.fc-multimonth td.ccb_day-included .fc-daygrid-day-frame::after,
.ccb_custom-day-included .fc-daygrid-day-frame::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 0 10px;
  border-color: var(--ccb-discount) transparent transparent transparent;
  position: absolute;
  top: 0;
  right: 0;
  display: block;
}

/* Jours sélectionnés */
.ccb_custom-start-date .fc-event-title,
.ccb_custom-end-date .fc-event-title {
  color: #fff;
}


/*
 * CALENDRIER MULTIMONTH
 */
/* Jours du calendrier */
.fc-multimonth td.fc-daygrid-day:not(.ccb_custom-day-selected) {
  border-radius: 4px;
}
.fc-multimonth td.fc-daygrid-day:not(.fc-day.fc-day-disabled) {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 4px;
}

/* Jours presque complets */
.fc-multimonth td.ccb_day-verybusy .fc-daygrid-day-frame::after {
  border-style: solid;
  border-width: 10px 10px 0 0;
  border-color: var(--ccb-discount) transparent transparent transparent;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}
/* jours sélectionnés */
.fc-multimonth .ccb_custom-start-date,
.fc-multimonth .ccb_custom-end-date,
.fc-multimonth .ccb_custom-day-included,
.fc-multimonth .ccb_custom-start-date.ccb_day-verybusy,
.fc-multimonth .ccb_custom-end-date.ccb_day-verybusy,
.fc-multimonth .ccb_custom-day-included.ccb_day-verybusy {
  background-color: var(--ccb-primary);
}
/* Lendemain disponible au départ */
.fc-multimonth td.ccb_custom-next-day-available {
  background-color: rgba(var(--ccb-tertiary-rgb), .3);
}

/* Jours intermédaires */
.fc-multimonth .ccb_custom-day-selected:not(.ccb_custom-start-date, .ccb_custom-end-date)/*,
.fc-multimonth .ccb_custom-day-selected .fc-event*/{
  background-color: #fff;
}
.fc-multimonth .ccb_custom-day-selected.ccb_custom-start-date {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.fc-multimonth .ccb_custom-day-selected.ccb_custom-end-date/*,
.fc-multimonth .ccb_custom-day-selected.ccb_custom-end-date .fc-event*/ {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}


.fc-multimonth .ccb_custom-day-selected.ccb_custom-end-date .fc-daygrid-bg-harness {
  position: relative;
}

/* Style pour "Arrivée" */
.fc-multimonth .ccb_custom-start-date .fc-event-title::after {
  content: 'Arrivée';
}

/* Style pour "Départ" */
.fc-multimonth .ccb_custom-end-date .fc-event-title::after,
.fc-multimonth .ccb_custom-day-selected.ccb_custom-end-date .fc-daygrid-bg-harness::after {
  content: 'Départ';
}

@media screen and (width < 479px) {
  /* Style pour "Arrivée" */
  .fc-multimonth .ccb_custom-start-date .fc-event-title::after {
    content: 'A';
  }
  /* Style pour "Départ" */
  .fc-multimonth .ccb_custom-end-date .fc-event-title::after,
  .fc-multimonth .ccb_custom-day-selected.ccb_custom-end-date .fc-daygrid-bg-harness::after {
    content: 'D';
  }
}



.fc-multimonth .ccb_custom-day-selected.ccb_custom-end-date .fc-daygrid-bg-harness::after {
  position: absolute;
  color: #fff;
  z-index: 4;
  font-size: var(--fc-small-font-size);
  left: 50%;
  transform: translateX(-50%);
}

/* Espace entre les cellules */
.fc-multimonth .fc-multimonth-daygrid-table {
  border-collapse: separate;
  border-spacing: 8px;
}

/* Jour réservé ou passé */
.fc-multimonth .fc-day-past .fc-daygrid-day-number,
.fc-multimonth .ccb_day-booked .fc-daygrid-day-number,
.fc-multimonth .ccb_day-unavailable .fc-daygrid-day-number {
  text-decoration: line-through;
  opacity: 0.3;
}

/* Masquer le bouton "plus" des événements */
.fc-multimonth .fc-daygrid-day-bottom {
  display: none;
}

/* Affichage des jours pour les navigateurs non Mozilla */
@supports (not (-moz-appearance:none)) {

  .ccb_custom-next-day-available,
  .fc-multimonth .ccb_custom-start-date,
  .fc-multimonth .ccb_custom-end-date {
    position: relative
  }

  .fc-multimonth .fc-daygrid-day-top {
    margin-top: -8px;
  }

  .fc-multimonth .fc-daygrid-body-balanced .fc-daygrid-day-events {
    top: 15px;
  }

  .fc-multimonth .fc-daygrid-event-harness-abs {
    visibility: unset !important;
  }

  /* Style pour "Départ" */
  .fc-multimonth .ccb_custom-day-selected.ccb_custom-end-date .fc-daygrid-bg-harness::after {
    top: 2px;
  }

  /* Styles pour les jours custom inclus */
  .fc-multimonth .ccb_custom-day-included::after {
    content: none;
  }
  .fc-multimonth .ccb_custom-day-included .fc-daygrid-day-frame {
    content: '';
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background-color: var(--ccb-primary);
    margin: auto;
    border-radius: 4px;
  }

}

.fc .fc-multimonth {
  border: none;
}

.fc-multimonth th {
  height: 52px;
  vertical-align: middle;
  border-bottom: 1.7px solid rgba(var(--ccb-tertiary-rgb), .3);
}

/* Fleches de navigation */
#ccb-cabane-calendar.fc .fc-toolbar.fc-header-toolbar,
#ccb-pool-calendar.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: -3rem;
  z-index: 3;
}

.fc .fc-multimonth-daygrid {
  background: var(--ccb-secondary);
}


.fc-multimonth-title {
  text-transform: uppercase;
}

.fc-multimonth-multicol th {
  text-transform: capitalize;
}

.fc .fc-daygrid-day-top {
  justify-content: center;
}

.fc-multimonth .fc-daygrid-day-number {
  padding-bottom: 3px;
}

.fc .fc-multimonth .fc-daygrid-body-balanced .fc-daygrid-day-events {
  left: 2px;
  right: 2px;
}

.fc-event {
  background-color: transparent;
  border: none;
}

.fc-event .fc-event-title-container {
  display: flex;
  justify-content: center;
}

.fc-multimonth .fc-day:not(.fc-day-past):not(.ccb_day-booked):not(.ccb_day-unavailable) .fc-daygrid-day-number {
  font-weight: bold;
}

.fc-multimonth .ccb_custom-start-date .fc-event,
.fc-multimonth .ccb_custom-end-date .fc-event:not(.ccb_day-booked):not(.ccb_day-unavailable) {
  background-color: var(--ccb-primary) !important;
}

.fc-multimonth .ccb_custom-start-date .fc-daygrid-day-number,
.fc-multimonth .ccb_custom-end-date .fc-daygrid-day-number,
.fc-multimonth .ccb_custom-day-included .fc-daygrid-day-number {
  color: #fff;
}

/* Styles pour les jours réservés et passés */
.fc-multimonth .ccb_day-booked.fc-event-past {
  background-color: unset !important;
}

/**
 * Popup Voyageurs Calendrier pool
 */
@media screen and (max-width: 991px) {   /* ou le breakpoint trouvé */
  #popup-sejour-voyageurs {
    position: absolute;
    top: unset;
    left: 0;
    transform: translate(0, .5rem);
  }
}

/**
 * Légende
 */
/* Dernières places disponibles */
.section_pool-calendar-footer .days-legend-item_ill.ccb_day-verybusy::after {
  content: '';
  border-style: solid;
  border-width: 10px 10px 0 0;
  border-color: var(--ccb-discount) transparent transparent transparent;
  position: absolute;
  top: 0;
  left: 0;
}

/* Affichage du texte de remise long séjour */
#ccbSelectedDates .ccb_sejour_discount-block.ccb_show {
  display: block;
}

/* Bouton de réservation */
#ccbSejourReservationBtn.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}


/* -------------------------------------
 * PAGES RESERVATIONS
 * ------------------------------------- */
/*
 * FILTRES
 */
.pools-listing_wrapper.ccb_show {
  display: block;
}

/*
 * CALENDRIER TIMELINE
 */
/* Position sticky du header */
.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky > * {
  top: 144px;
}


/* Jours du mois sélectionnés */
.fc-theme-standard .fc-scrollgrid {
  border: none;
}

/* Style jour réservé ou passé */
.fc-day-past .ccb_day-booked,
.fc-day-past .ccb_day-unavailable {
  background-color: unset !important;
}

.ccb_fullcalendar .fc-toolbar-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #053838;
}

.fc .fc-button-primary,
.fc .fc-button-primary:hover {
  background-color: transparent;
  border-color: transparent;
}

.fc .fc-button-primary:focus,
.fc .fc-button-primary:target,
.fc .fc-button-primary:active,
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

.fc .fc-button .fc-icon {
  color: transparent;
}

.fc .fc-button .fc-icon {
  background: url("../img/ccb-arrows.svg") center no-repeat transparent;
  background-size: 16px auto;
}

.fc .fc-button .fc-icon.fc-icon-chevron-left {
  rotate: -180deg;
}

/*
 * POPUP
 */

#ccbSelectedDates.ccb_popup-visible {
  display: block;
}

.ccb_sejour_ctas {
  text-align: center;
}


/* Bouton de la popup voyageurs */
.ccb_toggle_button .chev {
    transition: transform .2s ease;
    transform: rotate(0deg);
}

.ccb_toggle_button[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

/* Compteur de voyageurs dans le bouton */
.ccb_travellers_count {
    width: 16px;
}


/* Masquer les steppers +/- natifs */
/* Chrome / Edge / Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Steppers +/- */
.btn-step:hover {
    transform: scale(1.1);
}

.btn-step[disabled] {
    opacity: .5;
    cursor: not-allowed;
}


/*****************
 * FRONT WEBFLOW *
 *****************/

/*
 * PAGE RESERVATION GLOBALE - POOL
 */
/* Flatpickr */
.pools-listing_form-inputs .w-input[readonly] {
    cursor: pointer;
}

.pools-listing_form-inputs .w-input[readonly]:focus-within {
    background-color: #fff;
}

/*
 * PAGE RESERVATION ENVIRONNEMENT DE POOL ET DOMAINE
 */
/* Carte de pool */
/* Info de la carte */
.ccbcards_item-card h3 {
    height: 48px;
}

.ccbcards_item-card .ccbcards_item-info_descr {
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: height 0.3s ease; /* height géré en JS */
}

.ccbcards_item-card .ccbcards_item-info_descr.expanded {
    line-clamp: unset;
    -webkit-line-clamp: unset;
}

/*
 * STICKY BAR - RECHERCHE DE POOLS DISPONIBLES
 */
 /* Flatcpickr - Calendar */
.flatpickr-calendar.ccb-pool-flatpickr {
    animation: none !important;
}
@media screen and (width >= 992px) {
    /* Flatcpickr - Calendar */
    .flatpickr-calendar.ccb-pool-flatpickr {
        margin-top: 1rem;
        transform: scale(1.5);
        transform-origin: top left;
    }
}
@media screen and (width < 992px) {
    /* Flatcpickr - Calendar */
    .flatpickr-calendar.ccb-pool-flatpickr {
        transform: translateY(-1rem);
    }
}

/* Flatpickr - Input */
#ccb-fp-input {
  border: none;
  color: #0e2a29;
  line-height: 1.5;
  padding: 0;
  width: 100%;
}

/* Tous les jours du calendrier */
.flatpickr-calendar .dayContainer .flatpickr-day,
.flatpickr-calendar .dayContainer .flatpickr-day.selected.startRange.endRange {
  border-radius: 4px;
  font-weight: bold;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 4px;
}

/* Tous les jours sauf la sélection en cours */
.flatpickr-calendar .dayContainer .flatpickr-day:not(.selected) {
  color: #0e2a29;
}

/* Arrivée et Départ sélectionnés */
.flatpickr-calendar .dayContainer .flatpickr-day.startRange,
.flatpickr-calendar .dayContainer .flatpickr-day.endRange,
.flatpickr-calendar .dayContainer .flatpickr-day.startRange:hover,
.flatpickr-calendar .dayContainer .flatpickr-day.endRange:hover,
.flatpickr-calendar .dayContainer .flatpickr-day.selected.startRange,
.flatpickr-calendar .dayContainer .flatpickr-day.selected.endRange {
  background-color: var(--ccb-primary);
  border: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #fff;
}

/* Jours désactivés, fin de saison, complets ou passés */
.flatpickr-calendar .dayContainer .flatpickr-disabled,
.flatpickr-calendar .dayContainer .ccb_day-season-end,
.flatpickr-calendar .dayContainer .ccb_day-booked {
  opacity: 0.3;
  text-decoration: line-through;
}

/* Jour occupé refusé en arrivée */
.flatpickr-calendar .dayContainer .ccb_day-booked {
  cursor: not-allowed;
}
/* Jour occupé accepté en départ */
.flatpickr-calendar .dayContainer .ccb_day-booked.ccb_custom-day-available-last {
  cursor: pointer;
}

/* Lendemain de l'arrivée en surbrillance */
.flatpickr-calendar .dayContainer .flatpickr-day.ccb_custom-next-day-available {
  background-color: rgba(var(--ccb-tertiary-rgb), .3);
}

/* FlatPickr Calendar */
.flatpickr-calendar .dayContainer .flatpickr-day.ccb_day-verybusy:not(.flatpickr-disabled) .ccb-event {
    position: absolute;
    top: 0;
    left: 0;
    border-style: solid;
    border-color: var(--ccb-discount) transparent transparent transparent;
    border-width: 10px 10px 0px 0px;
}

/**
 * Ticket RC-775
 * Flatpickr
 * - Légende sous les dates
 * - Font des mois
 * - Masquaque de la sélection de l'année
 */
.ccb-fp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(14, 42, 41, 0.1);
    font-size: 0.75rem;
    color: #0e2a29;
}

.ccb-fp-legend_day {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #fff;
    color: #0e2a29;
    font-weight: bold;
    font-size: 0.75rem;
}

.ccb-fp-legend_day-disabled {
    opacity: 0.3;
    text-decoration: line-through;
}

.ccb-fp-legend_day-disabled + span {
    opacity: 0.3;
}

.ccb-fp-legend_day-verybusy .ccb-event {
    position: absolute;
    top: 0;
    left: 0;
    border-style: solid;
    border-color: var(--ccb-discount) transparent transparent transparent;
    border-width: 10px 10px 0px 0px;
}

.ccb-fp-legend_day-verybusy + span {
  color: var(--ccb-discount);
}

/* Font des mois */
.flatpickr-calendar .flatpickr-current-month span.cur-month {
    font-family: 'TT Travels Next', sans-serif;
    text-transform: uppercase;
}

/* background "Année" */
.flatpickr-calendar .flatpickr-current-month span.cur-month:hover,
.flatpickr-calendar .numInputWrapper:hover {
    background: unset;
}

/* Sélection de l'année */
.flatpickr-calendar .numInputWrapper span {
    display: none;
}

/* CTA RECHERCHER */
#ccbSearchPoolBtn:hover {
  color: #c8a075;
  border-color: #c8a075;
  background-color: #0e2a29;
}


@media screen and (width < 992px) {
    .ccb-pool-search-bar-component.is-open .ccb-pool-search-bar {
        transform: translateY(0);
    }
}


/**
 * Pages des environnements
 */
.cabanes-categories_component .collection-list-categories .collection-item:nth-child(2n) .fullbleed-image_component {
    flex-direction: row-reverse;
}
.cabanes-categories_component .collection-list-categories .collection-item:nth-child(2n) .fullbleed-image_component .fullbleed_content-column.is-offset {
    margin-right: -5.625rem;
    margin-left: 0;
}

@media screen and (width < 992px) {
    .cabanes-categories_component .collection-list-categories .collection-item:nth-child(2n) .fullbleed-image_component .fullbleed_content-column.is-offset {
        margin-right: 0;
    }
}