/*
 * Visa (modules/Visa) — trang /visa (danh sách) + trang chi tiết. Bố cục theo visa-grid / visa-details của mẫu DreamsTour.
 * Màu + bo góc qua biến --vs-*: theme ghi đè trong CSS của theme, VD GreenTours: .vs-page { --vs-primary: var(--gt-primary); }
 */
.vs-page {
    --vs-primary: #0d6efd;
    --vs-btn: var(--vs-primary);
    --vs-ink: #17212b;
    --vs-text: #4a5561;
    --vs-muted: #7a8590;
    --vs-line: #e4e9ee;
    --vs-soft: #f4f7fa;
    --vs-tint: #eaf2ff;
    --vs-warn: #9a6200;
    --vs-radius: 16px;
    --vs-shadow: 0 10px 30px rgba(16, 36, 52, .07);
    color: var(--vs-text);
}
.vs-page *, .vs-page *::before, .vs-page *::after { box-sizing: border-box; }
.vs-wrap { padding-top: 32px; padding-bottom: 64px; }

/* Đầu trang (theme có thể thay cả file page-head) */
.vs-head { padding: 40px 0 32px; background: var(--vs-soft); border-bottom: 1px solid var(--vs-line); text-align: center; }
.vs-head__title { margin: 0 0 8px; color: var(--vs-ink); font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.2; }
.vs-head__crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: var(--vs-muted); }
.vs-head__crumb a { color: var(--vs-text); text-decoration: none; }
.vs-head__crumb a:hover { color: var(--vs-primary); }
.vs-head__crumb [aria-current] { color: var(--vs-primary); font-weight: 600; }

/* Nút */
.vs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
    border: 0; border-radius: 12px; background: var(--vs-btn); color: #fff !important; font-size: 15px; font-weight: 700;
    text-decoration: none !important; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.vs-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, .12); }
.vs-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.vs-btn--block { width: 100%; }
.vs-btn--ghost { background: #fff; color: var(--vs-ink) !important; border: 1px solid var(--vs-line); }

/* Thanh tìm */
.vs-search {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0; margin-bottom: 28px; padding: 10px;
    border: 1px solid var(--vs-line); border-radius: var(--vs-radius); background: #fff; box-shadow: var(--vs-shadow);
}
.vs-search__field { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 8px 18px; border-right: 1px solid var(--vs-line); }
.vs-search__field span { margin-bottom: 2px; color: var(--vs-muted); font-size: 13px; font-weight: 600; }
.vs-search select, .vs-request select {
    width: 100%; min-height: 30px; padding: 0 22px 0 0; border: 0; outline: 0; background-color: transparent; color: var(--vs-ink);
    font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; -webkit-appearance: none; appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8590' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px;
    text-overflow: ellipsis;
}
.vs-search select:focus-visible { outline: 2px solid var(--vs-primary); outline-offset: 4px; border-radius: 4px; }
.vs-search__field:nth-child(4) { border-right: 0; }
.vs-search__btn { align-self: stretch; min-width: 140px; margin-left: 8px; }

/* Bố cục 2 cột */
.vs-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.vs-layout--detail { grid-template-columns: minmax(0, 1fr) 380px; }
.vs-layout--detail .vs-layout__side { position: sticky; top: 96px; }
.vs-filter-toggle { display: none; }

/* Cột lọc */
.vs-filter { border: 1px solid var(--vs-line); border-radius: var(--vs-radius); background: #fff; }
.vs-filter__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--vs-line); }
.vs-filter__head strong { color: var(--vs-ink); font-size: 18px; }
.vs-filter__reset { color: var(--vs-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.vs-filter__group { margin: 0; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--vs-line); min-width: 0; }
.vs-filter__group:last-of-type { border-bottom: 0; }
.vs-filter__title { display: block; float: none; width: 100%; margin: 0 0 12px; padding: 0; color: var(--vs-ink); font-size: 15px; font-weight: 700; }
.vs-filter__input { width: 100%; min-height: 42px; padding: 0 14px; border: 1px solid var(--vs-line); border-radius: 10px; font-size: 14px; }
.vs-filter__input:focus { outline: 2px solid var(--vs-primary); outline-offset: 1px; border-color: transparent; }
.vs-filter__check { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--vs-text); font-size: 14.5px; cursor: pointer; }
.vs-filter__check:last-child { margin-bottom: 0; }
.vs-filter__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--vs-primary); }
.vs-filter__check span { flex: 1; }
.vs-filter__check small { color: var(--vs-muted); font-size: 12.5px; }
.vs-filter .irs--round .irs-bar, .vs-filter .irs--round .irs-from, .vs-filter .irs--round .irs-to, .vs-filter .irs--round .irs-single { background: var(--vs-primary); }
.vs-filter .irs--round .irs-handle { border-color: var(--vs-primary); }

