/* =============================================
   Tour Package CSS — Archive + Single
   ============================================= */
/* Archive Header — now in style.css (shared component) */
/* Hero buttons, WA banner, quick-value--price, filter tabs, card component: moved to components.css */
/* --- Archive Grid --- */
.tour-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tour-grid--archive {
    padding-bottom: 48px;
}
/* Tour Grid Item (filter wrapper) */
.tour-grid-item {
    /* transition handled by filter.js */
}
/* Pagination — moved to components.css */
/* --- Archive CTA --- */
.archive-cta {
    background: rgba(var(--heading-color-rgb), 0.02);
}
.archive-cta__card {
    text-align: center;
    padding: 48px 24px;
    background: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    border-radius: 20px;
}
.archive-cta__title {
    font-size: var(--content-h2-size);
    font-weight: 900;
    color: var(--heading-color);
    margin-bottom: 12px;
}
.archive-cta__desc {
    font-size: var(--body-size);
    color: var(--text-color);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.archive-cta__btn {
    display: inline-block;
}
/* =============================================
   SINGLE TOUR
   ============================================= */
/* --- Tour Hero (uses shared single-hero component) --- */
/* --- 2-Column Layout --- */
.tour-single-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 60px;
    align-items: start;
}
/* --- Tour Content Area --- */
.tour-main-content {
    min-width: 0;
}
/* --- Tour Tabs --- */
.tour-tabs__nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid rgba(var(--heading-color-rgb), 0.08);
    margin-bottom: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tour-tabs__nav::-webkit-scrollbar {
    display: none;
}
.tour-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: var(--secondary-size);
    font-weight: 600;
    color: var(--text-color);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--body-font);
}
.tour-tabs__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.tour-tabs__btn:hover {
    color: var(--text-color);
}
.tour-tabs__btn:hover svg {
    opacity: 0.8;
}
.tour-tabs__btn--active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}
.tour-tabs__btn--active svg {
    opacity: 1;
    color: var(--primary-color);
}
.tour-tabs__panel {
    display: none;
}
.tour-tabs__panel--active {
    display: block;
    animation: tourTabFadeIn 0.3s ease;
}
@keyframes tourTabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tour-content-section {
    margin-bottom: 40px;
}
.tour-section-title {
    font-size: var(--content-h2-size);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(var(--heading-color-rgb), 0.08);
}
.tour-rich-text {
    font-size: var(--content-size);
    color: var(--text-color);
    line-height: 1.85;
    opacity: 0.85;
}
.tour-rich-text p {
    margin-bottom: 20px;
}
/* --- Overview block spacing (merged sections) --- */
.tour-overview-block {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(var(--heading-color-rgb), 0.08);
}
/* --- Destination Cards (horizontal layout inside tab) --- */
.tour-dest-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tour-dest-card--horizontal {
    display: flex;
    gap: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--heading-color-rgb), 0.05);
    background: rgba(var(--heading-color-rgb), 0.02);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.tour-dest-card--horizontal:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.tour-dest-card__thumb {
    flex-shrink: 0;
    width: 180px;
    min-height: 140px;
    overflow: hidden;
}
.tour-dest-card__thumb .tour-dest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tour-dest-card--horizontal:hover .tour-dest-card__img {
    transform: scale(1.05);
}
.tour-dest-card__thumb .tour-dest-card__placeholder {
    width: 100%;
    height: 100%;
    background: rgba(var(--heading-color-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}
.tour-dest-card__info {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tour-dest-card__name {
    font-size: var(--content-size);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 4px;
    line-height: 1.3;
}
.tour-dest-card__parent {
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.5;
}
.tour-dest-card__province {
    display: inline-block;
    font-size: var(--xs-size);
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.tour-dest-card__excerpt {
    font-size: var(--secondary-size);
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 10px;
}
.tour-dest-card__btn {
    font-size: var(--small-size);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
@media (max-width: 480px) {
    .tour-dest-card--horizontal {
        flex-direction: column;
        gap: 0;
    }
    .tour-dest-card__thumb {
        width: 100%;
        min-height: 160px;
    }
    .tour-dest-card__info {
        padding: 16px;
    }
}
/* --- Price Table --- */
.tour-price-table {
    background: rgba(var(--heading-color-rgb), 0.02);
    border: 1px solid rgba(var(--heading-color-rgb), 0.05);
    border-radius: 16px;
    overflow: hidden;
}
.tour-price-table table {
    width: 100%;
    border-collapse: collapse;
}
.tour-price-table thead {
    background: rgba(var(--primary-color-rgb), 0.08);
}
.tour-price-table th {
    padding: 14px 20px;
    font-size: var(--secondary-size);
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tour-price-table td {
    padding: 14px 20px;
    font-size: var(--body-size);
    color: var(--heading-color);
    border-bottom: 1px solid rgba(var(--heading-color-rgb), 0.05);
}
.tour-price-table tbody tr:last-child td {
    border-bottom: none;
}
.tour-price-table tbody tr:hover {
    background: rgba(var(--primary-color-rgb), 0.03);
}
.tour-price-cell {
    font-weight: 800;
    color: var(--primary-color);
    font-size: var(--content-size);
}
.tour-price-note {
    padding: 12px 20px;
    font-size: var(--small-size);
    color: var(--text-color);
    opacity: 0.7;
    border-top: 1px solid rgba(var(--heading-color-rgb), 0.05);
    margin: 0;
}
@media (max-width: 480px) {
    .tour-price-table th,
    .tour-price-table td {
        padding: 10px 14px;
        font-size: var(--secondary-size);
    }
    .tour-price-cell {
        font-size: var(--body-size);
    }
}
/* Facilities grid: moved to components.css */
/* --- Itinerary Timeline --- */
.tour-itinerary {
    position: relative;
}
.itinerary-item {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    padding-bottom: 32px;
}
.itinerary-item:last-child {
    padding-bottom: 0;
}
.itinerary-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.itinerary-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    flex-shrink: 0;
    z-index: 1;
}
.itinerary-line {
    width: 2px;
    flex: 1;
    background: rgba(var(--heading-color-rgb), 0.1);
    margin-top: 4px;
}
.itinerary-content {
    flex: 1;
    padding-bottom: 8px;
}
.itinerary-time {
    display: inline-block;
    font-size: var(--small-size);
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}
.itinerary-desc {
    font-size: var(--secondary-size);
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.7;
}
/* --- Sidebar --- */
.tour-sidebar {
    min-width: 0;
}
/* Quick Info Box */
.tour-quick-info {
    background: rgba(var(--heading-color-rgb), 0.02);
    border: 1px solid rgba(var(--heading-color-rgb), 0.05);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
}
.tour-quick-info__title {
    font-size: var(--content-size);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(var(--heading-color-rgb), 0.08);
}
.tour-quick-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quick-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(var(--heading-color-rgb), 0.05);
    font-size: var(--secondary-size);
    color: var(--text-color);
}
.quick-info-item:last-child {
    border-bottom: none;
}
.quick-info-item__icon {
    display: flex;
    flex-shrink: 0;
}
.quick-info-item__icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}
.quick-info-item__label {
    font-weight: 700;
    color: var(--heading-color);
    min-width: 100px;
}
.quick-info-item__value {
    flex: 1;
    color: var(--heading-color);
}
/* --- Related Tours --- */
.related-tours {
    border-top: 1px solid rgba(var(--heading-color-rgb), 0.05);
}
/* Re-uses .section-title for heading */
/* Re-uses .tour-grid for the grid */
/* Re-uses .tour-card styles from front-page.css */
/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .tour-grid--archive {
        grid-template-columns: repeat(2, 1fr);
    }
    .tour-single-layout {
        grid-template-columns: 1fr;
    }
    .tour-sidebar {
        order: 2;
    }
    .tour-facilities-grid {
        grid-template-columns: 1fr;
    }
    .related-tours .tour-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .tour-tabs__btn {
        padding: 12px 14px;
        font-size: var(--small-size);
        gap: 6px;
    }
    .tour-tabs__btn span {
        display: none;
    }
    .tour-tabs__btn svg {
        width: 20px;
        height: 20px;
    }
    /* .filter-tabs + .filter-tab responsive: moved to components.css */
    .tour-grid--archive {
        grid-template-columns: 1fr;
    }
    .tour-single-layout {
        padding-top: 32px;
        padding-bottom: 48px;
    }
    .related-tours .tour-grid {
        grid-template-columns: 1fr;
    }
    .archive-cta__card {
        padding: 32px 20px;
    }
}
@media (max-width: 480px) {
    .tour-quick-info {
        padding: 20px;
    }
    .quick-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .quick-info-item__label {
        min-width: auto;
    }
}
