/* Unified Escape Manager - Frontend Styles */

/* ===== FILTERS ===== */
.escape-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 10px 0 20px 0;
    padding: 0 5px;
    font-weight: 600 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.escape-filters::-webkit-scrollbar {
    height: 4px;
}

.escape-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.escape-filters::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.escape-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #264c8d;
    padding: 2px 6px !important;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.escape-filter-btn:hover {
    background: #FBDD16;
    border-color: #FBDD16;
    color: #264C8D;
    text-decoration: none;
}

.escape-filter-btn.active {
    background: #FBDD16;
    border-color: #FBDD16;
    color: #264C8D;
    text-decoration: none;
}

/* Désactive l'effet de hover sur mobile */
@media (hover: none) {
    .escape-filter-btn:hover:not(.active) {
        background: #ffffff;
        border-color: #e0e0e0;
        color: #264c8d;
    }
}

.escape-filter-btn:focus {
    outline: none;
}

.escape-filter-btn:active {
    -webkit-tap-highlight-color: transparent;
}

/* ===== FAQ STYLES ===== */
.post-faq,
.all-events-faq {
    font-family: inherit;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* FAQ Items */
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background: #FFFFFF !important;
    color: #264C8D;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question:hover {
    background: #264C8D !important;
    color: #FFFFFF;
}

.faq-question.active {
    background: #FBDD16 !important;
    color: #264C8D;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.faq-question span {
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active span {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 15px;
    background: #FFFFFF;
    color: #264C8D;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
    margin-bottom: 5px;
}

/* All Events FAQ - Premier niveau */
.event-faq-title {
    background: #FFFFFF;
    color: #264C8D;
    padding: 15px 20px;
    margin: 0 0 10px 0;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.event-faq-title:hover {
    background: #f0f0f0;
}

.event-faq-title:after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.event-faq-title.active {
    background: #FBDD16;
    color: #264C8D;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.event-faq-title.active:after {
    content: "-";
}

.event-faq-content {
    display: none;
    background: #f7f7f7;
    padding: 0;
    margin-bottom: 10px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
    overflow: hidden;
}

.event-faq-content .faq-item {
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.event-faq-content .faq-item:last-child {
    border-bottom: none;
}

.event-faq-content .faq-question {
    margin-bottom: 0;
    box-shadow: none;
}

/* ===== POPUP STYLES ===== */
.popup-background-overlay {
    transition: opacity 0.3s ease;
}

.dialog-type-lightbox#elementor-popup-modal-9594 .dialog-message,
.dialog-type-lightbox#elementor-popup-modal-9688 .dialog-message,
.dialog-type-lightbox#elementor-popup-modal-12567 .dialog-message {
    overflow-y: auto !important;
    min-height: 100vh !important;
    height: auto !important;
}

/* Réservation Styles */
.reservation-iframe-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.reservation-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== LOADING ANIMATION ===== */
.popup-loading,
.elementor-widget-container.loading {
    position: relative;
    min-height: 200px;
    pointer-events: none;
    opacity: 0.7;
}

.popup-loading::after,
.elementor-widget-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #264C8D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .escape-filter-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .escape-filters {
        gap: 6px;
        margin: 15px 0;
    }

    .faq-question {
        padding: 12px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 12px 12px;
        font-size: 13px;
    }

    .event-faq-title {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .event-faq-content .faq-question {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .event-faq-content .faq-answer {
        padding: 12px 15px;
        font-size: 13px;
    }

    .reservation-iframe-container {
        height: 500px;
    }
}