/* Thanh trên lưới */
.vs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.vs-toolbar__count { margin: 0; color: var(--vs-text); font-size: 16px; }
.vs-toolbar__count b { color: var(--vs-ink); }
.vs-toolbar__sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--vs-muted); }
.vs-toolbar__sort select { min-height: 40px; padding: 0 12px; border: 1px solid var(--vs-line); border-radius: 10px; background: #fff; color: var(--vs-ink); font-weight: 600; }

/* Lưới thẻ */
.vs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.vs-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--vs-line); border-radius: var(--vs-radius); background: #fff; transition: box-shadow .25s, transform .25s; }
.vs-card:hover { box-shadow: var(--vs-shadow); transform: translateY(-3px); }
.vs-card__img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--vs-soft); }
.vs-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vs-card:hover .vs-card__img img { transform: scale(1.05); }
.vs-card__badge {
    position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94);
    color: var(--vs-ink); font-size: 12.5px; font-weight: 600;
}
.vs-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.vs-card__time { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--vs-muted); font-size: 13.5px; }
.vs-card__title { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.vs-card__title a { color: var(--vs-ink); text-decoration: none; }
.vs-card__title a:hover { color: var(--vs-primary); }
.vs-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--vs-text); font-size: 13.5px; }
.vs-card__meta li { position: relative; }
.vs-card__meta li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--vs-primary); }
.vs-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--vs-line); }
.vs-card__price { color: var(--vs-muted); font-size: 13.5px; white-space: nowrap; }
.vs-card__price b { color: var(--vs-primary); font-size: 18px; font-weight: 800; }
.vs-card__country { display: flex; align-items: center; gap: 4px; color: var(--vs-text); font-size: 13.5px; white-space: nowrap; }
.vs-pagination { margin-top: 28px; }
.vs-pagination nav { display: flex; justify-content: center; }
.vs-pagination .page-item.active .page-link { background: var(--vs-primary); border-color: var(--vs-primary); }
.vs-pagination .page-link { color: var(--vs-ink); }
.vs-empty { padding: 48px 24px; border: 1px dashed var(--vs-line); border-radius: var(--vs-radius); text-align: center; }
.vs-empty p { margin: 0 0 16px; }

/* Trang chi tiết */
.vs-dtitle { margin: 0 0 18px; color: var(--vs-ink); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.25; }
.vs-dimg { margin: 0 0 22px; overflow: hidden; border-radius: var(--vs-radius); aspect-ratio: 16 / 9; background: var(--vs-soft); }
.vs-dimg img { width: 100%; height: 100%; object-fit: cover; }
.vs-box { margin-bottom: 22px; padding: 22px 24px; border: 1px solid var(--vs-line); border-radius: var(--vs-radius); background: #fff; }
.vs-box__title { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--vs-line); color: var(--vs-ink); font-size: 19px; font-weight: 700; }
.vs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; background: var(--vs-soft); }
.vs-facts__item span { display: block; margin-bottom: 2px; color: var(--vs-muted); font-size: 13px; }
.vs-facts__item b { color: var(--vs-ink); font-size: 15.5px; font-weight: 700; }
.vs-checks { margin: 0; padding: 0; list-style: none; }
.vs-checks li { position: relative; margin-bottom: 12px; padding-left: 28px; line-height: 1.55; }
.vs-checks li:last-child { margin-bottom: 0; }
.vs-checks li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--vs-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317212b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 11px;
}
.vs-checks--dot li::before { background-image: none; }
.vs-checks--dot li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--vs-primary); }
.vs-content { line-height: 1.7; }
.vs-content img { max-width: 100%; height: auto; }
.vs-faq__item { border-bottom: 1px solid var(--vs-line); }
.vs-faq__item:last-child { border-bottom: 0; }
.vs-faq__item summary { position: relative; padding: 14px 32px 14px 0; color: var(--vs-ink); font-weight: 700; cursor: pointer; list-style: none; }
.vs-faq__item summary::-webkit-details-marker { display: none; }
.vs-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--vs-primary); font-size: 22px; font-weight: 400; }
.vs-faq__item[open] summary::after { content: "−"; }
.vs-faq__item p { margin: 0 0 16px; line-height: 1.65; }

