/* RESET & TRIGGER */
.va-wrapper-outer {
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    margin: 30px 0;
    min-height: 70px;
}
.va-trigger-btn {
    background: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    color: #007488;
    max-height: 70px;
}
.va-trigger-btn:hover {
    border-color: #007488;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    z-index: 1;
    background-color: white;
    color: rgb(0 0 0);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), conic-gradient(from var(--angle), #42a5f500, #ec407a00, #ab47bc00, #6ca7ff, #0095ff, #71ff28, #42a5f500);
    animation: organic-glow 4s 
ease-in-out infinite, /* Tổng thời gian là 4.5s để khớp với logic 1.5s + 3s */ rotating-border 4.5s 
linear infinite;
    scale: 1.1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}


.va-trigger-btn .text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Wrapper để chứa icon */
.va-trigger-btn .icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon Gemini */
.va-trigger-btn .icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.va-trigger-btn .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    /* [SỬA] Mặc định không có animation, nhưng có transition để quay về mượt mà */
    animation: none;
    transition: transform 0.5s ease-out;
}


/* --- HIỆU ỨNG KHI HOVER: BAN ĐẦU NGƯỢC, SAU ĐÓ XUÔI --- */

.va-trigger-btn:hover .icon img {
    /* Gọi 2 animation nối tiếp nhau */
    animation: initial-spin-ccw 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards, 
               looping-pulse-cw 2.5s ease-in-out 0.7s infinite; 
    
    transition: none;
}

/* 1. Quay NGƯỢC kim đồng hồ (Về số âm) */
@keyframes initial-spin-ccw {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        /* Quay 1 vòng ngược chiều */
        transform: rotate(-360deg) scale(1.2);
    }
}

/* 2. Quay XUÔI kim đồng hồ (Tăng dần từ số âm về 0) */
@keyframes looping-pulse-cw {
    0% {
        /* Bắt đầu khớp với điểm kết thúc của cái trên (-360) */
        transform: rotate(-360deg) scale(1.2); 
    }
    25% {
        /* Muốn quay xuôi thì cộng thêm độ (+90) */
        /* -360 + 90 = -270 */
        transform: rotate(-270deg) scale(1.1); 
    }
    50% {
        /* -360 + 180 = -180 */
        transform: rotate(-180deg) scale(1.2); 
    }
    75% {
        /* -360 + 270 = -90 */
        transform: rotate(-90deg) scale(1.1); 
    }
    100% {
        /* -360 + 360 = 0 (Hoàn thành 1 vòng xuôi) */
        transform: rotate(0deg) scale(1.2); 
    }
}
/* MAIN CARD */
.va-card {
    width: 100%;
    max-width: 700px;
    height: 100%;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: popIn 0.4s 
ease;
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* FIXED BADGE */
.va-fixed-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
    pointer-events: none;
    background: white;
}
.va-badge {
    position: absolute;
    top: 15px;
    left: 20px;
    pointer-events: auto;
    background: #c9e4ff;
    color: #3673cc;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cbd5e1;
}
.pulse-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%;}
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.6; } }
.va-close-btn {
    position: absolute;
    top: 13px;
    right: 15px;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    background: #c9e4ff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 100;
    cursor: pointer;
    color: #3673cc;
    transition: 0.2s;
    font-size: 25px;
    z-index: 11;
}
.va-close-btn:hover { background: #e2e8f0; color: #dc2626; }


/* HEADER */
.va-header-content { text-align: center; margin-bottom: 25px; }
.va-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #007488;
    display: none;
}
.va-subtitle {
    font-size: 20px;
    color: #007488;
    font-weight: 800;
    display: none;
}

/* --- SLIDE ANIMATION CSS --- */

/* Container chính cần relative để giữ các con absolute bên trong */
.va-content-pad {
    position: relative;
    overflow-x: hidden; /* Ẩn phần trượt ra ngoài lề */
    transition: height 0.3s ease; /* Hiệu ứng mượt khi chiều cao thay đổi */
}

/* Screen mặc định ẩn */
.va-screen {
    display: none;
    width: 100%;
    /* Không dùng transition opacity cũ nữa */
    opacity: 1; 
}

/* Screen đang active thì hiện */
.va-screen.active {
    display: block;
}

/* Class hỗ trợ Animation */
.va-animating {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
}

/* --- KEYFRAMES --- */

/* Hướng NEXT: Cũ trượt sang Trái, Mới từ Phải vào */
.slide-out-left { animation: slideOutLeft 0.4s forwards cubic-bezier(0.25, 1, 0.5, 1); }
.slide-in-right { animation: slideInRight 0.4s forwards cubic-bezier(0.25, 1, 0.5, 1); }

/* Hướng BACK: Cũ trượt sang Phải, Mới từ Trái vào */
.slide-out-right { animation: slideOutRight 0.4s forwards cubic-bezier(0.25, 1, 0.5, 1); }
.slide-in-left  { animation: slideInLeft 0.4s forwards cubic-bezier(0.25, 1, 0.5, 1); }

