/* ═══════════════════════════════════════════════════════════════════════════════ */
/* COORG TOURISM ENHANCED - MODERN AIRBNB-STYLE DESIGN */
/* RESPONSIVE, MOBILE-FIRST, PERFORMANCE OPTIMIZED */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* Overall page background with beautiful pastel peacock gradient */
body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 15%, #bae6fd 30%, #7dd3fc 45%, #38bdf8 60%, #0ea5e9 75%, #0284c7 90%, #0369a1 100%);
    min-height: 100vh;
}

/* Remove favorite buttons from all cards */
.favorite-btn {
    display: none !important; /* Hide all favorite buttons */
}

/* ──────────── CSS RESET & GLOBAL STYLES ──────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Enhanced Color Palette - Peacock Paradise Theme */
    --primary-blue: #0ea5e9;
    --primary-blue-dark: #0284c7;
    --primary-blue-light: #38bdf8;
    --secondary-emerald: #10b981;
    --secondary-emerald-dark: #059669;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    
    /* Peacock Paradise Colors - Enhanced */
    --peacock-teal: #0d9488;
    --peacock-cyan: #0891b2;
    --peacock-blue: #1e40af;
    --peacock-indigo: #4338ca;
    --peacock-violet: #7c3aed;
    --peacock-emerald: #059669;
    --peacock-green: #16a34a;
    
    /* New Indigo & Peacock Variants */
    --peacock-indigo-light: #6366f1;
    --peacock-indigo-dark: #3730a3;
    --peacock-cyan-light: #06b6d4;
    --peacock-cyan-dark: #0e7490;
    --peacock-violet-light: #8b5cf6;
    --peacock-violet-dark: #5b21b6;
    
    /* Neutral Colors */
    --neutral-gray-50: #f8fafc;
    --neutral-gray-100: #f1f5f9;
    --neutral-gray-200: #e2e8f0;
    --neutral-gray-300: #cbd5e0;
    --neutral-gray-400: #a0aec0;
    --neutral-gray-500: #718096;
    --neutral-gray-600: #4a5568;
    --neutral-gray-700: #2d3748;
    --neutral-gray-800: #1a202c;
    --neutral-gray-900: #171923;
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Layout */
    --container-max-width: 1920px;
    --section-padding: 40px 0; /* Reduced from 60px */
    --element-border-radius: 12px;
    --card-border-radius: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--neutral-gray-700);
    overflow-x: hidden;
    background: var(--neutral-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling for all interactive elements */
a, button, .place-card, .category-item {
    scroll-behavior: smooth;
}

/* Optimize animations for better performance */
.place-card,
.nav-btn,
.category-item,
.hero-nav-btn {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Enhanced focus states for better accessibility */
.place-card:focus-visible,
.nav-btn:focus-visible,
.category-item:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
    border-radius: var(--card-border-radius);
}

/* Loading states and skeleton screens */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced mobile touch interactions */
@media (max-width: 768px) {
    .place-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .nav-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .category-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* ──────────── ENHANCED GLASSMORPHISM EFFECTS ──────────── */
.category-section,
.town-attractions-section,
.towns-section,
.tips-section {
    position: relative;
}

.category-section::before,
.town-attractions-section::before,
.towns-section::before,
.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(13, 148, 136, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

/* ──────────── ALTERNATING SECTION COLORS ──────────── */
.category-section:nth-child(even) {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
}

.town-attractions-section:nth-child(even) {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
}

/* ──────────── ENHANCED CARD INTERACTIONS ──────────── */
.place-card {
    position: relative;
    overflow: hidden;
}

.place-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

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

/* ──────────── IMPROVED SPACING & LAYOUT ──────────── */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .category-section,
    .town-attractions-section {
        margin-bottom: 30px;
    }
    
    .category-header,
    .section-header {
        margin-bottom: 20px;
    }
}

/* ──────────── ENHANCED NAVIGATION ──────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--neutral-gray-800);
}

.nav-brand i {
    font-size: 24px;
    color: var(--primary-blue);
}

.brand-text {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-gray-800);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: var(--element-border-radius);
    transition: all var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-blue);
    background: var(--neutral-gray-50);
}

.nav-link i {
    font-size: 14px;
}

.nav-mobile {
    display: none;
}

/* Mobile menu styles removed to prevent conflicts - now handled by menu-styles.css */

/* ──────────── HERO SECTION WITH CAROUSEL ──────────── */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title-highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-cta.primary {
    background: var(--primary-blue);
    color: white;
}

.hero-cta.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-controls {
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.hero-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ──────────── CATEGORY NAVIGATION ──────────── */
.category-nav {
    position: sticky;
    top: 80px;
    z-index: 99;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 20px 0; /* Reduced from 28px */
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.1),
        0 2px 8px rgba(13, 148, 136, 0.1);
    margin: 0;
    overflow: hidden; /* Fix broken corners */
}

.category-scroll {
    display: flex;
    gap: 24px; /* Reduced from 32px */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 0 24px;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 14px 18px; /* Reduced from 16px 20px */
    border-radius: var(--element-border-radius);
    transition: all var(--transition-normal);
    white-space: nowrap;
    min-width: fit-content;
    opacity: 0.9;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(99, 102, 241, 0.05) 25%, 
        rgba(13, 148, 136, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.1),
        0 2px 8px rgba(13, 148, 136, 0.1);
    transform: scale(1);
    backdrop-filter: blur(15px);
}

.category-item.active,
.category-item:hover {
    opacity: 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(13, 148, 136, 0.25) 100%);
    border-color: var(--peacock-indigo-light);
    transform: translateY(-2px) scale(1.03); /* Reduced from -4px */
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.2),
        0 4px 15px rgba(13, 148, 136, 0.2);
}

