/* Responsive Design */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        max-width: 900px;
    }
}

/* Medium screens */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .nav-list a {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero section */
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Reviews grid */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Newsletter form */
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group input {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Cookie banner */
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    /* Cookie modal */
    .cookie-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-modal-buttons .btn {
        width: 100%;
    }
    
    /* Thank you page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Legal pages */
    .legal-content {
        padding: 0 1rem;
    }
    
    .legal-section ul,
    .legal-section ol {
        margin-left: 1rem;
    }
    
    /* Cookie policy tables */
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Hero section */
    .hero {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Sections padding */
    .services,
    .about,
    .reviews,
    .newsletter,
    .contact {
        padding: 60px 0;
    }
    
    /* Service cards */
    .service-card {
        padding: 1.5rem;
    }
    
    /* Review cards */
    .review-card {
        padding: 1.5rem;
    }
    
    /* Contact items */
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie banner */
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content h3 {
        font-size: 1.2rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    /* Success checkmark */
    .success-checkmark {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }
    
    /* Thank you page */
    .thank-you-section {
        padding: 100px 0 60px;
    }
    
    .next-steps,
    .social-follow {
        padding: 1.5rem;
    }
    
    /* Legal pages */
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    /* Cookie policy specific */
    .browser-instructions,
    .impact-item {
        padding: 1rem;
    }
    
    /* Tables on very small screens */
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Images on small screens */
    .hero-image img {
        max-width: 100%;
        height: auto;
    }

    .service-icon img {
        width: 60px;
        height: 60px;
    }

    .about-image img,
    .contact-map img,
    .tour-image img {
        max-width: 100%;
        height: auto;
    }

    /* Image placeholders (fallback) */
    .image-placeholder {
        padding: 1rem;
        font-size: 0.8rem;
        min-height: 150px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .service-card,
    .review-card {
        padding: 1rem;
    }
    
    .cookie-banner {
        padding: 10px;
    }
    
    .cookie-modal-content {
        padding: 1rem;
    }
    
    .next-steps,
    .social-follow {
        padding: 1rem;
    }
    
    .legal-content {
        padding: 0 0.5rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding-top: 80px;
    }
    
    .thank-you-section {
        padding: 80px 0 40px;
    }
    
    .next-steps ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal,
    .footer {
        display: none !important;
    }
    
    .legal-page {
        padding: 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .legal-content {
        max-width: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .legal-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-list a::after {
        height: 3px;
    }
    
    .cookie-banner,
    .footer {
        border-top: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This website maintains light theme for tourism industry standards */
    /* Dark mode can be implemented as an optional feature in the future */
}