@keyframes slideOutLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}
@keyframes slideInRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}
@keyframes slideInLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* OPTIONS */
.va-grid-moods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.va-opt-mood {
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.va-opt-mood:hover, .va-opt-mood.selected {
    background: #ecf8fd;
    border-color: #007488;
    color: #007488;
    position: relative;
}
.va-chips-group { display: flex; flex-wrap: wrap; gap: 8px; }
.va-chip {
    padding: 10px 40px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
    position: relative;
}
.va-chip:hover, .va-chip.selected {
    background: #497fac;
    color: white;
    border-color: #497fac;
}
.va-budget-list {
    display: flex
;
    gap: 10px;
    flex-wrap: wrap;
}
.va-budget-item {
    display: flex;
    align-items: center;
    position: relative;
    width: 48%;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.va-budget-item:hover, .va-budget-item.selected, .va-pace-item.selected, .va-pace-item:hover {
    border-color: #007488;
    background: #ecf8fd;
    color: #007488;
    position: relative;
}
.b-icon { margin-right: 15px; }

/* BUTTONS */
.va-btn-primary { width: 100%; padding: 16px; border-radius: 14px; border: none; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 20px; background: #007488; color: white; transition: 0.2s; text-transform: none;}
button.va-btn-reset:before {
    content: "\f01e";
    font-family: 'FontAwesome';
    margin-right: 5px;
    font-size: 15px;
}
.va-btn-primary:disabled {
    background: #e0e6ed;
    cursor: not-allowed;
    color: black;
    opacity: 1;
}
.va-btn-back, .va-btn-reset {
    width: 100%;
    border: none;
    background: #e0e6ed;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    padding: 5px;
    text-transform: none;
    color: black;
    font-size: 1rem;
    border-radius: 14px;
}
.va-persona-msg {
    font-size: 15px;
}
.va-btn-reset {
    background: #999999 !important;
    margin: 0;
    color: white !important;
    border-radius: 10px;
}

/* LOADING SCENE (NATURE) */
.va-scene-nature { text-align: center; padding-top: 30px; position: relative; height: 300px; }
.va-loading-text { font-weight: 700; color: #007488; font-size: 1.1rem; margin-bottom: 20px; }
.va-progress-track { width: 80%; margin: 0 auto; height: 30px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.va-progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #2781cf 0%, #005095 100%); transition: width 0.2s linear; }
.va-nature-wrapper { position: relative; height: 150px; margin-top: 20px; overflow: hidden; border-bottom: 3px solid #86efac; }
.va-sun { position: absolute; top: 10px; right: 20px; font-size: 3rem; animation: spinSun 20s linear infinite; }
.va-cloud { position: absolute; font-size: 2rem; animation: moveRight linear infinite; }
.c1 { top: 10px; left: -20%; animation-duration: 12s; }
.c2 { top: 50px; left: -40%; animation-duration: 16; font-size: 1.5rem; }
.va-bird { position: absolute; font-size: 1.5rem; animation: fly linear infinite; }
.b1 { top: 30px; left: -10%; animation-duration: 5s; }
.b2 { top: 60px; left: -20%; animation-duration: 6s; animation-delay: 2s; font-size: 1rem; }
.va-trees { position: absolute; bottom: 0; width: 100%; text-align: center; font-size: 2rem; opacity: 0.8; }
@keyframes spinSun { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes moveRight { from { left: -20%; } to { left: 120%; } }
@keyframes fly { 0% { left: -10%; transform: translateY(0); } 50% { transform: translateY(-20px); } 100% { left: 110%; transform: translateY(0); } }

/* REC BOX IMAGE (STATIC) */
.va-rec-box-img {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 10px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.rec-img { width: 60px; height: 60px; border-radius: 8px; background-size: cover; background-position: center; background-color: #cbd5e1; flex-shrink: 0; }
.rec-info { flex-grow: 1; }
.rec-label { font-size: 0.7rem; color: #64748b; font-weight: 700; text-transform: uppercase; }
.rec-name { font-size: 1rem; color: #1e293b; font-weight: 700; line-height: 1.2; }

/* TABS & PARTNERS */
.va-tabs { display: flex; background: #f1f5f9; padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.va-tab-item { flex: 1; text-align: center; padding: 10px; font-weight: 700; color: #64748b; border-radius: 9px; cursor: pointer; }
.va-tab-item.active { background: #fff; color: #007488; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.va-tab-content { display: none; }
.va-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.va-section {
    margin-bottom: 30px;
}
.va-partner-btn {
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: black;
    overflow: hidden;
}
div#list-flights {
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
div#list-hotels {
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
div#list-activities {
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.va-sec-head {
    color: #007488;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 25px;
    background: linear-gradient(to right, #d3edff, #d3edff, transparent);
    display: block;
    padding: 5px 10px;
    border-left: 4px solid #2d95ee;
}
.va-ib-name {
    font-size: 15px !important;
    background: #d3edff;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #00a8ff;
    font-weight: 600;
    color: #064c59;
    line-height: 1.2;
    margin-bottom: 7px;
}
.va-ib-name:before {
    content: "\f005" "\f005" "\f005" "\f005" "\f005";
    font-family: 'FontAwesome';
    color: #ff8100;
    margin-right: 5px;
    font-size: 13px;
}
.va-partner-btn img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 99px;
    border: 1px solid lightgray;
    padding: 1px;
}
.va-partner-btn:hover {
    border-color: #007488;
    background: #f0f6f9;
    color: black;
}
.va-partner-btn.completed {
    border-color: #22c55e;
    background: #c1ffd4;
}
a.va-partner-btn.completed span {
    color: #016520;
}
div#links-transport .va-partner-btn.completed, a.va-app-btn.completed {
    border-color: transparent;
}
.va-partner-btn.completed::after {
    content: '\f058';
    font-family: "FontAwesome";
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 20px;
    color: green;
}
a.va-app-btn.completed:after {
    content: '\f058';
    font-family: "FontAwesome";
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 20px;
    color: white;
}
.va-budget-item.selected:after, .va-pace-item.selected:after, .va-opt-mood.selected:after, .va-country-item.selected:after {
    content: "\f058";
    font-family: 'FontAwesome';
    position: absolute;
    right: 5px;
    top: 0;
    font-size: 20px;
}

a#link-tripadvisor p {
    margin-bottom: 5px;
}
.va-review-card img { height: 30px; margin-bottom: 10px; }
.va-persona { background: #f0fdf4; padding: 15px; border-radius: 16px; display: flex; align-items: center; margin-bottom: 20px; border: 1px solid #bbf7d0; gap: 15px;}
.va-persona-name {
    font-weight: 800;
    color: #007488;
    font-size: 1rem;
    text-transform: uppercase;
}
a#link-tripadvisor:hover {
    color: white;
    background: #039372;
}
.va-scroll-area a:hover {
    color: currentColor;
}
/* ... Giữ nguyên toàn bộ CSS cũ của bạn ở trên ... */

/* NEW: AI ARTICLE STYLE */
.va-ai-article {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.va-article-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}
.va-article-body {
    font-size: 15px;
    line-height: 1.5;
    color: #334155;
}
.va-article-body p { margin-bottom: 12px; }
.va-article-body b { color: #007488; font-weight: 700; }
.va-article-body ul { margin-left: 20px; margin-bottom: 12px; }
.va-article-body li { margin-bottom: 5px; }


/* Updated Item Box with Reason */

.va-ib-head { display: flex; gap: 15px; margin-bottom: 12px; align-items: flex-start; }
.va-ib-icon {
    width: 95px;
    height: 95px;
    background-size: cover;
    background-color: #f1f5f9;
    border-radius: 10px;
    flex-shrink: 0;
}
.va-ib-info { flex-grow: 1; }

.va-ib-reason {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
    max-height: 50px;
    overflow-y: hidden;
}
.va-ib-reason span { color: #059669; font-weight: 700; text-transform: uppercase; font-size: 0.7rem; margin-right: 5px; }

/* New Step 3 Pace */
.va-pace-list {
    display: flex
;
    gap: 10px;
    flex-wrap: wrap;
}
.va-pace-item {
    display: flex;
    align-items: center;
    position: relative;
    width: 48%;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.va-pace-item:hover {
    border-color: #007488;
    background: #ecf8fd;
}
button.va-btn-back:before {
    content: "\f177";
    font-family: 'FontAwesome';
    margin-right: 5px;
}
.p-icon { margin-right: 15px; }
.p-text { font-size: 16px; color: #334155; }
.b-text {
    color: #334155;
}
/* [MỚI] CSS CHO SELECT BOX TÙY CHỈNH */
.va-select-wrapper {
    position: relative;
    width: 100%;
}
.va-select-wrapper::after {
    content: '▼'; /* Icon mũi tên dropdown */
    font-size: 12px;
    color: #888;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Cho phép click xuyên qua icon */
}
#va-month-select {
    width: 100%;
    padding: 16px !important;
    background: #f8fafc;
    border-radius: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: 0.2s;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    height: 60px;
    box-shadow: none;
}
/* Style khi người dùng chọn một giá trị (không phải placeholder) */
#va-month-select:valid {
    color: #077488 !important;
    font-weight: 600;
}
/* Style cho placeholder */
#va-month-select:invalid {
    color: #999;
}
/* =========================================
   NEW: STEP 2 (PROFILE, GENDER, AGE, COUNTRY)
   ========================================= */
.va-label {
    font-size: 18px;
    font-weight: 700;
    color: #007488;
    margin-bottom: 15px;
    margin-top: 10px;
    letter-spacing: 0.5px;
}
.va-screen.active h3 {
    color: #007488;
    margin-top: 15px;
    font-size: 18px;
}
/* Chip nhỏ cho Gender/Age/History */
.va-chip-sm.selected, .va-chip-sm:hover {
    background: #497fac;
    color: white;
    border-color: #497fac;
}
.va-chip-sm {
    display: inline-block;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s 
ease;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 10px 40px;
    border-radius: 30px;
}

/* Country Grid */
.va-country-grid {
    display: grid
;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* Style cho thanh cuộn trong Grid */
.va-country-grid::-webkit-scrollbar { width: 5px; }
.va-country-grid::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

.va-country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
}
.va-country-item .flag {
    font-size: 1.2rem;
}
.va-budget-item.selected strong, .va-pace-item.selected strong {
    color: #077488;
}
.va-country-item.selected {
    font-weight: 700;
    border-color: #007488;
    background: #ecf8fd;
    color: #007488;
    position: relative;
}

/* =========================================
   NEW: GETTING AROUND APPS (GRAB/XANHSM)
   ========================================= */
.va-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}
.va-app-btn {
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
}

.va-app-btn img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    margin-bottom: 5px;
    border-radius: 99px;
    border: 1px solid lightgray;
    padding: 1px;
}
.va-app-btn div {
    font-size: 0.7rem;
    color: #ffff;
    line-height: 1.2;
    text-align: center;
    margin-top: 8px;
    background: #ffffff1f;
    padding: 7px 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid #ffffff61;

}
.va-app-btn strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}
div#step-loading:has(.va-toon-scene) {
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    width: calc(100% + 40px) !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none;
}
div#links-transport span {
    font-size: 14px;
    color: #ffff;
    line-height: 1.2;
    text-align: center;
    margin-top: 8px;
    background: #ffffff1f;
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid #ffffff61;

}
a.va-app-btn:first-child {
    background-image: url(https://cdn.sanity.io/images/050wyata/production/27ef19004061a635ec19b075776f8fc6fbb5ff90-1680x1680.webp?w=1273&h=1273&fm=webp&q=100);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}
a.va-app-btn:last-child {
    background-image: url(https://vietadvisor.travel/wp-content/uploads/2025/12/xanhsm.jpg);
    background-size: cover;
    width: 100%;
    height: 100%;
}
div#links-transport a.va-partner-btn:first-child {
    background-image: url(https://ik.imgkit.net/3vlqs5axxjf/PCWW/uploadedImages/Articles/News/2022/March/klook-rebrand.jpeg?tr=w-800%2Ch-400%2Cfo-auto);
    background-size: cover;
    width: 100%;
    height: 100%;
}
div#links-transport a.va-partner-btn:last-child {
    background-image: url(https://cdn.airalo.com/images/11fd337e-da6e-4a25-9de3-c3da45df731f.png);
    background-size: 120%;
    width: 100%;
    height: 100%;
}
a.va-partner-btn:after {
    content: "\f35d";
    font-family: 'FontAwesome';
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 15px;
    color: #222222;
}
div#links-transport a.va-partner-btn:last-child span {
    color: black;
}
div#links-transport a.va-partner-btn:after {
    color: white;
}
div#links-transport a.va-partner-btn:hover, .va-app-btn:hover {
    border: 1px solid transparent;
}
a.va-app-btn:after {
    content: "\f35d";
    font-family: 'FontAwesome';
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 18px;
    color: white;
}
@media (max-width: 768px) {
.va-chat-list-item {
    flex-direction: column;
    gap: 5px;
}

.va-options-grid:has(div#va-opts-container) {
    padding: 20px;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 17%);
    border: 1px solid #d8d8d8;
    margin: 0 auto !important;
    border-radius: 30px 30px 0px 0px !important;
}
div#va-chat-options:has(.va-review-card) {
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 17%);
    border: 1px solid #d8d8d8;
    margin: -1px auto !important;
    border-radius: 30px 30px 0px 0px !important;
}
div#va-chat-options:has(.va-manual-chat-btn) {
    padding: 20px 10px !important;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 17%);
    border: 1px solid #d8d8d8;
}
div#va-chat-options {
    padding: 0px !important;
    margin: 0 auto !important;
}
.va-scroll-opts {
    grid-template-columns: 1fr 1fr 1fr;
}

.va-chat-input-wrapper {
    border-radius: 30px 30px 0px 0px !important;
    margin: 10px auto 0 !important;
}
.va-chat-messages {
        padding: 15px 15px 30px !important;
        min-width: 100% !important;
    }
.va-cli-top-section {
    display: flex;
    gap: 10px;
}
.va-card-popup {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

.va-vendor-modal {width: 85% !important;}
    .va-chat-btn-group {
        gap: 05px !important;
        margin-top: 5px !important;
    }
    .va-iti-day .va-chat-btn-group {
    margin-top: -3px !important;
}

a.va-mini-check-btn.gmap-btn {
    min-width: fit-content !important;
    display: flex;
    align-items: center;
    padding: 6px 13px !important;
}
.va-btn-check-avail {
    width: 100% !important;
    margin-top: 0 !important;
}
.va-scroll-area {
    padding: 15px;
}
.va-scroll-area {max-height: 100vh !important;}
.va-ib-icon {
    width: 110px;
    height: 110px;
}

.va-ib-reason {
    max-height: 50px;
    overflow-y: scroll;
}
}
/* SKELETON SHIMMER ANIMATION */
.va-skeleton-shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px; 
    animation-duration: 1.5s;
    animation-fill-mode: forwards; 
    animation-iteration-count: infinite;
    animation-name: va-shimmer;
    animation-timing-function: linear;
    position: relative;
    border-radius: 8px; /* Match element radius */
}

@keyframes va-shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* SKELETON BUTTONS (Match .va-partner-btn dimensions) */
.va-skeleton-btn {
    width: 100%;
    height: 90px; /* Matched to va-partner-btn height */
    border-radius: 12px;
}
/* VENDOR POPUP STYLES */
.va-vendor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 70%);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}
.va-vendor-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 470px;
    height: auto;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}
