/* =================================================================
   CUSTOM STYLES FOR HERITAGE TRAILS - State-of-the-Art Design
   ================================================================= */

/* Define CSS Variables based on Tailwind Config */
:root {
    --color-primary-dark: #151719;
    --color-secondary-dark: #2c2f33;
    --color-neutral-light: #f9f9f9;
    --color-heritage-gray: #e0e0e0;
    --color-accent-gold: #b89445; 
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* Base & Typography Enhancement */
body {
    scroll-behavior: smooth;
    /* This ensures a seamless scroll when clicking nav links */
}

h1, h2, h3 {
    color: var(--color-primary-dark);
    line-height: 1.1;
}

/* Nav Underline Micro-interaction */
.nav-underline {
    position: absolute;
    left: 50%; /* Start in the middle */
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.group:hover .nav-underline {
    width: 100%;
    left: 0;
}


/* =================================================================
   I. HERO & SEARCH SECTION STYLING
   ================================================================= */

/* Cinematic Hero Background with Monochromatic Filter */
.hero-bg {
    /* Replace with your high-res, large image */
    background-image: url('images/56828-Dubai.webp'); 
    background-size: cover;
    background-position: center;
    /* Optional: Subtle Parallax Effect */
    background-attachment: fixed; 
}

/* Glass Morphism Effect for Search Component */
.glass-card {
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth */
}

/* Tab Button Styling (Active/Inactive) */
.tabs-list button {
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 10px 15px;
    border-radius: 9999px; /* Pill shape */
    transition: all 0.3s ease;
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
}

.tabs-list button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.tab-button[aria-selected="true"] {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 15px rgba(184, 148, 69, 0.5); /* Gold shadow for active tab */
    border-color: var(--color-primary-dark);
}

/* Search Input Fields Styling (Inside Glass Card) */
.search-input, .search-select {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Space for icon */
    border-radius: 8px;
    border: none;
    background-color: white; /* Solid white background for visibility */
    transition: box-shadow 0.3s ease;
    font-size: 1rem;
    color: var(--color-primary-dark);
    appearance: none; /* For selects to remove default arrows */
    -webkit-appearance: none;
}

.search-input:focus, .search-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-accent-gold);
}

/* Fix for date input on webkit browsers */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.15); /* Keep the default icon dark */
    margin-right: -25px; /* Adjust positioning */
}

/* =================================================================
   III. CATEGORIES SECTION STYLING
   ================================================================= */
.category-card {
    padding: 2rem;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid var(--color-heritage-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-primary-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-card:hover h3, 
.category-card:hover i {
    color: white;
    transition: color 0.3s ease;
}

/* =================================================================
   IV. USP SECTION STYLING (The Heritage Difference)
   ================================================================= */
.usp-card {
    padding: 2rem;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.usp-icon {
    font-size: 2.5rem;
    color: var(--color-accent-gold);
    margin-bottom: 1rem;
}

/* =================================================================
   V. FEATURED TRAILS STYLING
   ================================================================= */
.trail-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--color-heritage-gray);
}

.trail-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.trail-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    /* Image Hover Effect */
    transition: transform 0.5s ease; 
}

.trail-card:hover .trail-image {
    transform: scale(1.05);
}

/* Specific Placeholder Image Classes */
.trail-image-1 { background-image: url('images/d1.jpg'); filter: grayscale(80%); }
.trail-image-2 { background-image: url('images/d2.jpg'); filter: grayscale(70%); }
.trail-image-3 { background-image: url('images/d3.webp'); filter: grayscale(60%); }

.trail-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.1); /* Subtle dark overlay */
}

/* CTA Buttons */
.secondary-cta {
    display: inline-block;
    padding: 8px 18px;
    background-color: var(--color-primary-dark);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.secondary-cta:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 10px rgba(184, 148, 69, 0.4);
}

