/* ==========================================================
// HOME PAGE STYLES (extracted from style.css)
// Applies only when body has class .home-page
// ========================================================== */

body.home-page {
    overflow-x: hidden; /* tránh lộ viền/scroll ngang khi dùng 100vw */
}

.home-page main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.home-page .home-section {
    width: 95%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 35px 0;
}

.home-page .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.home-page .section-head .section-title {
    margin: 0;
}

/* Trang chủ: căn giữa tiêu đề riêng cho khối Tours Nổi Bật (deals) */
.home-page .deals-section .section-head {
    justify-content: center;
    position: relative;
}

.home-page .deals-section .section-head .section-title {
    width: 100%;
    text-align: center;
    color: #052ba8; /* xanh đậm như mẫu */
}

/* Style gạch dưới cam mảnh và dài hơn cho tiêu đề deals */
.home-page .deals-section .section-title::after {
    background-color: #f16522;
    width: 140px;
    height: 2px;
}

/* Gạch dưới cam cho các tiêu đề: Điểm đến, Khách hàng, Cẩm nang, About */
.home-page .destinations-section .section-title::after,
.home-page .review-section .section-title::after,
.home-page .travel-guide-section .section-title::after,
.home-page .about-us-section .section-title::after {
    background-color: #f16522;
    width: 140px;
    height: 2px;
}

/* Áp dụng màu/underline cam cho "Tour Nổi Bật Theo Miền" */
.home-page .featured-tours-section .section-title {
    color: #052ba8;
}

.home-page .featured-tours-section .section-title::after {
    background-color: #f16522;
    width: 140px;
    height: 2px;
}

.home-page .deals-section .section-head .section-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Trang chủ: căn giữa tiêu đề + giữ link bên phải cho Các Điểm Đến & Cẩm Nang */
.home-page .destinations-section .section-head,
.home-page .travel-guide-section .section-head {
    justify-content: center;
    position: relative;
}

.home-page .destinations-section .section-head .section-title,
.home-page .travel-guide-section .section-head .section-title {
    width: 100%;
    text-align: center;
}

.home-page .destinations-section .section-head .section-link,
.home-page .travel-guide-section .section-head .section-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 576px) {
    .home-page .destinations-section .section-head,
    .home-page .travel-guide-section .section-head {
        flex-wrap: wrap;
        justify-content: center;
    }
    .home-page .destinations-section .section-head .section-link,
    .home-page .travel-guide-section .section-head .section-link {
        position: static;
        transform: none;
    }
}

@media (max-width: 576px) {
    .home-page .deals-section .section-head {
        flex-wrap: wrap;
        justify-content: center;
    }
    .home-page .deals-section .section-head .section-link {
        position: static;
        transform: none;
    }
}

/* Đồng bộ màu tiêu đề trang chủ */
.home-page .section-title {
    color: #052ba8;
}

.home-page .section-link {
    text-decoration: none;
    font-weight: 600;
    color: #052ba8;
}
.home-page .section-link:hover {
    text-decoration: underline;
}

.home-hero {
    position: relative;
    margin-top: -104px;

    /* đảm bảo hero full sát 2 bên màn hình */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.home-hero .hero-slider-section {
    margin-top: 0;
    margin-bottom: 0;

    width: 100vw;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.25));
    pointer-events: none;
}

.home-hero-content {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1500px;
    color: #fff;
    z-index: 5;

    /* animation base */
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
}

