﻿/* Destination Detail Page */

.dest-hero {
    position: relative;
    height: 380px;
    /* visible để booking translateY(-50%) không bị cắt nửa trên */
    overflow: visible;
}

.dest-hero__img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}

.dest-hero__img--placeholder {
    background: linear-gradient(135deg, #1e3a53, #1e3a53);
}

.dest-hero:hover .dest-hero__img {
    transform: scale(1.04);
}

.dest-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,0.72) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 36px;
}

.dest-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.dest-hero__breadcrumb:hover { color: #fff; }

.dest-hero__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Description */
.dest-description {
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.2;
    margin: 0 auto 32px;
    max-width: 760px;
    text-align: justify;
}

.dest-description--full {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.dest-description :is(p, li, span, div, a, strong, b, em, i, ul, ol, h4, h5, h6) {
    font-family: inherit;
}

.dest-section-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2.5rem;
}

.dest-section-row--reverse {
    flex-direction: row-reverse;
}

.dest-section-row--text-only {
    display: block;
}

.dest-section-row__media {
    flex: 0 0 min(46%, 520px);
    width: min(46%, 520px);
    max-width: 520px;
}

.dest-section-row__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.dest-section-row__body {
    flex: 1 1 0;
    min-width: 0;
}

.dest-style-description {
    max-width: none;
    width: 100%;
    margin: 0 0 8px;
    text-align: justify;
    text-justify: inter-word;
}

.dest-about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.dest-about-gallery__item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

@media (max-width: 991px) {
    .dest-section-row,
    .dest-section-row--reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .dest-section-row__media {
        flex: none;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .dest-about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dest-about-gallery {
        grid-template-columns: 1fr;
    }
}

/* Section title */
.dest-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a53;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* Gallery */
.dest-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 32px;
}

.dest-gallery__item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.dest-gallery__item img:hover { transform: scale(1.03); }

/* Sidebar */
.dest-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dest-sidebar__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dest-sidebar__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a53;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.dest-sidebar__link {
    color: #1e3a53;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.dest-sidebar__link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .dest-hero {
        height: calc((100vh - var(--home-header-h, 60px)) * 2 / 3) !important;
        min-height: 280px !important;
    }

    .dest-hero__img {
        object-fit: cover !important;
        object-position: center center !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .dest-hero__title { font-size: 1.6rem; }
    .dest-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Country page — Best Time, Tour Styles, Destinations
   ============================================ */

/* Best Time */
.country-best-time {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(10,61,92,0.06);
}

/* Tour Style Cards */
.country-style-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
}

.country-style-card img,
.country-style-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    background: linear-gradient(135deg, #1e3a53, #1e3a53);
}

.country-style-card:hover img {
    transform: scale(1.06);
}

.country-style-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,0.72) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.country-style-card__overlay span {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
}

/* Destination Itinerary Cards */
.dest-itinerary-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(10,61,92,0.06);
    transition: box-shadow 0.25s, transform 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dest-itinerary-card:hover {
    box-shadow: 0 6px 20px rgba(10,61,92,0.12);
    transform: translateY(-3px);
}

.dest-itinerary-card__img {
    height: 160px;
    overflow: hidden;
}

.dest-itinerary-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dest-itinerary-card:hover .dest-itinerary-card__img img {
    transform: scale(1.05);
}

.dest-itinerary-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dest-itinerary-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a53;
    margin-bottom: 6px;
}

.dest-itinerary-card__desc {
    font-size: 0.82rem;
    color: #3d4f5f;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 12px;
}

.dest-itinerary-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e3a53;
    text-decoration: none;
    transition: color 0.2s;
}

.dest-itinerary-card__link:hover {
    color: #1e3a53;
}

/* ========== Hero Country Overlay ========== */

.banner-top-slider {
    position: relative;
}

/* Overlay typography/layout owned by destination-page.css + custom.css (flex center full slide) */
body.page-destination .hero-country-overlay,
.page-destination .hero-country-overlay {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    transform: none !important;
}

/* ========== Quick Facts ========== */

