/* ===================================================================
   TABLE OF CONTENTS
   -------------------------------------------------------------------
   1.  PRELOADER STYLES
   2.  GLOBAL STYLES & COLOR PALETTE
   3.  COMPONENT STYLES
       - Buttons
       - Navbar (Desktop)
       - Hero Section
       - Cards
       - Why Choose Us
       - Testimonials (Swiper)
       - Gallery Auto Carousel
       - Packages Page
       - FAQ Section
       - Footer
       - Floating WhatsApp Button
       - Map Container
   4.  CREATIVE MOBILE MENU
   5.  RESPONSIVE ADJUSTMENTS
====================================================================== */


/* 1. PRELOADER STYLES
/* ------------------------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #003049; /* Dark Blue from new palette */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
#preloader.fade-out { opacity: 0; }
.loader {
  width: 50px; height: 50px;
  border: 4px dotted white;
  border-style: solid solid dotted dotted;
  border-radius: 50%;
  animation: rotation 2s linear infinite;
}
.loader::after {
  content: ''; box-sizing: border-box; position: absolute;
  left: 0; right: 0; top: 0; bottom: 0; margin: auto;
  border: 4px dotted #C1121F; /* Vibrant Red from new palette */
  border-style: solid solid dotted;
  width: 25px; height: 25px; border-radius: 50%;
  animation: rotationBack 1s linear infinite;
  transform-origin: center center;
}
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } 
@keyframes rotationBack { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }


