﻿body {
}

.navIcon {
    list-style-type: none !important;
}

#rb-room-info .row {
    min-height: 220px;
}

#rb-room-image {
    min-height: 200px;
    max-height: 260px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

#rb-room-description {
    min-height: 200px;
    max-height: 260px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
}

@media (max-width: 767px) {
    #rb-room-info .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #rb-room-image, #rb-room-description {
        max-height: none;
        min-height: 120px;
    }
}

.rb-booking-success .dashicons {
    color: #28a745;
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.rb-booking-failure .dashicons {
    color: #dc3545;
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

#rb-booking-wizard {
    position: relative;
}

/* Stepper moderne unifié */
.rb-stepper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.rb-stepper-progress {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.rb-stepper-progress-bar {
    height: 100%;
    background: var(--ounekos-stepper-primary, #0d6efd);
    transition: width 0.3s;
}

.rb-stepper-steps {
    position: relative;
    z-index: 1;
}

.rb-stepper-step {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s;
    text-align: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.25rem;
}

.rb-stepper-dot {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #f1f3f7;
    color: #adb5bd;
    transition: background 0.2s, color 0.2s, all 0.3s ease;
}

.rb-stepper-step.active .rb-stepper-dot,
.rb-stepper-step.completed .rb-stepper-dot {
    background: var(--ounekos-stepper-primary, #0d6efd);
    color: #fff;
}

.rb-stepper-step.completed .rb-stepper-dot {
    background: #198754;
}

.rb-stepper-step:not(.active):not(.completed) .rb-stepper-dot {
    background: #e9ecef;
    color: #adb5bd;
}

.rb-stepper-label {
    font-size: 1rem;
    font-weight: 500;
    color: #adb5bd;
    transition: color 0.2s;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.rb-stepper-step.active .rb-stepper-label,
.rb-stepper-step.completed .rb-stepper-label {
    color: var(--ounekos-stepper-primary, #0d6efd);
}

.rb-stepper-step.completed .rb-stepper-label {
    color: #198754;
}

.rb-stepper-step:not(.active):not(.completed) .rb-stepper-label {
    color: #adb5bd;
}

/* Conteneurs principaux */
#rb-booking-wizard-reserve, #rb-booking-wizard {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    flex: 0 0 auto;
}

/* Mise en page pour le wizard avec navigation fixe */
#rb-booking-wizard-reserve {
    display: flex;
    flex-direction: column;
    /*     height: 80vh;
   height: 100vh;
    max-height: 100vh
    overflow: hidden;;*/
    position: relative;
    transition: all 0.3s ease;
    /*scrollbar-width: none !important;*/ /* Firefox */
    /*-ms-overflow-style: none !important;*/ /* IE et Edge */
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    #rb-booking-wizard-reserve {
        scroll-behavior: auto !important; /* Pas de smooth scroll sur mobile */
        -webkit-overflow-scrolling: touch; /* Scroll natif iOS */
    }

    .rb-step-content-container {
        scroll-behavior: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Améliorer les boutons tactiles */
    .rb-stepper-step,
    .rb-duration-card,
    .rb-reserve-room {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        cursor: pointer;
    }
}

/* ✅ RÈGLES POUR APPAREILS TACTILES */
@media (hover: none) and (pointer: coarse) {
    .rb-duration-card:active,
    .rb-reserve-room:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

#rb-booking-wizard-reserve .rb-step-content-container {
    scroll-behavior: smooth;
}

#rb-booking-wizard-reserve .card {
    /*   overflow: hidden !important;
        height: 100%;*/
}

#rb-booking-wizard-reserve .rb-stepper-container {
    flex-shrink: 0;
    overflow-x: auto;
    /*     overflow-y: hidden;*/
    padding: 0 1rem;
    /*scrollbar-width: none;*/ /* Firefox */
    /*-ms-overflow-style: none;*/ /* Internet Explorer et Edge */
}


#rb-booking-wizard-reserve .bg-white.rounded-4 {
    /*        height: 100%;
        overflow: hidden;*/
    display: flex;
    flex-direction: column;
}

#rb-booking-wizard-reserve .booking-options-container {
    flex-grow: 1;
    /*  overflow: hidden;*/
}

#rb-booking-wizard-reserve .rb-stepper-icon {
    width: 20px;
    height: 20px;
}

#rb-booking-wizard-reserve .rb-stepper-connector {
    width: 4rem;
    height: 2px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

#rb-booking-wizard-reserve .rb-step-content-container {
    /*max-height: none !important;
        overflow: hidden !important;
        height: auto !important;*/
    flex-grow: 1;
    /*  overflow-x: hidden;*/
    padding: 0;
}

#rb-booking-wizard-reserve .rb-navigation-footer {
    flex-shrink: 0;
    min-height: 80px;
}

#rb-booking-wizard-reserve .rb-step-navigation {
    width: 100%;
}

