/* ═══════════════════════════════════════════════════════════════════════════════ */
/* PLACESTOVISIT PAGE FIXES - Remove animations and fix structural issues */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* Critical mobile fixes - prevent horizontal body scroll */
body.placestovisit-page {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 70px; /* Account for fixed menu height */
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 15%, #bae6fd 30%, #7dd3fc 45%, #38bdf8 60%, #0ea5e9 75%, #0284c7 90%, #0369a1 100%);
    min-height: 100vh;
}

/* Ensure container doesn't cause horizontal scroll */
.container {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0; /* Remove padding to allow full width sections */
    margin: 0; /* Remove margins */
}

/* Mobile container fixes */
@media (max-width: 768px) {
    .container {
        padding: 0 !important; /* Force no padding on mobile */
        margin: 0 !important; /* Force no margins on mobile */
        width: 100% !important; /* Force full width */
    }
}

/* Remove unnecessary spacing between sections for production */
.category-section,
.town-attractions-section,
.towns-section,
.tips-section {
    margin-bottom: 0.25rem; /* Further reduced from 1rem to 0.25rem */
    padding: 0.25rem 20px; /* Reduced from 0.75rem to 0.25rem */
    border-radius: 12px;
    border: none; /* Remove the blue border */
    width: 100%; /* Ensure full width */
    margin-left: 0; /* Remove any left margin */
    margin-right: 0; /* Remove any right margin */
}

/* Magical Wave Effect - 4px height with multiple parrot colors */
.magical-wave-container {
    height: 4px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, 
        #3b82f6 0%, 
        #8b5cf6 14.28%, 
        #ec4899 28.56%, 
        #f59e0b 42.84%, 
        #10b981 57.12%, 
        #06b6d4 71.4%, 
        #ef4444 85.68%, 
        #3b82f6 100%
    );
    background-size: 200% 100%;
    animation: waveFlow 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.magical-wave-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 25%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.3) 75%, 
        transparent 100%
    );
    animation: waveShimmer 4s ease-in-out infinite;
}

.magical-wave-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 16.66%, 
        rgba(236, 72, 153, 0.8) 33.33%, 
        rgba(245, 158, 11, 0.8) 50%, 
        rgba(16, 185, 129, 0.8) 66.66%, 
        rgba(6, 182, 212, 0.8) 83.33%, 
        rgba(239, 68, 68, 0.8) 100%
    );
    background-size: 300% 100%;
    animation: waveColors 6s ease-in-out infinite;
    mix-blend-mode: overlay;
}

@keyframes waveFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes waveShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes waveColors {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@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%;
    }
}

/* Mobile optimization for magical wave */
@media (max-width: 768px) {
    .magical-wave-container {
        animation: waveFlow 6s ease-in-out infinite; /* Slower on mobile */
    }
    
    .magical-wave-container::before {
        animation: waveShimmer 3s ease-in-out infinite; /* Slower shimmer */
    }
    
    .magical-wave-container::after {
        animation: waveColors 5s ease-in-out infinite; /* Slower color flow */
    }
}

/* Add magical wave effect between category sections */
.category-section + .category-section::before {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, 
        #3b82f6 0%, 
        #8b5cf6 14.28%, 
        #ec4899 28.56%, 
        #f59e0b 42.84%, 
        #10b981 57.12%, 
        #06b6d4 71.4%, 
        #ef4444 85.68%, 
        #3b82f6 100%
    );
    background-size: 200% 100%;
    animation: waveFlow 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    margin: 0.5rem 0;
}

/* Fix places section padding - remove extra padding before waterfalls */
.places-section {
    padding: 0 !important; /* Remove all padding from places section */
    margin: 0 !important; /* Remove all margins */
}

.places-section .container {
    padding: 0 !important; /* Remove container padding */
    margin: 0 !important; /* Remove container margins */
}