.category-icon {
    width: 38px; /* Reduced from 40px */
    height: 38px; /* Reduced from 40px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* Reduced from 20px */
    transition: all var(--transition-normal);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(13, 148, 136, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
}

.category-item.active .category-icon,
.category-item:hover .category-icon {
    transform: scale(1.08); /* Reduced from 1.1 */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(13, 148, 136, 0.3) 100%);
}

.category-label {
    font-size: 11px; /* Reduced from 12px */
    font-weight: 600;
    color: var(--neutral-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-item.active .category-label {
    color: var(--peacock-indigo-dark);
    font-weight: 700;
}

/* ──────────── PLACES SECTION ──────────── */
.places-section {
    padding: var(--section-padding);
    background: white;
}

/* ──────────── CATEGORY SECTIONS ──────────── */
.category-section {
    margin-bottom: 40px; /* Reduced from 60px */
    padding: 0;
}

.category-section:last-child {
    margin-bottom: 0;
}

/* Waterfalls Category - Light Grey */
#waterfalls {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
    position: relative;
}

#waterfalls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waterfall-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%230d9488" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23waterfall-pattern)"/></svg>');
    border-radius: 20px;
    pointer-events: none;
}

/* Cultural Category - Light Grey */
#cultural {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
    position: relative;
}

#cultural::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cultural-pattern" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><rect x="10" y="10" width="5" height="5" fill="%234338ca" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23cultural-pattern)"/></svg>');
    border-radius: 20px;
    pointer-events: none;
}

/* Adventure Category - Light Grey */
#adventure {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
    position: relative;
}

#adventure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="adventure-pattern" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><polygon points="15,5 20,15 15,25 10,15" fill="%2316a34a" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23adventure-pattern)"/></svg>');
    border-radius: 20px;
    pointer-events: none;
}

/* Wildlife Category - Light Grey */
#wildlife {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
    position: relative;
}

#wildlife::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wildlife-pattern" x="0" y="0" width="35" height="35" patternUnits="userSpaceOnUse"><circle cx="17.5" cy="17.5" r="3" fill="%23059669" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23wildlife-pattern)"/></svg>');
    border-radius: 20px;
    pointer-events: none;
}

/* Viewpoints Category - Light Grey */
#viewpoints {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
    position: relative;
}

