:root {
    --vh: 1vh; /* Will be set by JavaScript for mobile viewport fixes */
}

body { 
    font-family: 'Inter', sans-serif; 
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%);
    min-height: 100vh;
}

/* Fallback Tailwind-like classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.bg-white {
    background-color: #ffffff;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.p-6 {
    padding: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-800 {
    color: #1f2937;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lg\\:col-span-2 {
    grid-column: span 2 / span 2;
}

.gap-8 {
    gap: 2rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* Hero section styles */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text styles */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-white {
    color: #ffffff;
}

.text-gray-200 {
    color: #e5e7eb;
}

.text-gray-600 {
    color: #4b5563;
}

.text-center {
    text-align: center;
}

/* Spacing */
.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
}

/* Sizing */
.w-full {
    width: 100%;
}

.h-screen {
    height: 100vh;
}

.h-full {
    height: 100%;
}

.max-w-4xl {
    max-width: 56rem;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-green-500 {
    border-color: #10b981;
}

.border-red-500 {
    border-color: #ef4444;
}

/* Background colors */
.bg-gray-900 {
    background-color: #111827;
}

.bg-green-600 {
    background-color: #059669;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-200 {
    background-color: #bbf7d0;
}

/* Text colors */
.text-green-800 {
    color: #166534;
}

.text-green-700 {
    color: #15803d;
}

/* Responsive classes */
@media (min-width: 768px) {
    .md\\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    .md\\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    .md\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
    .lg\\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    .lg\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Custom Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Glass Effect for Sidebar Cards */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.glass-enhanced:hover::before {
    left: 100%;
}

.glass-enhanced:hover {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Ensure content stays above the effect */
.glass-enhanced > * {
    position: relative;
    z-index: 2;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float { 
    animation: float 3s ease-in-out infinite; 
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-slow { 
    animation: pulse-slow 3s ease-in-out infinite; 
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu Styles */
/* .nav-menu rule removed - using common-menu.css instead */

.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #a7f3d0);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-item:hover::before {
    width: 80%;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    min-width: 280px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    color: #374151;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
}

.nav-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.nav-background-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

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

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

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

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-indicator.active {
    background: white;
}

/* Weather Widget Animation */
.weather-widget {
    position: relative;
    overflow: hidden;
}

.weather-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Cloudy Animation */
.cloudy-animation {
    background: linear-gradient(45deg, rgba(156, 163, 175, 0.2) 0%, rgba(209, 213, 219, 0.3) 100%);
}

.cloud {
    position: absolute;
    background: rgba(156, 163, 175, 0.4);
    border-radius: 20px;
    animation: float-cloud 6s ease-in-out infinite;
}

.cloud-1 {
    top: 20%;
    left: 10%;
    width: 30px;
    height: 15px;
    animation-delay: 0s;
}

.cloud-2 {
    top: 40%;
    right: 15%;
    width: 25px;
    height: 12px;
    animation-delay: 2s;
}

.cloud-3 {
    top: 60%;
    left: 20%;
    width: 20px;
    height: 10px;
    animation-delay: 4s;
}

@keyframes float-cloud {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    33% { transform: translateX(10px) translateY(-5px); }
    66% { transform: translateX(-5px) translateY(5px); }
}

/* Hotspot Animation */
.hotspot {
    position: relative;
    animation: pulse 2s infinite;
}

.hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    animation: ping 2s infinite;
}

/* Loading Animation */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Hero section height - 60% of screen */
.hero-section {
    height: 60vh;
    min-height: 400px;
}

/* Image fallback styling */
.image-fallback {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Error handling for broken images */
img {
    transition: opacity 0.3s ease;
}

img.broken {
    opacity: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100); /* Mobile viewport fix */
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    /* Flexbox properties for when it becomes visible */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* When lightbox is active (set by JavaScript) */
.lightbox-modal.active {
    display: flex;
}

/* Hide caption text in lightbox */
.lightbox-modal #lightboxCaption {
    display: none;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    /* Remove manual positioning since flexbox handles it */
    margin: 0;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    /* Ensure proper centering within container */
    display: block;
    margin: 0 auto;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-card {
    min-width: 280px;
    margin-right: 20px;
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #374151;
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: -15px;
}

.carousel-next {
    right: -15px;
}

/* Floating Nearby Attractions */
.floating-nearby {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 320px;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.floating-nearby.visible {
    opacity: 1;
    visibility: visible;
}

/* Vertical Auto-Scroll for Nearby Attractions */
.nearby-scroll-container {
    height: 380px; /* Increased from 280px to fit more items */
    overflow: hidden;
    position: relative;
}

.nearby-scroll-list {
    animation: verticalScroll 25s linear infinite; /* Slower for more items */
}

@keyframes verticalScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.nearby-scroll-list:hover {
    animation-play-state: paused;
}

.floating-nearby .nearby-scroll-container {
    height: 320px; /* Increased from 250px */
}

.floating-nearby .nearby-scroll-list {
    animation: verticalScroll 22s linear infinite; /* Adjusted timing */
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .floating-nearby {
        display: none;
    }

    .hero-nav-btn {
        padding: 10px 15px;
        font-size: 20px;
    }

    .hero-prev {
        left: 15px;
    }

    .hero-next {
        right: 15px;
    }

    /* Enhanced mobile image loading */
    .hero-image {
        transition: opacity 0.5s ease-in-out;
    }

    .gallery-image {
        transition: all 0.3s ease;
        loading: lazy;
    }

    .gallery-image:hover {
        transform: scale(1.02);
    }

    /* Better mobile navigation */
    .lightbox-nav {
        padding: 20px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        font-size: 40px;
        right: 20px;
        top: 20px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        padding: 10px 15px;
    }

    /* Touch-friendly hero carousel */
    .hero-carousel {
        touch-action: pan-y;
    }

    .hero-slide {
        touch-action: none;
    }

    /* Improved glass effects on mobile */
    .glass-enhanced {
        backdrop-filter: blur(15px);
        background: rgba(255, 255, 255, 0.3);
    }

    /* Mobile-specific animations */
    .animate__animated {
        animation-duration: 0.8s;
    }
}

@media (max-width: 768px) {
    .nearby-scroll-container {
        height: 300px; /* Smaller on mobile */
    }

    .hero-section {
        height: 50vh; /* Reduced hero height on mobile */
        min-height: 300px;
    }

    .lightbox-modal {
        padding: 10px;
        /* Ensure proper centering when active, but don't override display property */
    }

    .lightbox-content {
        width: 95%;
        max-width: 95vw;
        /* Ensure proper mobile centering */
        margin: 0;
        padding: 0;
        /* Better mobile spacing */
        gap: 10px;
    }

    .lightbox-image {
        max-height: 70vh;
        max-width: 100%;
        /* Better mobile image sizing */
        width: auto;
        height: auto;
        /* Ensure image stays centered */
        align-self: center;
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .nearby-scroll-list {
            animation: none;
        }
        
        .hero-slide {
            transition: none;
        }
        
        .glass-enhanced::before {
            display: none;
        }
    }
}

/* Additional mobile lightbox improvements for better centering */
@media (max-width: 480px) {
    .lightbox-modal {
        padding: 5px;
        /* Extra small screens need tighter padding */
    }
    
    .lightbox-content {
        width: 98%;
        /* Almost full width on very small screens */
        max-width: 98vw;
    }
    
    .lightbox-image {
        max-height: 65vh;
        /* Slightly smaller on very small screens */
        border-radius: 5px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        padding: 12px;
        font-size: 18px;
        /* Larger touch targets for small screens */
    }
    
    .lightbox-close {
        width: 50px;
        height: 50px;
        padding: 8px 12px;
        font-size: 30px;
        /* Larger close button for accessibility */
    }
}

/* Landscape orientation fixes for mobile lightbox */
@media (max-width: 768px) and (orientation: landscape) {
    .lightbox-image {
        max-height: 85vh;
        /* Use more height in landscape mode */
        max-width: 90vw;
    }
    
    .lightbox-content {
        /* Ensure proper centering in landscape */
        justify-content: center;
        align-items: center;
    }
}
