
/* =========================================================
    / HOTEL - MOTEUR DE RESERVATION
   CSS ISOLÉ
   ========================================================= */

:root {
    --yd-blue: #022046;
    --yd-gold: #d5a831;
    --yd-disabled: #c8c8c8;
    --yd-border: #e4e4e4;
    --yd-white: #ffffff;
    --yd-text: #333333;
}


/* =========================================================
   FORMULAIRE
   ========================================================= */

.yd-booking-form {
    position: relative;
    z-index: 100;
}


/* =========================================================
   CHAMP DATE
   ========================================================= */

.yd-field {
    position: relative;
    width: 100%;
}

.yd-date-input {
    padding-left: 48px !important;
    cursor: pointer;
    background-color: #fff !important;
    height: 48px;
}

.yd-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    z-index: 2;

    font-size: 19px;
    line-height: 1;

    color: var(--yd-blue);

    pointer-events: none;
}


/* =========================================================
   BOUTON CHAMBRES & VOYAGEURS
   ========================================================= */

.yd-guests-wrapper {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.yd-guests-button {
    width: 100%;
    height: 48px;

    border: 1px solid #ced4da;
    border-radius: 4px;

    background: #fff;
    color: #333;

    display: flex;
    align-items: center;

    padding: 0 13px;

    cursor: pointer;
    text-align: left;
}

.yd-guests-button:hover {
    border-color: var(--yd-gold);
}

.yd-guests-icon {
    margin-right: 10px;
    font-size: 18px;
}

#ydGuestsSummary {
    flex: 1;
    font-size: 14px;
}

.yd-arrow {
    font-size: 20px;
    color: var(--yd-blue);
}


/* =========================================================
   PANEL CHAMBRES
   ========================================================= */

.yd-guests-panel {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    width: 390px;
    max-width: 95vw;

    background: #fff;

    border-radius: 8px;

    padding: 18px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);

    z-index: 999999;
}

.yd-guests-panel.yd-open {
    display: block;
}


/* =========================================================
   CHAMBRE
   ========================================================= */

.yd-room {
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
}

.yd-room:first-child {
    padding-top: 0;
}

.yd-room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.yd-room-title {
    font-size: 15px;
    font-weight: 700;

    color: var(--yd-blue);
}

.yd-remove-room {
    border: 0;
    background: transparent;

    color: #999;

    font-size: 13px;

    cursor: pointer;
}

.yd-remove-room:hover {
    color: #c62828;
}


/* =========================================================
   ADULTES / ENFANTS
   ========================================================= */

.yd-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.yd-guest-label {
    display: flex;
    flex-direction: column;
}

.yd-guest-label strong {
    font-size: 14px;
    color: #333;
}

.yd-guest-label small {
    color: #888;
    font-size: 11px;
}


/* =========================================================
   COMPTEURS + / -
   ========================================================= */

.yd-counter {
    display: flex;
    align-items: center;
    gap: 9px;
}

.yd-counter button {
    width: 30px;
    height: 30px;

    padding: 0;

    border-radius: 50%;

    border: 1px solid #d5d5d5;

    background: #fff;

    color: var(--yd-blue);

    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.yd-counter button:hover {
    border-color: var(--yd-gold);
    color: var(--yd-gold);
}

.yd-counter-value {
    min-width: 20px;

    text-align: center;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   AJOUTER UNE CHAMBRE
   ========================================================= */

.yd-add-room {
    width: 100%;

    margin-top: 15px;

    padding: 10px;

    background: transparent;

    border: 1px dashed var(--yd-gold);

    border-radius: 5px;

    color: var(--yd-blue);

    font-weight: 600;

    cursor: pointer;
}

.yd-add-room:hover {
    background: rgba(213, 168, 49, 0.08);
}

/* =========================================================
   LIGNE AGE ENFANT
   ========================================================= */

.yd-child-age-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 8px;
    margin-bottom: 8px;
    
}


/* =========================================================
   SELECT AGE DES ENFANTS
   ========================================================= */

.yd-age-select {
    width: 105px;
    height: 36px;

    padding: 4px 10px;

    border: 1px solid #d5d5d5;
    border-radius: 6px;

    background-color: #fff;

    color: #333;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    margin-left: auto;
    flex-shrink: 0;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.yd-age-select:hover {
    border-color: var(--yd-gold);
}

.yd-age-select:focus {
    outline: none;

    border-color: var(--yd-gold);

    box-shadow: 0 0 0 2px rgba(213, 168, 49, 0.12);
}

/* =========================================================
   CALENDRIER
   ========================================================= */

.yd-calendar {
    position: absolute;

    width: 310px;

    background: #fff;

    border-radius: 10px;

    padding: 15px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);

    z-index: 2147483647;

    display: none;
}

.yd-calendar.yd-calendar-visible {
    display: block;
}


/* =========================================================
   HEADER CALENDRIER
   ========================================================= */

.yd-calendar-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;
}

