/* Mobile-First Responsive Design for Maffecioni Buslines */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --light-text: #666;
    --background-color: #fff;
    --border-color: #e1e5e9;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #a8c0ff 0%, #b8a9ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 16px; /* Base font size for mobile */
    width: 100%;
    min-width: 100%;
}

/* ===== MOBILE-FIRST BASE STYLES ===== */

/* Navigation - Mobile First */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem; /* Smaller padding on mobile */
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem; /* Smaller on mobile */
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    min-width: 200px;
}

.nav-links {
    display: none; /* Hidden on mobile by default */
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Hamburger Menu - Mobile First */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 400px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    position: relative;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.mobile-menu-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.close-menu:hover {
    background: rgba(102, 126, 234, 0.1);
}

.close-line {
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.close-line:first-child {
    transform: rotate(45deg) translate(1px, 1px);
}

.close-line:last-child {
    transform: rotate(-45deg) translate(1px, -1px);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links li {
    margin: 0;
    width: 100%;
    display: block;
    list-style: none;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 60px;
    box-sizing: border-box;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: left 0.3s ease;
    z-index: -1;
}



.mobile-nav-links a:hover {
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.mobile-nav-links a:hover::before {
    left: 0;
}

.nav-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.mobile-nav-links a:hover .nav-icon {
    transform: scale(1.2);
}

.mobile-menu-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.mobile-menu-footer p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.mobile-menu-footer p:first-child {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Hero Section - Mobile First */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 1rem; /* Smaller padding on mobile */
    margin-top: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    animation: fadeInUp 1s ease-out;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2rem; /* Smaller on mobile */
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1rem; /* Smaller on mobile */
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.875rem 1.5rem; /* Smaller on mobile */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem; /* Smaller on mobile */
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    width: auto;
    min-width: 200px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Smaller padding on mobile */
    box-sizing: border-box;
}

/* Day Trips Section - Mobile First */
.day-trips {
    padding: 3rem 1rem; /* Smaller padding on mobile */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 1.75rem; /* Smaller on mobile */
    font-weight: 700;
    margin-bottom: 2rem; /* Smaller margin on mobile */
    color: #333;
    line-height: 1.3;
}



.trip-card {
    background: white;
    border-radius: 15px; /* Smaller radius on mobile */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.trip-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.trip-image {
    height: 180px; /* Smaller height on mobile */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.trip-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

/* Almost Full Tag */
.almost-full-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    z-index: 10;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
}

.trip-content {
    padding: 1.25rem; /* Smaller padding on mobile */
}

.trip-title {
    font-size: 1.125rem; /* Smaller on mobile */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.trip-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem; /* Smaller on mobile */
    line-height: 1.5;
}

.trip-price {
    font-size: 1.25rem; /* Smaller on mobile */
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

.trip-details {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.trip-date,
.trip-seats {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem; /* Smaller on mobile */
    border-radius: 20px; /* Smaller radius on mobile */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.9rem; /* Smaller on mobile */
}

.book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Features Section - Mobile First */
.features {
    padding: 3rem 1rem; /* Smaller padding on mobile */
    background: white;
    width: 100%;
    box-sizing: border-box;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem; /* Smaller gap on mobile */
    margin-top: 2rem;
    max-width: 100%;
}

.feature-card {
    text-align: center;
    padding: 1.5rem; /* Smaller padding on mobile */
    border-radius: 12px; /* Smaller radius on mobile */
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px); /* Smaller transform on mobile */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem; /* Smaller on mobile */
    margin-bottom: 1rem;
    color: #667eea;
}

.feature-title {
    font-size: 1.125rem; /* Smaller on mobile */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #666;
    font-size: 0.9rem; /* Smaller on mobile */
    line-height: 1.5;
}

/* Contact Section - Mobile First */
.contact {
    padding: 3rem 1rem; /* Smaller padding on mobile */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100%;
    box-sizing: border-box;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem; /* Smaller on mobile */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #667eea;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.contact-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Footer - Mobile First */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 2rem 1rem; /* Smaller padding on mobile */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.footer h3 {
    font-size: 1.25rem; /* Smaller on mobile */
    margin-bottom: 0.5rem;
}

.footer p {
    font-size: 0.9rem; /* Smaller on mobile */
    margin-bottom: 0.5rem;
}

/* ===== TABLET STYLES (768px and up) ===== */
@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    .nav {
        padding: 1rem 2rem;
    }

    .logo {
        font-size: 1.5rem;
        max-width: none;
        overflow: visible;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }

    /* Hide hamburger menu on tablet and up */
    .hamburger-menu {
        display: none;
    }

    /* Hide mobile menu on tablet and up */
    .mobile-menu {
        display: none;
    }

    .hero {
        padding: 0 2rem;
    }

    .hero-content {
        max-width: 600px;
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .day-trips {
        padding: 4rem 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }



    .trip-image {
        height: 200px;
    }

    .trip-content {
        padding: 1.5rem;
    }

    .trip-title {
        font-size: 1.25rem;
    }

    .trip-description {
        font-size: 1rem;
    }

    .trip-price {
        font-size: 1.5rem;
    }

    .book-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .features {
        padding: 4rem 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 2rem;
    }

    .footer h3 {
        font-size: 1.5rem;
    }

    .footer p {
        font-size: 1rem;
    }

    .contact {
        padding: 4rem 2rem;
    }

    .contact-info h3 {
        font-size: 1.75rem;
    }

    .contact-info p {
        font-size: 1.125rem;
    }

    .contact-details {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-item {
        flex: 1;
        min-width: 250px;
        max-width: 300px;
    }
}

/* ===== DESKTOP STYLES (1024px and up) ===== */
@media (min-width: 1024px) {
    .nav-content {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .logo {
        font-size: 1.75rem;
        max-width: none;
        overflow: visible;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .container {
        max-width: 1200px;
    }

    .day-trips {
        padding: 5rem 2rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }



    .trip-card:hover {
        /* Card lift and image zoom effects handled by JavaScript */
    }

    .trip-image {
        height: 200px;
    }

    .trip-content {
        padding: 1.5rem;
    }

    .trip-title {
        font-size: 1.25rem;
    }

    .trip-description {
        font-size: 1rem;
    }

    .trip-price {
        font-size: 1.5rem;
    }

    .book-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .features {
        padding: 5rem 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
        gap: 2rem;
        margin-top: 3rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 2rem;
    }
}

/* ===== LARGE DESKTOP STYLES (1440px and up) ===== */
@media (min-width: 1440px) {
    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 3rem;
    }




}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ===== CAROUSEL STYLES ===== */
.trips-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    overflow: visible; /* Allow cards to lift above container */
    padding-top: 20px; /* Space for card lift effect */
    box-sizing: border-box;
}

.trips-carousel {
    overflow: visible; /* Allow cards to lift above container */
    position: relative;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.trips-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
    padding: 20px 0 0 0; /* Top padding for lift effect */
    --cards-per-view: 1;
    width: 100%;
    box-sizing: border-box;
}

.trip-card {
    flex: 0 0 calc(100% - 2rem);
    min-width: 300px;
    max-width: 400px;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #999;
}

/* Mobile-first carousel adjustments */
@media (max-width: 767px) {
    .trips-carousel-container {
        margin: 2rem 0;
        padding: 0 0.5rem;
        overflow: visible; /* Allow cards to lift above container */
        width: 100%;
    }
    
    .trips-carousel {
        padding: 0 0.5rem;
        overflow: visible; /* Allow cards to lift above container */
        width: 100%;
    }
    
    .trips-carousel-track {
        gap: 1rem;
        padding: 20px 0 0 0; /* Top padding for lift effect */
        width: 100%;
    }
    
    .trip-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: 280px;
        max-width: calc(100% - 2rem);
        margin: 0 1rem;
        width: 100%;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-btn-prev {
        left: 0.5rem;
    }
    
    .carousel-btn-next {
        right: 0.5rem;
    }
    
    .carousel-dots {
        margin-top: 1.5rem;
    }
}

/* Tablet carousel adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .trip-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 320px;
    }
}

/* Small desktop carousel adjustments */
@media (min-width: 1024px) and (max-width: 1199px) {
    .trip-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 320px;
    }
}

/* Desktop carousel adjustments */
@media (min-width: 1200px) {
    .trip-card {
        flex: 0 0 calc(33.333% - 1.33rem);
        min-width: 350px;
    }
    
    .trips-carousel-track {
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
}

/* Large desktop carousel adjustments */
@media (min-width: 1440px) {
    .trip-card {
        flex: 0 0 calc(25% - 1.5rem);
        min-width: 320px;
    }
    
    .trips-carousel-track {
        gap: 3rem;
        padding: 0 2rem;
    }
}



/* ===== ADDITIONAL MOBILE FIXES ===== */
@media (max-width: 480px) {
    /* Extra small mobile devices */
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .trip-card {
        margin: 0 0.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-content {
        max-width: 95%;
        width: 350px;
        padding: 1.25rem;
    }
    
    .mobile-nav-links a {
        font-size: 1.1rem;
        padding: 0.875rem 1.25rem;
        min-height: 50px;
    }
    
    .nav-content {
        padding: 0 0.25rem;
    }
    
    .logo {
        font-size: 1.1rem;
        max-width: none;
        min-width: 180px;
        overflow: visible;
    }
}

/* Fix for mobile menu positioning */
@media (max-width: 767px) {
    /* Prevent zooming and scaling issues */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
    }
    
    .mobile-menu {
        padding-top: 1rem;
    }
    
    .mobile-menu-content {
        margin-top: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    /* Ensure proper spacing for mobile navigation */
    .nav {
        padding: 0.75rem 1rem;
        width: 100%;
        max-width: 100vw;
    }
    
    .nav-content {
        padding: 0 0.5rem;
        width: 100%;
    }
    
    /* Better mobile carousel spacing */
    .trips-carousel-container {
        margin: 1.5rem 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .carousel-btn {
        top: 45%;
    }
    
    /* Ensure full width for all sections */
    .hero,
    .day-trips,
    .features,
    .contact,
    .footer {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
    }
    
    /* Fix container widths */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem;
        overflow-x: hidden;
    }
    
    /* Prevent horizontal scrolling */
    * {
        max-width: 100vw;
    }
}

/* Fix for touch devices */
@media (hover: none) and (pointer: coarse) {
    .trip-card:hover,
    .feature-card:hover,
    .contact-item:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .trip-image {
        transform: none !important;
    }
    
    .cta-button,
    .book-button {
        transition: none;
        min-height: 44px; /* Apple's recommended minimum */
    }
    
    .cta-button:active,
    .book-button:active {
        transform: scale(0.98);
    }
    
    .nav-links a {
        transition: none;
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

 