/* --- Buttons --- */
.nomad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-body);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    border: none;
}

.nomad-button--carbon {
    background-color: var(--color-carbon);
    color: var(--color-white);
}

.nomad-button--carbon:hover {
    background-color: var(--color-orange);
}

.nomad-button--text {
    background-color: transparent;
    color: var(--color-orange);
    padding: 0;
}

.nomad-button--text:hover {
    color: var(--color-carbon);
}

.nomad-button--icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--color-carbon);
    color: var(--color-white);
}

/* --- Chips / Tags --- */
.nomad-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    background-color: var(--color-silver);
    color: var(--color-text);
}
.nomad-chip--indicator {
    position: relative;
    padding-left: 20px;
}
.nomad-chip--indicator::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-lime);
}

/* --- Base Card --- */
.nomad-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal);
}
.nomad-card:hover {
    transform: translateY(-4px);
}

/* =========================================
   COMPONENTS.CSS (Trích xuất phần Card chung)
   ========================================= */
.nomad-icon-svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.nomad-link-arrow { color: var(--color-orange); font-size: var(--text-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.nomad-icon-circle-btn {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-orange); 
    background: transparent; color: var(--color-orange); display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast); cursor: pointer;
}
.nomad-icon-circle-btn:hover { background: var(--color-orange); color: var(--color-white); }
.nomad-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* Tour Card Base */
.nomad-tour-card { border: 1px solid var(--color-silver); border-radius: var(--radius-md); overflow: hidden; background: var(--color-white); display: flex; flex-direction: column; }
.nomad-tour-card__image { position: relative; aspect-ratio: 4/3; }
.nomad-tour-card__image img { width: 100%; height: 100%; object-fit: cover; }
.nomad-tour-card__badges { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.nomad-chip--dark { background: rgba(16,18,20,0.6); color: var(--color-white); backdrop-filter: blur(4px); font-size: 10px; padding: 4px 8px; border-radius: 4px; }
.nomad-tour-card__content { padding: var(--spacing-md); display: flex; flex-direction: column; flex: 1; }
.nomad-tour-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.nomad-tour-card__desc { font-size: var(--text-sm); color: var(--color-muted); flex: 1; margin-bottom: 16px; }
.nomad-tour-card__footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--color-silver); padding-top: 12px; }
.nomad-tour-card__price { font-size: var(--text-sm); color: var(--color-muted); }
.nomad-tour-card__price strong { color: var(--color-text); font-size: 1.0rem; }

/* Dest Card Base */
.nomad-dest-card { border: 1px solid var(--color-silver); border-radius: var(--radius-md); overflow: hidden; display: block; }
.nomad-dest-card__bg { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.nomad-dest-card__info { padding: var(--spacing-md); display: flex; justify-content: space-between; align-items: center; }
.nomad-dest-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; color: var(--color-text); }
.nomad-dest-card__count { font-size: var(--text-sm); color: var(--color-muted); }

/* =========================================
   HOME.CSS (Trang chủ)
   ========================================= */
/* Hero Split */
.nomad-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 85vh; }
.nomad-hero__content { padding: var(--section-padding) 40px var(--section-padding) max(var(--spacing-md), calc((100vw - 1320px) / 2 + var(--spacing-md))); display: flex; flex-direction: column; justify-content: center; }
.nomad-hero__title { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; margin: 24px 0; letter-spacing: -1px; }
.nomad-hero__desc { font-size: 1.125rem; color: var(--color-muted); max-width: 480px; margin-bottom: 40px; }

/* Search Box */
.nomad-search-box { background: var(--color-white); border: 1px solid var(--color-silver); border-radius: 16px; padding: 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.06); max-width: 600px; }
.nomad-search-box__tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--color-silver); padding-bottom: 12px; margin-bottom: 24px; }
.nomad-search-box__tab { display: flex; align-items: center; gap: 8px; background: none; border: none; font-size: 14px; font-weight: 600; color: var(--color-muted); cursor: pointer; position: relative; padding: 0; }
.nomad-search-box__tab.is-active { color: var(--color-text); }
.nomad-search-box__tab.is-active::after { content: ''; position: absolute; bottom: -13px; left: 0; width: 100%; height: 2px; background: var(--color-orange); }
.nomad-search-box__input-group { display: flex; align-items: center; border: 1px solid var(--color-silver); border-radius: 30px; padding: 6px; }
.nomad-search-icon { color: var(--color-muted); margin-left: 12px; }
.nomad-search-box__input-group input { flex: 1; border: none; outline: none; padding: 0 12px; font-size: 15px; }
.nomad-search-box__tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.nomad-tag { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--color-silver); color: var(--color-muted); cursor: pointer; }

