/* Modal Styles for Package Details */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    color: #000;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
}

.modal-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #000;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    color: #FFA500;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3 i {
    font-size: 1.1rem;
}

.modal-section p {
    margin: 0;
    line-height: 1.8;
    color: #333;
    font-size: 0.95rem;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.modal-meta-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #FFA500;
}

.modal-meta-item-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.modal-meta-item-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D5016;
}

.modal-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.modal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 165, 0, 0.05);
    border-radius: 8px;
}

.modal-highlight i {
    color: #FFA500;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-highlight-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-radius: 0 0 20px 20px;
}

.btn-modal {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-book {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    color: #000;
    flex: 1;
}

.btn-modal-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.4);
}

.btn-modal-close {
    background: #eee;
    color: #333;
    flex: 1;
}

.btn-modal-close:hover {
    background: #ddd;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px;
        flex-direction: column;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-section {
        margin-bottom: 20px;
    }

    .modal-meta-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-modal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-section {
        margin-bottom: 15px;
    }

    .modal-section h3 {
        font-size: 1.1rem;
    }

    .modal-meta-item {
        padding: 12px;
    }

    .modal-highlights {
        grid-template-columns: 1fr;
    }
}

/* Remove price display from package cards */
.package-price {
    display: none !important;
}

/* Adjust package footer buttons */
.package-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-book,
.btn-details {
    flex: 1;
    min-width: 120px;
}
