/* =========================================================================
   🌐 SECTION 1: CORE STANDARD ARCHITECTURE & FALLBACKS (RESET)
   ========================================================================= */
body { 
    background-color: #f8fafc; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    margin: 0; padding: 0; overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: #1e293b;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.visually-hidden { 
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; 
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; 
}

/* --- NAVIGATION --- */
.custom-navbar { 
    background: #ffffff; padding: 12px 0; border-bottom: 1px solid #e2e8f0; 
    position: sticky; top: 0; z-index: 1050; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    position: relative;
}

.nav-link { 
    color: #334155 !important; font-size: 14px; font-weight: 500; 
    padding: 10px 16px !important; transition: all 0.2s ease;
}
.nav-link:hover { color: #0284c7 !important; }

/* --- HERO SLIDER COMPONENT --- */
.hero-slider-container { position: relative; height: 480px; overflow: visible; }
.carousel-item img { height: 480px; object-fit: cover; width: 100%; filter: brightness(0.75); }
.carousel-caption-custom { 
    position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); 
    color: white; text-align: center; z-index: 10; width: 100%; max-width: 800px;
}
.carousel-caption-custom h1 { font-size: 42px; font-weight: 800; text-shadow: 0 4px 12px rgba(0,0,0,0.3); letter-spacing: -0.5px; }

/* --- MODERN SEARCH INTEGRATION CARD --- */
.search-card { 
    background: #ffffff; padding: 24px; border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); width: 92%; max-width: 1140px; 
    margin: -60px auto 20px auto; position: absolute; 
    bottom: -80px; left: 50%; transform: translateX(-50%); z-index: 999; 
    border: 1px solid #f1f5f9;
}