#rb-booking-wizard-reserve .rb-reserve-step {
    width: 100%;
    /*        height: 100%;
        overflow: hidden;
        min-height: 100%;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Momentum scrolling iOS */
#rb-booking-wizard-reserve,
#rb-booking-wizard-reserve .rb-step-content-container,
#ounekos-client-portal-root .tab-content {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

    /* Styles spécifiques pour le stepper du mode réserve - Correction du problème SVG */
    #rb-booking-wizard-reserve .rb-stepper-dot {
        background: #e9ecef !important;
        color: #adb5bd !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-step.active .rb-stepper-dot,
    #rb-booking-wizard-reserve .rb-stepper-step.completed .rb-stepper-dot {
        background: var(--ounekos-stepper-primary, #0d6efd) !important;
        color: #fff !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-step.active .rb-stepper-icon,
    #rb-booking-wizard-reserve .rb-stepper-step.completed .rb-stepper-icon {
        color: #fff !important;
        stroke: #fff !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-step:not(.active):not(.completed) .rb-stepper-icon {
        color: #adb5bd !important;
        stroke: #adb5bd !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-step.completed .rb-stepper-dot {
        background: #198754 !important;
    }

    /* S'assurer que les styles inline ne surchargent pas */
    #rb-booking-wizard-reserve .rb-stepper-dot[style] {
        background: var(--ounekos-stepper-primary, #0d6efd) !important;
        color: #fff !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-step:not(.active):not(.completed) .rb-stepper-dot[style] {
        background: #e9ecef !important;
        color: #adb5bd !important;
    }

/* Masquer toutes les navigations sauf celle active */
.rb-step-navigation {
    display: none !important;
}

    .rb-step-navigation.active {
        display: flex !important;
    }

/* Style de défilement pour la zone de contenu */
.rb-step-content-container::-webkit-scrollbar {
    width: 8px;
}

.rb-step-content-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rb-step-content-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .rb-step-content-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Style pour les barres de défilement du wizard principal */
#rb-booking-wizard-reserve::-webkit-scrollbar {
    width: 8px;
}

#rb-booking-wizard-reserve::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#rb-booking-wizard-reserve::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    #rb-booking-wizard-reserve::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Styles pour les ressources */
#rb-booking-wizard-reserve .rb-reserve-resource {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 1em;
}

    #rb-booking-wizard-reserve .rb-reserve-resource.selected {
        border: 2px solid #007bff;
        background: #f8f9fa;
    }

#rb-reserve-resources-list {
    display: block !important;
    flex-wrap: wrap;
    gap: 1em;
    /*  overflow-y: auto;
    max-height: none;*/
}

/* Cartes de durée */
#rb-reserve-duration-list {
    /*max-height: calc(100vh - 300px);*/ /* Ajuster selon la hauteur des autres éléments */
    /*overflow: hidden;*/
}

    #rb-reserve-duration-list .rb-duration-card {
        border: 2px solid #e5e7eb;
        border-radius: 1rem;
        background: #fff;
        padding: 1rem 0.5rem;
        cursor: pointer;
        transition: border 0.2s, background 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }

        #rb-reserve-duration-list .rb-duration-card.selected,
        #rb-reserve-duration-list .rb-duration-card:focus {
            border-color: var(--ounekos-stepper-primary, #0d6efd);
            background: #e7f1ff;
            box-shadow: 0 4px 16px rgba(13,110,253,0.08);
        }

        #rb-reserve-duration-list .rb-duration-card .price {
            color: var(--ounekos-stepper-primary, #0d6efd);
            font-weight: bold;
            font-size: 1.1rem;
        }

