/* Regular */
@font-face {
    font-family: 'URWClassico';
    src: url('../fonts/URWClassico-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: 'URWClassico';
    src: url('../fonts/URWClassico-Bold.ttf') format('truetype');
    font-weight: bold; /* o 700 */
    font-style: normal;
}

/* Italic */
@font-face {
    font-family: 'URWClassico';
    src: url('../fonts/URWClassico-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

/* Bold Italic */
@font-face {
    font-family: 'URWClassico';
    src: url('../fonts/URWClassico-Bolditalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

:root {
    --first-font: 'URWClassico', sans-serif;
    --highlight-font: 'URWClassico', sans-serif;
}

h1, .title, .the-title, .box_with_image_bg .content .title {
    font-family: var(--first-font);
    font-weight: 500;
}

/* POST PREVIEW */
.de_block_post_preview.grid .item_wrap .item, .de_block_post_preview.carousel .item_wrap .item {
    border: solid 1px;
}

.extra_content_section.has_featured_img .thumb_wrap .thumb {
    min-height: 60vh;
}

.de_block_post_preview.grid .item_wrap .item .content_wrap .title, .de_block_post_preview.carousel .item_wrap .item .content_wrap .title {
    text-align: left;
}

@media (min-width: 1200px) {
    .de_block_post_preview.grid .external_container:not(.elements_to_filter) .item_wrap.full_desktop, .de_block_post_preview.carousel .external_container:not(.elements_to_filter) .item_wrap.full_desktop {
         order: 9;
    }
}

/* MENU */
#menus ul.menu > li ul.sub-menu > li a:hover {
    color: var(--hover);
}

@media (min-width: 1400px) and (min-height: 800px) {
    :not(.children_section):not(.booking_form_section.dynamic).section {
        padding-bottom: 40px;
    }
}

/* Conteneur Flexbox */
.app-buttons-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px; /* Espace automatique entre les boutons */
    margin-top: 20px;
}

/* BUTTONS APPS */
.app-btn {
    padding: 10px 20px;
    background-color: #ffffff;
    color: #00334e !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: 2px solid #ffffff;
    white-space: nowrap; /* Empêche le texte de se couper */
}

.app-btn:hover {
    background-color: transparent;
    color: #ffffff !important;
}

/* Responsive : passage en colonne sur mobile */
@media (max-width: 480px) {
    .app-buttons-flex {
        flex-direction: column;
        align-items: flex-start; /* Ou 'center' pour centrer les boutons */
        gap: 0px;
    }
}

#booking_form {
    width: auto;

    .section-hotel.hidden {
        display: none;
    }
}

#booking_form:hover .hotel-selector, #booking_form .hotel-selector:hover {
    color: initial;
}

#booking_form .hotel-selector {
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
}

#booking_form .hotel-selector option {
    padding: 5px 10px;
}

@supports (appearance: base-select) {
    #booking_form .hotel-selector,
    #booking_form .hotel-selector::picker(select) {
        appearance: base-select;
        line-height: 30px;
        min-width: 180px;
    }

    #booking_form .hotel-selector {
        background-image: none;
    }

    #booking_form .hotel-selector::picker-icon {
        display: none;
    }

    #booking_form .hotel-selector::picker(select) {

    }

    #booking_form .hotel-selector option.option-group-label {
        text-decoration: underline;
        text-underline-offset: 8px;
        padding: 8px 10px;
    }

    #booking_form .hotel-selector option.option-group-child {
        padding-left: 20px;
    }


    #booking_form .hotel-selector option {
        padding: 8px 10px;
        cursor: pointer;
    }

    #booking_form .hotel-selector option:hover {
        background: #f5f5f5;
    }

    #booking_form .hotel-selector option:checked {
        background: var(--hover);
        color: #ffffff;
    }

    #booking_form .hotel-selector option::checkmark {
        display: none;
    }

    #booking_form .hotel-selector.hide-hotels option.option-hotel {
        display: none;
    }
}

#booking_form .arriving-tab label:has(+.quickbook-form-tab:focus-within) #arrival_format, #booking_form .arriving-tab label:has(+.quickbook-form-tab:focus-within) #departure_format, #booking_form .departing-tab label:has(+.quickbook-form-tab:focus-within) #arrival_format, #booking_form .departing-tab label:has(+.quickbook-form-tab:focus-within) #departure_format {
    display: none;
}

/* Property Book Sidebar (mobile only, group pages) */
.property-book-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    &.is-open {
        display: block;
    }

    .property-book-sidebar__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        animation: pbsOverlayIn .3s ease;
    }

    .property-book-sidebar__panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        display: flex;
        flex-direction: column;
        box-shadow: -4px 0 24px rgba(0, 0, 0, .15);
        animation: pbsSlideIn .3s ease;
    }

    .property-book-sidebar__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid #eee;
    }

    .property-book-sidebar__title {
        font-family: var(--first-font);
        font-size: 18px;
        font-weight: bold;
        color: var(--main_text_color, #333);
    }

    .property-book-sidebar__close {
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        color: var(--main_text_color, #333);
        padding: 0 4px;
    }

    .property-book-sidebar__list {
        list-style: none;
        margin: 0;
        padding: 12px 0;
        overflow-y: auto;
        flex: 1;

        li {
            a {
                display: block;
                padding: 14px 20px;
                color: var(--main_text_color, #333);
                text-decoration: none;
                font-size: 15px;
                font-family: var(--first-font);
                transition: background .2s;

                &:hover, &:active {
                    background: #f5f5f5;
                    color: var(--hover, #000);
                }
            }
        }

        .property-book-sidebar__group-label a{
            padding: 18px 20px 6px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: .05em;
            color: var(--hover, #999);
            font-family: var(--first-font);
        }

        .property-book-sidebar__group-child a {
            padding-left: 32px;
        }
    }
}

@keyframes pbsSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pbsOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.offers_section.offers_grid .offers_container {
    justify-content: flex-start;
}