.search-grid { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 220px; display: flex; flex-direction: column; border-right: 1px solid #f1f5f9; padding-right: 16px; }
.search-field:last-child { border-right: none; padding-right: 0; }
.search-field label { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.search-field select, .search-field input { 
    height: 46px; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; 
    font-size: 14px; background-color: #ffffff; width: 100%; outline: none; color: #1e293b;
}

.search-btn { 
    flex: 0.8; background: #0f172a; color: white; height: 46px; 
    border: none; border-radius: 8px; font-weight: 600; font-size: 15px; 
    cursor: pointer; transition: all 0.2s ease; 
}
.search-btn:hover { background: #1e293b; transform: translateY(-1px); }

/* --- DYNAMIC PACKAGES & ACTIVITY CARDS MATRIX --- */
.trending-section { margin-top: 100px; margin-bottom: 80px; }
.section-title { font-size: 28px; font-weight: 800; color: #0f172a; text-align: center; margin-bottom: 40px; letter-spacing: -0.5px; }

.card-mmt { 
    border: 1px solid #f1f5f9; border-radius: 16px; overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    background: #ffffff; height: 100%; position: relative;
}
.card-mmt:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.card-img-container { height: 220px; overflow: hidden; background: #f8fafc; position: relative; }
.card-img-top { height: 100%; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-mmt:hover .card-img-top { transform: scale(1.04); }

.description-truncate { 
    font-size: 14px; color: #475569; margin-bottom: 12px; display: -webkit-box; 
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
    line-height: 1.5; height: 42px; 
}
.badge-offer { 
    position: absolute; top: 16px; left: 16px; background: #1e293b; 
    color: white; padding: 4px 10px; border-radius: 6px; font-size: 11px; 
    font-weight: 600; z-index: 5; letter-spacing: 0.5px;
}
.cancellation-line {
    display: flex; align-items: center; gap: 6px; background: #f0fdf4; color: #15a34a; 
    padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; 
    margin-bottom: 12px; width: fit-content;
}


/* =========================================================================
   🚀 SECTION 2: THE HIGH-ENGAGEMENT AUTONOMOUS CELEBRATION CORES
   ========================================================================= */

/* -------------------------------------------------------------------------
   🇨🇮 THEME A: 26 JAN REPUBLIC & INDEPENDENCE DAYS (`theme-republic`)
   ------------------------------------------------------------------------- */
body.theme-republic {
    background-color: #f1f5f9 !important;
}

/* 🇨🇮 CSS-Engine Fluttering Tricolor Ribbon below Navbar */
body.theme-republic .custom-navbar::after {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FF9933 0%, #FF9933 33.3%, #ffffff 33.3%, #ffffff 66.6%, #128807 66.6%, #128807 100%) !important;
    position: absolute;
    bottom: 0; left: 0;
    animation: luxuryFlagWave 3s infinite linear !important;
    background-size: 200% 100% !important;
}

/* High-Contrast Corporate Tricolor Card Overrides */
body.theme-republic .card-mmt,
body.theme-republic .search-card,
body.theme-republic .booking-card {
    background: #ffffff !important;
    border-top: 5px solid #FF9933 !important;   /* Saffron Line */
    border-bottom: 5px solid #128807 !important; /* Green Line */
    box-shadow: 0 15px 35px rgba(18,136,7,0.08) !important;
}

/* Dynamic Ashoka Chakra Spin Overlays on card images handles */
body.theme-republic .card-img-container::before {
    content: "⚙️";
    position: absolute;
    top: 12px; right: 12px;
    font-size: 22px; color: #000080;
    z-index: 20;
    animation: ashokaChakraSpin 4s infinite linear !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* Dynamic Flypast Smoke Trails Over Hero Text */
body.theme-republic .carousel-caption-custom h1 {
    color: #ffffff !important;
    text-shadow: 3px 3px 0px #FF9933, -3px -3px 0px #128807 !important;
}

body.theme-republic .btn-primary,
body.theme-republic .search-btn,
body.theme-republic .submit-btn,
body.theme-republic .btn-search {
    background: linear-gradient(90deg, #128807 0%, #16a34a 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(18,136,7,0.3) !important;
    position: relative;
    overflow: hidden;
}
/* Metallic Linear Light Flash across action buttons on hover */
body.theme-republic .btn-primary::before,
body.theme-republic .search-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg); transition: none;
}
body.theme-republic .btn-primary:hover::before,
body.theme-republic .search-btn:hover::before {
    left: 150%; transition: all 0.6s ease-in-out;
}

/* -------------------------------------------------------------------------
   🪔 THEME B: DIWALI GRAND LIGHTS & SPARKLERS SYSTEM (`theme-diwali`)
   ------------------------------------------------------------------------- */
body.theme-diwali,
body.theme-diwali .page-wrap,
body.theme-diwali main,
body.theme-diwali section {
    background-color: #140501 !important;
    background-image: radial-gradient(circle at 50% 50%, #290f04 0%, #0f0300 100%) !important;
}

/* Live Floating Flickering Diya Row over Navbar Menu boundary */
body.theme-diwali .custom-navbar::before {
    content: "🪔  💥  🪔  💥  🪔  💥  🪔  💥  🪔  💥  🪔";
    display: block;
    text-align: center;
    font-size: 12px;
    letter-spacing: 14px;
    background: #9a3412;
    padding: 4px 0;
    color: #fef08a;
}

body.theme-diwali .card-mmt,
body.theme-diwali .search-card,
body.theme-diwali .booking-card {
    background: linear-gradient(135deg, #240d04 0%, #170701 100%) !important;
    border: 1px solid #b45309 !important;
    border-top: 5px solid #f59e0b !important;
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.3) !important;
}

/* Bright Ethnic Gold Overrides for total context readability */
body.theme-diwali h1, body.theme-diwali h2, body.theme-diwali h3,
body.theme-diwali .section-title, body.theme-diwali label {
    color: #fef08a !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9) !important;
}
body.theme-diwali p, body.theme-diwali .description-truncate {
    color: #fde047 !important;
}

/* Sky-Cracker Sparkle Burst Visual effect on Hovering over Activity cards */
body.theme-diwali .card-mmt::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(252,211,77,0.2) 0%, transparent 70%);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
body.theme-diwali .card-mmt:hover::after {
    opacity: 1;
    animation: sparklerBurst 0.6s infinite alternate ease-in-out;
}

body.theme-diwali .btn-primary,
body.theme-diwali .search-btn,
body.theme-diwali .submit-btn {
    background: linear-gradient(90deg, #ea580c 0%, #f59e0b 50%, #ea580c 100%) !important;
    color: #140501 !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(245,158,11,0.5) !important;
}

/* -------------------------------------------------------------------------
   🎨 THEME C: HOLI FESTIVAL OF JOY VARIANT (`theme-holi`)
   ------------------------------------------------------------------------- */
body.theme-holi {
    background-color: #fffafb !important;
}
body.theme-holi .custom-navbar {
    border-bottom: 4px solid #db2777 !important; /* Gulal Pink Line */
}
body.theme-holi .card-mmt,
body.theme-holi .search-card {
    background: #ffffff !important;
    border-top: 5px solid #db2777 !important;
    border-right: 3px solid #2563eb !important; /* Vibrant Blue Accent */
    box-shadow: 0 10px 30px rgba(219,39,119,0.08) !important;
}
body.theme-holi .btn-primary,
body.theme-holi .search-btn {
    background: linear-gradient(45deg, #db2777 0%, #7c3aed 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
}

/* -------------------------------------------------------------------------
   🌾 THEME D: PONGAL / HARVEST FESTIVAL VARIANT (`theme-pongal`)
   ------------------------------------------------------------------------- */
body.theme-pongal {
    background-color: #fefcf0 !important;
}
body.theme-pongal .custom-navbar {
    border-bottom: 4px solid #16a34a !important; /* Traditional Green */
}
body.theme-pongal .card-mmt,
body.theme-pongal .search-card {
    background: #ffffff !important;
    border-top: 5px solid #ea580c !important; /* Sugar-cane Saffron Accent */
    border-bottom: 3px solid #16a34a !important;
    box-shadow: 0 10px 25px rgba(22,163,74,0.06) !important;
}
body.theme-pongal .btn-primary,
body.theme-pongal .search-btn {
    background: #16a34a !important;
    color: white !important;
    border: none !important;
}


/* =========================================================================
   🌐 SECTION 3: CORE REUSABLE MARKETING ANIMATION KEYFRAMES
   ========================================================================= */
@keyframes luxuryFlagWave {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes elementFlutter {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes ashokaChakraSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sparklerBurst {
    0% { transform: scale(0.95); opacity: 0.4; }
    100% { transform: scale(1.05); opacity: 1; }
}

@keyframes singleDiyaFlicker {
    0% { box-shadow: 0 0 8px rgba(245,158,11,0.4); }
    100% { box-shadow: 0 0 22px rgba(245,158,11,0.8); }
}