/* Hero Image Right */
.nomad-hero__image { position: relative; }
.nomad-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.nomad-hero__image-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(0,0,0,0.7) 100%); color: white; }
.nomad-hero__image-location { text-align: right; letter-spacing: 1px; }
.nomad-hero__image-location strong { display: block; font-size: 18px; }
.nomad-hero__image-location span { font-size: 12px; opacity: 0.8; }
.nomad-hero__image-caption { display: flex; justify-content: space-between; align-items: flex-end; }
.nomad-hero__image-caption p { font-size: 18px; font-weight: 500; line-height: 1.4; max-width: 300px; }
.nomad-hero__image-nav { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 8px; }
.nomad-nav-btn { background: rgba(0,0,0,0.4); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); }

/* Stats Bar */
.nomad-stats { border-bottom: 1px solid var(--color-silver); padding: 32px 0; }
.nomad-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.nomad-stats__item { border-right: 1px solid var(--color-silver); }
.nomad-stats__item:last-child { border-right: none; }
.nomad-stats__value { font-size: 32px; font-weight: 800; display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 8px; }
.nomad-stats__label { font-size: 14px; color: var(--color-muted); font-weight: 500; }
.nomad-dot-lime { display: inline-block; width: 8px; height: 8px; background: var(--color-lime); border-radius: 50%; position: relative; left: -4px; }

