/* ================================================================
   TOUR CARD SLIDER  —  tour-card-slider.css
   Desktop ≥1024px : 4 items, arrows khi count > 4
   Mobile  <1024px : 1 item căn giữa + peek trái/phải, arrows + touch
   ================================================================ */

/* ── Root: position context cho arrows tuyệt đối ────────────── */
.vt-tslider {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* ── Viewport chiếm toàn bộ chiều rộng ──────────────────────── */
.vt-tslider__viewport {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.vt-tslider__viewport:active {
    cursor: grabbing;
}

/* Chỉ block click khi đang kéo */
.vt-tslider__viewport.is-dragging .vt-tslider__item a,
.vt-tslider__viewport.is-dragging .vt-tslider__item button {
    pointer-events: none;
}

.vt-tslider__item img {
    -webkit-user-drag: none;
    pointer-events: none;
}

/* ── Track: dải ngang các items ─────────────────────────────── */
.vt-tslider__track {
    display: flex;
    gap: 16px;
    will-change: transform;
}

/* ── Mỗi item ────────────────────────────────────────────────── */
.vt-tslider__item {
    flex: 0 0 auto;
}

/* Article bên trong lấp đầy item */
.vt-tslider__item .tourCard_card__dN7sP {
    width: 100% !important;
    box-sizing: border-box;
}

/* ── Arrow buttons: luôn absolute, đè lên viewport ──────────── */
.vt-tslider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    cursor: pointer;
    color: #333;
    transition: background .2s, box-shadow .2s, opacity .2s;
}

.vt-tslider__btn--prev { left:  .8rem; }
.vt-tslider__btn--next { right: .8rem; }

.vt-tslider__btn:hover:not(:disabled) {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.vt-tslider__btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ≤4 items trên desktop → ẩn arrows */
.vt-tslider.is-static .vt-tslider__btn {
    display: none;
}

/* ── Empty state ─────────────────────────────────────────────── */
.vt-tslider__empty {
    padding: 2rem;
    color: #999;
    font-size: 1.4rem;
}

/* ── Mobile: arrows nhỏ hơn một chút ────────────────────────── */
@media (max-width: 1023px) {
    .vt-tslider__btn {
        width: 3.6rem;
        height: 3.6rem;
    }

    .vt-tslider__btn--prev { left:  .4rem; }
    .vt-tslider__btn--next { right: .4rem; }
}

/* ================================================================
   QUICK VIEW MODAL
   ================================================================ */

.vt-qv {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
}

.vt-qv.is-open { display: flex; }

.vt-qv__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.vt-qv__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 1.6rem;
    width: 100%;
    max-width: 1080px;
    height: min(500px, 90vh);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: vtQvIn .22s ease;
}

@keyframes vtQvIn {
    from { opacity: 0; transform: scale(.93) translateY(12px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.vt-qv__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1px solid #e0e0e0;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .15s;
}

.vt-qv__close:hover { background: #f0f0f0; }

/* ── Layout 2 cột ── */
.vt-qv__inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    height: 100%;
}

/* ── Cột trái: gallery ── */
.vt-qv__gallery {
    display: flex;
    flex-direction: column;
    background: #eee;
    border-radius: 1.6rem 0 0 1.6rem;
    overflow: hidden;
}

.vt-qv__main-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* ── Dot indicators (overlay dưới ảnh chính) ── */
.vt-qv__dots {
    position: absolute;
    bottom: .8rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: .5rem;
    pointer-events: none;
}

.vt-qv__dot {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    pointer-events: auto;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.vt-qv__dot.is-active {
    background: #fff;
    transform: scale(1.35);
}

.vt-qv__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity .2s;
}

.vt-qv__thumbstrip {
    display: flex;
    gap: .5rem;
    padding: .7rem .8rem;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    scrollbar-width: thin;
}

.vt-qv__thumbstrip::-webkit-scrollbar { height: 4px; }
.vt-qv__thumbstrip::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.vt-qv__thumb {
    flex: 0 0 auto;
    width: 6rem;
    height: 6rem;
    border-radius: .6rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color .15s;
}

.vt-qv__thumb.is-active { border-color: #e53935; }
.vt-qv__thumb:not(.is-active):hover { border-color: #bbb; }

.vt-qv__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Cột phải: thông tin ── */
.vt-qv__info {
    display: flex;
    flex-direction: column;
    padding: 2rem 2.4rem 2rem 2rem;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: thin;
}

.vt-qv__title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 3rem .4rem 0;
    line-height: 1.35;
}

.vt-qv__subtitle {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.3rem;
    color: #666;
    margin: 0 0 1.2rem;
}

.vt-qv__subtitle .vt-qv__icon { color: #999; }

/* ── Rows ── */
.vt-qv__rows {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.vt-qv__row {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: 1.3rem;
    line-height: 1.5;
}

.vt-qv__row--empty .vt-qv__row-value { color: #bbb; }

.vt-qv__icon {
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 1.6rem;
    margin-top: .15rem;
    color: #e53935;
}

.vt-qv__row-label {
    color: #777;
    white-space: nowrap;
    min-width: 11.5rem;
    font-size: 1.25rem;
}

.vt-qv__row-value {
    color: #1a1a1a;
    font-weight: 500;
}

/* ── Giá + CTA ── */
.vt-qv__price-row {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    padding: 1.2rem 0 .8rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 1rem;
}

.vt-qv__price-label {
    font-size: 1.25rem;
    color: #888;
}

.vt-qv__price {
    font-size: 2.4rem;
    font-weight: 700;
    color: #e53935;
    letter-spacing: -.5px;
}

.vt-qv__cta {
    display: block;
    margin-top: .8rem;
    padding: 1.1rem 1.6rem;
    background: #00897b;
    color: #fff;
    text-align: center;
    border-radius: .8rem;
    font-size: 1.45rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.vt-qv__cta:hover { background: #00796b; }

/* ── Mobile: stack ── */
@media (max-width: 767px) {
    .vt-qv { padding: 0; align-items: flex-end; }

    .vt-qv__box {
        border-radius: 1.6rem 1.6rem 0 0;
        height: auto;
        max-height: 92vh;
        overflow-y: auto;
    }

    .vt-qv__inner {
        grid-template-columns: 1fr;
        height: auto;
    }

    .vt-qv__gallery {
        border-radius: 1.6rem 1.6rem 0 0;
        height: auto;
        flex-shrink: 0;
    }

    .vt-qv__main-wrap { height: 20rem; flex: none; }

    .vt-qv__info {
        height: auto;
        overflow-y: visible;
        padding: 1.6rem;
    }

    .vt-qv__title { font-size: 1.5rem; margin-right: 0; }
    .vt-qv__price { font-size: 2rem; }
}

/* ── Tour title tooltip: hover hiển thị đầy đủ tên tour ─────── */
.vt-tour-title-tooltip {
    position: relative;
}

.vt-tour-title-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 1.2rem);
    transform: translate(-50%, 0.4rem);
    width: max-content;
    max-width: 26rem;
    background: rgba(3, 145, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-align: left;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.8rem;
    white-space: normal;
    padding: 0.9rem 1.2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.8rem 2rem rgba(3, 145, 255, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 40;
}

.vt-tour-title-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translate(-50%, 0.4rem);
    border: 0.6rem solid transparent;
    border-top-color: rgba(3, 145, 255, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 40;
}

@media (hover: hover) {
    .vt-tour-title-tooltip:hover::after,
    .vt-tour-title-tooltip:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}

/* ── "+N" phương tiện còn lại: chỉ hiện 1 phương tiện + số lượng còn lại ── */
.vt-transport-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .1rem .6rem;
    border-radius: .4rem;
    border: 1px dashed #0046c1;
    color: #0046c1;
    background: #eaf2ff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6rem;
    white-space: nowrap;
    cursor: pointer;
}