/* Boutons de créneaux horaires */
#rb-reserve-hour-grid .rb-room-slot-btn,
.rb-room-slot-btn {
    min-width: 80px;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    background: #f8f9fa;
    color: #212529;
    border: 1.5px solid #e5e7eb;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border 0.15s, transform 0.1s;
    box-shadow: none;
}

    #rb-reserve-hour-grid .rb-room-slot-btn:hover:not(:disabled),
    .rb-room-slot-btn:hover:not(:disabled) {
        background: #e7f1ff;
        color: var(--ounekos-stepper-primary, #0d6efd);
        border-color: var(--ounekos-stepper-primary, #0d6efd);
        transform: scale(1.05);
    }

    #rb-reserve-hour-grid .rb-room-slot-btn.active,
    .rb-room-slot-btn.active {
        background: var(--ounekos-stepper-primary, #0d6efd);
        color: #fff;
        border-color: var(--ounekos-stepper-primary, #0d6efd);
        font-weight: bold;
    }

/* Carte pour la ressource/salle */
.rb-reserve-room {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    margin-bottom: 1.5rem;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
}

    .rb-reserve-room.border-primary,
    .rb-reserve-room.selected {
        border-color: var(--ounekos-stepper-primary, #0d6efd) !important;
        box-shadow: 0 4px 16px rgba(13,110,253,0.08);
    }

    .rb-reserve-room .card-footer {
        background: #f8f9fa;
        border-top: none;
    }

/* Boutons de navigation */
#rb-reserve-step1-next,
#rb-reserve-step2-next,
#rb-reserve-step3-next,
#rb-reserve-book-button,
#rb-step1-next,
#rb-step2-next,
#rb-step3-next,
#rb-book-button {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 120px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}

    #rb-reserve-step1-next:disabled,
    #rb-reserve-step2-next:disabled,
    #rb-reserve-step3-next:disabled,
    #rb-reserve-book-button:disabled,
    #rb-step1-next:disabled,
    #rb-step2-next:disabled,
    #rb-step3-next:disabled,
    #rb-book-button:disabled {
        background: #e9ecef !important;
        color: #adb5bd !important;
        border: none !important;
        cursor: not-allowed !important;
        opacity: 0.7;
        box-shadow: none;
    }

/* Styles pour les tableaux et messages */
#rb-reserve-summary table,
#rb-step4 table {
    font-size: 1rem;
}

#rb-reserve-summary td,
#rb-step4 td {
    vertical-align: middle;
}

#rb-reserve-booking-response,
#rb-booking-response {
    font-size: 1.1rem;
}

/* Styles pour les messages d'erreur */
.field-error {
    margin-top: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
}

/* Classes utilitaires pour les messages d'erreur */
.bg-amber-50 {
    background-color: #fffbeb;
}

.border-amber-200 {
    border-color: #fde68a;
}

.text-amber-600 {
    color: #d97706;
}

.text-amber-800 {
    color: #92400e;
}

.bg-amber-100 {
    background-color: #fef3c7;
}

.font-medium {
    font-weight: 500;
}

/* Styles spécifiques au portail client */
#ounekos-client-portal-root .btn-primary {
    background: var(--ounekos-portal-primary) !important;
    border: none;
}

#ounekos-client-portal-root .nav-tabs .nav-link.active {
    background: var(--ounekos-portal-primary) !important;
    color: #fff !important;
}

#ounekos-client-portal-root .card {
    background: var(--ounekos-portal-bg);
    color: var(--ounekos-portal-text);
}

/* Variables CSS pour les couleurs */
:root {
    --ounekos-stepper-primary: #0d6efd;
}

/* Support des couleurs personnalisées */
body[data-ounekos-btn-custom="1"] .rb-stepper-step.active .rb-stepper-dot,
body[data-ounekos-btn-custom="1"] .rb-stepper-step.completed .rb-stepper-dot,
body[data-ounekos-btn-custom="1"] .rb-stepper-step.active .rb-stepper-label,
body[data-ounekos-btn-custom="1"] .rb-stepper-step.completed .rb-stepper-label,
body[data-ounekos-btn-custom="1"] #rb-reserve-step1-next,
body[data-ounekos-btn-custom="1"] #rb-reserve-step2-next,
body[data-ounekos-btn-custom="1"] #rb-reserve-step3-next,
body[data-ounekos-btn-custom="1"] #rb-reserve-book-button,
body[data-ounekos-btn-custom="1"] #rb-step1-next,
body[data-ounekos-btn-custom="1"] #rb-step2-next,
body[data-ounekos-btn-custom="1"] #rb-step3-next,
body[data-ounekos-btn-custom="1"] #rb-book-button {
    background: var(--ounekos-btn-custom-color, #0d6efd) !important;
    color: #fff !important;
    border: none !important;
}

body[data-ounekos-btn-custom="1"] .rb-stepper-step.active .rb-stepper-label,
body[data-ounekos-btn-custom="1"] .rb-stepper-step.completed .rb-stepper-label {
    color: var(--ounekos-btn-custom-color, #0d6efd) !important;
}

/* Support d'accessibilité */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Réduction des animations si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
    .transition-all, .duration-200, .duration-300 {
        transition: none !important;
    }

    .animate-fadeIn {
        animation: none !important;
    }

    .hover\:scale-105:hover {
        transform: none !important;
    }
}