/* ========== Quick Facts ========== */

.country-quick-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.country-quick-facts__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.country-quick-facts__item:hover {
    box-shadow: 0 4px 16px rgba(13,107,138,0.1);
    transform: translateY(-2px);
}

.country-quick-facts__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a53, #1e3a53);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.country-quick-facts__body {
    flex: 1;
    min-width: 0;
}

.country-quick-facts__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.country-quick-facts__value {
    font-size: 0.875rem;
    color: #1e293b;
    line-height: 1.5;
}

.country-quick-facts__value p,
.country-quick-facts__value li {
    font-size: 0.875rem !important;
    color: #1e293b !important;
    margin: 0;
}

@media (max-width: 768px) {
    .country-quick-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .country-quick-facts {
        grid-template-columns: 1fr;
    }
}

/* ========== Reviews Grid ========== */

.dest-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dest-review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.dest-review-card::before {
    content: '\201C';
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 4rem;
    line-height: 1;
    color: #e2e8f0;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.dest-review-card:hover {
    box-shadow: 0 6px 20px rgba(13,107,138,0.1);
    transform: translateY(-2px);
}

.dest-review-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dest-review-card__avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a53, #1e3a53);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
}

.dest-review-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a53;
    line-height: 1.3;
}

.dest-review-card__nationality {
    font-size: 0.75rem;
    color: #4a5568;
    margin-top: 1px;
}

.dest-review-card__stars {
    display: flex;
    gap: 2px;
    font-size: 0.8rem;
    color: #f59e0b;
}

.dest-review-card__stars .bi-star {
    color: #d1d5db;
}

.dest-review-card__subject {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a53;
    margin: 0;
    font-style: italic;
}

.dest-review-card__content {
    font-size: 0.875rem;
    color: #3d4f5f;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .dest-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Destination Hero Overlay ========== */

.dest-hero {
    position: relative;
}

.dest-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    text-align: center;
}

.dest-hero__name {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
    margin: 0 0 6px;
}

.dest-hero__country {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.96);
    margin: 0;
}

.dest-hero__country a {
    color: rgba(255, 255, 255, 0.96);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: color 0.2s;
}

.dest-hero__country a:hover {
    color: #fff;
}

@media (max-width: 576px) {
    /* Không dùng top/left 50% + translate — xung đột flex center full-slide */
    body.page-destination .hero-country-overlay,
    .page-destination .hero-country-overlay {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        transform: none !important;
    }
    .country-quick-facts { grid-template-columns: 1fr; }
}