#viewpoints::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="viewpoints-pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><rect x="15" y="15" width="10" height="10" fill="%230891b2" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23viewpoints-pattern)"/></svg>');
    border-radius: 20px;
    pointer-events: none;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(99, 102, 241, 0.05) 25%, 
        rgba(13, 148, 136, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(99, 102, 241, 0.1) !important;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    gap: 24px;
    z-index: 2;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--peacock-indigo-light) 0%, var(--peacock-cyan-light) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, var(--peacock-indigo-dark) 0%, var(--peacock-cyan-dark) 100%);
}

.explore-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.explore-btn:hover i {
    transform: translateX(3px);
}

.category-title h2 {
    font-family: var(--font-secondary);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
    background: linear-gradient(45deg, 
        #1e40af 0%, 
        #3b82f6 12.5%, 
        #06b6d4 25%, 
        #10b981 37.5%, 
        #f59e0b 50%, 
        #ef4444 62.5%, 
        #8b5cf6 75%, 
        #ec4899 87.5%, 
        #1e40af 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: magicalColorWave 8s ease-in-out infinite;
}

.category-title p {
    color: var(--neutral-gray-600);
    font-size: 16px;
    font-weight: 500;
}

.category-nav-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Hide category nav buttons on desktop; keep on mobile */
@media (min-width: 1025px) {
    .category-nav-buttons { 
        display: flex !important; 
        gap: 16px;
    }
    
    .nav-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(13, 148, 136, 0.2) 100%);
        border: 2px solid var(--peacock-indigo-light);
        color: var(--peacock-indigo-dark);
        box-shadow: 
            0 6px 20px rgba(99, 102, 241, 0.2),
            0 3px 12px rgba(13, 148, 136, 0.2);
        backdrop-filter: blur(20px);
    }
    
    .nav-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, var(--peacock-indigo-light) 0%, var(--peacock-cyan-light) 100%);
        color: white;
        transform: scale(1.05);
        box-shadow: 
            0 10px 30px rgba(99, 102, 241, 0.3),
            0 5px 20px rgba(13, 148, 136, 0.3);
    }
}

.nav-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(99, 102, 241, 0.05) 25%, 
        rgba(13, 148, 136, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%) !important;
    border: 2px solid var(--peacock-indigo-light);
    border-radius: 50%;
    color: var(--peacock-indigo-dark);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.15),
        0 2px 8px rgba(13, 148, 136, 0.15);
    backdrop-filter: blur(15px);
}

.nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--peacock-indigo-light) 0%, var(--peacock-cyan-light) 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        0 4px 15px rgba(13, 148, 136, 0.3);
    border-color: var(--peacock-indigo-light);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--neutral-gray-300);
    color: var(--neutral-gray-400);
    background: rgba(255, 255, 255, 0.1);
}

.cards-container {
    overflow: hidden;
    border-radius: var(--card-border-radius);
    position: relative;
    z-index: 2;
    margin: 0 -12px;
    padding: 0 12px;
}

.cards-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
}

.cards-wrapper::-webkit-scrollbar {
    display: none;
}

/* Enhanced card visibility and spacing */
.place-card {
    scroll-snap-align: start;
    transition: all var(--transition-normal);
    transform: translateZ(0);
}

.place-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: var(--shadow-xl);
}

/* Desktop card navigation improvements */
@media (min-width: 1025px) {
    .cards-wrapper {
        gap: 24px;
        padding: 12px 4px;
    }
    
    .place-card {
        width: 320px;
        min-width: 320px;
    }
    
    .cards-container {
        margin: 0 -16px;
        padding: 0 16px;
    }
}

/* ──────────── PLACE CARDS ──────────── */
/* Enhanced card interactions and visual feedback */
.place-card {
    background: white;
    border-radius: var(--card-border-radius);
    cursor: pointer;
    transition: all var(--transition-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-gray-200);
    width: 300px;
    min-width: 300px;
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Ensure place cards behave like links */
.place-card:focus {
    outline: 2px solid var(--primary-blue-500);
    outline-offset: 2px;
}

.place-card:focus-visible {
    outline: 2px solid var(--primary-blue-500);
    outline-offset: 2px;
}

.place-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    pointer-events: none;
}

.place-card:hover::before {
    opacity: 1;
}

.place-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(59, 130, 246, 0.1);
}

.place-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: transform 0.1s ease;
}

/* Enhanced card image interactions */
.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) ease-out;
}