div#links-transport {
    display: grid
;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
        @keyframes vaFadeIn { from {opacity:0; transform: translateY(10px);} to {opacity:1; transform: translateY(0);} }
.va-vendor-title {
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #077488;
    font-size: 19px;
}
.va-vendor-list {
    display: grid
;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
        
        /* Close button for vendor modal */
.va-vendor-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    background: #c9e4ff;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 100;
}
        
/* The Check Availability Button */
.va-btn-check-avail {
    background: transparent;
    color: #fff;
    border: none;
    padding: 3px 0;
    border-radius: 99px;
    font-weight: 400;
    cursor: pointer;
    width: 55%;
    display: block;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 0;
    margin-right: 0;
    transition: background 0.2s;
    font-size: 14px;
    text-transform: none;
    position: relative;
    display: flex
;
    align-items: center;
    justify-content: space-between;
}
.va-btn-check-avail span {
    background: #ee4d2d;
    width: calc(100% - 90px);
    border-radius: 99px;
}
.va-btn-logos img:nth-child(n+5) {
    display: none;
}
div#list-flights button.va-btn-check-avail span {
    background: #003b95;
}
div#list-activities button.va-btn-check-avail span {
    background: #ee4d2d;
}
div#list-flights button.va-btn-check-avail {
    background: transparent;
}
div#list-activities button.va-btn-check-avail {
    background: transparent;
}
/* Style cho nhóm logo bên phải */
.va-btn-logos {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex
;
    align-items: center;
    width: 62px;
}
.va-btn-logos img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    margin-left: -5px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
        .va-btn-logos img:first-child { margin-left: 0; }
        /* ------------------- */
/* --- NEW: Image Note Icon Styles --- */
        .va-ib-icon { position: relative; } /* Ensure parent is relative */
        
        .va-img-note {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 16px;
            height: 16px;
            background: rgba(0,0,0,0.6);
            color: #fff;
            border-radius: 50%;
            font-size: 10px;
            font-weight: bold;
            font-family: serif;
            font-style: italic;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: help;
            z-index: 5;
        }
        
        /* CSS Tooltip Logic */
        .va-img-note::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 22px; /* Place above icon */
            right: 0;
            background: #2d3436;
            color: #fff;
            padding: 4px 8px;
            font-size: 11px;
            border-radius: 4px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s;
            pointer-events: none;
            font-style: normal;
            font-weight: normal;
            z-index: 10;
        }
        
        .va-img-note:hover::after {
            opacity: 1;
            visibility: visible;
        }


