/*
 * 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,
.fc-timeline .ccb_custom-end-date.ccb_day-unavailable::after,
.fc-timeline .ccb_custom-end-date.ccb_day-booked::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-timeline .ccb_day-discounted,
.fc-multimonth td.ccb_day-discounted {
  color: var(--ccb-discount);
}

.fc-timeline .ccb_day-discounted::after,
.fc-multimonth td.ccb_day-discounted::before,
.cabanes-legend-item_ill.ccb_day-discounted::after,
.ccb_legend-discount::after,
.fc-timeline .ccb_day-included:not(.ccb_day-booked):not(.ccb_day-unavailable)::before,
.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,
.fc-timeline .ccb_custom-day-included .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;
}

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


/* -------------------------------------
 * PAGES RESERVATIONS
 * ------------------------------------- */
/*
 * FILTRES
 */
.cabanes-filter_reset-button {
  cursor: pointer;
}

.cabanes-filter_reset-button.disabled {
  cursor: not-allowed;
}
.pools-listing_wrapper.ccb_show {
  display: block;
}

/*
 * CALENDRIER TIMELINE
 */
/* Affichage du mois */
.fc-toolbar-title {
  text-transform: uppercase;
}

/* Position sticky du header */
#ccb-fullcalendar .fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
  position: sticky;
  top: 106px;
  z-index: 3;
  background-color: #fff;
}
.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky > * {
  top: 144px;
}

/* Affichage des jours du mois */
.fc-scrollgrid-section-header .fc-timeline-header .fc-scrollgrid-sync-table {
  border-collapse: separate;
  border-spacing: 4px 0;
}

.fc-timeline .fc-timeline-header-row .fc-day a {
  font-weight: normal;
  font-size: 0.875rem;
}
.fc-timeline .fc-timeline-header-row:nth-child(2) .fc-day a {
  color: #053838;
}

.fc-timeline .fc-timeline-header-row:first-child .fc-day a {
  text-transform: capitalize;
}

.fc-timeline .fc-timeline-header-row:nth-child(2) .fc-day.fc-day-today {
  background-color: #C8A075;
}

.fc-timeline .fc-timeline-header-row:nth-child(2) .fc-day.fc-day-today a {
  color: #053838;
  font-weight: bold;
}

/* Jours du mois sélectionnés */
.fc-timeline-header-row:nth-child(2) .ccb_custom-date-selected {
  border: 1px solid #C8A075 !important;
}

.fc-timeline .fc-day>div {
  margin: 6px 0;
}

.fc-timeline .fc-timeline-header-row:nth-child(2) .fc-day {
  background-color: var(--ccb-secondary);
}

.fc-timeline .fc-timeline-header-row:nth-child(2) .fc-day.fc-day-past,
.fc-timeline .fc-timeline-header-row:nth-child(2) .fc-day.fc-day-disabled {
  background-color: #fff;
  border: 1px solid rgba(var(--ccb-primary-rgb), 0.2) !important;
}

.fc-timeline .fc-timeline-header-row:nth-child(2) .fc-day.fc-day-past a,
.fc-timeline .fc-timeline-header-row:nth-child(2) .fc-day.fc-day-disabled a {
  text-decoration: line-through;
  color: rgba(var(--ccb-primary-rgb), .3);
}

.fc-theme-standard .fc-scrollgrid {
  border: none;
}

/* Spacing tableau global */
.fc-timeline .fc-scrollgrid {
  border-spacing: 0px 20px;
}

/* Catégories de cabanes */
.fc .fc-resource-timeline .fc-resource-group:not([rowspan]) {
  background: var(--ccb-secondary);
  text-transform: uppercase;
  font-weight: bold;
}

.fc-resource-group {
  height: 64px;
  display: flex;
  align-items: center;
}

/* Masquer icone replie groupField */
.fc-direction-ltr .fc-datagrid-expander {
  display: none;
}

/* Divider Resources - Dates */
.fc .fc-resource-timeline-divider {
  width: 0;
}

