/* Khối giới thiệu + thẻ ảnh slider (tgwv-hotels). */
.tgwv-hotel-cards {
    --tgwv-hotel-cards-accent: var(--tgwv-brand, #a8182e);
    --tgwv-hotel-cards-ink: #2b2b2b;
    --tgwv-hotel-cards-gap: 30px;
    --tgwv-hotel-cards-line: color-mix(in srgb, var(--tgwv-hotel-cards-accent) 16%, #e5e7eb);
    padding: var(--tgwv-hotel-cards-pad, 80px) 16px;
    color: var(--tgwv-hotel-cards-ink);
}

.tgwv-hotel-cards__inner { max-width: 1345px; margin: 0 auto; }

.tgwv-hotel-cards__layout {
    display: grid;
    grid-template-columns: var(--tgwv-hotel-cards-text, 33%) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

/* Text column */
.tgwv-hotel-cards__title {
    margin: 0 0 18px;
    color: var(--tgwv-hotel-cards-accent);
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 500;
    line-height: 1.15;
}

.tgwv-hotel-cards__content { font-size: 16px; line-height: 1.6; color: #4b5563; }
.tgwv-hotel-cards__content p { margin: 0 0 12px; }
.tgwv-hotel-cards__content > :last-child { margin-bottom: 0; }
.tgwv-hotel-cards__content strong,
.tgwv-hotel-cards__content b,
.tgwv-hotel-cards__content a { color: var(--tgwv-hotel-cards-accent); font-weight: 600; }

.tgwv-hotel-cards__more {
    display: inline-block;
    margin-top: 32px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--tgwv-hotel-cards-accent);
    color: var(--tgwv-hotel-cards-accent) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.tgwv-hotel-cards__more:hover { opacity: 0.8; }

/* Cards: scroll-snap track, N per view */
.tgwv-hotel-cards__slider { min-width: 0; }

.tgwv-hotel-cards__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--tgwv-hotel-cards-per-view, 2) - 1) * var(--tgwv-hotel-cards-gap)) / var(--tgwv-hotel-cards-per-view, 2));
    gap: var(--tgwv-hotel-cards-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 12px; /* room for the card shadow */
}

.tgwv-hotel-cards__track::-webkit-scrollbar { display: none; }
.tgwv-hotel-cards__track:focus-visible { outline: 2px solid var(--tgwv-hotel-cards-accent); outline-offset: 4px; }

.tgwv-hotel-cards__item { min-width: 0; scroll-snap-align: start; }

.tgwv-hotel-cards__card {
    position: relative;
    display: block;
    aspect-ratio: var(--tgwv-hotel-cards-ratio, 4 / 5);
    overflow: hidden;
    background: #2b1b1b;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(40, 15, 15, 0.16);
}

.tgwv-hotel-cards__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tgwv-hotel-cards__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, color-mix(in srgb, var(--tgwv-hotel-cards-accent) 55%, #000) 130%),
        rgba(0, 0, 0, var(--tgwv-hotel-cards-overlay, 0.45));
    transition: background-color 0.3s ease;
}

a.tgwv-hotel-cards__card:hover .tgwv-hotel-cards__img { transform: scale(1.06); }
a.tgwv-hotel-cards__card:focus-visible { outline: 3px solid var(--tgwv-hotel-cards-accent); outline-offset: 3px; }

.tgwv-hotel-cards__badge {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 50px;
}

/* No backing box: a soft shadow keeps the logo readable on light photos. */
.tgwv-hotel-cards__badge img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }

.tgwv-hotel-cards__caption {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 32px;
    text-align: center;
}

.tgwv-hotel-cards__card-title {
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 500;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.tgwv-hotel-cards__card-text {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Pager under a thin rule */
.tgwv-hotel-cards__pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--tgwv-hotel-cards-line);
    color: var(--tgwv-hotel-cards-accent);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.tgwv-hotel-cards__pager[hidden] { display: none; }

.tgwv-hotel-cards__pager button {
    display: inline-flex;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--tgwv-hotel-cards-ink);
    cursor: pointer;
}

.tgwv-hotel-cards__pager button:hover:not(:disabled) { color: var(--tgwv-hotel-cards-accent); }
.tgwv-hotel-cards__pager button:disabled { opacity: 0.3; cursor: default; }
.tgwv-hotel-cards__pager button:focus-visible,
.tgwv-hotel-cards__more:focus-visible { outline: 2px solid var(--tgwv-hotel-cards-accent); outline-offset: 3px; }

@media (max-width: 991px) {
    .tgwv-hotel-cards__layout { grid-template-columns: 1fr; gap: 32px; }
    .tgwv-hotel-cards { --tgwv-hotel-cards-per-view: 2 !important; --tgwv-hotel-cards-gap: 20px; }
}

@media (max-width: 575px) {
    .tgwv-hotel-cards__track { grid-auto-columns: 84%; gap: 16px; }
    .tgwv-hotel-cards__caption { padding: 20px; }
    .tgwv-hotel-cards__pager { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .tgwv-hotel-cards__track { scroll-behavior: auto; }
    .tgwv-hotel-cards__img { transition: none; }
}