.home-hero-content h1 {
    margin: 0 0 10px;
    font-size: 2.6em;
    line-height: 1.15;
    color: #fff;

    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.home-hero-content p {
    margin: 0 0 18px;
    font-size: 1.15em;
    opacity: 0.95;

    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Fade/slide in content on load */
.home-page .home-hero-content.is-revealed {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: opacity 700ms ease, transform 700ms ease;
}

.home-page .home-hero-content.is-revealed .home-hero-actions {
    animation: homeHeroButtons 800ms ease both;
    animation-delay: 140ms;
}

@keyframes homeHeroButtons {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ken Burns nhẹ cho slide đang active */
.home-page .home-hero-slider .hero-slide {
    transform: scale(1);
    will-change: transform;
}

.home-page .home-hero-slider .slick-active .hero-slide {
    animation: homeKenBurns 9s ease-out both;
}

@keyframes homeKenBurns {
    from { transform: scale(1.03); }
    to { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .home-hero-content,
    .home-page .home-hero-content.is-revealed {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        transition: none;
    }
    .home-page .home-hero-content.is-revealed .home-hero-actions {
        animation: none;
    }
    .home-page .home-hero-slider .slick-active .hero-slide {
        animation: none;
        transform: none;
    }
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    background: #007bff;
    color: #fff;

    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
    border: 1px solid transparent;
}

.home-hero-cta.secondary {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
}

.home-hero-cta:hover {
    transform: translateY(-2px);
    background: #052ba8; /* cùng tone xanh đã dùng ở site */
}

.home-hero-cta.secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.55);
}

.home-hero-cta:active {
    transform: translateY(0);
    opacity: 0.95;
}

.home-hero-cta:focus-visible {
    outline: none;
    border-color: rgba(255,255,255,0.75);
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-cta {
        transition: none;
    }
    .home-hero-cta:hover,
    .home-hero-cta:active {
        transform: none;
    }
}

.home-hero-search.tour-search-bar-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1500px;
    bottom: -55px;
    top: auto;
    margin: 0;
    z-index: 10;
}

.home-page .deals-section {
    padding-top: 210px; /* thêm không gian để tiêu đề tách hẳn khỏi thanh search */
}

/* Badge ngày ở cẩm nang (trang chủ) */
.home-page .duration-overlay {
    background-color: #052ba8;
}

/* About section (Sky Ocean Guide) */
.home-page .about-us-section .about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.home-page .about-us-section .about-lead {
    font-size: 1.15em;
    color: #555;
    margin: 0;
}

.home-page .about-us-section .about-subtitle {
    margin-top: 40px;
    color: #002d72;
}

.home-page .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.home-page .member-card {
    width: 200px;
    text-align: center;
}

.home-page .team-avatar {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 80%;
    margin-bottom: 10px;
    border: 3px solid #b2d6fcff;
}

.home-page .member-card h4 {
    margin: 0 0 5px;
}

.home-page .member-card p {
    margin: 0;
    font-size: 0.9em;
    color: #888;
}

.deal-carousel .deal-slide {
    padding: 0 10px;
    box-sizing: border-box;
}

.deal-carousel .tour-card-v2 {
    height: 100%;
}

.deal-carousel .slick-prev,
.deal-carousel .slick-next {
    z-index: 10;
}

/* ==========================================================
// HOME: Customer feedback (PHẢN HỒI TỪ KHÁCH HÀNG)
// Layout giống mẫu: slider 2 hàng x 3 cột, card avatar + tên + sao
// ========================================================== */

.home-page .review-section {
    /* nền xám sau giống mẫu */
    background: #f9f9f9;
    border-radius: 8px;
    padding: 32px 0;
}

.home-page .home-review-carousel {
    position: relative;
    overflow: visible;
}

/* 1 slide là 1 page (grid 3x2) */
.home-page .home-review-carousel .slick-slide {
    padding: 0 6px;
    box-sizing: border-box;
}

.home-page .review-page {
    padding: 0; /* arrows nằm ngoài grid */
    box-sizing: border-box;
}

.home-page .review-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

    /* các ô đều nhau */
    align-items: stretch;
}

.home-page .review-grid-v2 .review-item {
    align-self: stretch;
    display: flex;
    width: 100%;
}