/* Styles responsive */
@media (max-width: 768px) {
    /* Stepper responsive général */
    .rb-stepper-step .rb-stepper-label {
        font-size: 0.9rem;
    }

    /* Stepper reserve mode responsive */
    #rb-booking-wizard-reserve .rb-stepper-container {
        padding: 0 0.5rem;
    }

    #rb-booking-wizard-reserve .rb-stepper-step {
        padding: 0 0.125rem;
    }

    #rb-booking-wizard-reserve .rb-stepper-dot {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-icon {
        width: 16px;
        height: 16px;
    }

    #rb-booking-wizard-reserve .rb-stepper-label {
        font-size: 0.75rem !important;
        line-height: 1.1;
    }

    #rb-booking-wizard-reserve .rb-stepper-connector {
        width: 2rem;
        margin: 0 0.25rem;
    }
    /* Masquer les barres de défilement sur PC (webkit) */
    @media (min-width: 769px) {
        .rb-stepper-container::-webkit-scrollbar,
        #rb-booking-wizard-reserve::-webkit-scrollbar,
        .rb-step-content-container::-webkit-scrollbar {
            width: 0px;
            background: transparent;
        }

        /* Firefox */
        .rb-stepper-container,
        #rb-booking-wizard-reserve,
        .rb-step-content-container {
            scrollbar-width: none;
        }

        /* Edge et IE */
        .rb-stepper-container,
        #rb-booking-wizard-reserve,
        .rb-step-content-container {
            -ms-overflow-style: none;
        }
    }

    /* Garder les barres de défilement sur mobile pour l'accessibilité */
    @media (max-width: 768px) {
        .rb-stepper-container::-webkit-scrollbar,
        #rb-booking-wizard-reserve::-webkit-scrollbar,
        .rb-step-content-container::-webkit-scrollbar {
            width: 8px;
        }

        .rb-stepper-container::-webkit-scrollbar-track,
        #rb-booking-wizard-reserve::-webkit-scrollbar-track,
        .rb-step-content-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .rb-stepper-container::-webkit-scrollbar-thumb,
        #rb-booking-wizard-reserve::-webkit-scrollbar-thumb,
        .rb-step-content-container::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }

        /* Firefox */
        .rb-stepper-container,
        #rb-booking-wizard-reserve,
        .rb-step-content-container {
            scrollbar-width: thin;
            scrollbar-color: #888 #f1f1f1;
        }
    }
    /* Autres éléments */

    .rb-reserve-room {
        padding: 0.5rem;
    }

    /* Rendre le conteneur du stepper responsive pour le mode standard */
    .d-flex.align-items-center.justify-content-center.mb-4 {
        /*        flex-wrap: wrap;
        overflow-x: hidden;*/
    }

    .mx-3.flex-shrink-0 {
        width: 1rem !important;
        flex: 0 0 1rem;
        min-width: 1rem;
    }

    .rb-stepper-step .rb-stepper-dot {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1.2rem !important;
    }

    .rb-stepper-label {
        font-size: 0.8rem !important;
        white-space: normal;
        max-width: 80px;
        margin: 0 auto;
    }

    .rb-stepper-step {
        padding: 0 5px;
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .rb-duration-card h4 {
        font-size: 1rem !important;
    }

    .rb-duration-card .price {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    /* Stepper reserve mode très petits écrans */
    #rb-booking-wizard-reserve .rb-stepper-container {
        padding: 0 0.25rem;
    }

    #rb-booking-wizard-reserve .rb-stepper-step {
        padding: 0;
    }

    #rb-booking-wizard-reserve .rb-stepper-dot {
        width: 2rem !important;
        height: 2rem !important;
        margin-bottom: 0.5rem;
    }

    #rb-booking-wizard-reserve .rb-stepper-icon {
        width: 14px;
        height: 14px;
    }

    #rb-booking-wizard-reserve .rb-stepper-label {
        font-size: 0.7rem !important;
        line-height: 1;
        max-width: 60px;
    }

    #rb-booking-wizard-reserve .rb-stepper-connector {
        width: 1rem;
        margin: 0 0.125rem;
    }

    /* Mode standard très petits écrans */
    .mx-3.flex-shrink-0 {
        width: 0.5rem !important;
        flex: 0 0 0.5rem;
        min-width: 0.5rem;
    }

    .rb-stepper-step .rb-stepper-dot {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 360px) {
    #rb-booking-wizard-reserve .rb-stepper-label {
        font-size: 0.65rem;
        max-width: 50px;
    }

    #rb-booking-wizard-reserve .rb-stepper-dot {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }

    #rb-booking-wizard-reserve .rb-stepper-icon {
        width: 12px;
        height: 12px;
    }

    #rb-booking-wizard-reserve .rb-stepper-connector {
        width: 0.75rem;
    }
}

@media (max-width: 320px) {
    #rb-booking-wizard-reserve .rb-stepper-label {
        display: none;
    }

    #rb-booking-wizard-reserve .rb-stepper-dot {
        margin-bottom: 0;
    }
}
/* Solution moderne avec Container Queries (support navigateurs récents) */
#rb-reserve-step3 {
    container-type: inline-size;
    container-name: step3-container;
}