/* Gestion des écarts entre les cellules */
.fc .fc-scrollgrid-section-body .fc-datagrid-body,
.fc .fc-scrollgrid-section-body .fc-timeline-body .fc-scrollgrid-sync-table {
  border-collapse: separate;
  border-spacing: 0px 20px;
}

.fc-scrollgrid-sync-table .fc-resource {
  border-bottom: 1px solid var(--ccb-secondary);
  padding-bottom: 20px;
}

.fc-scrollgrid-sync-table .fc-resource.ccb_selected-timeline-calendar {
  text-decoration: underline;
  font-family: var(--ccb-text-font-regular);
}

.fc-scrollgrid-sync-table .fc-timeline-bg-harness {
  margin: 0 2px;
}

/* Affichage des données de chaque jour */
.fc .fc-timeline .fc-event {
  display: flex;
  align-items: center;
}

.fc .fc-timeline .fc-bg-event .fc-event-title {
  font-family: var(--ccb-text-font-regular);
  font-size: 0.75rem;
  font-style: normal;
  text-align: center;
  width: 100%;
  margin: 0;
}

.fc-timeline .fc-event-past {
  background-color: #fff !important;
}

/* Jours sélectionnés */
.fc-timeline .ccb_custom-day-selected,
.fc-timeline .ccb_custom-day-included {
  background-color: var(--ccb-tertiary) !important;
}

.fc-timeline .ccb_custom-start-date,
.fc-timeline .ccb_custom-end-date {
  background-color: #fff !important;
}

.fc-timeline .ccb_custom-day-selected .fc-event-title,
.fc-timeline .ccb_custom-end-date.ccb_day-unavailable::after,
.fc-timeline .ccb_custom-end-date.ccb_day-booked::after {
  color: #fff;
}

/* Style pour "Arrivée" et "Départ" */
.fc-timeline .ccb_custom-start-date .fc-event-title::after,
.fc-timeline .ccb_custom-end-date .fc-event-title::after,
.fc-timeline .ccb_custom-end-date.ccb_day-unavailable::after,
.fc-timeline .ccb_custom-end-date.ccb_day-booked::after {
  z-index: 4;
  border-radius: 51px;
  font-weight: bold;
}

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

/* Style pour "Départ" */
.fc-timeline .ccb_custom-end-date .fc-event-title::after,
.fc-timeline .ccb_custom-end-date.ccb_day-unavailable::after,
.fc-timeline .ccb_custom-end-date.ccb_day-booked::after {
  content: "D";
  font-size: 12px;
}

/* Style jour réservé ou passé */
.fc-timeline .ccb_day-booked:not(.ccb_custom-end-date),
.fc-timeline .ccb_day-unavailable:not(.ccb_custom-end-date),
.fc-timeline .fc-event-past {
  border: 1px solid rgba(var(--ccb-primary-rgb), 0.2);
}

.fc-timeline .ccb_day-booked:not(.ccb_custom-end-date)::before,
.fc-timeline .ccb_day-unavailable:not(.ccb_custom-end-date)::before,
.fc-timeline .fc-event-past::before,
.cabanes-legend-item_ill.unavailable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, transparent 49%, rgba(var(--ccb-primary-rgb), 0.2) 49%, rgba(var(--ccb-primary-rgb), 0.2) 51%, transparent 51%);
}

.fc-day-past .ccb_day-booked,
.fc-day-past .ccb_day-unavailable {
  background-color: unset !important;
}

.fc-timeline td .fc-datagrid-cell-main {
  font-family: var(--ccb-text-font-regular);
}

.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
 */
.ccb_popup-sejour {
  position: fixed;
  z-index: 10;
  background-color: var(--ccb-primary);
  padding: 30px 30px 20px;
  width: 100%;
  max-width: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  color: #fff;
}

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

.ccb_popup-sejour_price-block,
.ccb_popup-sejour_discount-block {
  display: flex;
  justify-content: space-between;
}

.ccb_popup-sejour_discount-block {
  opacity: 0;
  height: 0;
  text-align: right;
}

.ccb_popup-sejour hr {
  border-style: solid;
  border-width: 0.5px;
}

.ccb_popup-sejour_discount-block.show {
  opacity: 1;
  height: auto;
}