.primary-cta-big {
    padding: 15px 35px;
    border: 3px solid var(--color-accent-gold);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 9999px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.primary-cta-big:hover {
    background-color: var(--color-accent-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 148, 69, 0.4);
}

/* =================================================================
   VI. TESTIMONIALS STYLING
   ================================================================= */
.testimonial-card {
    padding: 30px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-accent-gold);
}

/* =================================================================
   VII. FOOTER STYLING
   ================================================================= */
.social-icon {
    font-size: 1.2rem;
    color: var(--color-gray-400);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--color-accent-gold);
}

/* Responsive adjustments for mobile menu icon */
@media (max-width: 768px) {
    .search-tabs-container {
        transform: translateY(0) !important; /* Disable hover effect on mobile */
    }
}



/* Trail Details Page Start */
/* =================================================================
   TRAIL DETAIL PAGE STYLING (Functional Luxury Aura)
   ================================================================= */

/* --- Image Placeholders (Gallery) --- */

/* Main Hero Image Styling (default) */
.trail-image-hero {
    background-image: url('images/d1-sultan-hero.webp'); /* Default Hero Image */
    background-size: cover;
    background-position: center;
    position: relative;
    /* transition: background-image 0.5s ease; */ /* Optional transition */
}

/* Specific Hero Image Swaps (You need to create these image files!) */
.trail-image-hero-1 { background-image: url('images/d1-sultan-hero.webp'); }
.trail-image-hero-2 { background-image: url('images/d1-sultan-2.webp'); }
.trail-image-hero-3 { background-image: url('images/d1-sultan-3.webp'); }
.trail-image-hero-4 { background-image: url('images/d1-sultan-4.webp'); }

/* Thumbnail Image Styling */
.thumbnail {
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.thumbnail:hover {
    border-color: var(--color-heritage-gray);
}
.thumbnail.thumbnail-active {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 10px rgba(184, 148, 69, 0.5);
}
/* Specific Thumbnail Backgrounds */
.trail-thumb-1 { background-image: url('images/d1-sultan-thumb-1.webp'); }
.trail-thumb-2 { background-image: url('images/d1-sultan-thumb-2.webp'); }
.trail-thumb-3 { background-image: url('images/d1-sultan-thumb-3.webp'); }
.trail-thumb-4 { background-image: url('images/d1-sultan-thumb-4.webp'); }


/* --- Tab Navigation Styles --- */
.tabs-navigation {
    display: flex;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto; /* Allows scrolling on small screens */
}

.tab-link {
    padding: 12px 20px;
    font-weight: 600;
    color: var(--color-secondary-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px; /* Pulls up to hide border of parent */
    flex-shrink: 0;
}

.tab-link:hover {
    color: var(--color-primary-dark);
}

.tab-link.active {
    color: var(--color-accent-gold);
    border-bottom-color: var(--color-accent-gold);
}

/* Tab Content Panels */
.tab-content-panel {
    display: none;
    padding-top: 10px;
    animation: fadeIn 0.5s ease-out;
}

.tab-content-panel.active {
    display: block;
}

/* --- Itinerary Styles --- */
.itinerary-list {
    position: relative;
    padding-left: 20px;
}

.itinerary-list .itinerary-item {
    position: relative;
    padding-left: 15px;
}

/* Add custom gold bullet point */
.itinerary-list .itinerary-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 18px;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent-gold);
    border-radius: 50%;
    z-index: 10;
}

/* --- Social Share Icons --- */
.social-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.social-share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-share-icon.facebook { background-color: #3b5998; }
.social-share-icon.twitter { background-color: #00acee; }
.social-share-icon.whatsapp { background-color: #25d366; }
.social-share-icon.email { background-color: var(--color-primary-dark); }


/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}






/* CSS ADD ON */
/* =================================================================
   IV. TOP CITIES STYLING (Aspirational Aura)
   ================================================================= */
.destination-card {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.destination-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.destination-dubai { background-image: url('images/d1.jpg'); }
.destination-abu-dhabi { background-image: url('images/d2.jpg'); }
.destination-singapore { background-image: url('images/d3.webp'); }
.destination-rome { background-image: url('images/d4.jpg'); }

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-primary-dark) 0%, rgba(0, 0, 0, 0.0) 60%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.4s ease;
}

.destination-card:hover .destination-overlay {
    background: linear-gradient(to top, var(--color-primary-dark) 0%, rgba(0, 0, 0, 0.5) 40%);
}


/* =================================================================
   V. POPULAR EXPERIENCES STYLING (Actionable & Commercial Aura)
   ================================================================= */
.experience-card {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-heritage-gray);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.experience-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent-gold);
}