.place-card:hover .card-image img {
    transform: scale(1.1);
}

/* Enhanced badge styling */
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
    color: white;
}

/* Badge color variants */
.card-badge.popular { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card-badge.featured { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.card-badge.spiritual { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.card-badge.heritage { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.card-badge.historic { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.card-badge.natural { background: linear-gradient(135deg, #10b981, #059669); }
.card-badge.wildlife { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card-badge.cultural { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.card-badge.adventure { background: linear-gradient(135deg, #ef4444, #dc2626); }
.card-badge.museum { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.card-badge.plantations { background: linear-gradient(135deg, #10b981, #059669); }
.card-badge.palace { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card-badge.market { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.card-badge.temple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.card-badge.monastery { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.card-badge.elephants { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card-badge.nature-park { background: linear-gradient(135deg, #10b981, #059669); }

.place-card:hover .card-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Enhanced favorite button */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* Enhanced card content */
.card-content {
    padding: 20px;
    background: white;
    position: relative;
    z-index: 2;
}

.card-location {
    font-size: 12px;
    color: var(--neutral-gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-gray-800);
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-description {
    color: var(--neutral-gray-600);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature {
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Enhanced card footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--neutral-gray-200);
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-star {
    color: #f59e0b;
    font-size: 16px;
}

.rating-text {
    font-weight: 700;
    color: var(--neutral-gray-800);
}

.price {
    font-weight: 700;
    color: var(--peacock-teal);
    font-size: 14px;
}

/* ──────────── TOWN ATTRACTIONS SECTIONS ──────────── */
.town-attractions-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
    margin-bottom: 0;
}

.town-attractions-section .category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(99, 102, 241, 0.05) 25%, 
        rgba(13, 148, 136, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 75%, 
        rgba(255, 255, 255, 0.1) 100%) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(99, 102, 241, 0.1) !important;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    gap: 24px;
    z-index: 2;
}

.town-attractions-section .category-title h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, 
        #1e40af 0%, 
        #3b82f6 12.5%, 
        #06b6d4 25%, 
        #10b981 37.5%, 
        #f59e0b 50%, 
        #ef4444 62.5%, 
        #8b5cf6 75%, 
        #ec4899 87.5%, 
        #1e40af 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: magicalColorWave 8s ease-in-out infinite;
    margin-bottom: 8px;
    line-height: 1.2;
}

.town-attractions-section .category-title p {
    color: var(--neutral-gray-600);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* Enhanced spacing between town sections */
.town-attractions-section:not(:last-child) {
    margin-bottom: 40px; /* Reduced from 60px */
}

/* Responsive adjustments for town attractions */
@media (max-width: 768px) {
    .town-attractions-section {
        padding: 30px 0; /* Reduced from 40px */
        margin-bottom: 30px; /* Reduced from 40px */
    }
    
    .town-attractions-section .category-header {
        margin-bottom: 20px; /* Reduced from 24px */
        padding: 18px 20px; /* Reduced from 20px 24px */
    }
    
    .town-attractions-section .category-title h2 {
        font-size: 22px; /* Reduced from 24px */
    }
    
    .town-attractions-section .category-title p {
        font-size: 15px; /* Reduced from 16px */
    }
}

/* ──────────── TOWNS SECTION ──────────── */
.towns-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.towns-section .section-header h2 {
    color: var(--peacock-indigo-dark);
    background: linear-gradient(135deg, var(--peacock-indigo-dark) 0%, var(--peacock-cyan-dark) 100%);
    -webkit-background-clip: text;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.towns-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="towns-pattern" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="%23ffffff" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23towns-pattern)"/></svg>');
    pointer-events: none;
}

/* ──────────── SECTION HEADERS ──────────── */
.section-header {
    text-align: center;
    margin-bottom: 40px; /* Reduced from 60px */
    padding: 0;
}

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    color: var(--peacock-indigo-dark);
    margin-bottom: 16px; /* Reduced from 24px */
    background: linear-gradient(135deg, var(--peacock-indigo-dark) 0%, var(--peacock-cyan-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--neutral-gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.towns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.town-card {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.15);
    transition: all var(--transition-normal);
    border: 2px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

.town-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.town-card:hover::before {
    left: 100%;
}

.town-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(148, 163, 184, 0.25);
    border-color: rgba(148, 163, 184, 0.4);
}

.town-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.town-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.town-card:hover .town-image img {
    transform: scale(1.05);
}

.town-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}

.town-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.town-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.town-content {
    padding: 24px;
}

.town-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 12px;
    color: var(--neutral-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.town-cta {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: var(--element-border-radius);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.town-cta:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* ──────────── TIPS SECTION ──────────── */
.tips-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(13, 148, 136, 0.02) 100%);
    pointer-events: none;
}

.tips-carousel-container {
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.tips-carousel {
    display: flex;
    gap: 24px;
    animation: tipsScroll 60s linear infinite;
    width: max-content;
    padding: 20px 0;
}

.tip-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    min-width: 300px;
    max-width: 300px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--peacock-indigo-light) 0%, var(--peacock-cyan-light) 100%);
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.tip-card h3 {
    color: var(--peacock-indigo-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tip-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.tip-card p:last-child {
    margin-bottom: 0;
}

.tip-card strong {
    color: var(--peacock-indigo-dark);
    font-weight: 600;
}

@keyframes tipsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-6000px); /* Adjust based on total width of all cards */
    }
}

/* Pause animation on hover */
.tips-carousel:hover {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tips-carousel {
        animation-duration: 40s;
    }
    
    .tip-card {
        min-width: 280px;
        max-width: 280px;
        padding: 20px;
    }
    
    .tip-icon {
        font-size: 2rem;
    }
    
    .tip-card h3 {
        font-size: 1.1rem;
    }
    
    .tip-card p {
        font-size: 0.9rem;
    }
}

/* ──────────── FOOTER ──────────── */
.footer {
    background: linear-gradient(135deg, var(--peacock-indigo-dark) 0%, var(--peacock-cyan-dark) 100%);
    color: white;
    padding: 60px 0 30px 0; /* Reduced from 80px 0 40px 0 */
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; /* Reduced from 60px */
    margin-bottom: 40px; /* Reduced from 60px */
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand i {
    font-size: 20px;
    color: var(--primary-blue-light);
}

.footer-brand h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 18px;
}

.footer-section h3 {
    color: white;
    font-size: 20px; /* Reduced from 24px */
    font-weight: 700;
    margin-bottom: 20px; /* Reduced from 24px */
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 12px; /* Reduced from 16px */
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--neutral-gray-300);
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px; /* Reduced from 40px */
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neutral-gray-700);
    color: var(--neutral-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-blue);
    color: white;
}

/* ──────────── MOBILE RESPONSIVE DESIGN ──────────── */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: flex;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 16px;
    }
    
    .hero-section {
        height: 70vh;
        min-height: 500px;
        margin-top: 60px;
    }
    
    .hero-controls {
        display: none;
    }
    
    .category-nav {
        top: 60px;
    }
    
    .category-scroll {
        padding: 0 16px;
        gap: 16px;
        justify-content: flex-start;
    }
    
    .category-item {
        padding: 12px 16px;
    }
    
    .category-icon {
        font-size: 20px;
    }
    
    .category-label {
        font-size: 11px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .category-section {
        margin: 0 -16px 20px -16px; /* Reduced from 30px to 20px */
        padding: 20px 0; /* Reduced from 30px to 20px */
        border-radius: 16px;
    }
    
    .category-header {
        display: flex !important;
        flex-direction: row !important; /* Horizontal layout */
        align-items: flex-start !important; /* Align to top for proper stacking */
        justify-content: space-between !important; /* Space between title and button */
        gap: 8px !important; /* Reduced gap */
        padding: 16px 20px !important; /* Reduced from 20px 24px to 16px 20px */
        flex-wrap: nowrap !important; /* Prevent wrapping to third line */
        min-height: auto !important; /* Remove fixed height */
    }
    
    /* Mobile category title - takes available space */
    .category-title {
        flex: 1; /* Take available space */
        min-width: 0; /* Allow shrinking */
        margin-right: 8px; /* Small margin from button */
        display: flex;
        flex-direction: column; /* Stack title and description vertically */
        justify-content: center; /* Center vertically within available space */
    }
    
    /* Mobile category title text optimization */
    .category-title h2 {
        font-size: 1.3rem; /* Reduced for 2-line fit */
        line-height: 1.1; /* Tighter line height */
        margin-bottom: 0.1rem; /* Minimal margin between title and description */
        white-space: nowrap; /* Prevent title wrapping */
        overflow: hidden;
        text-overflow: ellipsis; /* Show ... if too long */
    }
    
    .category-title p {
        font-size: 0.8rem; /* Smaller description */
        line-height: 1.1; /* Tighter line height */
        margin: 0; /* Remove margins */
        white-space: nowrap; /* Prevent description wrapping */
        overflow: hidden;
        text-overflow: ellipsis; /* Show ... if too long */
    }
    
    /* Mobile explore button - arrow only, aligned to center of title block */
    .explore-btn {
        padding: 12px; /* Compact square padding */
        width: 44px; /* Fixed width */
        height: 44px; /* Fixed height */
        min-width: 44px; /* Prevent shrinking */
        flex-shrink: 0; /* Don't shrink */
        display: flex;
        align-items: center;
        justify-content: center; /* Center the arrow */
        border-radius: 8px; /* Rounded corners */
        align-self: center; /* Center vertically relative to title block */
    }
    
    .explore-btn .btn-text {
        display: none; /* Hide text on mobile */
    }
    
    .explore-btn i {
        font-size: 14px; /* Arrow size */
        margin: 0; /* Remove margin since no text */
    }
    
    .section-header {
        padding: 20px 24px;
        margin-bottom: 30px;
    }
    
    .place-card {
        width: calc(85vw - 32px);
        min-width: calc(85vw - 32px);
        max-width: calc(85vw - 32px);
    }
    
    .cards-wrapper {
        gap: 16px;
        padding: 2px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .cards-container {
        margin: 0 -16px;
        padding: 0 16px;
        overflow: hidden;
    }
    
    /* Ensure cards don't overflow viewport */
    .featured-attractions-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
        margin: 0 -16px;
    }
    
    .featured-attraction-card {
        flex-shrink: 0;
        scroll-snap-align: start;
        width: calc(85vw - 32px);
        min-width: calc(85vw - 32px);
        max-width: calc(85vw - 32px);
    }
    
    .towns-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .place-card {
        width: calc(90vw - 24px);
        min-width: calc(90vw - 24px);
        max-width: calc(90vw - 24px);
    }
    
    .featured-attraction-card {
        width: calc(90vw - 24px);
        min-width: calc(90vw - 24px);
        max-width: calc(90vw - 24px);
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .category-title h2 {
        font-size: 20px;
    }
    
    .tip-card {
        padding: 24px;
    }
    
    /* Extra small mobile category optimizations */
    .category-section {
        margin: 0 -12px 16px -12px; /* Further reduced margins */
        padding: 16px 0; /* Further reduced padding */
    }
    
    .category-header {
        gap: 6px; /* Further reduced gap */
        padding: 12px 16px; /* Further reduced padding */
    }
    
    .category-title {
        margin-right: 6px; /* Smaller margin from button */
    }
    
    .category-title h2 {
        font-size: 1.0rem; /* Further reduced for 2-line layout */
        line-height: 1.0; /* Very tight line height */
        margin-bottom: 0.05rem; /* Minimal margin */
    }
    
    .category-title p {
        font-size: 0.7rem; /* Smaller description */
        line-height: 1.0; /* Very tight line height */
    }
    
    .explore-btn {
        padding: 10px; /* Compact square padding */
        width: 40px; /* Smaller arrow button */
        height: 40px; /* Smaller arrow button */
        min-width: 40px; /* Prevent shrinking */
    }
    
    .explore-btn i {
        font-size: 12px; /* Slightly smaller arrow */
    }
}

/* Desktop styles - show full text */
@media (min-width: 769px) {
    .explore-btn .btn-text {
        display: inline; /* Show text on desktop */
    }
    
    .explore-btn {
        padding: 12px 20px; /* Full padding on desktop */
        min-width: auto; /* Auto width on desktop */
    }
    
    .explore-btn i {
        margin-right: 8px; /* Add margin for text */
    }
    
    /* Ensure magical color wave effect works on desktop */
    .category-title h2,
    .town-attractions-section .category-title h2 {
        background: linear-gradient(45deg, 
            #1e40af 0%, 
            #3b82f6 12.5%, 
            #06b6d4 25%, 
            #10b981 37.5%, 
            #f59e0b 50%, 
            #ef4444 62.5%, 
            #8b5cf6 75%, 
            #ec4899 87.5%, 
            #1e40af 100%) !important;
        background-size: 300% 300% !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        animation: magicalColorWave 8s ease-in-out infinite !important;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.3) !important;
    }
}

/* Responsive design for category actions */
@media (max-width: 768px) {
    .category-header {
        flex-direction: row !important; /* Force horizontal layout */
        align-items: flex-start !important; /* Align to top */
        gap: 8px !important; /* Reduced gap */
        padding: 16px 20px !important; /* Reduced padding */
        flex-wrap: nowrap !important; /* Prevent wrapping */
    }
    
    .category-actions {
        flex-direction: row !important; /* Keep horizontal */
        gap: 8px !important; /* Reduced gap */
        align-items: center !important; /* Center align */
    }
    
    .explore-btn {
        align-self: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .category-nav-buttons {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 16px 20px;
    }
    
    .explore-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .category-title h2 {
        font-size: 20px;
        text-align: center;
    }
    
    .category-title p {
        text-align: center;
    }
}

/* ──────────── SCROLL TO TOP BUTTON ──────────── */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-emerald) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--secondary-emerald-dark) 100%);
}

.scroll-to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn:active {
    transform: scale(0.95);
}

/* Mobile responsive scroll to top */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* ──────────── PERFORMANCE OPTIMIZATIONS ──────────── */
.category-nav,
.category-header,
.nav-btn,
.place-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.cards-wrapper {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.place-card {
    scroll-snap-align: start;
}

/* Image loading optimizations */
.card-image img {
    transition: opacity 0.3s ease;
}

.card-image img[loading="lazy"] {
    opacity: 0;
}

.card-image img[loading="lazy"].loaded {
    opacity: 1;
}

/* Loading skeleton for images */
.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.card-image img.loaded + .card-image::before {
    display: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ──────────── ACCESSIBILITY ──────────── */
.place-card:focus,
.nav-btn:focus,
.category-item:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Focus visible for better keyboard navigation */
.nav-btn:focus-visible,
.category-item:focus-visible,
.place-card:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

/* Screen reader improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ──────────── REDUCED MOTION ──────────── */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }
    
    .hero-slide img {
        transition: none !important;
    }
    
    .place-card:hover {
        transform: none !important;
    }
    
    .nav-btn:hover:not(:disabled) {
        transform: none !important;
    }
}

/* ──────────── HIGH CONTRAST MODE ──────────── */
@media (prefers-contrast: high) {
    .category-header,
    .town-attractions-section .category-header {
        border: 2px solid var(--peacock-indigo-dark);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .category-title h2,
    .town-attractions-section .category-title h2 {
        color: var(--peacock-indigo-dark) !important;
        -webkit-text-fill-color: var(--peacock-indigo-dark) !important;
        background: none !important;
    }
}

/* ──────────── NAVIGATION MENU - REMOVED TO PREVENT CONFLICTS ──────────── */
/* Menu styles are now handled by menu-styles.css for consistency across pages */

/* ──────────── ENHANCED FOOTER ──────────── */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #f8fafc;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-brand-section {
    grid-column: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand i {
    font-size: 2rem;
    color: #60a5fa;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
    margin-top: 5px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(52, 211, 153, 0.3) 100%);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
}

.footer-section h4 {
    color: #f1f5f9;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-radius: 6px;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

.footer-links a i {
    width: 16px;
    color: #60a5fa;
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: #60a5fa;
    width: 16px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
    margin: 40px 0 20px;
    position: relative;
    z-index: 2;
}

.footer-bottom {
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-copyright i {
    color: #ef4444;
    margin: 0 4px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #60a5fa;
}

/* Responsive footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand-section {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

@keyframes magicalColorWave {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}