.ccb_popup-sejour_price-block p:last-child,
.ccb_popup-sejour_discount-block p:last-child {
  text-align: right;
}

.ccb_popup-sejour_cabname {
  text-transform: uppercase;
  color: #FFFFFF;
  font-family: var(--ccb-heading-font);
  font-size: 1rem;
  margin-bottom: 10px;
}

.ccb_popup-sejour_dates,
.ccb_popup-sejour_price-block *,
.ccb_popup-sejour_discount-block *,
.ccb_popup-sejour_total-block * {
  font-size: 0.875rem;
}

.ccb_popup-sejour_total-block {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #FFFFFF;
}

.ccb_popup-sejour_total-text {
  font-weight: 700;
}

.ccb_sejour_ctas {
  text-align: center;
}

#ccb_popup-sejour_btn {
  width: 100%;
}

.ccb_popup-sejour_reset {
  display: inline-block;
  color: #FFFFFF;
  text-decoration: underline;
  margin: 1rem auto 0;
  font-weight: 700;
  font-size: 0.875rem;
}


/*
 * Dark Mode
 * Timeline Calendar
 */
/* Legend */
.dark-mode .cabanes-legend-item_ill.available div {
  color: var(--ccb-primary);
}

.dark-mode .cabanes-legend-item_ill.unavailable {
  background-color: #fff;
}

/* calendar */
.dark-mode .fc-timeline .fc-event:not(.ccb_custom-day-selected):not(.ccb_custom-start-date) .fc-event-title,
.dark-mode .fc .fc-resource-timeline .fc-resource-group:not([rowspan]) {
  color: var(--swatch--dark-green);
}
.dark-mode .fc-timeline .fc-event:not(.ccb_custom-start-date):not(.ccb_custom-end-date).ccb_custom-day-selected {
  border-top: 1px solid #f7f1ea;
  border-bottom: 1px solid #f7f1ea;
}

.dark-mode .fc-scrollgrid-section.fc-scrollgrid-section-header>* {
  background-color: var(--dark--background);
}

/* Popup */
.dark-mode #ccb_popup-sejour_btn {
  background-color: var(--color--button-background);
  color: var(--color--button-text);
}

/* Datepickr */
.ccb_datepickr-label,
.ccb_datepickr-input {
  color: var(--ccb-primary);
}


/*
 * TABLETTE : Fiche cabane (template)
 * Page réservation
 */
@media screen and (max-width: 767px) {

  /* Titres des catégories de cabane */
  .cabin-category-title_container {
    background-color: var(--ccb-secondary);
    display: flex;
    justify-content: space-around;
    padding: 2rem;
  }

  .cabin-category-title {
    font-size: 0.875rem;
    line-height: 1.3;
  }

  /* Datepickr */
  .cabanes-listing_datepicker-container {
    display: flex;
    justify-content: center;
    background-color: var(--ccb-secondary);
  }
  .ccb_datepickr-input-group {
    margin: 1rem 1.25rem;
  }

  .ccb_datepickr-label {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px;
  }
  .ccb_datepickr-input {
    width: 100%;
    border: none;
    background-color: transparent;
    border-bottom: 1px solid;
    padding-bottom: 1rem;
  }
  .cabanes-listing_datepicker-container .ccb_datepickr-range-separator {
    align-self: center;
    min-width: 16px;
  }
}

/*
 * MOBILE : Fiche cabane (template)
 * Page réservation
 */
 @media screen and (max-width: 373px) {
  .cabanes-listing_datepicker-container {
    flex-direction: column;
  }
  .cabanes-listing_datepicker-container .ccb_datepickr-range-separator img {
    transform: rotate(90deg);
  }
  .ccb_datepickr-input-group {
    width: min(220px, 100%);
    margin-right: auto;
    margin-left: auto;
  }
}


/* 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.3);
        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;
}
/* 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;
}

/* Tous les jours désactivés non occupés ou très occupés */
.flatpickr-calendar .dayContainer .flatpickr-disabled,
.flatpickr-calendar .dayContainer .ccb_day-season-end {
  opacity: 0.3;
  text-decoration: line-through;
}

/* 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;
}

/* 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;
    }
}