/* Custom styles for King James Apartments */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling is handled in HTML */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background-color: #b8254f;
    color: white;
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 3px solid #b8254f;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav,
    .cursor-dot,
    .cursor-ring,
    .animate-float,
    .animate-float-delayed,
    .animate-blob,
    .animate-blob-delayed {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Better form styling */
input,
textarea,
select {
    font-family: inherit;
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

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

/* Map container responsive */
iframe {
    max-width: 100%;
}

/* Ensure mobile menu works */
#mobile-menu {
    pointer-events: none;
}

#mobile-menu.active {
    pointer-events: all;
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #b8254f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #971a40;
}