@container step3-container (max-width: 575px) {
    .col-12.col-md-6,
    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .row.mb-4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mb-3 {
        margin-bottom: 1.5rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* === CORRECTIONS POUR ELEMENTOR POPUP SUR MOBILE === */

/* Forcer la visibilité dans les popups Elementor */
.elementor-popup-modal #rb-booking-wizard-reserve,
.elementor-popup-modal #rb-booking-wizard {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: 90vh !important;
    overflow: visible !important;
}

/* Corrections spécifiques pour mobile dans Elementor */
@media (max-width: 768px) {
    .elementor-popup-modal #rb-booking-wizard-reserve {
        height: auto !important;
        max-height: 85vh !important;
        min-height: 500px !important;
    }

    .elementor-popup-modal #rb-reserve-step1,
    .elementor-popup-modal #rb-reserve-step2,
    .elementor-popup-modal #rb-reserve-step3,
    .elementor-popup-modal #rb-reserve-step4 {
        display: none !important;
    }

        .elementor-popup-modal #rb-reserve-step1.show.active {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

    .elementor-popup-modal .rb-step-content-container {
        overflow-y: auto !important;
        max-height: 60vh !important;
        flex-grow: 1 !important;
    }

    .elementor-popup-modal .rb-navigation-footer {
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        z-index: 10 !important;
        border-top: 1px solid #dee2e6 !important;
    }
}

/* Forcer la visibilité sur tous les appareils mobiles dans Elementor */
@media (max-width: 575.98px) {
    .elementor-popup-modal #rb-booking-wizard-reserve .rb-reserve-step.show.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .elementor-popup-modal #rb-booking-wizard-reserve .rb-reserve-step:not(.show) {
        display: none !important;
    }

    /* Corrections pour les colonnes sur très petits écrans */
    .elementor-popup-modal #rb-reserve-step3 .col-12.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Corrections pour les z-index dans Elementor */
.elementor-popup-modal {
    z-index: 9999 !important;
}

    .elementor-popup-modal #rb-booking-wizard-reserve {
        z-index: 1 !important;
        position: relative !important;
    }

    .elementor-popup-modal .rb-stepper-container {
        z-index: 2 !important;
        position: relative !important;
    }
/* Stabilisation largeur du wizard et de ses enfants (compatible mobile/Elementor) */
#rb-booking-wizard-reserve,
#rb-booking-wizard {
    box-sizing: border-box;
}

    #rb-booking-wizard-reserve .card,
    #rb-booking-wizard-reserve .rb-stepper-container,
    #rb-booking-wizard-reserve .rb-step-content-container,
    #rb-booking-wizard-reserve .rb-reserve-step,
    #rb-booking-wizard-reserve .rb-step-navigation,
    #rb-booking-wizard .card,
    #rb-booking-wizard .rb-stepper-container,
    #rb-booking-wizard .rb-step-content-container,
    #rb-booking-wizard .rb-reserve-step,
    #rb-booking-wizard .rb-step-navigation {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0; /* évite l’élargissement des items flex */
    }

    #rb-booking-wizard-reserve .rb-step-content-container,
    #rb-booking-wizard .rb-step-content-container {
        overflow-x: hidden;
    }

    /* Empêche un mot/URL trop long d’élargir le layout */
    #rb-booking-wizard-reserve .rb-reserve-step,
    #rb-booking-wizard .rb-reserve-step {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

/* Stabilise la largeur quand la scrollbar verticale apparaît/disparaît (non bloquant si non supporté) */
html {
    scrollbar-gutter: stable;
}
/* Icônes du stepper (mode standard): plus petites que le rond */
#rb-booking-wizard .rb-stepper-dot .rb-stepper-icon {
    width: 60%;
    height: 60%;
    display: block;
    flex: 0 0 auto;
}

    #rb-booking-wizard .rb-stepper-dot .rb-stepper-icon *,
    #rb-booking-wizard .rb-stepper-dot .rb-stepper-icon {
        vector-effect: non-scaling-stroke;
    }
/* Sélecteur de langue */
.ounekos-language-selector {
    position: relative;
    z-index: 1000;
}

.ounekos-lang-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.ounekos-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .ounekos-lang-trigger:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
        color: #212529;
    }

.ounekos-lang-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.5;
}

.ounekos-lang-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.ounekos-lang-dropdown {
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.ounekos-lang-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .ounekos-lang-option:hover {
        background-color: #f8f9fa;
    }

    .ounekos-lang-option .avatar {
        width: 1.5rem;
        height: 1.5rem;
        overflow: hidden;
    }

        .ounekos-lang-option .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* Position pour le wizard reserve */
#rb-booking-wizard-reserve .ounekos-lang-container {
    position: relative;
    top: 10px;
    /* right: 1rem; */
    margin-bottom: 0;
}

/* Position pour le wizard classique */
#rb-booking-wizard .ounekos-lang-container {
    position: relative;
    top: 10px;
}

/* Position pour le portail client */
#ounekos-client-portal-root .ounekos-language-selector {
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .ounekos-lang-name {
        display: none !important;
    }

    .ounekos-lang-trigger {
        padding: 0.5rem;
        min-width: 2.5rem;
        justify-content: center;
    }

    #rb-booking-wizard-reserve .ounekos-lang-container,
    #rb-booking-wizard .ounekos-lang-container {
        /* top: 0.5rem; */
        right: 0.5rem;
    }
}

