/* ==========================================================================
   VnTicket — hub (/vnticket), ticket listing (/ticket), ticket detail (/ticket/{slug})
   Design pass 3 (2026-10-24): light system on top of vng-system.css tokens and the
   shared classes (.vng-card*, .vng-section__*, .vng-listing-*, .vng-detail*, .vng-side*).
   Everything here is scoped to .vng-vt-hub / .vng-vt-list / .vng-vt-detail.
   Replaces vnticket-hub.css (dark vt-* skin) and the vtd-* ticket detail skin.
   ========================================================================== */

/* ---------- 1. Hub shell ---------- */
.vng-vt-hub {
    background: var(--vng-bg);
    padding-bottom: 72px;
}
.vng-vt-section {
    padding-top: 56px;
}
.vng-vt-section .vng-section__head {
    margin-bottom: 20px;
}

/* ---------- 2. Category pill bar ---------- */
.vng-vt-cats {
    border-bottom: 1px solid var(--vng-line);
    background: #fff;
}
.vng-vt-cats__row {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.vng-vt-cats__row::-webkit-scrollbar { display: none; }
.vng-vt-cat {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--vng-line);
    border-radius: var(--vng-r-pill);
    background: #fff;
    color: var(--vng-navy) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.vng-vt-cat:hover {
    border-color: var(--vng-navy);
}
.vng-vt-cat.is-active {
    border-color: var(--vng-navy);
    background: var(--vng-navy);
    color: #fff !important;
}
.vng-vt-cat.is-soon {
    color: var(--vng-muted) !important;
}
.vng-vt-cat__soon {
    padding: 2px 7px;
    border-radius: var(--vng-r-pill);
    background: var(--vng-bg-section);
    color: var(--vng-muted);
    font-size: 11px;
    font-weight: 700;
}
.vng-vt-cat.is-active .vng-vt-cat__soon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* ---------- 3. Masthead (the page H1) ---------- */
.vng-vt-head {
    padding: 26px 0 4px;
}
.vng-vt-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
}
.vng-vt-head__kicker {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a16207;
}
.vng-vt-head .vng-listing-h1 {
    margin-bottom: 8px;
}
.vng-vt-head .vng-listing-lead {
    margin-bottom: 0;
}
.vng-vt-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--vng-r-pill);
    background: var(--vng-yellow-soft);
    font-size: 13px;
    color: var(--vng-text);
}
.vng-vt-strip strong {
    color: var(--vng-navy);
}
.vng-vt-strip a {
    color: var(--vng-navy) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- 4. Hero: spotlight + 2 side cards ---------- */
.vng-vt-hero {
    padding-top: 20px;
}
.vng-vt-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.vng-vt-spot__link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}
.vng-vt-spot__media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--vng-r-lg);
    overflow: hidden;
    background: #eef1f6;
}
.vng-vt-spot__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--vng-ease);
}
.vng-vt-spot__link:hover .vng-vt-spot__media img {
    transform: scale(1.03);
}
.vng-vt-spot__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 4px 0;
}
.vng-vt-spot__title {
    margin: 0 !important;
    font-size: clamp(22px, 2.2vw, 28px) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: var(--vng-navy) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vng-vt-spot__link:hover .vng-vt-spot__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.vng-vt-spot__sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--vng-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vng-vt-spot .vng-card__meta,
.vng-vt-spot .vng-card__stats {
    font-size: 14px;
}
.vng-vt-spot__cta {
    margin-top: 6px;
    align-self: flex-start;
}
.vng-vt-hero__side {
    display: grid;
    gap: 20px;
}
.vng-vt-hero__side .vng-card__media {
    aspect-ratio: 16 / 9;
}

/* ---------- 5. Card rows (shared listing-card markup) ---------- */
.vng-vt-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 24px;
}
.vng-vt-ranked {
    position: relative;
    min-width: 0;
}
.vng-vt-rank {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--vng-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(7, 19, 61, .22);
    pointer-events: none;
}
.vng-vt-ranked .vng-card__badge {
    left: 48px;
}
.vng-vt-row--posters .vng-card__media {
    aspect-ratio: 3 / 4;
}

/* ---------- 6. Time filter ---------- */
.vng-vt-filterhead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.vng-vt-filterhead .vng-section__title {
    margin-bottom: 4px;
}
.vng-vt-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--vng-line);
    border-radius: var(--vng-r-pill);
    background: #fff;
    color: var(--vng-navy) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.vng-vt-chip:hover {
    border-color: var(--vng-navy);
}
.vng-vt-chip.is-active {
    border-color: var(--vng-navy);
    background: var(--vng-navy);
    color: #fff !important;
}
.vng-vt-chip--clear {
    border-style: dashed;
    color: var(--vng-muted) !important;
}
.vng-vt-hub .vng-empty {
    padding: 36px 24px;
}
.vng-vt-hub .vng-empty a {
    color: var(--vng-navy) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- 7. Sponsored band (one light row) ---------- */
.vng-vt-ad {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--vng-line);
    border-radius: var(--vng-r-lg);
    background: var(--vng-bg-soft);
}
.vng-vt-ad__media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--vng-r-md);
    overflow: hidden;
    background: #eef1f6;
}
.vng-vt-ad__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vng-vt-ad__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vng-muted);
}
.vng-vt-ad__title {
    margin: 6px 0 4px !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: var(--vng-navy) !important;
}
.vng-vt-ad__sub {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--vng-muted);
}
.vng-vt-ad__actions {
    display: flex;
    align-items: center;
    gap: 10px 18px;
    flex-wrap: wrap;
}
.vng-vt-ad__house {
    font-size: 13px;
    color: var(--vng-muted);
}
.vng-vt-ad__house a {
    color: var(--vng-navy) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- 8. Destination tiles ---------- */
.vng-vt-cities {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 16px;
}
.vng-vt-city {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--vng-navy) !important;
    text-decoration: none !important;
}
.vng-vt-city__img {
    width: 120px;
    height: 120px;
    border: 3px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    background: #eef1f6;
    box-shadow: var(--vng-shadow-md);
}
.vng-vt-city__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--vng-ease);
}
.vng-vt-city:hover .vng-vt-city__img img {
    transform: scale(1.06);
}
.vng-vt-city__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--vng-navy) 0%, #1e4a8a 100%);
    color: rgba(255, 255, 255, .85);
    font-size: 30px;
    font-weight: 800;
}
.vng-vt-city__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.vng-vt-city__count {
    margin-top: -6px;
    font-size: 13px;
    color: var(--vng-muted);
}