.secondary-cta-small {
    display: block;
    text-align: center;
    padding: 8px 15px;
    background-color: var(--color-primary-dark);
    color: white;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.secondary-cta-small:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* =================================================================
   VII. UTILITY LINKS STYLING (Comprehensive Utility Aura)
   ================================================================= */
.link-list a {
    position: relative;
    padding-left: 10px;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.link-list a:hover {
    color: var(--color-accent-gold);
    padding-left: 15px;
}

/* Add a bullet/arrow to non-icon lists */
.link-list:not(:has(i)) a::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-accent-gold);
}
/* --- New Image Container Styling --- */
.card-image-container {
    width: 100%;
    height: 150px; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    border-radius: 8px; /* Matches the card corners */
    margin-top: -10px; /* Pulls the image up slightly into the card padding */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Remove any top-left/top-right rounding from the card border */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* --- Specific Card Images (Replace URLs with your actual image paths) --- */

.card-image-atlantis {
    background-image: url('images/d1.jpg'); 
}

.card-image-burj-khalifa {
    background-image: url('images/d2.jpg');
}

.card-image-desert-safari {
    background-image: url('images/d3.webp');
}

.card-image-museum-future {
    background-image: url('images/d4.jpg');
}

/* Repeat for other cards (Abu Dhabi experiences, etc.) */

.card-image-ferrari-world {
    background-image: url('images/d5.webp'); 
}

.card-image-louvre-abudhabi {
    background-image: url('images/d6.jpg'); 
}




/* =================================================================
   TRAIL CATALOG PAGE STYLING (Functional & Elegant Aura)
   ================================================================= */

/* --- Filter Sidebar Styles --- */
.filter-sidebar {
    /* Sticky class handled by Tailwind: lg:sticky lg:top-28 */
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--color-secondary-dark);
}

.filter-checkbox-item input[type="checkbox"],
.filter-checkbox-item input[type="radio"] {
    margin-right: 10px;
    /* Customizing checkbox color (using the accent gold) */
    accent-color: var(--color-accent-gold); 
    width: 16px;
    height: 16px;
}

/* Custom styling for the range slider (for gold accent) */
.range-gold::-webkit-slider-thumb {
  background: var(--color-accent-gold);
  border: 1px solid var(--color-accent-gold);
  /* other properties for custom thumb styling */
}

/* --- Trail Card Styles (Different from homepage experience-card) --- */

.full-trail-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-heritage-gray);
    transition: all 0.3s ease;
    height: 100%; /* Ensures cards in a row have equal height */
}

.full-trail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent-gold);
}

.full-trail-card .card-image-container {
    height: 200px; /* Taller image for the main catalog */
    background-size: cover;
    background-position: center;
    /* Reset margins set on the homepage experience cards */
    margin: 0 !important; 
    border-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Specific image placeholders for the trail cards */
.trail-image-sultan { background-image: url('images/d1-sultan.webp'); }
.trail-image-phoenician { background-image: url('images/d2-phoenician.webp'); }
.trail-image-silkroad { background-image: url('images/d3-silkroad.webp'); }
.trail-image-placeholder { background-image: url('images/d4-placeholder.webp'); } 

.trail-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    background-color: #f7f3e8; /* Light gold background */
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* --- Pagination Styles --- */
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    color: var(--color-secondary-dark);
    border: 1px solid var(--color-heritage-gray);
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background-color: var(--color-heritage-gray);
}

.pagination-link.active {
    background-color: var(--color-accent-gold);
    color: white;
    border-color: var(--color-accent-gold);
}