/* Form gửi yêu cầu */
.vs-request__fixed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.vs-request__fixed div { padding: 10px 14px; border-radius: 12px; background: var(--vs-soft); }
.vs-request__fixed dt { color: var(--vs-muted); font-size: 12.5px; font-weight: 600; }
.vs-request__fixed dd { margin: 0; color: var(--vs-ink); font-weight: 700; }
.vs-field { display: block; margin: 0 0 12px; }
.vs-field > span { display: block; margin-bottom: 5px; color: var(--vs-ink); font-size: 13.5px; font-weight: 600; }
.vs-field input, .vs-field textarea, .vs-request .vs-field select {
    display: block; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--vs-line); border-radius: 12px;
    background-color: #fff; color: var(--vs-ink); font-family: inherit; font-size: 15px; font-weight: 500;
}
.vs-request .vs-field select { padding-right: 36px; background-position: right 12px center; }
.vs-field textarea { min-height: 84px; resize: vertical; }
.vs-field input:focus, .vs-field textarea:focus, .vs-request .vs-field select:focus { outline: 2px solid var(--vs-primary); outline-offset: 1px; border-color: transparent; }
.vs-field--step { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vs-field--step > span { margin: 0; }
.vs-step { display: flex; align-items: center; gap: 6px; }
.vs-step button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--vs-line); border-radius: 50%; background: #fff; color: var(--vs-ink); font-size: 18px; cursor: pointer; }
.vs-step button:hover { border-color: var(--vs-primary); color: var(--vs-primary); }
.vs-step input { width: 56px; min-height: 38px; padding: 0; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.vs-step input::-webkit-outer-spin-button, .vs-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vs-request__warn { margin: -4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff6e5; color: var(--vs-warn); font-size: 13.5px; }
.vs-request__warn[hidden], .vs-request__total[hidden], .vs-request__msg[hidden] { display: none; }
.vs-request__total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--vs-tint); }
.vs-request__total span { color: var(--vs-text); font-size: 13.5px; }
.vs-request__total b { color: var(--vs-ink); font-size: 16px; text-align: right; }
.vs-request__hint { margin: 10px 0 0; color: var(--vs-muted); font-size: 12.5px; line-height: 1.5; }
.vs-request__msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.vs-request__msg.is-ok { background: #e7f6ec; color: #17683a; }
.vs-request__msg.is-error { background: #fdecec; color: #a12a2a; }
.vs-notes { background: var(--vs-tint); border-color: transparent; }
.vs-notes ul { margin: 0; padding-left: 18px; }
.vs-notes li { margin-bottom: 8px; line-height: 1.55; }
.vs-help p { margin: 0 0 12px; line-height: 1.6; }
.vs-help__list { margin: 0; padding: 0; list-style: none; }
.vs-help__list li { margin-bottom: 8px; }
.vs-help__list a { color: var(--vs-text); text-decoration: none; }
.vs-help__list a:hover b { color: var(--vs-primary); }
.vs-help__list b { color: var(--vs-ink); }

@media (max-width: 1199.98px) {
    .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs-layout--detail { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 991.98px) {
    .vs-search { grid-template-columns: 1fr 1fr; }
    .vs-search__field { border-right: 0; border-bottom: 1px solid var(--vs-line); }
    .vs-search__btn { grid-column: 1 / -1; margin: 8px 0 0; }
    .vs-layout, .vs-layout--detail { grid-template-columns: minmax(0, 1fr); }
    .vs-layout--detail .vs-layout__side { position: static; }
    .vs-filter-toggle { display: inline-flex; width: 100%; margin-bottom: 12px; }
    .vs-filter { display: none; }
    .vs-filter.is-open { display: block; }
    .vs-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .vs-wrap { padding-top: 20px; padding-bottom: 40px; }
    .vs-search { grid-template-columns: 1fr; }
    .vs-grid { grid-template-columns: minmax(0, 1fr); }
    .vs-box { padding: 18px; }
    .vs-request__fixed { grid-template-columns: 1fr; }
}