.yd-calendar-title {
    font-weight: 700;

    color: var(--yd-blue);

    font-size: 15px;
}

.yd-calendar-nav {
    display: flex;
    gap: 5px;
}

.yd-calendar-nav button {
    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f5f5f5;

    color: var(--yd-blue);

    cursor: pointer;
}

.yd-calendar-nav button:hover {
    background: var(--yd-gold);
    color: #fff;
}


/* =========================================================
   JOURS DE LA SEMAINE
   ========================================================= */

.yd-calendar-week {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    text-align: center;

    margin-bottom: 5px;
}

.yd-calendar-week span {
    font-size: 11px;

    font-weight: 700;

    color: #888;
}


/* =========================================================
   JOURS
   ========================================================= */

.yd-calendar-days {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 3px;
}

.yd-calendar-day {
    height: 37px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 13px;

    cursor: pointer;

    color: #333;
}

.yd-calendar-day.yd-empty {
    cursor: default;
}

.yd-calendar-day.yd-disabled {
    color: var(--yd-disabled);
    cursor: not-allowed;
}

.yd-calendar-day.yd-today {
    color: var(--yd-blue);

    font-weight: 800;

    border: 2px solid var(--yd-blue);
}

.yd-calendar-day.yd-selected {
    background: var(--yd-gold);

    color: #fff;

    font-weight: 700;
}

.yd-calendar-day:not(.yd-disabled):not(.yd-empty):hover {
    background: rgba(213, 168, 49, 0.25);
}


/* =========================================================
   BOUTON RECHERCHE
   ========================================================= */

.yd-search-btn {
    min-height: 48px;
}

.yd-search-icon {
    margin-right: 5px;
}

/*=======================================================

========================================================*/
section.section.bg-light#next,
section.section.bg-light:has(.yd-booking-form),
.check-availabilty,
.check-availabilty .block-32,
.yd-booking-form {
    position: relative !important;
    overflow: visible !important;
}

section.section.bg-light:has(.yd-booking-form) {
    z-index: 500 !important;
}

.check-availabilty {
    z-index: 501 !important;
}

.check-availabilty .block-32 {
    z-index: 502 !important;
}

.yd-booking-form {
    z-index: 503 !important;
}

.yd-guests-wrapper {
    z-index: 1000 !important;
}

.yd-guests-panel {
    z-index: 999999 !important;
}
/* =========================================================
   IMPORTANT
   NE PAS TOUCHER AU HEADER DU TEMPLATE
   ========================================================= */

/*
   PAS DE :

   .yd-booking-form .row,
   .yd-booking-form [class*="col-"]

   avec des z-index élevés.

   Cela peut perturber les éléments Bootstrap
   et le header original.
*/


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575px) {

    .yd-guests-panel {
        width: calc(100vw - 30px);

        max-width: none;

        left: 50%;

        transform: translateX(-50%);
    }

    .yd-calendar {
        width: 300px;

        max-width: calc(100vw - 30px);
    }

}

