/* ========================================= */
/* ESTILOS GLOBAIS BOOKING3 */
/* ========================================= */

/* Variáveis CSS globais */
:root {
    --glass-surface: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-primary: #333;
    --text-secondary: #666;
    --primary-color: #007bff;
}

/* Modal overlay base */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000; /* Modais - valor lógico */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Botão View Details */
.preference-details {
    margin-top: 8px;
}

.view-details-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(10px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.view-details-btn:hover {
    background: rgba(0, 123, 255, 0.2) !important;
    border-color: rgba(0, 123, 255, 0.3) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
}

.view-details-btn i {
    font-size: 10px;
}

.view-details-btn.expanded {
    background: rgba(0, 123, 255, 0.15) !important;
    border-color: rgba(0, 123, 255, 0.3) !important;
    color: var(--primary-color) !important;
}

.preference-note {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    animation: fadeInDown 0.3s ease !important;
}

.preference-note.note-info {
    background: rgba(0, 123, 255, 0.1) !important;
    border-left: 3px solid var(--primary-color) !important;
}

.preference-note.note-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    border-left: 3px solid #ffc107 !important;
}

.preference-note.note-fee_explanation {
    background: rgba(40, 167, 69, 0.1) !important;
    border-left: 3px solid #28a745 !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input calendário */
.calendar-input {
    cursor: pointer;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-primary);
    width: 100%;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.calendar-input:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calendar-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Popup do calendário */
.calendar-popup {
    position: fixed;
    z-index: 3000; /* Valor lógico - mesmo que calendar-custom.css */
    background: var(--glass-surface);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 20px;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-popup.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Legacy modal styles para compatibilidade */
#summaryModal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000; /* Modais - valor lógico consistente */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: all 0.3s ease;
}

#summaryModal.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#summaryModal.modal-overlay:not(.hidden) {
    display: flex !important;
}

#summaryModal .modal-content {
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
    max-width: 90vw !important;
    width: 600px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: 20px !important;
    position: relative !important;
    backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Para dispositivos móveis */
@media (max-width: 768px) {
    #summaryModal .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px !important;
    }
}

/* Estados do modal */
#summaryModal:not(.hidden) {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Utilidades para debug */
.debug-border {
    border: 2px solid red !important;
}

.debug-bg {
    background: rgba(255, 0, 0, 0.1) !important;
}