/* The Nomad Way */
.nomad-way { background: var(--color-carbon); color: var(--color-white); padding: 80px 0; }
.nomad-way__inner { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 40px; align-items: center; }
.nomad-way__title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin: 24px 0; }
.nomad-way__desc { color: #a0aab2; margin-bottom: 32px; font-size: 1.125rem; }
.nomad-way__image img { width: 100%; height: 400px; object-fit: cover; border-radius: 200px 200px 0 0; }
.nomad-way__list ul { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.nomad-way__list li { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: #a0aab2; display: flex; align-items: center; }

/* CTA Banner */
.nomad-cta-banner { position: relative; padding: 100px 0; overflow: hidden; }
.nomad-cta-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nomad-cta-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,18,20,0.9) 0%, rgba(16,18,20,0.4) 100%); z-index: -1; }
.nomad-cta-banner__content { display: flex; justify-content: space-between; align-items: center; color: white; }
.nomad-cta-banner__left h2 { font-size: 3rem; font-weight: 800; margin: 16px 0 24px; line-height: 1.1; }
.nomad-cta-banner__left p { font-size: 1.125rem; opacity: 0.9; max-width: 500px; margin-bottom: 32px; }
.nomad-typography-art { font-family: 'Brush Script MT', cursive; font-size: 5rem; line-height: 0.9; transform: rotate(-5deg); text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
/* =========================================
   SECTION HEADING (DÀN NGANG TIÊU ĐỀ & LINK)
   ========================================= */
.nomad-section-heading {
    display: flex;
    justify-content: space-between; /* Đẩy tiêu đề sang trái, link sang phải */
    align-items: center; /* Căn giữa theo chiều dọc */
    margin-bottom: 32px; /* Khoảng cách từ tiêu đề xuống danh sách card */
    width: 100%;
}

.nomad-section-heading__title {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 20px; /* Điều chỉnh lại size chữ nếu cần */
}

/* Thêm hiệu ứng hover cho link mũi tên */
.nomad-link-arrow {
    color: var(--color-orange, #FF4D2E);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.nomad-link-arrow:hover {
    gap: 12px; /* Mũi tên trượt nhẹ sang phải khi hover */
}
/* =========================================
   STYLE CARD (DÙNG CHO PHONG CÁCH DU LỊCH)
   ========================================= */
.nomad-style-card {
    border: 1px solid var(--color-silver, #DDE1E5);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    background: var(--color-white, #fff);
    display: flex;
    flex-direction: column;
}

.nomad-style-card__image {
    position: relative;
    aspect-ratio: 16/9; /* Tỷ lệ ảnh cho phong cách thường nằm ngang hơn thẻ Tour */
    overflow: hidden;
}

.nomad-style-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nomad-style-card:hover .nomad-style-card__image img {
    transform: scale(1.05); /* Hiệu ứng zoom nhẹ khi hover */
}

.nomad-style-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Đưa Title và Nút mũi tên cùng nằm trên 1 hàng ngang */
.nomad-style-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px; /* Khoảng cách từ Title xuống mô tả */
}

.nomad-style-card__title {
    font-size: 1.125rem; /* ~18px */
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--color-text, #151719);
}

.nomad-style-card__desc {
    font-size: 14px;
    color: var(--color-muted, #667085);
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   3 BƯỚC LÊN KẾ HOẠCH (STEPS)
   ========================================= */
.nomad-section-heading__subtitle {
    font-size: 14px;
    color: var(--color-muted, #667085);
    font-weight: 500;
}

.nomad-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-white, #fff);
    border: 1px solid var(--color-silver, #DDE1E5);
    border-radius: var(--radius-md, 8px);
    padding: 32px 40px;
    margin-top: 24px;
}

.nomad-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.nomad-step__number {
    font-size: 36px;
    font-weight: 300;
    color: #7e7e7e;
    line-height: 1;
    font-family: monospace; /* Tạo cảm giác font chữ số mỏng, dẹt như thiết kế */
}

.nomad-step__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--color-orange, #FF4D2E);
    color: var(--color-orange, #FF4D2E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nomad-step__icon svg { width: 22px; height: 22px; }

.nomad-step__content {
    display: flex;
    flex-direction: column;
}

.nomad-step__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--color-text, #151719);
}

.nomad-step__desc {
    font-size: 13px;
    color: var(--color-muted, #667085);
    margin: 0;
    line-height: 1.5;
    max-width: 240px;
}

.nomad-step__divider {
    color: var(--color-silver, #DDE1E5);
    display: flex;
    padding: 0 20px;
    border-left: 1px solid var(--color-silver, #DDE1E5);
    height: 60px; /* Tạo vạch ngăn cách mờ */
    align-items: center;
}

/* =========================================
   NHẬT KÝ HÀNH TRÌNH (HORIZONTAL CARD)
   ========================================= */
.nomad-journal-card {
    display: flex; /* Dàn ngang ảnh và chữ */
    border: 1px solid var(--color-silver, #DDE1E5);
    border-radius: var(--radius-md, 8px);
    background: var(--color-white, #fff);
    overflow: hidden;
}

.nomad-journal-card__image {
    width: 40%; /* Ảnh chiếm 40% thẻ */
    flex-shrink: 0;
}
.nomad-journal-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.nomad-journal-card:hover .nomad-journal-card__image img {
    transform: scale(1.05);
}

.nomad-journal-card__info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60%;
}

.nomad-journal-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.nomad-journal-card__title a {
    color: var(--color-text, #151719);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nomad-journal-card:hover .nomad-journal-card__title a {
    color: var(--color-orange, #FF4D2E);
}

.nomad-journal-card__meta {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-muted, #667085);
    letter-spacing: 0.5px;
}

/* Bổ sung các cột Grid còn thiếu cho hệ thống */
.nomad-col-5 { grid-column: span 5; }
.nomad-col-7 { grid-column: span 7; }

/* =========================================
   UI PHÂN TRANG (PAGINATION)
   ========================================= */
html body .nomad-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 60px !important; /* Đẩy cách xa lưới bài viết ở trên */
    width: 100% !important;
    padding-bottom: 30px;
}

html body .nomad-page-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #E5E7EB !important;
    background: white !important;
    color: #101214 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

html body .nomad-page-btn:hover {
    border-color: #FF4D2E !important;
    color: #FF4D2E !important;
}

/* Trạng thái trang hiện tại (Active) */
html body .nomad-page-btn--active {
    background: #FF4D2E !important;
    color: white !important;
    border-color: #FF4D2E !important;
}

/* Nút mũi tên "Trang sau" viền cam đỏ */
html body .nomad-page-btn[aria-label="Trang sau"] {
    color: #FF4D2E !important;
    border-color: #FF4D2E !important;
}
html body .nomad-page-btn[aria-label="Trang sau"]:hover {
    background: #FF4D2E !important;
    color: white !important;
}

/* Dấu ba chấm */
html body .nomad-page-dots {
    color: #101214 !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    padding: 0 4px !important;
}

/* =========================================
   GIAO DIỆN CARD TOUR ĐẸP CHUẨN MẪU (404)
   ========================================= */
html body .suggest-tours-section {
    padding: 80px 0 !important;
    background: #FAFAFA !important;
    border-top: 1px solid #E5E7EB !important;
}

html body .suggest-tours-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-top: 32px !important;
}

/* Khối Card Trắng */
html body .suggest-tour-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

html body .suggest-tour-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Khung ảnh & Nhãn nổi */
html body .suggest-tour-card .stc-img-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16/10 !important;
    overflow: hidden !important;
}

html body .suggest-tour-card .stc-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

html body .suggest-tour-card:hover .stc-img-wrap img {
    transform: scale(1.05) !important;
}

/* Nhãn địa điểm và thời gian trên ảnh */
html body .suggest-tour-card .stc-badge {
    position: absolute !important;
    top: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    color: white !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    letter-spacing: 0.5px !important;
}

html body .suggest-tour-card .stc-badge.location { left: 12px !important; }
html body .suggest-tour-card .stc-badge.time { right: 12px !important; }

/* Phần nội dung text bên dưới card */
html body .suggest-tour-card .stc-content {
    padding: 24px !important;
}

html body .suggest-tour-card .stc-content h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

html body .suggest-tour-card .stc-content h3 a {
    color: #101214 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

html body .suggest-tour-card .stc-content h3 a:hover {
    color: #FF4D2E !important;
}

html body .suggest-tour-card .stc-content p {
    font-size: 14px !important;
    color: #667085 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    html body .suggest-tours-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
}
/* =========================================
   THE NOMAD WAY (SEAMLESS BACKGROUND BLEND)
   ========================================= */
.nomad-way {
    position: relative;
    background-color: #101214; /* Nền đen Carbon */
    color: #fff;
    padding: 100px 0;
    margin-top: 60px;
    overflow: hidden;
}

/* Ảnh nền bám sát bên phải */
.nomad-way__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%; /* Ảnh chiếm 65% màn hình tính từ phải qua */
    height: 100%;
    z-index: 1;
}

.nomad-way__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Căn giữa ảnh */
}

.nomad-way__bg-fade {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, #101214 0%, rgba(16,18,20,0.85) 30%, transparent 70%),
        linear-gradient(270deg, rgba(16,18,20,0.9) 0%, rgba(16,18,20,0.4) 25%, transparent 50%),
        linear-gradient(0deg, #101214 0%, transparent 15%),
        linear-gradient(180deg, #101214 0%, transparent 15%),
        rgba(16, 18, 20, 0.45);
    z-index: 2;
}

/* Lớp nội dung */
.nomad-way__inner {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nội dung chữ bên trái */
.nomad-way__content {
    max-width: 650px;
}

.nomad-way__tag {
    display: flex;
    align-items: center; 
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #DDE1E5;
    margin-bottom: 24px;
    letter-spacing: 1px;
    line-height: 1; 
}

.nomad-dot-lime { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background-color: #C6F432; 
    display: block; 
    flex-shrink: 0; 
    transform: translateY(10.5px); 
    top: -10px;
}

.nomad-way__title { font-size: 36px; font-weight: 800; line-height: 1.2; margin: 0 0 24px 0; }
.nomad-way__desc { color: #a0aab2; font-size: 1.125rem; line-height: 1.6; margin: 0 0 40px 0; }

/* Timeline bên phải */
.nomad-way__timeline-wrapper {
    padding-right: 40px;
}

.nomad-way__timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

/* Dây nối mờ mờ sau các chấm */
.nomad-way__timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 3px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.nomad-way__timeline li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #8c949c;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.nomad-way__timeline li.active { color: #fff; }

.nomad-timeline-dot { display: block; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px rgba(0,0,0,0.5); }