/* Animation d'apparition */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ounekos-lang-dropdown.show {
    animation: fadeInDropdown 0.2s ease;
}

.ounekos-lang-fullrow {
    min-height: 2em;
}
/* ============================================
   SHOPPING CART (Dropdown) - Latest
   ============================================ */

/* Cart Container - même logique que le sélecteur de langue */
.ounekos-cart-container {
    display: inline-block;
}

.ounekos-cart-selector {
    position: relative;
    top:10px;

}

/* Bouton déclencheur */
.ounekos-cart-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

    .ounekos-cart-trigger:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
        color: #212529;
    }

/* Icône */
.ounekos-cart-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.5;
}

/* Libellé */
.ounekos-cart-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Badge (position gérée par les utilitaires Bootstrap du markup) */
.ounekos-cart-badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
    min-width: 1.5em;
    height: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown */
.ounekos-cart-dropdown {
    min-width: 350px;
    max-width: 400px;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border-radius: 0.5rem;
}

/* Entête */
.cart-header {
    background: #f8f9fa;
}

/* Liste des items */
.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
}

/* État vide */
.cart-empty {
    padding: 2rem 1rem;
    text-align: center;
}

    .cart-empty svg {
        opacity: 0.5;
    }

/* Item */
.cart-item {
    transition: background-color 0.2s ease;
}

    .cart-item:hover {
        background-color: #f8f9fa;
    }

    .cart-item:last-child {
        border-bottom: none !important;
    }

/* Pied */
.cart-footer {
    background: #f8f9fa;
}

#cart-total {
    color: var(--bs-primary, #0d6efd);
}

/* Responsive */
@media (max-width: 768px) {
    .ounekos-cart-name {
        display: none !important;
    }

    .ounekos-cart-trigger {
        padding: 0.5rem;
        min-width: 2.5rem;
        justify-content: center;
    }

    .ounekos-cart-dropdown {
        min-width: 300px !important;
        max-width: 90vw !important;
        left: auto !important;
        right: 0 !important;
    }
}

/* Animation d’ouverture */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ounekos-cart-dropdown.show {
    animation: fadeInDropdown 0.2s ease;
}

/* Intégration dans la ligne langue/panier */
.ounekos-lang-fullrow {
    min-height: 2em;
}

.ounekos-cart-container + .ounekos-lang-container {
    margin-left: 0.75rem;
}

@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
        transform: scale(1.02);
    }
}

.pulse-highlight {
    animation: pulse-highlight 0.8s ease-in-out 2;
}
/* ============================================
   COUPON INPUT GROUP - ROUNDED STYLE
   ============================================ */

/* Espacement entre l'input et le bouton quand rounded */
.ounekos-rounded-group {
    gap: 0.5rem;
}

    /* S'assurer que l'input a des coins arrondis à DROITE */
    .ounekos-rounded-group .form-control.rounded-end-pill {
        border-radius: 0 50rem 50rem 0 !important;
    }

    /* Le bouton garde son arrondi complet défini par rounded-pill */
    .ounekos-rounded-group .btn.rounded-pill {
        border-radius: 50rem !important;
    }

    /* Alternative: Si vous préférez un arrondi côté GAUCHE seulement pour l'input */
    .ounekos-rounded-group.connected .form-control {
        border-radius: 0 50rem 50rem 0 !important;
        border-left: none;
    }

    .ounekos-rounded-group.connected .btn.rounded-pill {
        border-radius: 50rem 0 0 50rem !important;
    }
/* Indicateur de retry mobile */
.ounekos-mobile-retry {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    z-index: 99999;
    display: flex;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .ounekos-mobile-retry {
        font-size: 13px;
        padding: 10px 16px;
        bottom: 15px;
    }
}
/* ============================================
   BOOKING SEARCH COMPONENT - OunekOS
   ============================================ */

/* Container principal */
.ounekos-booking-search {
    --obs-color-primary: #1a2a3a;
    --obs-color-primary-light: #2d4055;
    --obs-color-secondary: #4a2c2a;
    --obs-color-secondary-hover: #5d3835;
    --obs-color-accent: #0d9488;
    --obs-color-accent-light: #14b8a6;
    --obs-color-bg-light: #faf9f7;
    --obs-border-radius: 50px;
    --obs-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --obs-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --obs-transition: all 0.3s ease;
    position: relative;
    font-family: inherit;
    z-index: 100;
}

/* Search Container */
.obs-search-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