/* --- MAP MODERN UI --- */
#va-map {
    height: 400px;
    width: 100%;
    border-radius: 16px;
    z-index: 1;
}
a.va-btn-map:before {
    content: "";
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Google_Maps_icon_%282020%29.svg/512px-Google_Maps_icon_%282020%29.svg.png);
    display: inline-block;
    width: 9px;
    height: 13px;
    background-size: cover;
    margin-right: 5px;
    vertical-align: -3px;
    position: relative;
}
.leaflet-container {
    font-family: 'Outfit';
}
.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    text-align: center;
    width: 24px;
    height: 24px;
    font: 16px / 24px Tahoma, Verdana, sans-serif;
    color: #ffff;
    text-decoration: none;
    background: black;
    border-radius: 50%;
    line-height: 1.4;
    z-index: 2;
}
.leaflet-container a.leaflet-popup-close-button:hover, .leaflet-container a.leaflet-popup-close-button:focus {
    color: #ffff;
}
/* Custom Marker Icons */
.va-marker-pin {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    background: #00b894; /* Màu xanh ngọc hiện đại */
    position: absolute;
    transform: rotate(-45deg) !important;
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* --- GIỮ NGUYÊN CSS CŨ CỦA BẠN --- */
.va-marker-pin:has(i.fa-solid.fa-utensils) { background: #bd00af; } /* Restaurant */
.va-marker-pin:has(i.fa-solid.fa-shop) { background: #07a337; } /* Market */
.va-marker-pin:has(i.fa-solid.fa-landmark) { background: #752e2e; } /* Museum */
.va-marker-pin:has(i.fa-solid.fa-umbrella-beach) { background: #002593; } /* Resort/Beach */
.va-marker-pin:has(i.fa-solid.fa-camera) { background: #ff00bc; } /* Activity (Old) */
.va-marker-pin:has(i.fa-solid.fa-mug-saucer) { background: goldenrod; } /* Cafe (Old) */
.va-marker-pin:has(i.fa-solid.fa-gopuram) { background: #6d1900; } /* Pagoda */
.va-marker-pin:has(i.fa-solid.fa-camera-retro) { background: #ff5270; } /* Viewpoint */
.va-marker-pin:has(i.fa-solid.fa-scroll) { background: #181717; }
.va-marker-pin:has(i.fa-solid.fa-tree) { background: green; } /* Park */
.va-marker-pin:has(i.fa-solid.fa-church) { background: darkgoldenrod; } /* Church */
.va-marker-pin:has(i.fa-solid.fa-place-of-worship) { background: black; } /* Religious */

/* --- BỔ SUNG CÁC ICON CÒN THIẾU TRONG JS --- */

.va-marker-pin:has(i.fa-solid.fa-house-chimney) { 
    background: #d35400; /* Cam đất (Homestay ấm cúng) */
}
.va-marker-pin:has(i.fa-solid.fa-building) { 
    background: #7f8c8d; /* Xám (Apartment) */
}

/* 2. Nhóm Ăn Uống (Tông nóng/nổi bật) */
.va-marker-pin:has(i.fa-solid.fa-mug-hot) { 
    background: goldenrod; /* Cafe (Giống mug-saucer) */
}
.va-marker-pin:has(i.fa-solid.fa-martini-glass) { 
    background: #8e44ad; /* Tím đậm (Bar/Nightlife) */
}
.va-marker-pin:has(i.fa-solid.fa-burger) { 
    background: #e67e22; /* Cam tươi (Food/Street food) */
}

/* 3. Nhóm Mua Sắm */
.va-marker-pin:has(i.fa-solid.fa-bag-shopping) { 
    background: #ff7675; /* Hồng san hô (Shopping Mall) */
}

/* 4. Nhóm Văn Hóa/Lịch Sử */
.va-marker-pin:has(i.fa-solid.fa-monument) { 
    background: #546E7A; /* Xám xanh (Di tích lịch sử) */
}
.va-marker-pin:has(i.fa-solid.fa-archway) { 
    background: #b38600; /* Xanh cổ vịt (Cổng thành/Landmark) */
}

/* 5. Nhóm Thiên Nhiên/Hoạt Động */
.va-marker-pin:has(i.fa-solid.fa-water) { 
    background: #00cec9; /* Xanh ngọc (Biển/Hồ) */
}
.va-marker-pin:has(i.fa-solid.fa-person-hiking) { 
    background: #ee4d2d; /* Xanh lá tươi (Activity/Hiking) */
}
.va-marker-pin:has(i.fa-solid.fa-bicycle) { 
    background: #4834d4; /* Xanh dương đậm (Đạp xe/Thể thao) */
}

/* 6. Mặc định */
.va-marker-pin:has(i.fa-solid.fa-location-dot) { 
    background: #eb4d4b; /* Đỏ tiêu chuẩn Google Map */
}
/* [MỚI] Màu cho icon Bed (Cái giường) - Xanh Navy sáng hơn chút */
.va-marker-pin:has(i.fa-solid.fa-bed) { 
    background: #0c2461; 
}
.leaflet-control-attribution.leaflet-control {
    display: none;
}
.va-marker-pin::after {
    content: '';
    width: 25px;
    height: 25px;
    margin: -5px 8px -5px 8px; /* Căn giữa icon bên trong */
    background: #fff;
    position: absolute;
    border-radius: 50%;
}
.va-marker-icon.hotel .va-marker-pin { background: #003b95; } /* Màu tím cho khách sạn */
.va-marker-icon.activity .va-marker-pin { background: #ee4d2d; } /* Màu đỏ cam cho activity */

/* Icon bên trong marker (Emoji hoặc FontAwesome) */
/* Sửa lại class này để icon FontAwesome hiển thị đẹp */
.va-marker-emoji {
    transform: rotate(45deg); /* Giữ nguyên để icon đứng thẳng (do pin xoay 45 độ) */
    font-size: 14px; /* Kích thước icon */
    color: #fff; /* Icon màu trắng cho nổi trên nền màu */
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg); /* Căn giữa tuyệt đối + xoay */
    width: 100%;
    text-align: center;
    line-height: 1;
}

/* Ẩn cái chấm trắng cũ (nếu có) để icon to rõ hơn */
.va-marker-pin::after {
    display: none; 
}
.va-map-card:has(.tag-activity) .va-btn-aff {
    background: #ee4d2d;
}

/* POPUP CARD STYLE (Wanderlog Style) */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.leaflet-popup-content {
    margin: 0 !important;
    width: 270px !important; /* Cố định chiều rộng card */
}
.leaflet-popup-tip {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: black;
}
.va-map-card {
    height: 333px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.va-map-img {
    height: 110px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
}
.va-map-img .va-loader {
    position: absolute; top:50%; left:50%; transform:translate(-50%, -50%);
    font-size: 10px; color: #999;
}
.va-map-body {
    padding: 10px;
}
.va-map-tag {
    top: 10px;
    left: 10px;
    position: absolute;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 600;
    z-index: 2;
}
.tag-hotel { background: #6c5ce7; }
.tag-activity { background: #ff7675; }

.va-map-title {
    font-size: 14px; font-weight: 700; color: #ffff; margin: 0 0 5px 0;
    line-height: 1.3;
}
.va-map-desc {
    font-size: 12px; color: #dddddd; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 12px;
}
.va-map-actions {
    display: flex; gap: 10px;
}
.va-btn-map, .va-btn-aff {
    flex: 1; text-align: center; padding: 8px 0;
    border-radius: 6px; font-size: 12px; font-weight: 600;
    text-decoration: none; transition: 0.2s;
}
.va-btn-map {
    background: #ffff; color: #2d3436;
}

.va-btn-aff {
    background: #1f6499;
    color: #fff !important;
}

.va-btn-aff.disabled { background: #b2bec3; pointer-events: none; }
        /* --- FEATURE 1: Email Form --- */
.va-email-box {
    padding: 10px;
    border-radius: 12px;
    display: flex
;
    gap: 10px;
    background: #d3edff;
    margin-bottom: 20px;
}

        .va-email-input {
            flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
        }
.va-email-btn {
    background: #007488;
    color: #fff;
    border: none;
    padding: 0px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-transform: none;
}
.va-email-msg {
    font-size: 12px;
    margin: -5px 5px 10px;
    color: #00b894;
    display: none;
}
input#va-email-val {
    margin: 0;
    background: white;
    border: 0;
}
/* --- VIBRANT TOON SCENE (DETAILED) --- */
#step-loading {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.va-toon-scene {
    position: relative;
    width: 100%;
    height: 100%; /* Tăng chiều cao để chứa núi */
    background: #81D4FA;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* 1. SKY & SUN */
.va-toon-sky {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #4FC3F7 0%, #B3E5FC 80%, #E1F5FE 100%);
    z-index: 0;
}

.va-toon-sun {
    position: absolute;
    top: -20px; right: -20px;
    z-index: 1;
}
.va-toon-sun svg { animation: sunRotate 20s linear infinite; }
@keyframes sunRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 2. HOT AIR BALLOON (NEW) */
.va-toon-balloon {
    position: absolute;
    top: 60px; left: 15%;
    z-index: 2;
    animation: balloonFloat 8s ease-in-out infinite alternate;
}
@keyframes balloonFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(2deg); }
}

/* 3. MOUNTAINS (NEW - SCROLLING) */
.va-toon-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 120px;
    z-index: 3;
    /* Vẽ núi bằng CSS Gradient (Sharp edges) */
    background-image: linear-gradient(135deg, #7CB342 25%, transparent 25%), 
                      linear-gradient(225deg, #7CB342 25%, transparent 25%),
                      linear-gradient(135deg, #AED581 25%, transparent 25%), 
                      linear-gradient(225deg, #AED581 25%, transparent 25%);
    background-position: 0 0, 40px 0, 20px 40px, 60px 40px;
    background-size: 80px 80px;
    background-repeat: repeat-x;
    opacity: 0.8;
    animation: mountainScroll 25s linear infinite;
}
@keyframes mountainScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-80px); } }

/* 4. CLOUDS (Better layers) */
.va-toon-cloud {
    position: absolute;
    width: 200%;
    background-repeat: repeat-x;
    background-position: bottom;
}
.back {
    bottom: 100px; z-index: 4; height: 100px;
    background-image: radial-gradient(circle at 50% 100%, #FFF 30px, transparent 31px),
                      radial-gradient(circle at 20% 90%, #FFF 20px, transparent 21px);
    background-size: 120px 100px;
    opacity: 0.6;
    animation: cloudMove 20s linear infinite;
}
.front {
    bottom: -30px; z-index: 15; height: 120px;
    background-image: radial-gradient(circle at 50% 100%, #FFF 50px, transparent 51px),
                      radial-gradient(circle at 85% 90%, #FFF 35px, transparent 36px),
                      radial-gradient(circle at 15% 110%, #FFF 40px, transparent 41px);
    background-size: 250px 120px;
    animation: cloudMove 8s linear infinite;
}
@keyframes cloudMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
/* --- V2: HIGH MOUNTAINS & LAYERED CLOUDS --- */

/* 1. NÚI CAO HƠN */
.va-new-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 260px; /* Tăng từ 180px -> 260px để núi cao hơn */
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.va-mnt {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: 50% 100%;
}

.mnt-back {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300' preserveAspectRatio='none'%3E%3Cpath d='M0,150 C150,50 350,250 500,150 C650,50 850,250 1000,150 L1000,300 L0,300 Z' fill='%23C5E1A5'/%3E%3C/svg%3E");
    z-index: 1;
    animation: mountainScroll 40s linear infinite;
    bottom: 40px; /* Đẩy núi sau lên cao hơn chút */
}

.mnt-front {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300' preserveAspectRatio='none'%3E%3Cpath d='M0,200 C200,100 300,250 500,200 C700,150 800,250 1000,200 L1000,300 L0,300 Z' fill='%237CB342'/%3E%3C/svg%3E");
    z-index: 2;
    animation: mountainScroll 20s linear infinite;
}

/* 2. MÂY SAU LƯNG (BACK CLOUDS) */
.va-sky-clouds-wrap {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; /* Sau máy bay */
    pointer-events: none;
}

/* 3. MÂY CHE MÁY BAY (FRONT CLOUDS) */
.va-front-clouds-wrap {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 15; /* TRƯỚC máy bay (plane là 10) */
    pointer-events: none;
}

.va-fly-cloud {
    position: absolute;
    right: -250px;
    animation: flyCloud linear infinite;
}

/* Config từng đám mây */
/* Mây sau */
.c-1 { top: 10%; animation-duration: 35s; opacity: 0.8; }
.c-2 { top: 25%; animation-duration: 20s; animation-delay: -5s; }
.c-3 { top: 60%; animation-duration: 25s; animation-delay: -10s; }
.c-4 { top: 15%; animation-duration: 18s; animation-delay: -8s; left: 20%; right: auto; } /* Mây nhỏ bay lơ lửng */
.c-5 { top: 5%;  animation-duration: 40s; animation-delay: -2s; opacity: 0.5; }

/* Mây trước (Che máy bay) */
.f-1 { 
    top: 30%; 
    animation-duration: 7s; /* Bay nhanh */
    animation-delay: 0s; 
}
.f-2 { 
    top: 45%; 
    animation-duration: 9s; 
    animation-delay: 3s; 
}

@keyframes flyCloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(-130vw); }
}

@keyframes mountainScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .va-new-mountains { height: 200px; }
    /* Mobile thì giảm bớt mây che mặt cho đỡ rối */
    .f-1 { top: 30%; animation-duration: 5s; opacity: 0.6; }
}
/* 5. PLANE DETAILS */
.va-toon-plane-wrap {
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: planeBob 3s ease-in-out infinite;
}
.va-toon-plane {
    filter: drop-shadow(0 15px 0 rgba(0,0,0,0.1));
}
/* --- [NEW] LONG & DENSE CONTRAILS CSS --- */
.va-toon-contrails-wrap {
    position: absolute;
    top: 40%;
    left: 50%;
    /* Dịch chuyển điểm bắt đầu của khói ra sau đuôi máy bay */
    transform: translate(-145px, -50%); 
    /* Tăng chiều rộng để chứa vệt khói dài hơn */
    width: 300px; 
    height: 100px;
    z-index: 9; 
    pointer-events: none; 
    /* Bay theo máy bay */
    animation: planeBob 3s ease-in-out infinite; 
}

/* Sửa lại SVG bên trong container khói */
.va-toon-contrails-wrap svg {
    overflow: visible; /* Cho phép các circle bay ra ngoài viewBox */
}

.contrails circle {
    /* [TĂNG TẦN SUẤT] Giảm thời gian animation xuống */
    animation: puff 2s linear infinite; 
    transform-origin: center;
}

/* [TĂNG TẦN SUẤT] Chia nhỏ delay để khói dày đặc hơn */
.contrails circle:nth-child(1)  { animation-delay: 0s; }
.contrails circle:nth-child(2)  { animation-delay: -0.2s; }
.contrails circle:nth-child(3)  { animation-delay: -0.4s; }
.contrails circle:nth-child(4)  { animation-delay: -0.6s; }
.contrails circle:nth-child(5)  { animation-delay: -0.8s; }
.contrails circle:nth-child(6)  { animation-delay: -1.0s; }
.contrails circle:nth-child(7)  { animation-delay: -1.2s; }
.contrails circle:nth-child(8)  { animation-delay: -1.4s; }
.contrails circle:nth-child(9)  { animation-delay: -1.6s; }
.contrails circle:nth-child(10) { animation-delay: -1.8s; }

@keyframes puff { 
    0% {
        /* Bắt đầu từ tâm SVG, nhỏ và trong suốt */
        transform: translateX(0) scale(0.2); 
        opacity: 0;
        r: 8; 
    }
    10% {
        /* Phụt ra, to lên và rõ nét */
        opacity: 0.8;
        r: 12; 
    }
    100% {
        /* [DÀI HƠN] Bay về phía sau rất xa */
        transform: translateX(-300px) scale(1.8); 
        opacity: 0;
        r: 16; /* To hơn nữa trước khi tan biến */
    }
}


.wing-light { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { fill: #fab1a0; } }
@keyframes planeBob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -45%); } }

/* 6. UI CARD */
.va-toon-ui {
    position: absolute;
    bottom: 25px;
    width: 85%;
    background: #fff;
    border-radius: 16px;
    padding: 15px 20px;
    z-index: 20;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-bottom: 5px solid #bdc3c7;
}

.va-loading-title {
    font-size: 15px; font-weight: 800; color: #2c3e50;
    text-transform: uppercase; margin-bottom: 12px;
}

.va-toon-bar-track {
    width: 100%;
    height: 16px;
    background: #e4e7e7;
    border-radius: 8px;
    overflow: hidden;
    border: 0px solid #bdc3c7;
}
.leaflet-touch .leaflet-bar a:first-child, .leaflet-touch .leaflet-bar a:last-child {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.4);
    border-radius: 99px;
    margin-bottom: 10px;
}
.va-progress-fill {
    height: 100%; width: 0%;
    background: #2ecc71; border-radius: 6px;
    position: relative; transition: width 0.3s ease;
    border-right: 3px solid #27ae60;
}

.va-candy-stripe {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.4) 10px, rgba(255,255,255,0.4) 20px);
    animation: stripeMove 1s linear infinite;
}
@keyframes stripeMove { 0% { background-position: 0 0; } 100% { background-position: 28px 0; } }

/* Container giữ chiều cao cố định để không bị nhảy layout */
.va-loading-steps {
    margin-top: 12px;
    height: 0; 
    overflow: hidden; 
    position: relative;
    width: 100%;
    text-align: center;
}

/* Các dòng chữ xếp chồng lên nhau tại cùng 1 vị trí */
.va-loading-steps span {
    display: block; 
    width: 100%; 
    position: absolute;
    left: 0;
    top: 0;
    font-size: 13px; 
    font-weight: 600; 
    color: #7f8c8d;
    
    /* Trạng thái ẩn mặc định */
    opacity: 0; 
    transform: translateY(10px); /* Nằm thấp xuống 1 chút */
    transition: all 0.4s ease-out; /* Hiệu ứng trượt lên mượt mà */
    
    /* QUAN TRỌNG: Tắt animation tự động để tránh xung đột */
    animation: none !important; 
}

/* Khi JS thêm class .active thì hiện lên */
.va-loading-steps span.active {
    opacity: 1;
    transform: translateY(0); /* Trượt về vị trí chuẩn */
}
/* --- [NEW] MAP "FIND MORE" BUTTON --- */
.leaflet-control-custom button {
    background-color: white;
    border: none;
    border-radius: 99px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    transition: all 0.2s ease-in-out;
}
.leaflet-control-custom button:hover {
    background-color: #f4f4f4;
}
.leaflet-control-custom button i {
    font-size: 16px;
    color: #555;
}
.leaflet-control-custom button.loading {
    background-color: #007488;
    cursor: wait;
}
.leaflet-control-custom button.loading i {
    color: white;
}
.leaflet-bar.leaflet-control.leaflet-control-custom {
    border-radius: 99px;
}

/* --- [NEW] NEW MARKER ANIMATION --- */
.new-marker .va-marker-pin {
    animation: dropIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dropIn {
    0% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: 0px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}
/* --- FIX LỖI GIẬT MÀN HÌNH (ANTI-JERK) --- */

/* 1. Xóa padding của khung cuộn chính (để màn loading được tràn viền tự nhiên) */
.va-scroll-area {
    padding: 10px;
    overflow-x: hidden !important;
    overflow-y: scroll;
    max-height: 100%;
    flex: 1;
}

/* 2. Thêm padding lại cho các màn hình nội dung (Step 1, 2, 3, Result) để văn bản không sát lề */
#step-1, #step-2, #step-3, #step-result {
    padding: 10px;
    width: 100%;
    box-sizing: border-box; /* Đảm bảo padding không làm vỡ khung */
}

/* 3. Riêng màn hình Loading: Full 100%, không cần margin âm nữa */
div#step-loading:has(.va-toon-scene) {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* 4. Căn chỉnh lại Header (Tiêu đề Vietadvisor) vì đã xóa padding cha */
.va-content-pad {
    /* Đảm bảo container bao ngoài giữ đúng kích thước */
    width: 100%;
    box-sizing: border-box;
}
.va-header-content {
    /* Thêm padding cho tiêu đề vì khung cha đã mất padding */
    padding: 20px 20px 0 20px; 
}
 div#va-cost-render {
    background: #fcfdf0;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border: 1px solid #cdbf17;
}
 .va-cost-icon {
    font-size: 32px; /* Kích thước icon vương miện */
    margin-right: 15px;
}
.va-cost-content {
    flex: 1; /* Để phần text chiếm hết không gian còn lại */
}
.va-cost-title {
    font-size: 16px;
    font-weight: 800;
    color: #c1a300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    display: block;
}
.va-cost-details {
    display: flex;
    align-items: center;
    gap: 4px;
}
.va-cost-amount {
    font-size: 17px;
    font-weight: 800;
    color: #000000;
    line-height: 1;
}
.va-cost-note {
    font-size: 13px;
    color: #9aa5b3;
    line-height: 1;
}
/* --- NEW FEATURE: FULL IMAGE MAP CARD --- */

.va-map-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    z-index: 1;
    transition: transform 0.3s;
}
.va-map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgb(0 0 0) 10%, rgb(0 0 0 / 20%) 50%, rgb(0 0 0 / 0%) 100%);
    z-index: 1;
}
.va-map-body {
    position: relative;
    z-index: 3;
    padding: 12px;
    color: #fff;
    width: 100%;
}

.va-map-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}
.va-btn-map, .va-btn-aff {
    flex: 1;
    padding: 6px 0;
    text-align: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
        min-width: fit-content;
}
.va-map-shortcode-wrapper a.va-btn-map {
    color: black !important;
}
.va-card-popup.pop-in .va-btn-add-iti {
    display: none;
}
.va-btn-map { background: ffff; color: #fff; backdrop-filter: blur(5px); }
.va-btn-aff { background: #007AFF; color: #fff; }
.va-btn-aff:hover { background: #0062b8; color: #fff; }
.va-btn-aff.disabled { background: #555; cursor: wait; }

/* Nút Add (+) */
.va-btn-add-iti {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    padding: 0 12px;
    line-height: 0;
    min-height: 26px;
}

/* --- SIDEBAR ITINERARY --- */
.va-itinerary-sidebar {
    position: absolute;
    top: 0; right: -320px; /* Ẩn mặc định */
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999; /* Cao hơn map controls */
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.va-itinerary-sidebar.open { right: 0; }

.va-iti-header {
    padding: 5px 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}
.va-iti-close {
    cursor: pointer;
    font-size: 25px;
    color: black;
    font-weight: 400;
}
.va-iti-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}
.va-iti-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    background: #fff;
    margin-bottom: 5px;
    transition: 0.2s;
}
.va-iti-img {
    width: 65px; height: 65px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}
.va-iti-info { flex: 1; overflow: hidden; }
.va-iti-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-iti-remove:before {
    content: "\f2ed";
    font-family: 'FontAwesome';
    font-size: 16px;
    margin-right: 5px;
}
.va-iti-remove {
    color: #e31409;
    cursor: pointer;
    font-size: 0;
    height: auto;
    line-height: 0;
    margin-top: -10px;
}
.va-iti-form {
    display: flex;
    gap: 10px;
}

.va-iti-footer {
    padding: 10px;
    background: #bfcfe3;
}
.va-iti-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}
.va-iti-form button {
    min-width: max-content;
    padding: 0 7px 2px;
    background: white;
    color: black;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    min-height: 0;
    text-transform: none;
    font-size: 12px;
    line-height: 0;
    height: 35px;
}
.iti-count-badge {
    position: absolute;
    top: 10px;
    right: 50px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    padding: 0px 5px;
    border-radius: 10px;
    z-index: 3;
    display: none;
}
/* --- NÚT ITINERARY (Bên cạnh nút Close) --- */
.va-map-iti-btn {
    position: absolute;
    top: 15px; right: 55px; /* Nằm bên trái nút close */
    width: 32px; height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 2; /* Cao hơn map */
    color: #555;
    transition: 0.2s;
}

/* --- NÚT RESET IMAGE (Admin Only) --- */
.va-admin-reset-img {
    position: absolute;
    top: 10px; right: 10px;
    width: 24px; height: 24px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.3);
}
.va-admin-reset-img:hover { background: #d63031; transform: rotate(180deg); transition: 0.4s; }

/* Trạng thái nút Add khi đã thêm */
.va-btn-add-iti.added {
    background: #e0e0e0;
    color: black;
    cursor: default;
    pointer-events: none; /* Không bấm được nữa */
}
.va-map-reset-btn {
    position: absolute;
    top: 15px;
    right: 95px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 2;
    color: #555;
    transition: 0.2s;
}
.va-map-reload-btn {
    position: absolute;
    top: 15px;
    right: 135px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 2;
    color: #555;
    transition: 0.2s;
}
/* =========================================
   1. ORIGINAL STYLES (Giữ nguyên gốc)
   ========================================= */
:root{--bg:#F5F7FA;--card:#FFF;--text:#1D1D1F;--sub:#86868B;--blue:#0071E3;--green:#34C759;--red:#FF3B30;--orange:#FF9500;--radius:16px;--shadow:0 10px 40px rgba(0,0,0,0.15)}
.va-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999999; display: none; align-items: center; justify-content: center; }
.va-card-popup {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100%;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s 
cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.va-card-popup.pop-in { opacity: 1; transform: scale(1); }


/* Loading & Result Screen (GỐC) */
.va-screen { display: none; height: 100%; }
.va-screen.active { display: block; }
.va-map-wrap { height: 400px; width: 100%; background: #eee; border-radius: 12px; margin: 15px 0; overflow: hidden; position: relative; }
#va-map { width: 100%; height: 100%; }

/* Các style phụ trợ khác (Vendor, Animation...) giữ nguyên từ bản cũ của bạn */

/* =========================================
   2. NEW CHAT UI STYLES (Thêm mới)
   ========================================= */
.va-chat-container { display: flex; flex-direction: column; height: 100%; background: linear-gradient(45deg, #e5fff9, #89d7ac); font-family: 'Outfit'; position: absolute; top: 0; left: 0; width: 100%; z-index: 10; }
.va-chat-header {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.va-avatar { min-width: 42px; height: 42px; background: #E3F2FD; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.va-chat-info h3 {
    margin: 0;
    font-size: 16px;
    color: #1D1D1F;
    font-weight: 700;
    font-family: 'Outfit';
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 40px;
}
.va-chat-info span { font-size: 12px; color: #34C759; display: flex; align-items: center; gap: 4px; font-weight: 500; }
.va-chat-info span::before { content:''; width:6px; height:6px; background:#34C759; border-radius:50%; }
.va-chat-info span.typing { color: #007AFF; }
.va-chat-info span.typing::before { background: #007AFF; animation: pulse 1s infinite; }

.va-msg { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.7; position: relative; animation: msgFadeIn 0.3s ease-out forwards; opacity: 0; transform: translateY(10px); word-wrap: break-word; }
@keyframes msgFadeIn { to { opacity: 1; transform: translateY(0); } }

.va-msg.ai {
    align-self: flex-start;
    background: #eaf7ff;
    color: #1D1D1F;
    border-bottom-left-radius: 4px;
    border: 0px solid rgba(0, 0, 0, 0.03);
}
.va-msg.user { align-self: flex-end; background: #007AFF; color: #fff; border-bottom-right-radius: 4px; }
.va-msg strong, .va-msg.ai h3 {
    font-weight: 700;
    font-size: 17px;
}
.va-msg br {
    display: none;
}
.va-typing { display: none; align-self: flex-start; padding: 12px 15px; border-radius: 18px; border-bottom-left-radius: 4px; width: fit-content; margin-bottom: 5px;background: #eaf7ff;}
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #585858; margin-right: 3px; animation: wave 1.3s linear infinite; }
.dot:nth-child(2) { animation-delay: -1.1s; } .dot:nth-child(3) { animation-delay: -0.9s; margin-right: 0; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

.va-chat-input-area {
    background: white;
    padding: 0;
    border-top: 0px solid #eee;
    z-index: 99;
    position: sticky;
    bottom: 0;
    min-height: fit-content;
}
.va-chat-input-wrapper:before {
    content: "";
    position: absolute;
    top: -35px;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 55px;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(to top, #ffffff, white, transparent);
}
div#va-chat-options:has(.va-manual-chat-btn):before {
    content: "";
    position: absolute;
    top: -35px;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 55px;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(to top, #ffffff, white, transparent);
}
div#va-chat-options:has(.va-review-card):before {
    content: "";
    position: absolute;
    top: -35px;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 55px;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(to top, #ffffff, white, transparent);
}
.va-chat-input-wrapper {
    max-width: 800px;
    margin: 0px auto 10px;
    background: white;
    padding: 25px 15px !important;
    border-radius: 30px;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 17%);
    border: 1px solid #d8d8d8;
    transition: border-color 0.2s;
    position: relative;
}

.va-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    max-width: 750px;
    margin: auto;
}
.va-options-grid:has(div#va-opts-container) {
    padding: 20px;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 17%);
    border: 1px solid #d8d8d8;
    margin: 0 auto 30px;
    border-radius: 30px;
}
div#va-chat-options:has(.va-review-card) {
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 17%);
    border: 1px solid #d8d8d8;
    margin: 0 auto 30px;
    border-radius: 30px;
}
div#va-chat-options {
    padding: 10px;
    margin: -1px auto 10px;
    border-radius: 30px;
}
div#va-chat-options:has(.va-manual-chat-btn) {
    padding: 20px !important;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 17%);
    border: 1px solid #d8d8d8;
}
.va-opt-btn { background: #d9ebff; border: 1px solid #d9ebff; padding: 10px 16px; border-radius: 99px; font-size: 14px; cursor: pointer; transition: 0.2s; color: #1D1D1F; display: flex; align-items: center; gap: 6px; user-select: none; font-weight: 500; }
.va-opt-btn:hover { border-color: #007AFF; color: #007AFF; background: #F2F7FF; transform: translateY(-2px); }
.va-opt-btn:active { transform: scale(0.95); }
.va-opt-btn img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }

.va-scroll-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; width: 100%; max-height: 200px; overflow-y: auto; padding-right: 5px; }
/* Ẩn hoàn toàn các màn hình cũ không dùng */
.va-screen, #step-loading, #step-result { display: none !important; }

/* Tùy chỉnh vùng chat để chứa nội dung lớn */
.va-chat-container { display: flex; flex-direction: column; height: 100%; }
.va-chat-messages {
    padding: 20px 20px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
    max-width: 750px;
    min-width: 750px;
    margin: auto;
}
/* Bong bóng chat Rich Content (Chứa Card, List...) */
.va-msg.ai.rich-content {
    background: transparent; padding: 0; box-shadow: none; border: none;
    max-width: 100%; width: 100%;
}

/* Card Widget trong Chat */
.va-chat-card {
    background: #eaf7ff;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgb(213 236 255);
    animation: fadeUp 0.4s 
ease;
    max-width: 700px;
}
.va-chat-card h3 {
    font-size: 17px;
}
.va-card-title { font-weight: 800; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: #333; }
.va-card-title span { font-size: 18px; }

/* Item trong list (Hotel, Flight...) */
.va-chat-list-item {
    display: flex; gap: 10px; margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}
.va-chat-list-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.va-cli-img {
    width: 85px; height: 85px; border-radius: 8px; background-color: #eee;
    background-size: cover; background-position: center; flex-shrink: 0;
}
.va-cli-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.va-cli-name { font-weight: 700; font-size: 15px; color: #000; }
.va-cli-desc { font-size: 13px; color: #666; margin: 3px 0 -5px; line-height: 1.3; }

/* Nút Check Avail nhỏ gọn trong chat */
.va-mini-check-btn {
    display: inline-block;
    background: #E3F2FD;
    color: #ffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}
.va-iti-day span.va-mini-check-btn {
    background: #ee4d2d;
}
/* Map trong Chat */
.va-chat-map-container {
    height: 400px; width: 100%; border-radius: 12px; 
    overflow: hidden; margin-top: 5px; position: relative; z-index: 1;
}

/* Itinerary Timeline */
.va-iti-day { margin-bottom: 15px; padding-left: 15px; border-left: 2px solid #78c6ff; position: relative; }
.va-iti-day::before {
    content: ''; position: absolute; left: -7px; top: 0; 
    width: 12px; height: 12px; background: #007AFF; border-radius: 50%;
}
.va-day-head { font-weight: 700; font-size: 16px; color: #007AFF; margin-bottom: 4px; }
.va-day-body {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    border-bottom: 1px dashed #dcdcdc;
    padding-bottom: 10px;
}
/* Cost Widget */
.va-cost-bubble {
    background: linear-gradient(135deg, #00C853, #69F0AE); color: #fff;
    padding: 15px; border-radius: 16px; text-align: center; font-weight: 600;
}
.va-cost-big { font-size: 24px; font-weight: 800; margin: 5px 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Style cho Icon đối tác nhỏ bên cạnh nút Check */
.va-partner-icons {
    display: inline-flex;
    align-items: center;
    order: 1;
}
.va-partner-icon-mini {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #eee;
    margin-left: -5px;
}

/* Style cho Essentials & Apps trong Chat */
.va-chat-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.va-chat-app-item {
    display: flex; align-items: center; gap: 8px; background: #ffff;
    padding: 8px; border-radius: 8px; text-decoration: none; color: #333;
    transition: 0.2s; border: 1px solid transparent; position: relative;
}
a.va-chat-app-item:before {
    content: "\f35d";
    font-family: 'FontAwesome';
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 15px;
    color: #222222;
}
.va-chat-app-item:hover { background: #eef; border-color: #ccf; }
.va-chat-app-img { width: 32px; height: 32px; border-radius: 6px; }
.va-chat-app-info div {
    font-size: 12px;
    color: #666;
    line-height: 1;
    margin-bottom: 5px;
}
.va-chat-app-info strong { font-size: 13px; display: block; line-height: 1; }
/* Style cho danh sách hoạt động trong lộ trình từng ngày */
.va-day-activity-list {
    margin-top: 8px;
    padding-left: 5px;
}
.va-day-act-item {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px;
    line-height: 1.4;
    text-align: left; /* Đảm bảo căn trái */
}
.va-day-act-item::before {
    content: "•";
    color: #007AFF;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}
.va-msg.ai.rich-content b {
    color: #0089d0;
}
.va-chat-btn-group {
    display: flex;
    align-items: center;
    gap: 7px;
}
a.va-mini-check-btn.gmap-btn:hover {
    color: white;
}
a.va-mini-check-btn.gmap-btn {
    background: black;
    width: fit-content;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 99px;
}
a.va-mini-check-btn.gmap-btn:before {
    content: "";
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Google_Maps_icon_%282020%29.svg/512px-Google_Maps_icon_%282020%29.svg.png);
    display: inline-block;
    width: 9px;
    height: 13px;
    background-size: cover;
    margin-right: 5px;
    vertical-align: -3px;
    position: relative;
}
/* Màu sắc riêng cho từng loại nút Check Price */
.va-mini-check-btn.btn-hotel { background: #003580; color: #fff; } /* Xanh Booking */
.va-mini-check-btn.btn-activity { background: #ff5722; color: #fff; } /* Cam Klook */
.va-mini-check-btn.btn-flight { background: #00a699; color: #fff; } /* Xanh Trip/Skyscanner */
/* 1. Biến góc xoay (Giữ nguyên) */
@property --va-inp-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* 2. Animation xoay viền (Giữ nguyên) */
@keyframes va-input-rotate {
    to { --va-inp-angle: 360deg; }
}

/* 3. Animation BÓNG DẢI NGANG (Đã tinh chỉnh cho Wrapper) */
@keyframes va-input-glow {
    0% {
        box-shadow: 
            0 0 0 0 rgba(52, 199, 89, 0),
            0 0 0 0 rgba(255, 214, 10, 0),
            0 0 0 0 rgba(0, 122, 255, 0);
    }
    50% {
        /* Tỏa rộng hơn một chút vì wrapper to hơn input */
        box-shadow: 
            -60px 0 30px -5px rgba(52, 199, 89, 0.35),   /* Trái: Xanh lá */
            0 0 30px 10px rgba(255, 214, 10, 0.2),       /* Giữa: Vàng */
            60px 0 30px -5px rgba(0, 122, 255, 0.35);    /* Phải: Xanh dương */
    }
    100% {
        box-shadow: 
            -110px 0 50px -10px rgba(52, 199, 89, 0),
            0 0 80px 30px rgba(255, 214, 10, 0),
            110px 0 50px -10px rgba(0, 122, 255, 0);
    }
}

/* 4. Class áp dụng cho Wrapper */
.va-chat-input-wrapper.va-rainbow-active {
    border: 2px solid transparent !important;
    outline: none !important;
    
    /* [QUAN TRỌNG] Đảm bảo nền của wrapper không đè lên viền */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    /* Viền xoay nhẹ nhàng */
    background-image: 
        linear-gradient(white, white), 
        conic-gradient(from var(--va-inp-angle), 
            #34C759 0%,   
            #FFD60A 50%,  
            #007AFF 100%  
        );
        
    /* Animation */
    animation: va-input-rotate 0.2s linear infinite, 
               va-input-glow 0.2s ease-out forwards;
}
/* Nút Chat Tròn */
.va-manual-chat-btn {
    position: relative;
    bottom: 0;
    right: 0;
    height: 45px;
    min-width: 45px; /* Để giữ hình tròn khi chưa hover */
    padding: 0; /* Mặc định không padding */
    border-radius: 25px; /* Bo tròn đều */
    background: #007AFF;
    border: 1px solid #e0e0e0;
    color: #ffff;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Icon nằm bên phải */
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    overflow: hidden; /* Che chữ khi chưa hover */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon bên trong */
.va-manual-chat-btn i {
    width: 45px; /* Chiếm trọn không gian tròn */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Không bị co lại */
}

/* Chữ bên trong (Mặc định ẩn) */
.va-manual-chat-label {
    opacity: 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    transform: translateX(20px);
    transition: all 0.3s ease;
    margin-right: 0; /* Cách icon một chút */
    max-width: 0; /* Ẩn chiều ngang */
}

/* Hiệu ứng khi Hover */
.va-manual-chat-btn:hover {
    padding-left: 15px;
    background: #ffff;
    color: #007AFF;
    border-color: #007AFF;
    transform: scale(1.05);
}

.va-manual-chat-btn:hover .va-manual-chat-label {
    opacity: 1;
    transform: translateX(0);
    max-width: 200px; /* Mở rộng chiều ngang để hiện chữ */
    margin-right: 0;
}

/* Container cần relative để nút chat định vị */

/* Animation trượt sang phải */
.va-slide-out-right {
    animation: vaSlideRight 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes vaSlideRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}
.va-suggestion-chips {
    display: flex;
    justify-content: end;
    flex-wrap: wrap; /* Cho phép xuống dòng nếu không đủ chỗ */
    gap: 8px;
    margin: 10px 0 10px 50px; /* Căn lề thẳng với bong bóng chat AI */
    animation: fadeIn 0.5s ease-out;
}

.va-suggestion-chip {
    transition: all 0.2s 
ease;
    background: #d9ebff;
    border: 1px solid #d9ebff;
    padding: 10px 16px;
    border-radius: 99px;
    font-size: 15px;
    cursor: pointer;
    color: #1D1D1F;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.va-suggestion-chip:hover {border-color: #007AFF; color: #007AFF; background: #F2F7FF; transform: translateY(-2px); }

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- CSS CHO MÀN HÌNH REVIEW & EDIT (DẠNG LƯỚI 3 CỘT) --- */

.va-review-card {
    width: 100%;
    border-radius: 12px;
    background: transparent;
    padding: 10px;
    margin-bottom: 0;
    animation: fadeIn 0.4s 
ease-out;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    overflow-y: auto;
    font-size: 13px;
    text-decoration: none;
}

/* Responsive: Trên mobile (dưới 600px) thì chuyển về 1 cột hoặc 2 cột */
@media (max-width: 600px) {
        .va-review-card {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 20px 15px 5px !important;
    }
}
@media (max-width: 400px) {
    .va-review-card {
        grid-template-columns: 1fr; /* 1 cột trên màn hình siêu nhỏ */
    }
}

.va-review-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3px 7px;
    border-radius: 8px;
    position: relative;
    background: #d9ebff;
    border: 1px solid #d9ebff;
}

/* Bỏ border-bottom cũ đi vì giờ dùng grid */
.va-review-item:last-child {
    border-bottom: 1px solid #e0e0e0; 
}

.va-review-label {
    font-size: 14px;
    color: black;
    font-weight: 500;
    margin-bottom: 4px;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-align: start;
    -webkit-line-clamp: 1;
}

.va-review-value {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding-right: 25px; /* Chừa chỗ cho nút edit */
}

.va-review-icon {
    font-size: 10px; /* Icon to hơn một chút */
}

.va-review-text {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Cắt chữ nếu quá dài */
}

/* [FIX] Nút Edit nhỏ gọn ở góc trên bên phải */
.va-review-edit {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #bfd9ff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #2479f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    transition: background-color 0.1s, color 0.1s;
    margin: 0;
}
.va-review-edit:hover {
    background-color: #007AFF;
    color: white;
}

.va-confirm-plan-btn {
    width: 100%;
    background: linear-gradient(45deg, #007AFF, #00C6FF);
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0px 10px 10px; /* Thêm khoảng cách với grid */
    text-transform: none;
}

.va-confirm-plan-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}
/* --- LAYOUT CHUNG --- */
.va-app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

.va-layout-wrapper {
    display: flex;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* --- SIDEBAR STYLE --- */
.va-sidebar {
    width: 400px; /* Rộng hơn chút để chứa bài viết */
    background-color: #F9FAFB;
    border-right: 1px solid #E5E7EB;
    flex-shrink: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.va-sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.va-sb-section {
    margin-bottom: 20px;
}

.va-sb-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
    font-family: 'Outfit';
}

/* 1. Questions Styles */
.va-sb-questions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.va-sb-q-btn {
    background: #fff;
    border: 1px solid #E5E7EB;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.va-sb-q-btn:hover {
    border-color: #007AFF;
    color: #007AFF;
    background: #F0F9FF;
}

/* 2. Places List Styles */
.va-sb-places-list {
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    display: flex;
    gap: 5px;
}
.va-sb-empty-msg {
    font-size: 12px; color: #999; padding: 5px;
}
/* Style lại .va-iti-item cho nhỏ gọn trong sidebar */
.va-sidebar .va-iti-item {
    background: #fff;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid #ededed;
}
.va-sidebar .va-iti-img { width: 30px; height: 30px; }
.va-sidebar .va-iti-name {
    font-size: 14px;
    font-weight: 500;
    color: black;
    display: flex;
    justify-content: space-between;
    gap: 7px;
}
.va-sidebar .va-iti-info div:nth-child(2) { display: none; } /* Ẩn mô tả dài */
.va-sidebar .va-iti-name:after {
    content: "";
    background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Google_Maps_icon_%282020%29.svg/512px-Google_Maps_icon_%282020%29.svg.png);
    display: inline-block;
    width: 11px;
    height: 16px;
    background-size: cover;
    vertical-align: -3px;
    position: relative;
    margin-top: 2px;
    margin-right: 5px;
}
/* 3. Latest Posts Styles */
.va-sb-posts-scroll {
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid #E5E7EB;
    padding-top: 10px;
    /* Custom scrollbar */
    scrollbar-width: thin;
}
.va-sb-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid #f3f3f3;
}
.va-sb-post-item:last-child { border-bottom: none; }
.va-sb-post-img {
    width: 50px; height: 50px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #eee;
}
.va-sb-post-info { flex: 1; }
.va-sb-post-title {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.va-sb-post-date { font-size: 10px; color: #9CA3AF; }
#va-sb-posts-loader { text-align: center; padding: 10px; color: #999; display: none; }

/* Main Chat Area */
.va-main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: white;
    overflow-y: auto;
}

/* Mobile Header */
.va-mobile-header {
    display: none;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}
#va-sidebar-toggle { cursor: pointer; font-size: 19px; font-weight: 600; color: #3673cc; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .va-mobile-header { display: flex; }

    .va-sidebar {
        position: absolute;
        top: 0; left: 0; bottom: 0;
        transform: translateX(-100%); /* Ẩn sang trái */
        width: 85%;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .va-sidebar.open {
        transform: translateX(0); /* Trượt ra */
    }
    
    /* Overlay khi mở menu */
    .va-sidebar-overlay {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
}

/* Style cho icon công cụ */
.va-tool-icon {
    font-size: 18px;
    color: #626262;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.va-tool-icon:hover {
    background: #f0f0f0;
    color: #555;
}

/* Hiệu ứng khi đang nghe */
.va-tool-icon.listening {
    color: white !important;
    background: #ff3b30 !important;
    animation: va-pulse 1.5s infinite;
}

@keyframes va-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
/* Badge số thứ tự (màu đỏ) */
.va-marker-index-badge {
    position: absolute;
    top: -17px;
    right: -18px;
    background: #000000;
    color: white;
    font-size: 12px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Đảm bảo icon marker có position relative để badge neo vào */
.va-marker-icon {
    /* (Các thuộc tính cũ giữ nguyên) */
    overflow: visible !important; /* Quan trọng: Để badge thò ra ngoài không bị cắt */
}