/* --- TOUR HERO SECTION (Banner) --- */
.tour-hero {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

/* Carousel cho trang chi tiết tour */
.tour-hero-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 8px; /* Bo tròn các góc */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Thêm bóng */
}

.carousel-inner {
    display: flex; /* Cho phép các mục nằm cạnh nhau và điều khiển bằng JS */
    transition: transform 0.8s ease-in-out; /* Hiệu ứng chuyển động mượt mà */
}

.carousel-item {
    min-width: 100%; /* Mỗi item chiếm toàn bộ chiều rộng của container */
    position: relative;
    display: none; /* Mặc định ẩn, JS sẽ hiện item active */
    animation-name: fade;
    animation-duration: 1.5s;
}

.carousel-item.active {
    display: block; /* Hiển thị item đang active */
}

.carousel-item img.hero-image {
    width: 100%;
    height: 450px; /* Điều chỉnh chiều cao theo ý muốn */
    object-fit: cover; /* Đảm bảo ảnh phủ kín mà không bị méo */
    display: block;
}

/* Nội dung trên carousel - điều chỉnh để nằm trên ảnh */
.tour-hero-carousel .hero-content {
    position: absolute;
    bottom: 0; /* Đặt ở cuối ảnh */
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%); /* Màu tối dần từ dưới lên */
    color: white;
    text-align: left;
}

.tour-hero-carousel .tour-main-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.tour-hero-carousel .tour-meta span {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.1em;
    background-color: rgba(0, 123, 255, 0.8); /* Màu xanh của bootstrap primary */
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.tour-hero-carousel .tour-price-large {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffc107; /* Màu vàng nổi bật */
    margin-top: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.tour-hero-carousel .hero-book-button {
    background-color: #28a745; /* Màu xanh lá cây */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.tour-hero-carousel .hero-book-button:hover {
    background-color: #218838;
}

/* Nút điều hướng (mũi tên) */
.carousel-control-prev, .carousel-control-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5); /* Nền mờ để dễ nhìn */
}

.carousel-control-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Dấu chấm chỉ báo */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/* Hiệu ứng chuyển ảnh */
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tour-hero-carousel .tour-main-title {
        font-size: 1.8em;
    }
    .tour-hero-carousel .tour-meta span,
    .tour-hero-carousel .tour-price-large {
        font-size: 1em;
    }
    .carousel-item img.hero-image {
        height: 300px;
    }
    .tour-hero-carousel .hero-content {
        padding: 15px 20px;
    }
    .carousel-control-prev, .carousel-control-next {
        font-size: 20px;
        padding: 10px;
    }
}

.hero-image {
    width: 100%;
    height: 450px; 
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 40px;
    /* Hiệu ứng nền mờ gradient */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
    color: white;
}

.tour-main-title {
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.tour-meta {
    margin-bottom: 15px;
}

.tour-meta span {
    display: inline-block;
    background-color: var(--secondary-color); /* Nền vàng */
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px; /* Bo tròn hoàn toàn */
    font-weight: bold;
    margin-right: 15px;
    font-size: 0.9em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tour-price-large {
    font-size: 1.8em;
    margin: 15px 0;
}

.hero-book-button {
    background-color: var(--primary-color); /* Nút Xanh lá */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-book-button:hover {
    background-color: #1e7e34;
}

/* --- LỊCH TRÌNH VÀ CHI TIẾT --- */
.tour-details-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 1fr; /* 3 phần cho nội dung, 1 phần cho sidebar */
    gap: 40px;
}

.tour-info h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
    margin-top: 30px;
    font-size: 1.6em;
}

.tour-info ul {
    list-style: disc;
    padding-left: 20px;
}

/* Timeline */
.timeline {
    border-left: 3px solid var(--secondary-color); /* Màu vàng nổi bật */
    padding-left: 20px;
    margin: 20px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border: 3px solid var(--background-light);
    border-radius: 50%;
}

.timeline-content h4 {
    margin-top: 0;
    color: var(--text-dark);
}

/* Service List (Bao gồm/Không bao gồm) */
.service-list {
    display: flex;
    gap: 30px;
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.service-list h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.service-list ul {
    list-style: none;
    padding: 0;
}

.included, .excluded {
    flex: 1;
}

.included ul li::before {
    content: "✔️ ";
    color: var(--success-color);
    font-weight: bold;
}

.excluded ul li::before {
    content: "❌ ";
    color: var(--danger-color);
    font-weight: bold;
}

/* Tour Summary (Sidebar) */
.tour-summary {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    height: fit-content;
    position: sticky; 
    top: 20px;
}

.summary-box h4 {
    color: var(--primary-color);
    text-align: center;
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 10px;
}

.final-price {
    font-size: 2em;
    font-weight: bold;
    color: var(--danger-color); /* Màu đỏ cho giá */
    text-align: center;
    margin: 15px 0;
}

.cta-book-button {
    width: 100%;
    background-color: var(--secondary-color); /* Nút Vàng */
    color: var(--text-dark);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.cta-book-button:hover {
    background-color: #e0a800;
}

/* --- Responsive cho trang chi tiết --- */
@media (max-width: 992px) {
    .tour-details-container {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 0 15px;
    }
    .tour-summary {
        position: static; 
    }
    .tour-hero {
        margin: 0;
        border-radius: 0;
    }
    .hero-image {
        height: 250px;
    }
    .hero-content {
        padding: 15px 20px;
    }
    .tour-main-title {
        font-size: 1.8em;
    }
    .service-list {
        flex-direction: column;
        gap: 20px;
    }
}