/* ---------- 9. FAQ accordion ---------- */
.vng-vt-faq {
    display: grid;
    gap: 10px;
    max-width: 880px;
}
.vng-vt-faq details {
    padding: 0 18px;
    border: 1px solid var(--vng-line);
    border-radius: var(--vng-r-md);
    background: #fff;
}
.vng-vt-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 14px 0;
    list-style: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--vng-navy);
}
.vng-vt-faq summary::-webkit-details-marker { display: none; }
.vng-vt-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vng-bg-soft);
}
.vng-vt-faq__icon::before,
.vng-vt-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--vng-navy);
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}
.vng-vt-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.vng-vt-faq details[open] .vng-vt-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0);
}
.vng-vt-faq__a {
    max-width: 70ch;
    padding: 0 0 16px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--vng-text);
}

/* ---------- 10. Ticket listing (/ticket) ---------- */
.vng-vt-list .vng-listing-head {
    padding-bottom: 12px;
}

/* ---------- 11. Ticket detail (/ticket/{slug}) ---------- */
/* a single portrait poster must not be cropped to a wide slot */
.vng-vt-detail .vng-gallery--n1 .vng-gallery__item img {
    object-fit: contain;
    background: var(--vng-bg-section);
}
.vng-vt-detail .vng-gallery--n1 .vng-gallery__item:hover img {
    transform: none;
}
.vng-vt-types {
    margin: 0 0 4px;
    border-top: 1px solid var(--vng-line);
}
.vng-vt-types__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--vng-line);
    font-size: 14px;
}
.vng-vt-types__name {
    min-width: 0;
    color: var(--vng-text);
    overflow-wrap: anywhere;
}
.vng-vt-types__qty {
    display: block;
    font-size: 12px;
    color: var(--vng-muted);
}
.vng-vt-types__price {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--vng-navy);
    white-space: nowrap;
}
.vng-vt-types__from {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--vng-muted);
}
.vng-vt-types__from strong {
    font-size: 20px;
    color: var(--vng-navy);
}
.vng-vt-ctas {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.vng-vt-ctas .vng-btn {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
}
.vng-vt-detail .vng-side__note {
    margin-top: 14px;
}
.vng-vt-detail .vng-detail__attrs .g-attributes .item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 0 8px 8px 0;
    padding: 0 12px;
    border: 1px solid var(--vng-line);
    border-radius: var(--vng-r-pill);
    background: var(--vng-bg-soft);
    font-size: 14px;
    font-weight: 500;
    color: var(--vng-text);
}
.vng-vt-detail .vng-detail__attrs .vng-term-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vng-yellow);
}
.vng-vt-detail .vng-detail__attrs .g-attributes .item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1199px) {
    .vng-vt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
    .vng-vt-cities { gap: 16px 12px; }
    .vng-vt-city__img { width: 104px; height: 104px; }
}
@media (max-width: 991px) {
    .vng-vt-hero__grid { grid-template-columns: 1fr; }
    .vng-vt-hero__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vng-vt-ad { grid-template-columns: 260px minmax(0, 1fr); }
    .vng-vt-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .vng-vt-hub { padding-bottom: 48px; }
    .vng-vt-section { padding-top: 40px; }
    .vng-vt-head { padding-top: 18px; }
    .vng-vt-spot__body { padding: 12px 0 0; }
    .vng-vt-hero__side { grid-template-columns: 1fr; gap: 16px; }
    /* card rows become a snap scroller that bleeds to the viewport edge */
    .vng-vt-row {
        display: flex;
        gap: 12px;
        margin: 0 calc(-1 * var(--vng-gutter));
        padding: 0 var(--vng-gutter) 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .vng-vt-row::-webkit-scrollbar { display: none; }
    .vng-vt-row > .vng-card,
    .vng-vt-row > .vng-vt-ranked {
        flex: 0 0 66%;
        scroll-snap-align: start;
    }
    .vng-vt-row--posters > .vng-card {
        flex-basis: 46%;
    }
    .vng-vt-ad { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
    .vng-vt-ad__title { font-size: 18px !important; }
    .vng-vt-cities { gap: 14px 10px; }
    .vng-vt-city__img { width: 88px; height: 88px; }
    .vng-vt-city__name { font-size: 14px; }
    .vng-vt-faq summary { font-size: 15px; }
}
@media (max-width: 575px) {
    .vng-vt-row > .vng-card,
    .vng-vt-row > .vng-vt-ranked { flex-basis: 72%; }
    .vng-vt-row--posters > .vng-card { flex-basis: 52%; }
    .vng-vt-cat { min-height: 36px; padding: 0 12px; font-size: 13px; }
    .vng-vt-chip { min-height: 34px; padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .vng-vt-spot__media img,
    .vng-vt-city__img img { transition: none !important; }
}
