/* Modal dos Destinos */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.modal-close i {
    color: #666;
    font-size: 18px;
}

.modal-content {
    overflow-y: auto;
    max-height: 90vh;
}

/* Modal Header */
.modal-header {
    position: relative;
    display: flex;
    min-height: 300px;
}

.modal-image {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
}

.modal-title-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-title-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2d3047;
    margin-bottom: 10px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.modal-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-price {
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-price .price-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-price .price-value {
    color: #EB8F63;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.modal-price .price-info {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.price-per-person {
    background: linear-gradient(135deg, #EB8F63, #D47D52);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(235, 143, 99, 0.3);
}

.price-per-person-value {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.price-per-person-info {
    font-size: 0.8rem;
    opacity: 0.9;
}

.modal-info-cards {
    display: flex;
    gap: 15px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.info-card i {
    color: #EB8F63;
    font-size: 1.1rem;
}

.info-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3047;
}

/* Modal Body */
.modal-body {
    padding: 0;
}

/* Tabs */
.modal-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn.active {
    color: #EB8F63;
    border-bottom-color: #EB8F63;
    background: white;
}

.tab-btn:hover {
    color: #EB8F63;
    background: rgba(235, 143, 99, 0.05);
}

/* Tab Content */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

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

.tab-pane h3 {
    font-family: 'Playfair Display', serif;
    color: #2d3047;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-pane h3 i {
    color: #EB8F63;
}

/* Info Sections */
.info-section {
    display: grid;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-item.full-width {
    flex-direction: column;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #2d3047;
    min-width: 100px;
    flex-shrink: 0;
}

.info-value {
    color: #495057;
    line-height: 1.5;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Programa */
.programa-list {
    display: grid;
    gap: 15px;
}

.programa-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #EB8F63;
}

.programa-item i {
    color: #EB8F63;
    margin-top: 2px;
    flex-shrink: 0;
}

.programa-item span {
    color: #2d3047;
    line-height: 1.5;
}

/* Incluído Grid */
.incluido-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.incluido-section h4 {
    color: #2d3047;
    margin-bottom: 20px;
    font-weight: 700;
}

.incluido-list, .nao-incluido-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.incluido-list li, .nao-incluido-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.incluido-list li:last-child, .nao-incluido-list li:last-child {
    border-bottom: none;
}

.incluido-list li i {
    color: #28a745;
    margin-top: 2px;
    flex-shrink: 0;
}

.nao-incluido-list li i {
    color: #dc3545;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Datas Grid */
.datas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.data-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
}

.data-card:hover {
    border-color: #EB8F63;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 143, 99, 0.15);
}

.data-card i {
    color: #EB8F63;
    font-size: 1.5rem;
}

.data-card span {
    font-weight: 700;
    color: #2d3047;
    font-size: 1.1rem;
}

.data-card small {
    color: #28a745;
    font-weight: 600;
}

/* Modal Footer */
.modal-footer {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-actions .btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.modal-actions .btn-primary {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.modal-actions .btn-primary:hover {
    background: #22c65e;
    border-color: #22c65e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.modal-actions .btn-outline {
    background: transparent;
    color: #EB8F63;
    border: 2px solid #EB8F63;
}

.modal-actions .btn-outline:hover {
    background: #EB8F63;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 143, 99, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .modal-header {
        flex-direction: column;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    .modal-image {
        min-height: 250px;
    }
    
    .modal-image img {
        height: 100%;
        min-height: 250px;
    }
    
    .modal-title-section {
        padding: 30px;
    }
    
    .modal-title-section h2 {
        font-size: 2rem;
    }
    
    .incluido-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .datas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-container {
        border-radius: 15px;
    }
    
    .modal-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .tab-pane {
        padding: 25px;
    }
    
    .modal-footer {
        padding: 20px 25px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        min-width: 100%;
    }
    
    .modal-info-cards {
        flex-direction: column;
    }
    
    .modal-title-section h2 {
        font-size: 1.8rem;
    }
    
    .modal-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-price span {
        font-size: 1.8rem;
    }
}

/* Botão Saber Mais nos Cards */
.btn-saber-mais {
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #EB8F63;
    color: white;
    border: none;
}

.btn-saber-mais:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(235, 143, 99, 0.3);
    background-color: #e67e4f;
}

.destination-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

/* Estilos para Voos Detalhados */
.voo-details {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 15px;
}

.voo-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.voo-companhia {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: #2d3047;
}

.voo-companhia i {
    color: #EB8F63;
    font-size: 1.3rem;
}

.voo-rota, .voo-horarios, .voo-bagagem {
    margin-bottom: 25px;
}

.voo-rota h4, .voo-horarios h4, .voo-bagagem h4 {
    color: #2d3047;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voo-rota h4 i, .voo-horarios h4 i, .voo-bagagem h4 i {
    color: #EB8F63;
}

.rota-detalhes, .bagagem-detalhes {
    color: #495057;
    line-height: 1.6;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #EB8F63;
}

.horarios-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.horario-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.horario-item.partida {
    border-left: 4px solid #28a745;
}

.horario-item.chegada {
    border-left: 4px solid #007bff;
}

.horario-icon {
    background: #f8f9fa;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horario-item.partida .horario-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.horario-item.chegada .horario-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.horario-icon i {
    font-size: 1.2rem;
}

.horario-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.horario-info strong {
    color: #2d3047;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.horario-tempo {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
}

.dia-seguinte {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

.horario-complexo {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.horario-detalhado {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #495057;
    line-height: 1.6;
}

.horario-detalhado i {
    color: #EB8F63;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Melhorias para visualização mobile dos destinos */
.destination-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    min-height: 400px;
}

.destination-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.destination-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination-card:hover .destination-image img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.destination-card:hover .destination-overlay {
    opacity: 1;
}

.destination-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.destination-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3047;
    margin-bottom: 8px;
}

.destination-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.destination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.destination-duration {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.destination-price {
    color: #EB8F63;
    font-weight: 700;
    font-size: 1.2rem;
}

.price-info {
    color: #6c757d;
    font-size: 0.8rem;
    text-align: center;
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .destination-slider {
        position: relative;
        padding: 0 40px;
    }

    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .slider-arrow.prev {
        left: 0;
    }

    .slider-arrow.next {
        right: 0;
    }

    .slider-arrow:hover {
        background: #EB8F63;
        color: white;
    }
} 