/* Hệ thống phòng nghỉ — tab hạng phòng (tgwv-hotels). */
.tgwv-hotel-rooms {
    --tgwv-hotel-rooms-accent: var(--tgwv-brand, #a8182e);
    --tgwv-hotel-rooms-ink: #2b2b2b;
    --tgwv-hotel-rooms-muted: #6b7280;
    --tgwv-hotel-rooms-line: color-mix(in srgb, var(--tgwv-hotel-rooms-accent) 18%, #e5e7eb);
    padding: var(--tgwv-hotel-rooms-pad, 72px) 16px;
    color: var(--tgwv-hotel-rooms-ink);
}

.tgwv-hotel-rooms__inner { max-width: 1140px; margin: 0 auto; }

.tgwv-hotel-rooms__head { max-width: 720px; margin: 0 auto 28px; text-align: center; }

.tgwv-hotel-rooms__title {
    margin: 0 0 12px;
    color: var(--tgwv-hotel-rooms-accent);
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 500;
    line-height: 1.2;
}

.tgwv-hotel-rooms__subtitle { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tgwv-hotel-rooms-muted); }

/* Tabs */
.tgwv-hotel-rooms__tabs {
    display: flex;
    gap: 4px 26px;
    margin: 0 0 40px;
    border-bottom: 1px solid var(--tgwv-hotel-rooms-line);
    overflow-x: auto;
    scrollbar-width: none;
}

.tgwv-hotel-rooms__tabs::-webkit-scrollbar { display: none; }
/* Centred while the tabs fit, scrollable from the first tab when they do not. */
.tgwv-hotel-rooms__tab:first-child { margin-left: auto; }
.tgwv-hotel-rooms__tab:last-child { margin-right: auto; }

.tgwv-hotel-rooms__tab {
    flex: 0 0 auto;
    position: relative;
    padding: 10px 0 14px;
    border: 0;
    background: none;
    color: var(--tgwv-hotel-rooms-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
    cursor: pointer;
}

.tgwv-hotel-rooms__tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: var(--tgwv-hotel-rooms-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.tgwv-hotel-rooms__tab:hover,
.tgwv-hotel-rooms__tab.is-active { color: var(--tgwv-hotel-rooms-accent); }
.tgwv-hotel-rooms__tab.is-active::after { transform: scaleX(1); }
.tgwv-hotel-rooms__tab:focus-visible { outline: 2px solid var(--tgwv-hotel-rooms-accent); outline-offset: 2px; }

/* Room: photo left, overlapping card right */
.tgwv-hotel-rooms__room {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    align-items: center;
}

.tgwv-hotel-rooms__room + .tgwv-hotel-rooms__room { margin-top: 48px; }

/* With JavaScript one room shows at a time; without it, every room stays listed. */
.tgwv-hotel-rooms.is-ready .tgwv-hotel-rooms__room:not(.is-active) { display: none; }
.tgwv-hotel-rooms.is-ready .tgwv-hotel-rooms__room + .tgwv-hotel-rooms__room { margin-top: 0; }
.tgwv-hotel-rooms.is-ready .tgwv-hotel-rooms__room.is-active { animation: tgwv-hotel-rooms-in 0.45s ease; }

@keyframes tgwv-hotel-rooms-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.tgwv-hotel-rooms__media {
    position: relative;
    aspect-ratio: 1.38;
    overflow: hidden;
    background: #ece7e4;
}

.tgwv-hotel-rooms__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tgwv-hotel-rooms__photo.is-active { opacity: 1; }

.tgwv-hotel-rooms__photo-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--tgwv-hotel-rooms-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.tgwv-hotel-rooms__photo-nav--prev { left: 14px; }
.tgwv-hotel-rooms__photo-nav--next { right: 64px; } /* clear of the overlapping card */
.tgwv-hotel-rooms__photo-nav:hover { background: #fff; color: var(--tgwv-hotel-rooms-accent); }

.tgwv-hotel-rooms__dots {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tgwv-hotel-rooms__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: content-box;
    cursor: pointer;
}

.tgwv-hotel-rooms__dot.is-active { background: transparent; border-color: #fff; box-shadow: inset 0 0 0 3px var(--tgwv-hotel-rooms-accent); }

.tgwv-hotel-rooms__card {
    position: relative;
    z-index: 3;
    margin-left: -50px;
    padding: 46px 42px 42px;
    border-top: 3px solid var(--tgwv-hotel-rooms-accent);
    background: #fff;
    box-shadow: 0 18px 48px rgba(43, 20, 20, 0.12);
}

.tgwv-hotel-rooms__badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 10px;
    background: color-mix(in srgb, var(--tgwv-hotel-rooms-accent) 9%, #fff);
    color: var(--tgwv-hotel-rooms-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tgwv-hotel-rooms__name {
    margin: 0 0 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tgwv-hotel-rooms-line);
    color: var(--tgwv-hotel-rooms-ink);
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 500;
    line-height: 1.22;
}

.tgwv-hotel-rooms__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--tgwv-hotel-rooms-line);
    list-style: none;
    font-size: 13px;
    color: var(--tgwv-hotel-rooms-muted);
}

.tgwv-hotel-rooms__facts li { display: inline-flex; align-items: center; gap: 7px; }
.tgwv-hotel-rooms__facts .tgwv-hotel-rooms__icon { color: var(--tgwv-hotel-rooms-accent); }

/* Short description: at most three lines; the browser adds the ellipsis. */
.tgwv-hotel-rooms__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.tgwv-hotel-rooms__price { margin: 0 0 22px; font-size: 15px; color: var(--tgwv-hotel-rooms-muted); }
.tgwv-hotel-rooms__price strong { color: var(--tgwv-hotel-rooms-accent); font-weight: 700; }

.tgwv-hotel-rooms__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.tgwv-hotel-rooms__book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border: 0;
    background: var(--tgwv-hotel-rooms-accent);
    color: #fff !important;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.tgwv-hotel-rooms__book:hover { filter: brightness(1.12); }

.tgwv-hotel-rooms__detail {
    padding-bottom: 4px;
    border-bottom: 2px solid var(--tgwv-hotel-rooms-accent);
    color: var(--tgwv-hotel-rooms-accent) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.tgwv-hotel-rooms__book:focus-visible,
.tgwv-hotel-rooms__detail:focus-visible,
.tgwv-hotel-rooms__photo-nav:focus-visible,
.tgwv-hotel-rooms__dot:focus-visible,
.tgwv-hotel-rooms__pager button:focus-visible { outline: 2px solid var(--tgwv-hotel-rooms-accent); outline-offset: 3px; }

/* Room pager */
.tgwv-hotel-rooms__pager {
    display: none;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
}

.tgwv-hotel-rooms.is-ready .tgwv-hotel-rooms__pager.has-pages { display: flex; }

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

.tgwv-hotel-rooms__pager button:hover { color: var(--tgwv-hotel-rooms-accent); }

.tgwv-hotel-rooms__empty { text-align: center; color: var(--tgwv-hotel-rooms-muted); }

@media (max-width: 991px) {
    .tgwv-hotel-rooms__room { grid-template-columns: 1fr; }
    .tgwv-hotel-rooms__photo-nav--next { right: 14px; }
    .tgwv-hotel-rooms__dots { bottom: 54px; }
    .tgwv-hotel-rooms__card { margin: -40px 16px 0; padding: 30px 24px 28px; }
}

@media (max-width: 575px) {
    .tgwv-hotel-rooms__card { margin: -24px 8px 0; padding: 24px 18px 22px; }
    .tgwv-hotel-rooms__facts { gap: 8px 16px; }
    .tgwv-hotel-rooms__pager { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .tgwv-hotel-rooms__photo { transition: none; }
    .tgwv-hotel-rooms.is-ready .tgwv-hotel-rooms__room.is-active { animation: none; }
}