@media (max-width: 1200px) {
    .home-page .review-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-page .review-page {
        padding: 0 0;
    }
    .home-page .review-grid-v2 {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.home-page .review-card-v2 {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px 18px;
    width: 100%;
    height: 190px; /* cố định để tất cả ô bằng nhau */

    /* đảm bảo nội dung gọn, không tạo khoảng trắng "khổng lồ" */
    display: flex;
    flex-direction: column;
}

.home-page .review-body {
    color: #333;
    line-height: 1.55;

    /* giới hạn dòng để các ô đều nhau */
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-page .review-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.home-page .review-avatar-v2 {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
}

.home-page .review-meta {
    min-width: 0;
}

.home-page .review-name-v2 {
    color: #052ba8;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.home-page .review-stars {
    display: inline-flex;
    gap: 4px;
    line-height: 1;
}

.home-page .review-star {
    font-size: 13px;
    color: rgba(241, 101, 34, 0.35);
}

.home-page .review-star.is-filled {
    color: #f16522;
}

.home-page .review-body {
    color: #333;
    line-height: 1.55;
}

/* Arrows giống mẫu: đặt giữa trái/phải của khối */
.home-page .home-review-carousel .slick-prev,
.home-page .home-review-carousel .slick-next {
    width: 28px;
    height: 28px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);

    /* chỉ 1 màu cam, không nền/khung/đổ bóng */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.home-page .home-review-carousel .slick-prev {
    left: -22px;
}

.home-page .home-review-carousel .slick-next {
    right: -22px;
}

.home-page .home-review-carousel .slick-prev:before,
.home-page .home-review-carousel .slick-next:before {
    font-size: 24px;
    color: #f16522;
    opacity: 1;
}

.home-page .home-review-carousel .slick-prev:hover,
.home-page .home-review-carousel .slick-next:hover,
.home-page .home-review-carousel .slick-prev:focus,
.home-page .home-review-carousel .slick-next:focus {
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 1200px) {
    .home-page .review-page {
        padding: 0 36px;
    }
}

@media (max-width: 768px) {
    .home-page .review-page {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .home-page .home-review-carousel .slick-prev,
    .home-page .home-review-carousel .slick-next {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .home-hero-content {
        top: 120px;
    }
    .home-hero-content h1 {
        font-size: 2.1em;
    }
    .home-hero-search.tour-search-bar-section {
        bottom: -40px;
    }
    .home-page .deals-section {
        padding-top: 70px;
    }
}

/* ============ MOBILE HOMEPAGE ============ */
@media (max-width: 768px) {
    .home-hero {
        margin-top: 0;
        width: 100%;
        margin-left: 0;
        position: relative;
    }
    
    /* Hero slider - đảm bảo hiển thị trên mobile */
    .home-hero .hero-slider-section {
        height: 200px !important;
        width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .home-hero .hero-slider-section .hero-slide {
        height: 200px !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .home-hero .hero-slider-section .slick-list,
    .home-hero .hero-slider-section .slick-track {
        height: 200px !important;
    }
    
    /* Fallback khi slick chưa init */
    .home-hero .hero-slider-section:not(.slick-initialized) {
        display: block;
    }
    
    .home-hero .hero-slider-section:not(.slick-initialized) .hero-slide {
        display: none;
    }
    
    .home-hero .hero-slider-section:not(.slick-initialized) .hero-slide:first-child {
        display: block;
    }
    
    .home-hero-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.25));
        z-index: 1;
    }
    
    .home-hero-content {
        top: 40px;
        padding: 0 15px;
        transform: translateX(-50%);
        text-align: center;
        z-index: 2;
    }
    
    .home-hero-content.is-revealed {
        transform: translateX(-50%);
    }
    
    .home-hero-content h1 {
        font-size: 1.15em;
        line-height: 1.3;
        margin-bottom: 6px;
        text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    }
    
    .home-hero-content p {
        font-size: 0.8em;
        margin-bottom: 8px;
        display: none;
    }
    
    .home-hero-actions {
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .home-hero-cta {
        padding: 7px 12px;
        font-size: 0.75em;
        width: auto;
        border-radius: 4px;
    }
    
    /* Search bar mobile - hiển thị dưới hero */
    .home-hero-search.tour-search-bar-section {
        position: relative;
        bottom: auto;
        top: auto;
        left: auto;
        transform: none;
        width: 94%;
        max-width: 100%;
        margin: 10px auto 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    }
    
    .home-page .deals-section {
        padding-top: 20px;
    }
    
    .home-page .home-section {
        width: 100%;
        padding: 15px 10px;
    }
    
    .home-page .section-head {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .home-page .section-head .section-link {
        position: static;
        transform: none;
    }
    
    .home-page .section-title {
        font-size: 1.2em !important;
    }
    
    .home-page .section-title::after {
        width: 60px;
        height: 2px;
    }
}

@media (max-width: 576px) {
    .home-hero .hero-slider-section,
    .home-hero .hero-slider-section .hero-slide,
    .home-hero .hero-slider-section .slick-list,
    .home-hero .hero-slider-section .slick-track {
        height: 220px !important;
    }
    
    .home-hero-content {
        top: 50px;
    }
    .home-hero-content h1 {
        font-size: 1.15em;
    }
    .home-hero-content p {
        font-size: 0.8em;
        display: none;
    }
    .home-hero-actions {
        margin-top: 10px;
    }
    .home-hero-cta {
        padding: 6px 12px;
        font-size: 0.75em;
    }
    
    .home-hero-search.tour-search-bar-section {
        margin: -15px auto 10px;
    }
    
    .home-page .section-title {
        font-size: 1.1em !important;
    }
}

@media (max-width: 480px) {
    .home-hero .hero-slider-section,
    .home-hero .hero-slider-section .hero-slide,
    .home-hero .hero-slider-section .slick-list,
    .home-hero .hero-slider-section .slick-track {
        height: 180px !important;
    }
    
    .home-hero-content {
        top: 40px;
    }
    .home-hero-content h1 {
        font-size: 1em;
    }
    .home-hero-cta {
        padding: 5px 10px;
        font-size: 0.7em;
    }
    .home-page .section-title {
        font-size: 1em !important;
    }
}
