/* Mobile First Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium screens (992px and up) */
@media (min-width: 992px) {
    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small screens (768px and up) */
@media (min-width: 768px) {
    .hero {
        padding: 0 2rem;
    }
    
    .hero-content {
        padding-right: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Extra small screens (576px and up) */
@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile screens (max-width: 767px) */
@media (max-width: 767px) {
    /* Ensure proper viewport handling */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
        /* Wildlife Info Section Mobile Fix */
        .wildlife-cards {
            display: block !important;
            margin-top: 2rem !important;
        }
        .wildlife-card {
            margin-bottom: 2rem !important;
            border-radius: 12px !important;
            box-shadow: var(--shadow) !important;
        }
        .wildlife-image {
            height: 180px !important;
        }
        .wildlife-content {
            padding: 1rem !important;
        }
    /* Loading Screen Mobile - Complete Mobile Override */
    .loading-screen {
        padding: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    .loading-content {
        width: 95vw !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        padding: 0.5rem !important;
        box-sizing: border-box !important;
    }
    
    .loading-logo {
        margin-bottom: 1.5rem !important;
    }
    
    .loading-logo img {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .loading-logo h2 {
        font-size: 1.8rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
    
    .loading-animation {
        width: 90vw !important;
        max-width: 280px !important;
        height: 140px !important;
        margin: 1rem auto !important;
        border-radius: 15px !important;
    }
    
    .loading-text {
        margin-top: 1rem !important;
    }
    
    .loading-text p {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .loading-bar {
        width: 85vw !important;
        max-width: 240px !important;
        height: 3px !important;
        margin: 0 auto !important;
    }
    
    /* Video Mobile Optimization */
    .creature-video {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    
    .video-container {
        position: relative;
        width: 100%;
        height: 200px;
        overflow: hidden;
    }
    
    /* Our Boats Section Mobile */
    .our-boats {
        padding: 3rem 0 !important;
    }
    
    .boats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin: 2rem 0 !important;
    }
    
    .boat-card {
        margin: 0 0.5rem !important;
    }
    
    .boat-image {
        height: 200px !important;
    }
    
    .boat-overlay {
        padding: 1.5rem 1rem 1rem !important;
        transform: translateY(0) !important;
        position: relative !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    .boat-info h3 {
        font-size: 1.3rem !important;
    }
    
    .boat-info p {
        font-size: 0.85rem !important;
    }
    
    .boats-features {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
        padding: 1.5rem !important;
        margin: 2rem 0.5rem 0 !important;
    }
    
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.8rem !important;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
    
    .feature-item h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .feature-item p {
        font-size: 0.9rem !important;
    }
    
    /* Gallery Section Mobile */
    .gallery {
        padding: 3rem 0 !important;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin: 2rem 0 !important;
    }
    
    .gallery-item {
        margin: 0 0.5rem !important;
    }
    
    .gallery-image {
        height: 220px !important;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem 1rem !important;
        transform: translateY(0) !important;
        position: relative !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    .gallery-info h3 {
        font-size: 1.3rem !important;
    }
    
    .gallery-info p {
        font-size: 0.85rem !important;
    }
    
    /* Dark Mode Toggle Mobile */
    .nav-controls {
        gap: 0.5rem !important;
    }
    
    .dark-mode-toggle {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    /* Show floating buttons on mobile */
    .floating-whatsapp {
        display: flex !important;
        position: fixed !important;
        bottom: 80px !important;
        right: 20px !important;
        z-index: 9999 !important;
    }
    
    .floating-dark-toggle {
        display: flex !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 9999 !important;
    }
    
    /* Hide header dark mode toggle on mobile */
    .dark-mode-toggle {
        display: none !important;
    }
    
    /* Featured Trip Responsive */
    .trip-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trip-title {
        font-size: 2rem;
    }
    
    .trip-features {
        gap: 1rem;
    }
    
    .trip-actions {
        flex-direction: column;
    }
    
    .trip-actions .btn {
        width: 100%;
        text-align: center;
    }
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        min-height: calc(100vh - 70px);
        margin-top: 70px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 6rem;
        margin-bottom: 7rem;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
    }

    .hero-image img {
        height: 300px;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Destinations */
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .destination-card {
        margin: 0 1rem;
    }

    /* Booking Form */
    .booking-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-text {
        padding-right: 0;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 300px;
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        margin: 0 1rem;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Admin Button */
    .admin-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Very small screens (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }
    
    /* Loading Screen Very Small Mobile - Ultra Mobile Override */
    .loading-screen {
        padding: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .loading-content {
        width: 98vw !important;
        max-width: 280px !important;
        padding: 0.3rem !important;
    }
    
    .loading-logo {
        margin-bottom: 1rem !important;
    }
    
    .loading-logo img {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.3rem !important;
    }
    
    .loading-logo h2 {
        font-size: 1.5rem !important;
        margin: 0 !important;
        line-height: 1.1 !important;
    }
    
    .loading-animation {
        width: 95vw !important;
        max-width: 240px !important;
        height: 120px !important;
        margin: 0.8rem auto !important;
        border-radius: 12px !important;
    }
    
    .loading-text {
        margin-top: 0.8rem !important;
    }
    
    .loading-text p {
        font-size: 0.8rem !important;
        margin-bottom: 0.6rem !important;
        line-height: 1.3 !important;
    }
    
    .loading-bar {
        width: 90vw !important;
        max-width: 200px !important;
        height: 3px !important;
    }
    
    /* Our Boats Section Very Small Mobile */
    .boats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .boat-card {
        margin: 0 0.3rem !important;
    }
    
    .boat-image {
        height: 180px !important;
    }
    
    .boat-overlay {
        padding: 1rem 0.8rem 0.8rem !important;
    }
    
    .boat-info h3 {
        font-size: 1.2rem !important;
    }
    
    .boat-info p {
        font-size: 0.8rem !important;
    }
    
    .boats-features {
        padding: 1rem !important;
        margin: 1.5rem 0.3rem 0 !important;
    }
    
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.6rem !important;
    }
    
    .feature-icon i {
        font-size: 1.3rem !important;
    }
    
    .feature-item h4 {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .feature-item p {
        font-size: 0.85rem !important;
    }
    
    /* Gallery Section Very Small Mobile */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .gallery-item {
        margin: 0 0.3rem !important;
    }
    
    .gallery-image {
        height: 200px !important;
    }
    
    .gallery-overlay {
        padding: 1rem 0.8rem 0.8rem !important;
    }
    
    .gallery-info h3 {
        font-size: 1.2rem !important;
    }
    
    .gallery-info p {
        font-size: 0.8rem !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .destination-card,
    .blog-card {
        margin: 0;
    }

    .booking-form,
    .contact-form {
        padding: 1rem;
        margin: 0;
    }

    .hero-image img {
        height: 250px;
    }

    .about-image img {
        height: 250px;
    }

    .stats {
        gap: 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .admin-btn {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
        margin-top: 70px;
    }

    .hero-content {
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image img {
        height: 200px;
    }

    section {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .admin-btn,
    .hero-buttons,
    .contact-form,
    .booking-form {
        display: none;
    }

    .hero {
        background: none;
        color: black;
    }

    .hero::before {
        display: none;
    }

    .section-title {
        color: black;
    }

    .destination-card,
    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #ff8c00;
        --text-dark: #000000;
        --text-light: #333333;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .destination-card,
    .blog-card {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .spinner {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e8e8e8;
        --text-light: #b0b0b0;
        --bg-light: #1a1a1a;
        --white: #2d2d2d;
    }

    .navbar {
        background: rgba(45, 45, 45, 0.95);
    }

    .destination-card,
    .blog-card,
    .booking-form,
    .contact-form {
        background: var(--white);
        border: 1px solid #444;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--white);
        border-color: #444;
        color: var(--text-dark);
    }
}

/* Booking page responsive styles */
@media (max-width: 768px) {
    /* Header responsive */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Page hero responsive */
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Trips grid responsive */
    .trips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trip-card {
        margin: 0 1rem;
    }

    .trip-actions {
        flex-direction: column;
    }

    .trip-select-btn,
    .trip-contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Reviews Page Mobile Styles */
@media (max-width: 767px) {
    .reviews-hero .page-title {
        font-size: 2rem;
    }
    
    .reviews-hero .page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .review-form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .review-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reviews-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .star-rating label {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .reviews-hero {
        padding: 2rem 0;
    }
    
    .reviews-hero .page-title {
        font-size: 1.8rem;
    }
    
    .submit-review-section,
    .reviews-display-section {
        padding: 2rem 0;
    }
    
    .review-form-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .review-form input,
    .review-form select,
    .review-form textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .reviewer-details h4 {
        font-size: 1rem;
    }
    
    .reviewer-details p {
        font-size: 0.8rem;
    }
    
    .review-content h5 {
        font-size: 1rem;
    }
    
    .review-content p {
        font-size: 0.9rem;
    }
    
    .reviews-filter {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .star-rating {
        justify-content: center;
    }
    
    .star-rating label {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
    }
}