/* Search Bar - Style Airbnb */
.obs-search-bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--obs-border-radius);
    box-shadow: var(--obs-shadow);
    border: 1px solid #e5e7eb;
    overflow: visible;
    position: relative;
    transition: var(--obs-transition);
}

    .obs-search-bar:hover {
        box-shadow: var(--obs-shadow-hover);
    }

/* Search Fields */
.obs-search-field {
    flex: 1;
    padding: 14px 24px;
    cursor: pointer;
    position: relative;
    border-right: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
    min-width: 0;
}

    .obs-search-field:last-of-type {
        border-right: none;
    }

    .obs-search-field:hover {
        background-color: #f3f4f6;
    }

    .obs-search-field:first-child {
        border-radius: var(--obs-border-radius) 0 0 var(--obs-border-radius);
    }

/* Field Labels */
.obs-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 4px;
}

.obs-field-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.obs-field-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--obs-color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obs-field-value i.fa-chevron-down {
    font-size: 0.7rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.obs-search-field:hover .obs-field-value i.fa-chevron-down {
    color: var(--obs-color-primary);
}

/* Search Button */
.obs-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--obs-color-secondary) 0%, var(--obs-color-secondary-hover) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--obs-transition);
    flex-shrink: 0;
}

    .obs-search-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(74, 44, 42, 0.4);
    }

    .obs-search-btn:active {
        transform: scale(0.98);
    }

    .obs-search-btn i {
        font-size: 1.25rem;
    }

    .obs-search-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

/* ============================================
   DROPDOWN PANELS
   ============================================ */

.obs-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    min-width: 320px;
    max-width: 95vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

    .obs-dropdown-panel.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* Panel Close Button */
.obs-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--obs-transition);
}

    .obs-panel-close:hover {
        background: #e5e7eb;
    }

    .obs-panel-close i {
        font-size: 0.9rem;
        color: #6b7280;
    }

/* Panel Title */
.obs-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--obs-color-primary);
    margin-bottom: 16px;
    padding-right: 40px;
}

/* ============================================
   LOCATION PANEL
   ============================================ */

.obs-location-panel {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.obs-location-list {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 8px;
}

.obs-location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .obs-location-item:hover {
        background: #f3f4f6;
    }

    .obs-location-item.selected {
        background: rgba(13, 148, 136, 0.1);
    }

    .obs-location-item.obs-select-all {
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 8px;
        padding-bottom: 16px;
    }

/* Custom Checkbox */
.obs-custom-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--obs-transition);
    flex-shrink: 0;
}

    .obs-custom-checkbox i {
        font-size: 0.75rem;
        color: transparent;
        transition: color 0.2s ease;
    }

.obs-location-item.selected .obs-custom-checkbox {
    background: var(--obs-color-accent);
    border-color: var(--obs-color-accent);
}

    .obs-location-item.selected .obs-custom-checkbox i {
        color: #fff;
    }

.obs-location-name {
    font-size: 0.95rem;
    color: var(--obs-color-primary);
}

/* ============================================
   DATE PANEL
   ============================================ */

.obs-date-panel {
    min-width: 320px;
    max-width: 700px;
    width: auto;
}

.obs-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-right: 40px;
}

.obs-clear-dates {
    font-size: 0.85rem;
    color: var(--obs-color-accent);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .obs-clear-dates:hover {
        color: var(--obs-color-accent-light);
        text-decoration: underline;
    }

/* Flatpickr Customization */
.obs-date-picker .flatpickr-calendar {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    font-family: inherit !important;
}

.obs-date-picker .flatpickr-months {
    padding: 0 8px;
}

.obs-date-picker .flatpickr-month {
    height: 40px;
}

.obs-date-picker .flatpickr-current-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--obs-color-primary);
}

.obs-date-picker .flatpickr-prev-month,
.obs-date-picker .flatpickr-next-month {
    padding: 8px;
}

    .obs-date-picker .flatpickr-prev-month:hover,
    .obs-date-picker .flatpickr-next-month:hover {
        color: var(--obs-color-accent);
    }

.obs-date-picker .flatpickr-weekdays {
    margin-top: 8px;
}

