/* Packages Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #E91E63, #00BCD4);
    background-image: 
        linear-gradient(135deg, rgba(233, 30, 99, 0.85), rgba(0, 188, 212, 0.85)),
        url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1200&h=400&fit=crop&auto=format');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.packages-main {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Packages Controls */
.packages-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.packages-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.packages-count span {
    color: #667eea;
}

.sort-filter-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sort-controls,
.filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.sort-controls select,
.filter-controls select {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
}

.sort-controls select:focus,
.filter-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Package Card */
.package-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Package Image */
.package-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #00843d;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.package-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.wishlist-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.wishlist-btn:hover {
    background: white;
    color: #e74c3c;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #e74c3c;
    background: white;
}

.wishlist-btn.active i {
    font-weight: 900;
}

/* Package Content */
.package-content {
    padding: 24px;
}

.package-header {
    margin-bottom: 16px;
}

.package-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #6c757d;
}

.package-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.package-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #6c757d;
}

.package-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Package Features */
.package-features {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #495057;
}

.feature i {
    color: #28a745;
    font-size: 0.9rem;
}

/* Package Price */
.package-price {
    margin-bottom: 20px;
    text-align: center;
    padding: 16px;
    background: #f5f7ef;
    border-radius: 8px;
}

.price-section {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
}

.original-price {
    font-size: 1.1rem;
    color: #6c757d;
    text-decoration: line-through;
}

.per-person {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Package Actions */
.package-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.view-details-btn,
.book-now-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-details-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.view-details-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.book-now-btn {
    background: #00843d;
    color: white;
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    background: #00843d;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.load-more-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Active Navigation */
.nav-menu a.active {
    color: #667eea;
    font-weight: 600;
}

/* Responsive Design - Maintain Consistent Card Design */
@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 24px;
    }
    
    .packages-controls {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .sort-filter-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 80px;
        padding: 60px 0 50px;
        min-height: 300px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
        margin-top: 0;
    }

    .page-header p {
        font-size: 1rem;
    }
    
    .packages-main {
        padding: 40px 0;
    }
    
    .packages-controls {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    /* Maintain 2-column grid on tablets */
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }
    
    /* Keep card dimensions consistent */
    .package-card {
        min-height: 500px;
        display: flex;
        flex-direction: column;
    }
    
    .package-image {
        height: 200px;
        flex-shrink: 0;
    }
    
    .package-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }
    
    .package-features {
        margin-bottom: 16px;
    }
    
    .package-price {
        margin-bottom: 16px;
    }
    
    .package-actions {
        margin-top: auto;
    }
    
    .sort-filter-controls {
        gap: 16px;
    }
    
    .sort-controls,
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .sort-controls select,
    .filter-controls select {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    /* Single column on small mobile devices */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card {
        max-width: 400px;
        margin: 0 auto;
        min-height: 480px;
    }
    
    .package-image {
        height: 220px;
    }
    
    .package-content {
        padding: 24px;
    }
    
    .package-header h3 {
        font-size: 1.2rem;
    }
    
    .package-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .package-actions {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .view-details-btn,
    .book-now-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .original-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-top: 80px;
        padding: 40px 0 30px;
        min-height: 250px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
        margin-top: 0;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .package-content {
        padding: 20px;
    }
    
    .package-header h3 {
        font-size: 1.1rem;
    }
    
    .package-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .package-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .view-details-btn,
    .book-now-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .current-price {
        font-size: 1.4rem;
    }
    
    .original-price {
        font-size: 1rem;
    }
}

/* Animation for filtering */
.package-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.package-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Loading state */
.packages-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.no-packages {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-packages i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #dee2e6;
}

.no-packages h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #495057;
}

.no-packages p {
    font-size: 1rem;
    margin: 0;
}

/* Packages CTA Section */
.packages-cta {
    padding: 80px 0;
    background: #00843d;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.packages-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.packages-cta .container {
    position: relative;
    z-index: 2;
}

.packages-cta .cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.packages-cta .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Responsive Packages CTA */
@media (max-width: 768px) {
    .packages-cta {
        padding: 60px 0;
    }
    
    .packages-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    .packages-cta .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}