/* Tomlinson Run State Park Campground — Custom Styles */
/* All primary styles are in index.html. This file provides additional custom overrides. */

/* Ensure smooth rendering on all devices */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(160, 36, 36, 0.2);
    color: #1a1a1a;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #a02424;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-pattern,
    .gallery-img,
    .map-container iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .btn-primary {
        background-color: #a02424 !important;
        color: #fff !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .site-card {
        border: 1px solid ButtonText;
    }
    
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent layout shift for gallery items */
.gallery-item {
    contain: layout;
}

/* Better touch targets on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .site-card {
        touch-action: manipulation;
    }
}

/* Reduce motion for accessibility */
@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;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 0;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
    
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Narrow mobile devices */
@media (max-width: 360px) {
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #hero h1 {
        font-size: 2.25rem;
    }
}