/* Beautiful pastel peacock-inspired section backgrounds */
.category-section:nth-child(odd) {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 20%, #f1f5f9 40%, #e2e8f0 60%, #cbd5e1 80%, #94a3b8 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.category-section:nth-child(even) {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 20%, #e5e7eb 40%, #d1d5db 60%, #9ca3af 80%, #6b7280 100%);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.town-attractions-section {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.town-attractions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(148, 163, 184, 0.05) 0%, 
        rgba(203, 213, 225, 0.05) 16.66%, 
        rgba(226, 232, 240, 0.05) 33.33%, 
        rgba(241, 245, 249, 0.05) 50%, 
        rgba(248, 250, 252, 0.05) 66.66%, 
        rgba(254, 254, 254, 0.05) 83.33%, 
        rgba(148, 163, 184, 0.05) 100%
    );
    background-size: 200% 200%;
    animation: subtleWave 8s ease-in-out infinite;
    z-index: 0;
}

/* Ensure town attractions header is visible with new light background */
.town-attractions-section .section-header h2 {
    color: #475569; /* Muted slate for better readability */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.town-attractions-section .section-header p {
    color: #64748b; /* Light slate for better readability */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Ensure town attraction category titles have magical color wave effect */
.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;
}


.towns-section {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
}

.towns-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(148, 163, 184, 0.05) 0%, 
        rgba(203, 213, 225, 0.05) 16.66%, 
        rgba(226, 232, 240, 0.05) 33.33%, 
        rgba(241, 245, 249, 0.05) 50%, 
        rgba(248, 250, 252, 0.05) 66.66%, 
        rgba(254, 254, 254, 0.05) 83.33%, 
        rgba(148, 163, 184, 0.05) 100%
    );
    background-size: 200% 200%;
    animation: subtleWave 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes subtleWave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.tips-section {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(148, 163, 184, 0.05) 0%, 
        rgba(203, 213, 225, 0.05) 16.66%, 
        rgba(226, 232, 240, 0.05) 33.33%, 
        rgba(241, 245, 249, 0.05) 50%, 
        rgba(248, 250, 252, 0.05) 66.66%, 
        rgba(254, 254, 254, 0.05) 83.33%, 
        rgba(148, 163, 184, 0.05) 100%
    );
    background-size: 200% 200%;
    animation: subtleWave 8s ease-in-out infinite;
    z-index: 0;
}

/* Cards container spacing */
.cards-container {
    margin-top: 0.5rem; /* Reduced from 1rem to 0.5rem */
}

.cards-wrapper {
    display: flex;
    gap: 1rem; /* Reduced from 1.5rem to 1rem */
    margin-bottom: 0.5rem; /* Reduced from 1rem to 0.5rem */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0; /* Reduced from 0.5rem to 0.25rem */
}

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

.cards-wrapper .place-card {
    flex: 0 0 300px;
    min-width: 300px;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

/* Towns section styling */
.towns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.town-card-simple {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #e2e8f0 50%, #cbd5e1 75%, #94a3b8 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: #475569;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.town-card-simple: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);
}

/* Light and pleasant peacock-inspired gradient themes for each town */
.town-card-simple:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.02) 100%), url('images/madikeri areial.webp') center/cover !important;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.town-card-simple:nth-child(1)::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;
}

.town-card-simple:nth-child(1):hover::before {
    left: 100%;
}

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

.town-card-simple:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.02) 100%), url('images/virajpet-st-annes-church.jpg') center/cover !important;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.15);
    position: relative;
    overflow: hidden;
}

.town-card-simple:nth-child(2)::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;
}

.town-card-simple:nth-child(2):hover::before {
    left: 100%;
}

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

.town-card-simple:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.02) 100%), url('images/buddist-monestry-coorg.jpg') center/cover !important;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.town-card-simple:nth-child(3)::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;
}

.town-card-simple:nth-child(3):hover::before {
    left: 100%;
}

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

