/* ============================================
   RESPONSIVE STYLES - MOBILE & TABLET
   Sailing Bizzosa - Mobile First Approach
   ============================================ */

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* General Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Booking Form - Mobile */
    .booking-section-hero {
        padding: 1rem !important;
        min-height: auto !important;
        background-attachment: scroll !important;
    }

    .booking-form-container {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
        border-radius: 12px !important;
    }

    .booking-header-section {
        padding: 2.5rem 0 !important;
    }

    .booking-header-section h2 {
        font-size: 1.5rem !important;
    }

    .booking-header-section .boat-description p {
        font-size: 0.85rem !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .package-tabs {
        flex-direction: column;
    }

    .package-tab:first-child {
        border-radius: 10px 10px 0 0 !important;
        border-right: 2px solid #ddd !important;
        border-bottom: 1px solid #ddd !important;
    }

    .package-tab:last-child {
        border-radius: 0 0 10px 10px !important;
        border-left: 2px solid #ddd !important;
        border-top: 1px solid #ddd !important;
    }

    .package-tab.selected:first-child {
        border-color: var(--secondary-color) !important;
    }

    .package-tab.selected:last-child {
        border-color: var(--secondary-color) !important;
    }
    
    /* Package description wrapper - row on mobile */
    .package-desc-wrapper {
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem !important;
    }
    
    .package-desc-wrapper em {
        white-space: nowrap;
    }
    
    /* Calendar adjustments for mobile */
    .calendar-day {
        padding: 0.5rem !important;
        min-height: 45px !important;
    }
    
    /* Navigation */
    .navbar .container {
        padding: 0.75rem 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 1rem;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background: var(--primary-color);
        transition: 0.3s;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-extras {
        right: 60px;
        gap: 1rem;
    }
    
    .language-switcher select {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 1rem;
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: 5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* About Section */
    .about-section {
        padding: 2.5rem 0;
    }

    .about-section h2 {
        font-size: 1.75rem;
    }

    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Plan Your Sail */
    .plan-section {
        padding: 3rem 0;
    }
    
    .booking-container {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .date-picker {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .date-picker input {
        width: 100%;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .guest-counter {
        justify-content: space-between;
    }
    
    .extras-grid {
        gap: 0.75rem;
    }
    
    .extra-item {
        padding: 0.75rem;
    }
    
    .price-summary {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .price-row {
        font-size: 0.95rem;
    }
    
    .price-total {
        font-size: 1.25rem;
    }
    
    .submit-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .submit-buttons button {
        width: 100%;
        padding: 0.875rem;
    }
    
    /* Gallery Section */
    .gallery-section {
        padding: 3rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        aspect-ratio: 1;
    }
    
    .gallery-item:first-child {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 16/9;
    }
    
    /* Contacts Section */
    .contacts-section {
        padding: 3rem 0;
    }
    
    /* Friends Gallery */
    .friends-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    
    .media-item:nth-child(7n+1),
    .media-item:nth-child(11n+5),
    .media-item:nth-child(13n+9) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .contact-image {
        margin-top: 1rem;
    }

    .contact-image img {
        min-height: 200px;
    }
    
    /* Hide Google Maps on mobile */
    .contact-map-container {
        display: none;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
    
    /* Modals */
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    /* Forms */
    input, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Booking section specifics */
    .booking-section {
        margin-bottom: 2rem;
    }
    
    .booking-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Info Banner Mobile */
    .info-banner-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-banner-item {
        padding: 1rem;
    }
    
    .info-banner-item p {
        font-size: 1rem;
    }
    
    .info-banner-item strong {
        font-size: 1.1rem;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Even smaller typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-content h1 {
        font-size:4rem;
        line-height: 1;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Smaller buttons */
    .btn, .hero-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Compact forms */
    input, select, textarea {
        padding: 0.6rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Smaller extras grid */
    .extra-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* Smaller price display */
    .price-summary {
        padding: 0.75rem;
    }
    
    .price-row {
        font-size: 0.9rem;
    }
    
    .price-total {
        font-size: 1.1rem;
    }
}

/* Tablet portrait (min-width: 481px and max-width: 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .submit-buttons {
        flex-direction: row;
    }
    
    .submit-buttons button {
        width: auto;
        flex: 1;
    }
}

/* Tablet landscape (min-width: 769px and max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop - ensure hamburger is hidden */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        left: auto;
        top: auto;
    }
}

/* Large desktop screens (min-width: 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
    .container-section{
        max-width: 800px;
    }
    
    .hero-content h1 {
        font-size: 7rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, .hero-section, .footer {
        display: none;
    }
    
    .booking-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn {
        display: none;
    }
}