/* Custom styles for Night Life Luxury Rentals */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Smooth transitions for interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Property card hover effects */
.property-card .group:hover .absolute {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: #2d5016;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #2d5016;
    color: #faf9f6;
}

/* Nav transition states */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(45, 80, 22, 0.1);
}

.nav-scrolled .nav-text {
    color: #121f08 !important;
}

/* Mobile menu animations */
#mobile-menu.open {
    transform: translateX(0);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .property-card img {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav, #contact, footer, .property-card button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .font-serif.text-5xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* Large desktop adjustments */
@media (min-width: 1280px) {
    .font-serif.text-6xl {
        font-size: 4.5rem;
        line-height: 1.05;
    }
}

/* Extra large screens */
@media (min-width: 1536px) {
    .font-serif.text-8xl {
        font-size: 6rem;
    }
    
    .font-serif.text-9xl {
        font-size: 7.5rem;
    }
}

/* Mobile menu link animations */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}
