/* Responsive Design */

/* Container Queries Support */
@supports (container-type: inline-size) {
    .container {
        container-type: inline-size;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .land-title {
        font-size: 4rem;
    }
    
    section {
        padding: 120px 0;
    }
}

/* Large Desktop Screens */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .land-title {
        font-size: 3.5rem;
    }
}

/* Large Screens */
@media (max-width: 1199px) {
    .container {
        max-width: 1140px;
    }
    
    .nav-menu {
        gap: 32px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .attractions-row {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Medium Screens */
@media (max-width: 991px) {
    .container {
        max-width: 960px;
        padding: 0 16px;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .zootopia-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .attraction-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .parks-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Small Screens - Tablet */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 16px;
    }
    
    /* Header */
    .header-top {
        display: none;
    }
    
    .nav-center {
        display: none;
    }
    
    .cta-buttons {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .hero-actions .btn {
        width: 280px;
        max-width: 100%;
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .land-section {
        padding: 60px 0;
    }
    
    .land-title {
        font-size: 2.5rem;
    }
    
    /* Cards */
    .attractions-row,
    .attraction-cards-grid,
    .magic-cards,
    .parks-grid,
    .extra-magic-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .attraction-card.featured .attraction-image {
        height: 300px;
    }
    
    /* Celebrate Section */
    .celebrate-section {
        padding: 60px 0;
    }
    
    .celebrate-section .section-title {
        font-size: 2.5rem;
    }
    
    /* Footer */
    .footer-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .footer-actions .btn {
        width: 280px;
        max-width: 100%;
    }
    
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .footer-nav li:not(:last-child)::after {
        display: none;
    }
}

/* Extra Small Screens - Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .land-title {
        font-size: 2rem;
    }
    
    /* Hero */
    .hero-text {
        padding: 0 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 11px 20px;
    }
    
    /* Cards */
    .attraction-image,
    .park-image {
        height: 200px;
    }
    
    .magic-image,
    .extra-image {
        height: 150px;
    }
    
    .attraction-content,
    .park-content {
        padding: 20px;
    }
    
    .magic-content,
    .extra-content {
        padding: 16px;
    }
    
    .attraction-content h3,
    .park-content h3 {
        font-size: 1.25rem;
    }
    
    .magic-content h3,
    .extra-content h3 {
        font-size: 1.125rem;
    }
    
    /* Zootopia */
    .zootopia-text h2 {
        font-size: 1.75rem;
    }
    
    .zootopia-text p {
        font-size: 1.125rem;
    }
    
    /* Footer */
    .footer-section h4 {
        font-size: 1.25rem;
    }
    
    .footer-actions .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .contact-info {
        font-size: 0.9rem;
    }
    
    .footer-legal p {
        font-size: 0.75rem;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .attraction-content,
    .park-content,
    .magic-content,
    .extra-content {
        padding: 16px;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 10px 16px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .attraction-image img,
    .park-image img,
    .magic-image img,
    .extra-image img,
    .hero-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .attraction-card:hover,
    .park-card:hover,
    .magic-card:hover,
    .extra-card:hover {
        transform: none;
    }
    
    .attraction-card:hover .attraction-image img,
    .park-card:hover .park-image img,
    .magic-card:hover .magic-image img,
    .extra-card:hover .extra-image img {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Make buttons more touch-friendly */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* 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;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-actions {
        animation: none;
    }
    
    .attraction-card,
    .park-card,
    .magic-card,
    .extra-card {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .hero-actions,
    .footer-actions,
    .cta-buttons,
    .menu-toggle,
    .search-btn {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .hero-content {
        color: black;
    }
    
    .attraction-card,
    .park-card,
    .magic-card,
    .extra-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .section-title,
    .land-title {
        page-break-after: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    h4 { font-size: 14pt; }
}

/* Container Queries Support */
@supports (container-type: inline-size) {
    .attraction-card,
    .park-card,
    .magic-card,
    .extra-card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .attraction-content,
        .park-content,
        .magic-content,
        .extra-content {
            padding: 16px;
        }
        
        .attraction-content h3,
        .park-content h3 {
            font-size: 1.125rem;
        }
    }
}

/* Safari Mobile Viewport Fix */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        height: -webkit-fill-available;
    }
}

/* Mobile Menu Responsive Rules */
@media (min-width: 1025px) {
    .mobile-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
}

/* Ensure mobile menu works properly on all mobile devices */
@media (max-width: 1024px) {
    .mobile-menu {
        /* Ensure proper mobile menu behavior */
        touch-action: manipulation;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-menu-content {
        /* Prevent content from being too narrow on small screens */
        min-width: 280px;
    }
    
    /* Better touch targets for mobile */
    .mobile-nav-link,
    .mobile-nav-sublink {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Extra small mobile devices */
@media (max-width: 320px) {
    .mobile-menu-content {
        width: 90%;
        min-width: 280px;
    }
    
    .mobile-menu-header {
        padding: 12px 16px;
    }
    
    .mobile-cta-buttons {
        padding: 20px 16px;
    }
}