/* Tour Pages Responsive Styles */

/* Prevent horizontal scrolling on the entire page */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* General responsive styles */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        margin: 0 auto;
    }
    
    .tour-hero h1 {
        font-size: 2.8rem;
    }
    
    .tour-content {
        padding: 0 1rem;
    }
}

/* Large tablets and small desktops */
@media (max-width: 992px) {
    .tour-hero img {
        height: 300px;
    }

    .tour-hero h1 {
        font-size: 2.5rem;
    }

    .tour-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .tour-description h2 {
        font-size: 2rem;
    }

    .tour-description p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tour-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .tour-hero {
        margin-top: 60px;
    }

    .tour-hero img {
        height: 250px;
    }

    .tour-hero h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .tour-meta .meta-item {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .tour-description {
        padding: 1.5rem;
    }

    .tour-description h2 {
        font-size: 1.8rem;
    }

    .itinerary-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .tour-table th,
    .tour-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Large phones */
@media (max-width: 576px) {
    .tour-hero img {
        height: 200px;
    }

    .tour-hero h1 {
        font-size: 1.8rem;
    }

    .tour-meta {
        gap: 0.8rem;
    }

    .tour-meta .meta-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .tour-description {
        padding: 1rem;
    }

    .tour-description h2 {
        font-size: 1.6rem;
    }

    .tour-description p {
        font-size: 0.95rem;
    }

    .itinerary-title {
        font-size: 1.6rem;
    }

    .tour-table th,
    .tour-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
        min-width: 120px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .tour-hero img {
        height: 180px;
    }

    .tour-hero h1 {
        font-size: 1.6rem;
    }

    .tour-meta .meta-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .tour-description h2 {
        font-size: 1.4rem;
    }

    .tour-description p {
        font-size: 0.9rem;
    }

    .itinerary-title {
        font-size: 1.4rem;
    }

    .tour-table th,
    .tour-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
}

/* Table specific responsive styles */
.tour-table {
    width: 100%;
    margin: 1rem 0;
}

/* Table wrapper to contain the scroll */
.tour-content {
    max-width: 100%;
}

@media (max-width: 768px) {
    .tour-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        max-width: 100%;
        position: relative;
    }
    
    .tour-table thead {
        background: #f8f9fa;
    }
    
    .tour-table th,
    .tour-table td {
        white-space: normal;
        vertical-align: top;
    }
}

/* Ensure proper spacing for the footer on mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}