/**
 * Enhanced template-featured-packages.css - Premium styling with dark theme card bottom
 */

/* Premium Section Styling - Dark Theme */
.premium-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-color: var(--dark-color, #121821);
    color: white;
}

/* Premium Glow Effects - Enhanced for dark background */
.premium-glow {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    z-index: -1;
    filter: blur(80px);
}

.premium-glow-primary {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(33, 147, 176, 0.25) 0%, rgba(33, 147, 176, 0) 70%);
    top: -120px;
    right: 5%;
}

.premium-glow-secondary {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
    bottom: -150px;
    left: 10%;
}

/* Section Header Styling - Enhanced for dark background */
.section-header h2 {
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-size: 2.4rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(33, 147, 176, 0.3);
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2193b0, #d4af37);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.section-subtitle-above {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Tour Card Styling - Enhanced with gold outline by default */
.tour-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(33, 147, 176, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.3);
    outline: 1px solid rgba(212, 175, 55, 0.1);
    cursor: pointer;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(0);
    opacity: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tour-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.8);
    outline: 1px solid rgba(212, 175, 55, 0.4);
}

/* Add a subtle gold glow effect on hover */
.tour-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tour-card:hover:after {
    opacity: 1;
}

.tour-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 1.2s ease;
}

.tour-card:hover .card-img-top {
    transform: scale(1.08);
}

/* Tour Overlay - IMPROVED: Less dark on hover */
.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

.tour-card:hover .tour-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 100%);
}

/* Experience Badge - Enhanced with gold glow */
.experience-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.7));
    color: #0c1018;
    padding: 7px 14px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.tour-duration {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-color, #222);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tour-duration i {
    margin-right: 5px;
    color: var(--accent-gold, #d4af37);
}

/* Card Body Styling - DARK THEME with Enhanced Contrast */
.tour-card .card-body {
    padding: 22px;
    background-color: #0c1018;
    order: 3;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-card .card-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tour-card:hover .card-title {
    color: #d4af37;
}

.tour-card .card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Package Description - Enhanced for better readability */
.package-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8rem; /* 3 lines × 1.6 line-height */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Card Footer - Enhanced dark theme */
.tour-card .card-footer {
    background-color: #0c1018;
    border-top: 1px solid rgba(33, 147, 176, 0.2);
    padding: 15px 20px;
    margin-top: auto;
    text-align: center;
}

/* Button Styling - Enhanced for visibility */
.tour-card .btn-outline-primary {
    transition: all 0.5s ease;
    border-width: 2px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d4af37;
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: 30px;
}

.tour-card .btn-outline-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
    background-color: #d4af37;
    color: #0c1018;
    border-color: #d4af37;
}

/* View All Button - Enhanced for dark background */
#featuredPackages .btn-primary {
    padding: 16px 36px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(33, 147, 176, 0.3), 0 0 30px rgba(33, 147, 176, 0.1);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    margin-top: 20px;
}

#featuredPackages .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    z-index: -1;
    transition: all 0.5s ease;
}

#featuredPackages .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 147, 176, 0.4), 0 0 50px rgba(33, 147, 176, 0.2);
}

#featuredPackages .btn-primary:hover:before {
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Animation Fix for Card Movement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-card-animated {
    animation: fadeInUp 0.8s forwards;
}

/* Enhanced carousel controls for dark theme */
.featured-control .control-icon {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(33, 147, 176, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(33, 147, 176, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.featured-control:hover .control-icon {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.featured-control .control-icon i {
    color: white;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.featured-control:hover .control-icon i {
    color: white;
}

/* Carousel Indicators - Enhanced */
#packageCarousel .carousel-indicators {
    bottom: -40px;
}

#packageCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(33, 147, 176, 0.3);
    margin: 0 6px;
    transition: all 0.3s ease;
}

#packageCarousel .carousel-indicators .active {
    background-color: var(--primary-color, #2193b0);
    width: 12px;
    height: 12px;
}

/* Loading Indicator */
#featuredPackages .spinner-border {
    color: var(--primary-color, #2193b0) !important;
}

#featuredPackages .loading-text {
    font-size: 1.1rem;
    color: var(--light-text-secondary, #555);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Card hover glow effect - enhanced for gold outline */
.tour-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    pointer-events: none;
    background: none;
    border: 2px solid transparent;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    opacity: 0;
    transition: all 0.8s ease;
    z-index: -1;
}

.tour-card:hover::after {
    opacity: 1;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .tour-card .card-img-top {
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .package-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    .premium-section {
        padding: 60px 0;
    }
    
    .tour-card {
        margin-bottom: 30px;
    }
    
    .tour-card .card-img-top {
        height: 180px;
    }
}