.town-icon {
    font-size: 2.5rem;
    color: #475569;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Special styling for Madikeri card with background image */
.town-card-simple:nth-child(1) .town-icon {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Special styling for Virajpet card with background image */
.town-card-simple:nth-child(2) h3 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.town-card-simple:nth-child(2) p {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.town-card-simple:nth-child(2) .town-count {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Special styling for Kushalnagar card with background image */
.town-card-simple:nth-child(3) h3 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.town-card-simple:nth-child(3) p {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.town-card-simple:nth-child(3) .town-count {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.town-card-simple h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #475569;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Special styling for Madikeri card with background image */
.town-card-simple:nth-child(1) h3 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.town-card-simple p {
    color: #64748b;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

/* Special styling for Madikeri card with background image */
.town-card-simple:nth-child(1) p {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.town-count {
    display: inline-block;
    background: rgba(71, 85, 105, 0.1);
    color: #475569;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(71, 85, 105, 0.2);
}

/* Special styling for Madikeri card with background image */
.town-card-simple:nth-child(1) .town-count {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* Moving color border animation for highlighted cards */
.place-card {
    position: relative;
    overflow: hidden;
}

.place-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981, #06b6d4, #3b82f6);
    background-size: 300% 300%;
    animation: borderFlow 3s ease-in-out infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mobile viewport highlight animation */
@media (max-width: 768px) {
    .place-card:active::before {
        opacity: 1;
        animation-duration: 1s;
    }
}

/* Glassmorphism UI effects for section headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
}

.section-header h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #1e40af;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.section-header p {
    text-align: center;
    color: #3730a3;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* Tips section styling */
.tips-carousel-container {
    margin-top: 1.5rem;
    overflow: hidden;
}

.tips-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tips-carousel::-webkit-scrollbar {
    display: none;
}

.tip-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 280px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    text-align: center;
}

.tip-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #1e293b;
}

.tip-card p {
    color: #64748b;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

/* Reduce spacing between category headers and content */
.category-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-title {
    flex: 1;
    min-width: 250px;
}

.category-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.category-title p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.category-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #64748b;
}

.nav-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Compact spacing for mobile */
@media (max-width: 768px) {
    .category-section,
    .town-attractions-section,
    .towns-section,
    .tips-section {
        margin-bottom: 0.125rem; /* Further reduced from 0.75rem to 0.125rem */
        padding: 0.125rem 20px; /* Reduced from 0.5rem to 0.125rem */
        width: 100% !important; /* Force full width */
        margin-left: 0 !important; /* Remove any left margin */
        margin-right: 0 !important; /* Remove any right margin */
        border-radius: 0 !important; /* Remove border radius for full width */
    }
    
    .category-header {
        margin-bottom: 0.25rem; /* Further reduced from 0.75rem to 0.25rem */
    }
    
    /* Mobile category header alignment - true 2-line layout */
    .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: 0.5rem !important; /* Reduced gap */
        padding: 0.75rem 1rem !important; /* Compact padding */
        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: 0.5rem; /* 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: 0.5rem; /* Compact square padding */
        width: 40px; /* Fixed width */
        height: 40px; /* Fixed height */
        min-width: 40px; /* 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: 1rem; /* Arrow size */
        margin: 0; /* Remove margin since no text */
    }
    
    /* Ensure proper mobile grid layout */
    .cards-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile section headers - force center alignment */
    .section-header {
        margin-bottom: 1.5rem;
    text-align: center !important; /* Force center align section headers */
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    text-align: center !important; /* Force center align headings */
    }
    
    .section-header p {
        font-size: 1rem;
    text-align: center !important; /* Force center align descriptions */
    margin: 0 auto !important; /* Center the paragraph element itself */
    display: block !important; /* Ensure it's a block element */
    }
    
    /* Mobile towns grid */
    .towns-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile tips carousel */
    .tips-carousel {
        gap: 1rem;
    }
    
    .tip-card {
        min-width: 250px;
        padding: 1.25rem;
    }
    
    /* Mobile footer logo */
    .footer-logo {
        height: 30px;
    }
    
    /* Mobile hero logo */
    .hero-logo {
        height: 60px;
        margin-bottom: 0.75rem;
    }
    
    /* Mobile card optimizations */
    .place-card {
        margin-bottom: 1rem;
    }
    
    .card-image img {
        height: 180px;
    }
    
    .card-content {
        padding: 0.875rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .feature {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}



/* Category title and actions styling */
.category-title {
    flex: 1;
    min-width: 250px;
}

.category-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.category-title p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.category-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #64748b;
}

.nav-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    /* Mobile category navigation buttons */
    .category-nav-buttons {
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .category-section,
    .town-attractions-section,
    .towns-section,
    .tips-section {
        padding: 0.125rem 15px; /* Reduced from 0.25rem to 0.125rem */
        width: 100% !important; /* Force full width */
        margin-left: 0 !important; /* Remove any left margin */
        margin-right: 0 !important; /* Remove any right margin */
        border-radius: 0 !important; /* Remove border radius for full width */
        margin-bottom: 0.0625rem; /* Minimal margin */
    }
    
    /* Small mobile section headers - force center alignment */
    .section-header {
        text-align: center !important;
    }
    
    .section-header h2 {
        text-align: center !important;
    }
    
    .section-header p {
        text-align: center !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .category-header {
        gap: 0.4rem; /* Further reduced gap */
        margin-bottom: 0.5rem; /* Reduced margin */
        padding: 0.5rem 0.75rem; /* Compact padding */
    }
    
    .category-title {
        margin-right: 0.4rem; /* Smaller margin from button */
    }
    
    .category-title h2 {
        font-size: 1.1rem; /* 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: 0.4rem; /* Compact square padding */
        width: 36px; /* Smaller arrow button */
        height: 36px; /* Smaller arrow button */
        min-width: 36px; /* Prevent shrinking */
    }
    
    .explore-btn i {
        font-size: 0.9rem; /* 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: 0.75rem 1.5rem; /* Full padding on desktop */
        min-width: auto; /* Auto width on desktop */
    }
    
    .explore-btn i {
        margin-right: 0.5rem; /* 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;
    }
}

/* Category Navigation Styling */
.category-nav {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 40;
    backdrop-filter: blur(10px);
}

/* Ensure sections are properly spaced and identifiable */
.category-section,
.town-attractions-section {
    scroll-margin-top: 170px; /* Account for sticky header + category nav */
}

.category-scroll {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-item.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.category-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Mobile category navigation */
@media (max-width: 768px) {
    .category-nav {
        top: 60px;
    }
    
    .category-scroll {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }
    
    .category-item {
        padding: 0.5rem 0.75rem;
        min-width: 70px;
    }
    
    .category-icon {
        font-size: 1.25rem;
    }
    
    .category-label {
        font-size: 0.75rem;
    }
}

/* Logo styling */
.footer-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-right: 0.5rem;
}

.hero-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Production-ready optimizations */
.place-card {
    transition: all 0.3s ease;
    will-change: transform;
}

.place-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Ensure proper image loading */
.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Optimize card content spacing */
.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    line-height: 1.3;
}

.card-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.card-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.feature {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-star {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-text {
    font-weight: 600;
    color: #1e293b;
}

.price {
    font-weight: 500;
    color: #059669;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* FRESH HERO FEATURED ATTRACTIONS - CLEAN INFINITE SCROLL */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* Hero section container */
.hero-featured-attractions {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; /* Keep hidden to prevent horizontal scrollbar */
}

/* Infinite scroll container */
.featured-attractions-container {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    width: max-content;
    height: 100%;
    align-items: center;
    
    /* Infinite scroll animation */
    animation: infiniteScroll 25s linear infinite;
    
    /* Smooth scrolling */
    will-change: transform;
}

/* Individual attraction cards */
.featured-attraction-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(13, 148, 136, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(10px);
    min-width: 300px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Hover effects */
.featured-attraction-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(13, 148, 136, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Card header layout */
.featured-attraction-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Card icon */
.featured-attraction-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Card details */
.featured-attraction-details {
    flex: 1;
}

.featured-attraction-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: white;
}

.featured-attraction-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.featured-attraction-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-attraction-rating i {
    color: #fbbf24;
}

/* Infinite scroll keyframes */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-3520px); /* 11 cards × 320px (300px + 20px gap) */
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-featured-attractions {
        height: 100px;
    }
    
    .featured-attractions-container {
        animation-duration: 20s; /* Faster on mobile */
    }
    
    .featured-attraction-card {
        min-width: 280px;
        padding: 12px 16px;
    }
    
    .featured-attraction-name {
        font-size: 14px;
    }
    
    .featured-attraction-meta {
        font-size: 12px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-featured-attractions {
        height: 80px;
    }
    
    .featured-attractions-container {
        animation-duration: 15s; /* Even faster on small mobile */
        gap: 15px;
    }
    
    .featured-attraction-card {
        min-width: 250px;
        padding: 10px 14px;
    }
    
    .featured-attraction-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .featured-attractions-container {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* OVERRIDE ALL OTHER CSS FILES - MAXIMUM SPECIFICITY */
/* ═══════════════════════════════════════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════════════════════════════════════ */
/* REST OF THE CSS - UNCHANGED */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* Keep essential functionality while fixing hover issues */

/* Ensure cards display properly without animations */
.place-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 10px;
    min-width: 300px;
    flex-shrink: 0;
}

.place-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.place-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Keep essential transitions */
}

/* Disable any hover effects on card images that might cause unwanted scrolling */
.place-card:hover .card-image img {
    transform: none !important;
    transition: none !important;
}

/* Disable white hover overlay effects on place cards */
.place-card:hover {
    background: white !important; /* Keep original background */
    transform: none !important; /* Disable any scaling/movement */
}

.place-card:hover::before,
.place-card:hover::after {
    opacity: 0 !important; /* Disable any overlay effects */
    display: none !important;
}

/* Fix card content display */
.place-card .card-content {
    padding: 15px;
}

.place-card .card-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.place-card .card-description {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.4;
}

/* Fix category sections display */
.category-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 30px 0;
}

.cards-container {
    overflow: hidden;
}

.cards-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex-wrap: nowrap !important;
}

.cards-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Specific fix for Cultural & Heritage section */
#cultural .cards-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
}

#cultural .place-card {
    flex-shrink: 0 !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

/* Ensure all category sections have horizontal layout */
.category-section .cards-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
}

.category-section .place-card {
    flex-shrink: 0 !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

/* Towns Carousel Styles */
.towns-carousel-container {
    position: relative;
    overflow: hidden;
}

.towns-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.towns-carousel::-webkit-scrollbar {
    display: none;
}

.town-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 75%, #cbd5e1 100%) !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.15) !important;
    margin: 10px;
    min-width: 280px;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    /* Keep essential functionality */
}

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

.town-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.town-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.town-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.town-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.town-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.town-content {
    padding: 15px;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.town-cta {
    display: block;
    text-align: center;
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    /* Keep essential transitions */
}

.town-cta:hover {
    background: #1d4ed8;
}

/* Towns Navigation Buttons */
.towns-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.town-nav-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    /* Keep essential functionality */
}

.town-nav-btn:hover {
    background: #1d4ed8;
}

.town-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Glassmorphism effects for category headers */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 5px;
    flex-wrap: wrap;
    gap: 15px;
    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%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    z-index: -1;
}

.category-title h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    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;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.category-title p {
    margin: 0;
    color: #3730a3;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

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

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: none !important;
}

.explore-btn:hover {
    background: #1d4ed8;
}

.category-nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    /* Keep essential transitions */
}

.nav-btn:hover {
    background: #e5e7eb;
    color: #333;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .category-header {
        flex-direction: row !important; /* Force horizontal layout */
        align-items: flex-start !important; /* Align to top */
        gap: 0.5rem !important; /* Reduced gap */
    }
    
    .category-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .place-card,
    .town-card {
        min-width: 250px;
    }
    
    /* Hide navigation buttons on mobile for touch scrolling */
    .category-nav-buttons {
        display: none !important;
    }
    
    /* Ensure cards are touch-scrollable on mobile */
    .cards-wrapper {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 15px 0;
    }
    
    .place-card {
        scroll-snap-align: start;
        margin: 5px;
    }
    
    .town-card {
        margin: 5px;
        min-width: 240px;
    }
    
    /* Ensure consistent header alignment for mobile */
    .towns-section .section-header,
    .category-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .towns-section .section-header h2,
    .category-title h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .towns-section .section-header p,
    .category-title p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    /* Mobile styles for new towns grid */
    .towns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 0 10px;
    }
    
    .town-card-simple {
        padding: 20px 15px;
    }
    
    .town-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .town-card-simple h3 {
        font-size: 1.1rem;
    }
    
    .town-card-simple p {
        font-size: 0.85rem;
    }
    
    .town-count {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Preserve essential hover interactions while fixing problematic effects */

/* New simplified towns grid styles */
.towns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.town-card-simple {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* Keep essential functionality */
    border: 2px solid transparent;
}

.town-card-simple:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #2563eb;
}

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

.town-card-simple h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.town-card-simple p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 0.9rem;
}

.town-count {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Category navigation clickable styles */
.category-item {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.category-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.category-item.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* TARGETED CARD HOVER ISSUE FIX - MINIMAL AND EFFECTIVE */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* Disable problematic hover effects on attraction cards */
.place-card:hover {
    background: white !important;
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* Disable pseudo-element overlays that cause visual issues */
.place-card::before,
.place-card::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

.place-card:hover::before,
.place-card:hover::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* Disable image hover effects */
.place-card:hover .card-image img {
    transform: none !important;
    filter: none !important;
}

/* Disable card image pseudo-elements */
.place-card .card-image::before,
.place-card .card-image::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* Keep minimal transitions for smooth interactions */
.place-card {
    transition: box-shadow 0.2s ease !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* TARGETED FIX FOR GREY TRANSITION EFFECT - ONLY ON ATTRACTION CARDS */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* Only disable the specific loading skeleton animation that causes grey effect */
.place-card .loading-skeleton,
.place-card *[class*="loading"],
.place-card *[class*="skeleton"] {
    background: white !important;
    background-image: none !important;
    animation: none !important;
}

/* Disable the specific loading keyframes only for attraction cards */
.place-card .loading-skeleton {
    background: white !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: initial !important;
    background-repeat: no-repeat !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* COMPREHENSIVE CARD HOVER ISSUE FIX */
/* ═══════════════════════════════════════════════════════════════════════════════ */

/* Disable all problematic hover effects on attraction cards */
.place-card:hover {
    background: white !important;
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* Disable all pseudo-element overlays on attraction cards */
.place-card::before,
.place-card::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

.place-card:hover::before,
.place-card:hover::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* Disable image hover effects that might cause visual issues */
.place-card:hover .card-image img {
    transform: none !important;
    filter: none !important;
}

/* Disable any card image pseudo-elements */
.place-card .card-image::before,
.place-card .card-image::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* Ensure card content remains stable on hover */
.place-card:hover .card-content {
    background: transparent !important;
    transform: none !important;
}

/* Disable any badge hover effects */
.place-card:hover .card-badge {
    transform: none !important;
    background: inherit !important;
}

/* Override any conflicting hover animations from other CSS files */
.place-card,
.place-card * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
}

/* Keep only essential transitions for smooth interactions */
.place-card {
    transition: box-shadow 0.2s ease !important;
}

/* Disable any floating or pulse animations on cards */
.place-card *[class*="float"],
.place-card *[class*="pulse"],
.place-card *[class*="bounce"] {
    animation: none !important;
}

/* ──────────── BREADCRUMB NAVIGATION ──────────── */
.breadcrumb-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #6b7280;
    font-weight: 500;
}

/* Mobile responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 8px 0;
    }
    
    .breadcrumb-list {
        font-size: 12px;
        gap: 6px;
    }
    
    .breadcrumb-list li {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ──────────── NAVIGATION DISPLAY FIXES ──────────── */
/* Ensure proper navigation display on different screen sizes */
@media (min-width: 1025px) {
    .nav-desktop {
        display: flex !important;
    }
    
    .nav-mobile {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .nav-desktop {
        display: none !important;
    }
    
    .nav-mobile {
        display: flex !important;
    }
}

/* ──────────── MOBILE MENU FUNCTIONALITY FIXES ──────────── */
/* Ensure mobile menu button is visible and clickable */
#mobileMenuBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1001 !important;
}

/* Ensure mobile menu overlay is properly positioned and visible */
.common-mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* When mobile menu is active, show it */
.common-mobile-menu.active {
    transform: translateX(0) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure mobile menu content is visible */
.mobile-menu-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure mobile submenus work properly */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 500px;
}

/* Force mobile menu to be visible when active */
.common-mobile-menu.active,
.common-mobile-menu.active * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any conflicting CSS that might hide the mobile menu */
.common-mobile-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Ensure mobile menu header and content are visible */
.mobile-menu-header,
.mobile-menu-content,
.mobile-menu-section,
.mobile-menu-link,
.mobile-submenu-button,
.mobile-submenu,
.mobile-submenu-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force mobile menu button to be visible on mobile */
@media (max-width: 1024px) {
    #mobileMenuBtn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .common-mobile-menu.active {
        transform: translateX(0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Chrome-specific mobile menu fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .common-mobile-menu {
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000;
        -webkit-transform-style: preserve-3d;
    }
    
    .common-mobile-menu.active {
        -webkit-transform: translateX(0) translateZ(0);
        -webkit-backface-visibility: visible;
    }
}

/* Force hardware acceleration for better performance */
.common-mobile-menu {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}



/* Browser-specific fixes for Chrome */
@supports (-webkit-appearance: none) {
    .common-mobile-menu {
        -webkit-transform: translateX(-100%);
        -webkit-transition: -webkit-transform 0.3s ease;
    }
    
    .common-mobile-menu.active {
        -webkit-transform: translateX(0);
    }
}

/* Browser-specific fixes for Firefox */
@supports (-moz-appearance: none) {
    .common-mobile-menu {
        -moz-transform: translateX(-100%);
        -moz-transition: -moz-transform 0.3s ease;
    }
    
    .common-mobile-menu.active {
        -moz-transform: translateX(0);
    }
}

/* Browser-specific fixes for Edge/IE */
@supports (-ms-ime-align: auto) {
    .common-mobile-menu {
        -ms-transform: translateX(-100%);
        -ms-transition: -ms-transform 0.3s ease;
    }
    
    .common-mobile-menu.active {
        -ms-transform: translateX(0);
    }
}

/* Ensure all mobile menu elements are visible */
.mobile-menu-header,
.mobile-menu-content,
.mobile-menu-section,
.mobile-menu-link,
.mobile-submenu-button,
.mobile-submenu,
.mobile-submenu-link {
    color: white !important;
}

/* ──────────── MOBILE MENU FIXES ──────────── */
/* Ensure mobile menu is visible and functional on mobile only */
.nav-mobile {
    display: none; /* Hidden by default on desktop */
}

#mobileMenuBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.common-mobile-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Ensure mobile menu button is clickable */
#mobileMenuBtn {
    cursor: pointer !important;
    z-index: 1001 !important;
    position: relative !important;
}

/* Mobile responsive overrides */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none !important;
    }
    
    .nav-mobile {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none !important;
    }
    
    .nav-mobile {
        display: flex !important;
    }
    
    #mobileMenuBtn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Force magical color wave effect on desktop - simple override */
.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;
}