.obs-date-picker .flatpickr-weekday {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.obs-date-picker .flatpickr-day {
    border-radius: 50%;
    font-size: 0.9rem;
    height: 44px;
    line-height: 24px;
    margin: 2px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
}

    .obs-date-picker .flatpickr-day:hover {
        background: #f3f4f6;
        border-color: transparent;
    }

    .obs-date-picker .flatpickr-day.selected,
    .obs-date-picker .flatpickr-day.startRange,
    .obs-date-picker .flatpickr-day.endRange {
        background: var(--obs-color-primary) !important;
        border-color: var(--obs-color-primary) !important;
        color: #fff !important;
    }

    .obs-date-picker .flatpickr-day.inRange {
        background: rgba(26, 42, 58, 0.1) !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    .obs-date-picker .flatpickr-day.today {
        border-color: var(--obs-color-accent);
    }

    .obs-date-picker .flatpickr-day.disabled,
    .obs-date-picker .flatpickr-day.flatpickr-disabled {
        color: #d1d5db !important;
        text-decoration: line-through;
    }

/* Day Price */
.obs-day-price {
    font-size: 0.6rem;
    color: #6b7280;
    margin-top: 2px;
    font-weight: 500;
}

.obs-date-picker .flatpickr-day.selected .obs-day-price,
.obs-date-picker .flatpickr-day.startRange .obs-day-price,
.obs-date-picker .flatpickr-day.endRange .obs-day-price {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   GUEST PANEL
   ============================================ */

.obs-guest-panel {
    min-width: 320px;
}

.obs-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .obs-guest-row:last-child {
        border-bottom: none;
    }

.obs-guest-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--obs-color-primary);
    margin: 0 0 4px 0;
}

.obs-guest-info span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Guest Counter */
.obs-guest-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.obs-counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--obs-transition);
}

    .obs-counter-btn:hover:not(:disabled) {
        border-color: var(--obs-color-primary);
        color: var(--obs-color-primary);
    }

    .obs-counter-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .obs-counter-btn i {
        font-size: 0.75rem;
    }

.obs-counter-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--obs-color-primary);
    min-width: 24px;
    text-align: center;
}

/* ============================================
   DROPDOWN OVERLAY
   ============================================ */

.obs-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 99;
}

    .obs-dropdown-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* ============================================
   RESULTS CONTAINER
   ============================================ */

.obs-results-container {
    margin-top: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--obs-shadow);
    overflow: hidden;
}

.obs-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: var(--obs-color-bg-light);
}

.obs-results-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--obs-color-primary);
    margin: 0;
}

.obs-results-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--obs-transition);
}

    .obs-results-close:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

.obs-results-content {
    padding: 24px;
    min-height: 200px;
}

.obs-results-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* No Results / Error States */
.obs-no-results,
.obs-error {
    text-align: center;
    padding: 48px 24px;
}

    .obs-no-results i,
    .obs-error i {
        font-size: 3rem;
        color: #d1d5db;
        margin-bottom: 16px;
    }

    .obs-error i {
        color: #f59e0b;
    }

    .obs-no-results p,
    .obs-error p {
        font-size: 1rem;
        color: #6b7280;
        margin: 0;
    }

/* Results Placeholder */
.obs-results-placeholder {
    text-align: center;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

    .obs-results-placeholder p {
        color: #6b7280;
        margin-bottom: 16px;
    }

    .obs-results-placeholder pre {
        background: #1f2937;
        color: #e5e7eb;
        padding: 16px;
        border-radius: 8px;
        overflow-x: auto;
    }

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .obs-search-bar {
        flex-direction: column;
        border-radius: 24px;
        padding: 8px;
    }

    .obs-search-field {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 16px;
        border-radius: 16px;
    }

        .obs-search-field:first-child {
            border-radius: 16px;
        }

        .obs-search-field:last-of-type {
            border-bottom: none;
        }

    .obs-search-btn {
        width: 100%;
        height: 48px;
        border-radius: 24px;
        margin: 8px 0 0 0;
    }

        .obs-search-btn i {
            margin-right: 8px;
        }

        .obs-search-btn::after {
            content: 'Rechercher';
            font-weight: 600;
        }

    /* Dropdowns slide up from bottom on mobile */
    .obs-dropdown-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        transform: translateY(100%);
        min-width: 100%;
    }

        .obs-dropdown-panel.show {
            transform: translateY(0);
        }

    /* Date picker single month on mobile */
    .obs-date-picker .flatpickr-calendar {
        width: 100% !important;
    }

    .obs-date-picker .flatpickr-months .flatpickr-month {
        width: 100% !important;
    }

    .obs-results-container {
        margin: 16px -1rem 0 -1rem;
        border-radius: 0;
    }

    .obs-results-header,
    .obs-results-content {
        padding: 16px;
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .obs-search-container {
        max-width: 100%;
        padding: 1rem;
    }

    .obs-search-field {
        padding: 12px 16px;
    }

    .obs-field-text {
        font-size: 0.9rem;
    }

    .obs-date-panel {
        min-width: 580px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes obs-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.obs-search-btn.searching {
    animation: obs-pulse 1.5s ease-in-out infinite;
}

/* Focus states for accessibility */
.obs-search-field:focus-within {
    outline: 2px solid var(--obs-color-accent);
    outline-offset: -2px;
}

.obs-counter-btn:focus,
.obs-search-btn:focus,
.obs-panel-close:focus {
    outline: 2px solid var(--obs-color-accent);
    outline-offset: 2px;
}

/* ============================================
   DARK MODE SUPPORT (optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .ounekos-booking-search {
        --obs-color-bg-light: #1f2937;
    }

    /* Note: Full dark mode would require more extensive styling */
}