/**
 * =========================================================================
 * MODAL DE TOURS E SERVIÇOS
 * =========================================================================
 * Modal responsivo para exibir detalhes de tours e serviços
 */

/* Cards clicáveis - Efeito hover aprimorado */
.promo-card[onclick],
.tour-card[onclick],
.service-card-page[onclick] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card[onclick]:hover,
.tour-card[onclick]:hover,
.service-card-page[onclick]:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.promo-card[onclick] .btn,
.tour-card[onclick] .btn,
.service-card-page[onclick] .btn {
    pointer-events: none;
    /* Evitar que o botão capture o clique */
}

/* Modal Container */
.tour-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.tour-modal.active {
    display: block;
}

/* Overlay escuro */
.tour-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

/* Container centralizado */
.tour-modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow-y: auto;
}

/* Conteúdo do modal */
.tour-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Botão fechar */
.tour-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tour-modal-close:hover {
    background: var(--lovely, #700420);
    color: white;
    transform: rotate(90deg);
}

.tour-modal-close:focus {
    outline: 2px solid var(--lovely, #700420);
    outline-offset: 2px;
}

/* Imagem do modal */
.tour-modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--skyline, #DAB59A);
    flex-shrink: 0;
}

.tour-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Corpo do modal */
.tour-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.tour-modal-title {
    font-size: 2rem;
    color: var(--lovely, #700420);
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

.tour-modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
    white-space: pre-wrap;
}

/* Footer com botões */
.tour-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    background: #f8f9fa;
}

.tour-modal-footer .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Botão WhatsApp */
.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Botão Secundário (Orçamento) */
.btn-secondary {
    background: var(--lovely, #700420);
    color: white;
}

.btn-secondary:hover {
    background: #5a0318;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 4, 32, 0.4);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .tour-modal-container {
        padding: 0;
        align-items: flex-end;
    }

    .tour-modal-content {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        animation: slideUpMobile 0.3s ease;
    }

    .tour-modal-image {
        height: 200px;
    }

    .tour-modal-body {
        padding: 24px 20px;
    }

    .tour-modal-title {
        font-size: 1.5rem;
    }

    .tour-modal-description {
        font-size: 1rem;
    }

    .tour-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .tour-modal-footer .btn {
        width: 100%;
    }

    .tour-modal-close {
        top: 12px;
        right: 12px;
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Estados de acessibilidade */
.tour-modal-content:focus {
    outline: none;
}

.tour-modal-title:focus {
    outline: 2px solid var(--lovely, #700420);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Scroll suave */
.tour-modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--lovely, #700420) #f0f0f0;
}

.tour-modal-body::-webkit-scrollbar {
    width: 8px;
}

.tour-modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.tour-modal-body::-webkit-scrollbar-thumb {
    background: var(--lovely, #700420);
    border-radius: 4px;
}

.tour-modal-body::-webkit-scrollbar-thumb:hover {
    background: #5a0318;
}