/* ========== All Destinations Grid ========== */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.dest-grid-item {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.dest-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.dest-grid-item__img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.dest-grid-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dest-grid-item:hover .dest-grid-item__img img {
    transform: scale(1.08);
}

.dest-grid-item__text {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #1e3a53;
    background: #fff;
}

/* ========== Duration Tabs ========== */
.duration-tabs {
    gap: 0.5rem;
}

.duration-tabs .nav-link {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3d4f5f;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.duration-tabs .nav-link:hover {
    color: #1e3a53;
    background: rgba(13, 107, 138, 0.1);
}

.duration-tabs .nav-link.active {
    background: #1e3a53;
    color: #fff;
    border-color: #1e3a53;
}

/* ========== Section headings uppercase ========== */
.title-h2-line {
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .destinations-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .duration-tabs .nav-link {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========== Attraction / Food Cards ========== */
.attraction-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.attraction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.attraction-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.attraction-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attraction-card:hover .attraction-card__img img {
    transform: scale(1.05);
}

.attraction-card__body {
    padding: 1.25rem;
}

.attraction-card__title {
    font-family: "Newsreader", Georgia, serif !important;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1f2d3d;
    margin-bottom: 0.5rem;
}

.attraction-card__desc {
    font-size: 0.85rem;
    color: #3d4f5f;
    line-height: 1.6;
    margin: 0;
}

/* Hero overlay for dest-hero */
.dest-hero {
    position: relative;
}

/* Booking straddle handled by body.page-destination + translateY(-50%) in custom.css */
.dest-hero + #customize-tour-widget,
.dest-hero ~ #customize-tour-widget {
    margin-top: 0;
    position: relative;
    z-index: 5;
}

/* ========== Experiences List (horizontal cards) ========== */

.dest-exp-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dest-exp-item {
    display: flex;
    gap: 20px;
    padding: 14px;
    border: 1px solid #e8f0f6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}

.dest-exp-item:hover {
    box-shadow: 0 6px 20px rgba(13,107,138,0.1);
    transform: translateY(-2px);
}

.dest-exp-item__img {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
}

.dest-exp-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dest-exp-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.dest-exp-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a53;
    margin: 0 0 6px;
    line-height: 1.3;
}

.dest-exp-item__desc {
    font-size: 0.85rem;
    color: #3d4f5f;
    line-height: 1.55;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dest-exp-item__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e3a53;
}

@media (max-width: 576px) {
    .dest-exp-item {
        flex-direction: column;
        gap: 12px;
    }
    .dest-exp-item__img {
        width: 100%;
        height: 180px;
    }
}

/* ========== Top Foods List ========== */

.dest-foods-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dest-food-item {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e7e2d8;
    transition: none;
    overflow: hidden;
}

.dest-food-item:hover {
    box-shadow: none;
}

.dest-food-item__img {
    flex-shrink: 0;
    width: min(34%, 336px);
    min-height: 208px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.dest-food-item__img img {
    width: 100%;
    height: 100%;
    min-height: 208px;
    object-fit: cover;
}

.dest-food-item__num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e3a53;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dest-food-item__body {
    flex: 1;
    min-width: 0;
    padding: 0 4px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dest-food-item__title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #1e3a53;
    margin: 0 0 12px;
}

.dest-food-item__desc {
    font-size: 1rem;
    color: #334155;
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {
    .dest-food-item {
        flex-direction: column;
        gap: 16px;
    }
    .dest-food-item__img {
        width: 100%;
        min-height: 176px;
        height: 192px;
    }
    .dest-food-item__img img {
        min-height: 176px;
    }
    .dest-food-item__body {
        padding: 0;
    }
}

/* ========== Destination detail mobile polish ========== */
@media (max-width: 768px) {
    .dest-hero {
        height: calc((100vh - var(--home-header-h, 60px)) * 2 / 3) !important;
        min-height: 280px !important;
    }

    .dest-hero__img {
        object-fit: cover !important;
        object-position: center center !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .hero-country-name {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        line-height: 1.15;
    }

    .hero-country-slogan {
        font-size: 0.85rem;
        margin-top: 6px;
        padding: 0 0.5rem;
    }

    .dest-hero ~ #customize-tour-widget {
        margin-top: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .dest-description {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
        margin-bottom: 1.25rem;
        padding: 0 0.25rem;
    }

    .sticky-nav-wrapper {
        overflow: visible;
    }

    .sticky-nav__list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

    .sticky-nav__list::-webkit-scrollbar {
        display: none;
    }

    .sticky-nav__item {
        flex: 0 0 auto;
        min-width: 78px;
    }

    .sticky-nav__link {
        padding: 0.52rem 0.4rem;
        gap: 2px;
    }

    .sticky-nav__link span {
        font-size: 0.6rem;
        white-space: nowrap;
    }

    .sticky-nav__link.active {
        color: #1e3a53;
    }

    .sticky-nav__link.active i {
        color: #c18a2b;
    }

    .section .wrap-mini-intro {
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
    }

    .title-h2-line {
        font-size: clamp(1.25rem, 5vw, 1.55rem) !important;
    }

    .dest-exp-item {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .dest-exp-item__img {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 576px) {
    .dest-hero {
        height: calc((100vh - var(--home-header-h, 60px)) * 2 / 3) !important;
        min-height: 260px !important;
    }

    .dest-hero ~ #customize-tour-widget {
        margin-top: 0;
    }

    .booking-widget-card {
        padding: 0.85rem !important;
        border-radius: 12px;
    }
}