/* 2. GLOBAL STYLES & COLOR PALETTE
/* ------------------------------------------------------------------- */
:root {
    --primary-font: 'Poppins', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    
    /* New Elegant Palette */
    --rich-red: #780000;
    --vibrant-red: #C1121F;
    --cream-bg: #FDF0D5;
    --dark-blue: #003049;
    --accent-blue: #669BBC;
    
    --white: #FFFFFF;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --whatsapp-green: #25D366;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--primary-font);
    color: var(--dark-blue);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 75px; /* Critical for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-blue);
}

.section-padding { padding: 80px 0; }
.section-bg { background-color: var(--cream-bg); }

.section-title { margin-bottom: 50px; font-weight: 700; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--vibrant-red);
    border-radius: 2px; margin: 10px auto 0;
}


/* 3. COMPONENT STYLES
/* ------------------------------------------------------------------- */

/* --- Buttons --- */
.btn-brand {
    background-color: var(--vibrant-red);
    border: 2px solid var(--vibrant-red);
    color: white; padding: 12px 30px; border-radius: 50px;
    text-transform: uppercase; font-weight: 600; letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out; 
}
.btn-brand:hover, .btn-brand:focus {
    background-color: var(--rich-red);
    border-color: var(--rich-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(120, 0, 0, 0.3);
}

/* --- Navbar (Desktop) --- */
.navbar {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
}
.navbar-brand span { color: #fff !important; }
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-transform: uppercase; font-weight: 500;
    margin: 0 10px; transition: color 0.3s, transform 0.3s;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--white) !important;
    transform: scale(1.1);
}
.navbar .nav-link-cta {
    background-color: var(--vibrant-red);
    color: var(--white) !important;
    padding: 8px 20px !important; border-radius: 50px; font-weight: 600;
    transition: all 0.3s ease-in-out;
}
.navbar .nav-link-cta:hover {
    background-color: var(--white);
    color: var(--dark-blue) !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh; position: relative; color: white; text-align: center;
    display: flex; align-items: center; justify-content: center;
}
.hero-section .carousel, .hero-section .carousel-inner, .hero-section .carousel-item { height: 100%; width: 100%; position: absolute; top: 0; left: 0; }
.hero-section .carousel-item { background-size: cover; background-position: center; }
.hero-section::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.hero-section .container { position: relative; z-index: 2; }
.hero-section .carousel-caption { position: static; transform: none; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 20px; }
.hero-title { font-size: 4rem; font-weight: 700; color: #FFFFFF !important; text-shadow: 0px 3px 8px rgba(0, 0, 0, 0.7); margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.5rem; font-weight: 400; color: #FFFFFF !important; text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.6); margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- Cards --- */
.card { border: 1px solid #eee; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0, 48, 73, 0.1); }
.card-img-top { height: 250px; object-fit: cover; }
.card-body { padding: 25px; }

/* --- Why Choose Us --- */
.why-choose-us-item .icon { font-size: 4rem; color: var(--accent-blue); margin-bottom: 20px; transition: transform 0.3s; }
.why-choose-us-item:hover .icon { color: var(--vibrant-red); transform: scale(1.1) rotate(-10deg); }

/* --- Testimonials --- */
.testimonials { position: relative; }
.swiper.testimonialSwiper { padding-top: 50px; padding-bottom: 50px; }
.swiper-slide { display: flex; justify-content: center; }
.testimonial-card { background: #fff; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin: 15px; transition: transform 0.3s, box-shadow 0.3s; height: 100%; position: relative; padding: 30px; padding-top: 60px; text-align: center; }
.testimonial-card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0, 48, 73, 0.1); }
.testimonial-author-info { margin-top: auto; }
.testimonial-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 5px solid var(--vibrant-red); position: absolute; top: -50px; left: 50%; transform: translateX(-50%); background-color: #fff; }
.testimonial-card .quote { font-style: italic; color: var(--text-light); font-size: 1rem; margin-bottom: 20px; }
.testimonial-card .quote i { color: var(--accent-blue); font-size: 0.8rem; margin: 0 5px; }
.testimonial-card .author { color: var(--dark-blue); font-weight: 600; margin-bottom: 5px; }
.testimonial-card .designation { color: var(--vibrant-red); font-size: 0.9rem; font-weight: 500; }
.swiper-pagination-bullet { background: var(--accent-blue); opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--vibrant-red); opacity: 1; }

/* --- Gallery Auto Carousel --- */
.gallery-carousel { overflow: hidden; padding: 20px 0; background: var(--dark-blue); white-space: nowrap; position: relative; }
.gallery-carousel:before { content: ""; position: absolute; top: 0; width: 200px; height: 100%; z-index: 2; left: 0; background: linear-gradient(to left, rgba(0, 48, 73, 0), var(--dark-blue)); }
.gallery-carousel:after { content: ""; position: absolute; top: 0; width: 200px; height: 100%; z-index: 2; right: 0; background: linear-gradient(to right, rgba(0, 48, 73, 0), var(--dark-blue)); }
.gallery-track { display: inline-block; animation: scroll 40s linear infinite; }
.gallery-track img { height: 120px; width: auto; margin: 0 15px; border-radius: 10px; transition: transform 0.3s; }
.gallery-track:hover { animation-play-state: paused; }
.gallery-track img:hover { transform: scale(1.1); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Packages Page --- */
.sticky-filter-bar { position: -webkit-sticky; position: sticky; top: 75px; background-color: #ffffff; padding: 1rem 0; z-index: 1020; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); transition: top 0.3s; }
.package-filters .btn { margin: 5px; border-radius: 50px; border-color: var(--accent-blue); color: var(--accent-blue); }
.package-filters .btn.active, .package-filters .btn:hover { background-color: var(--accent-blue); color: white; }
.package-price { font-size: 2rem; font-weight: 700; color: var(--vibrant-red); }

/* --- FAQ Section --- */
.faq-section .accordion-item { border: 1px solid #e9ecef; margin-bottom: 1rem; border-radius: .5rem !important; overflow: hidden; }
.faq-section .accordion-button { font-weight: 600; color: var(--dark-blue); }
.faq-section .accordion-button:not(.collapsed) { color: var(--vibrant-red); background-color: var(--cream-bg); }

/* --- Footer --- */
.footer-dark { background-color: var(--dark-blue); }
.footer-dark h5 { color: var(--accent-blue); }
.footer-dark a { transition: color 0.3s; text-decoration: none; }
.footer-dark a:hover { color: var(--white) !important; }
.footer-dark .text-white-50 { transition: color 0.3s; }
.footer-dark .text-white-50:hover { color: var(--white) !important; }

/* --- Floating WhatsApp Button --- */
.whatsapp-btn { position: fixed; bottom: 20px; right: 20px; z-index: 1030; width: 60px; height: 60px; background-color: var(--whatsapp-green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.2); text-decoration: none; transition: transform 0.3s ease-in-out; }
.whatsapp-btn:hover { color: white; transform: scale(1.1); }

/* --- Map Responsive Container --- */
.map-responsive-container { overflow: hidden; padding-bottom: 40%; position: relative; height: 0; }
.map-responsive-container iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; border: 0; }


/* 4. CREATIVE MOBILE MENU
/* ------------------------------------------------------------------- */
.navbar-toggler-custom { display: none; width: 30px; height: 25px; position: relative; background: transparent; border: none; cursor: pointer; z-index: 1051; }
.navbar-toggler-custom span { display: block; position: absolute; height: 3px; width: 100%; background: white; border-radius: 3px; left: 0; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; }
.navbar-toggler-custom span:nth-child(1) { top: 0px; }
.navbar-toggler-custom span:nth-child(2) { top: 10px; }
.navbar-toggler-custom span:nth-child(3) { top: 20px; }
.navbar-toggler-custom.open span:nth-child(1) { top: 10px; transform: rotate(135deg); }
.navbar-toggler-custom.open span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.navbar-toggler-custom.open span:nth-child(3) { top: 10px; transform: rotate(-135deg); }
.offcanvas-menu { position: fixed; top: 0; right: -300px; width: 300px; height: 100%; background-color: var(--dark-blue); z-index: 1050; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); overflow-y: auto; box-shadow: -5px 0 15px rgba(0,0,0,0.2); }
.offcanvas-menu.open { right: 0; }
.offcanvas-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.offcanvas-overlay.open { opacity: 1; visibility: visible; }
.offcanvas-content { padding: 80px 30px 30px 30px; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; color: white; background: none; border: none; cursor: pointer; }
.navbar-nav-offcanvas { list-style: none; padding: 0; }
.navbar-nav-offcanvas li { padding: 10px 0; transform: translateX(20px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.navbar-nav-offcanvas .nav-link { color: rgba(255,255,255,0.7); font-size: 1.2rem; font-weight: 500; text-transform: uppercase; text-decoration: none; transition: color 0.3s; }
.navbar-nav-offcanvas .nav-link:hover { color: var(--vibrant-red); }
.offcanvas-menu.open .navbar-nav-offcanvas li { transform: translateX(0); opacity: 1; }
.offcanvas-menu.open .navbar-nav-offcanvas li:nth-child(1) { transition-delay: 0.1s; }
.offcanvas-menu.open .navbar-nav-offcanvas li:nth-child(2) { transition-delay: 0.15s; }
.offcanvas-menu.open .navbar-nav-offcanvas li:nth-child(3) { transition-delay: 0.2s; }
.offcanvas-menu.open .navbar-nav-offcanvas li:nth-child(4) { transition-delay: 0.25s; }
.offcanvas-menu.open .navbar-nav-offcanvas li:nth-child(5) { transition-delay: 0.3s; }
.offcanvas-menu.open .navbar-nav-offcanvas li:nth-child(6) { transition-delay: 0.35s; }
.offcanvas-menu.open .navbar-nav-offcanvas li:nth-child(7) { transition-delay: 0.4s; }
.offcanvas-menu.open .navbar-nav-offcanvas li:nth-child(8) { transition-delay: 0.45s; }
.offcanvas-menu .nav-link-cta { background-color: var(--vibrant-red); color: var(--white) !important; border-radius: 50px; text-align: center; padding: 10px 15px; display: block; font-weight: 600; margin-top: 15px; transition: background-color 0.3s, transform 0.3s; }
.offcanvas-menu .nav-link-cta:hover { background-color: var(--rich-red); color: var(--white) !important; transform: scale(1.03); }


/* 5. RESPONSIVE ADJUSTMENTS
/* ------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar-toggler-custom { display: block; }
    .navbar .collapse.navbar-collapse { display: none !important; }
}
@media (max-width: 767.98px) {
    .section-padding { padding-top: 60px; padding-bottom: 60px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .package-filters-desktop { display: none; }
    .map-responsive-container { padding-bottom: 75%; }
}
@media (min-width: 768px) {
    .package-filters-mobile { display: none; }
}