:root {
    --primary-color: #b20000;
    --secondary-color: #F5F5F5;
    --text-color: #333;
    --text-light: #666;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

body {
    font-family: "Noto Sans Thai", sans-serif;
    color: var(--text-color);
    background-color: #FAFAFA;
    margin: 0;
    line-height: 1.6;
}

/* Cleanup layout */
.main-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

/* Banner */
#banner {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.context_banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
}

.context_banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.context_banner p {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Breadcrumb */
.con_link {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.con_link a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.con_link a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.tour-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tag img {
    width: 20px;
    height: 20px;
}

/* Highlights */
.highlights-box {
    background: #FFF5F5;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #FFE0E0;
}

.highlights-box h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(192, 0, 0, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.highlight-item strong {
    color: var(--primary-color);
    min-width: 40px;
}

/* Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    justify-content: center;
    flex: 1;
}

.btn-primary:hover {
    background: #a00000;
    transform: translateY(-2px);
}

.contact-icons {
    display: flex;
    gap: 0.5rem;
}

.contact-icons a img {
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.contact-icons a:hover img {
    transform: scale(1.1);
}

/* Itinerary */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title span {
    color: var(--primary-color);
}

.timeline {
    position: relative;
    /* max-width: 800px; */
    margin: 0 auto 3rem auto;
}

.program-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.program-header {
    padding: 1.25rem;
    cursor: pointer;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.program-header:hover {
    background: #fdfdfd;
}

.program-header.active {
    background: #FFF5F5;
    border-bottom: 1px solid #f0f0f0;
}

.program-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.toggle-icon {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.program-details {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.program-details.show {
    padding: 1.5rem;
    max-height: 1000px;
    /* Arbitrary large height */
    overflow: visible;
}

.detailedinfo {
    color: var(--text-light);
    font-size: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

/* Content Tabs */
.tabs-wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 3rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: none;
    font-family: "Noto Sans Thai", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background: #FFF5F5;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul.conditions-list {
    padding-left: 0;
    list-style: none;
}

ul.conditions-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

ul.conditions-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1rem;
    top: 0.2rem;
}

/* Package Banner & Routes */
#package_banner {
    height: auto !important;
    /* Force auto height to prevent collision with footer */
    padding-top: 2rem;
    padding-bottom: 4rem;
    background: white;
    text-align: center;
}

.head_sec4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.con_routes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.package-info {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    height: 100%;
}

.package-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.package-info>img {
    width: 100%;
    height: 250px;
    /* Force consistent image height */
    object-fit: cover;
}

.con_row1_chinaroutes {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.row1_chinaroutes {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row1_chinaroutes div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.package-info .icon_small {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}


/* Responsiveness */
@media (max-width: 900px) {
    .tour-hero {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        height: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .context_banner h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .tab-btn {
        width: 100%;
        text-align: left;
        padding: 1rem;
    }

    .con_routes {
        padding: 0 1rem;
    }
}