/* ==========================================================================
   highlights.css — [hgc_highlights]: lưới bento 22 điểm + hộp thông tin
   Desktop: lưới 12 cột, hàng 96px. Tablet/mobile: bố cục 2 cột riêng.
   ========================================================================== */

.hg-hl { --hl-ink: #1c3c37; --hl-muted: #4a5856; --hl-accent: #f15e22; --hl-bg: #fbf8f3; width: 100%; font-family: var(--font-body, Poppins, Arial, sans-serif); }

.hg-hl__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 96px; grid-auto-flow: row dense; gap: 16px;
}
.hg-hl__item { margin: 0; padding: 0; grid-column: span 3; grid-row: span 2; min-width: 0; }
.hg-hl__item--portrait { grid-row: span 3; }
.hg-hl__item--tall     { grid-row: span 4; }
.hg-hl__item--wide     { grid-column: span 6; }
.hg-hl__item--feature  { grid-column: span 6; grid-row: span 4; }
.hg-hl__item--panorama { grid-column: span 12; }

/* ------------------------------- Thẻ ------------------------------------ */
.hg-hl__card {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    width: 100%; height: 100%; margin: 0; padding: 20px; overflow: hidden;
    border: 0; border-radius: 18px; background: #2a2a2a; color: #fff;
    text-align: left; font: inherit; cursor: pointer; isolation: isolate;
}
.hg-hl__item--day1 .hg-hl__card { background: #6e3420; }
.hg-hl__item--day2 .hg-hl__card { background: #1c3c37; }
.hg-hl__item--day3 .hg-hl__card { background: #2a4569; }
.hg-hl__card:focus-visible { outline: 3px solid var(--hl-accent); outline-offset: 3px; }

.hg-hl__img {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
    object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.hg-hl__card:has(.hg-hl__img)::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10, 20, 18, 0) 38%, rgba(10, 20, 18, .55) 70%, rgba(10, 20, 18, .85) 100%);
    transition: background .3s ease;
}
@media (hover: hover) {
    .hg-hl__card:hover .hg-hl__img { transform: scale(1.04); }
    .hg-hl__card:hover::before { background: linear-gradient(180deg, rgba(10, 20, 18, .08) 20%, rgba(10, 20, 18, .62) 62%, rgba(10, 20, 18, .9) 100%); }
    .hg-hl__item--noimg .hg-hl__card:hover { filter: brightness(1.12); }
}

.hg-hl__num {
    position: absolute; top: 16px; left: 20px;
    font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.04em;
    color: rgba(255, 255, 255, .92); text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.hg-hl__item--noimg .hg-hl__num { color: rgba(255, 255, 255, .3); text-shadow: none; }

.hg-hl__body { display: flex; flex-direction: column; gap: 6px; }
.hg-hl__meta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}
.hg-hl__meta i { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
.hg-hl__name { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.hg-hl__desc { display: none; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 460px; }

.hg-hl__item--feature .hg-hl__card,
.hg-hl__item--panorama .hg-hl__card { padding: 30px 32px; }
.hg-hl__item--feature .hg-hl__num { top: 24px; left: 30px; font-size: 72px; }
.hg-hl__item--panorama .hg-hl__num { top: 22px; left: 30px; font-size: 56px; }
.hg-hl__item--feature .hg-hl__name { font-size: 32px; line-height: 1.15; }
.hg-hl__item--panorama .hg-hl__name { font-size: 28px; }
.hg-hl__item--feature .hg-hl__desc,
.hg-hl__item--panorama .hg-hl__desc { display: block; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ------------------------------ Nút ------------------------------------- */
.hg-hl__showall, .hg-hl__more { margin: 28px 0 0; text-align: center; }
.hg-hl__showall { display: none; }
.hg-hl__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--hl-ink);
    background: var(--hl-ink); color: #fff !important; font: 600 14px/1 var(--font-body, Poppins, sans-serif);
    letter-spacing: .03em; text-decoration: none !important; cursor: pointer; transition: background .2s, color .2s;
}
.hg-hl__btn:hover { background: #0f2622; }
.hg-hl__btn--ghost { background: transparent; color: var(--hl-ink) !important; }
.hg-hl__btn--ghost:hover { background: var(--hl-ink); color: #fff !important; }

/* ---------------------------- Hộp thông tin ----------------------------- */
.hg-hl__modal {
    width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0;
    border: 0; border-radius: 20px; background: var(--hl-bg); color: var(--hl-ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden;
}
.hg-hl__modal::backdrop { background: rgba(12, 24, 22, .72); }
.hg-hl__modal-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; }
.hg-hl__modal-media { position: relative; margin: 0; background: #1c3c37; }
.hg-hl__modal-media img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none; max-height: none; object-fit: cover; }
/* Chưa có ảnh: hộp 1 cột, gọn hơn */
.hg-hl__modal.is-noimg { width: min(560px, calc(100vw - 32px)); }
.hg-hl__modal.is-noimg .hg-hl__modal-inner { grid-template-columns: 1fr; min-height: 440px; }
.hg-hl__modal.is-noimg .hg-hl__modal-media { display: none; }
.hg-hl__modal-body { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 40px 36px 28px; overflow-y: auto; }
.hg-hl__close {
    position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: #efe9de; color: var(--hl-ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hg-hl__modal-num { font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--hl-accent); }
.hg-hl__modal-meta { color: var(--hl-muted); }
.hg-hl__modal-meta i { box-shadow: none; }
body .hg-hl__modal-title { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--hl-ink); }
.hg-hl__modal-vi { margin: -4px 0 0; font-size: 15px; color: var(--hl-muted); }
.hg-hl__modal-desc { margin: 0; font-size: 15px; line-height: 1.7; color: var(--hl-muted); }
.hg-hl__modal-vi:empty, .hg-hl__modal-desc:empty { display: none; }
.hg-hl__modal-actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.hg-hl__modal-link[hidden] { display: none; }
.hg-hl__modal-nav { display: flex; justify-content: space-between; gap: 8px; }
.hg-hl__modal-nav button {
    min-height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
    font: 600 13px/1.3 var(--font-body, Poppins, sans-serif); color: var(--hl-ink);
}
.hg-hl__modal-nav button:hover { color: var(--hl-accent); }
html.hg-hl-lock { overflow: hidden; }

/* Ghi công ảnh (giấy phép CC) */
.hg-hl__modal-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 14px 8px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); font-size: 11px; line-height: 1.4; }
.hg-hl__modal-credit[hidden] { display: none; }
.hg-hl__modal-credit a { color: rgba(255, 255, 255, .9) !important; text-decoration: none; }
.hg-hl__modal-credit a:hover { text-decoration: underline; }
.hg-hl__credits { margin: 24px 0 0; font-size: 12.5px; color: var(--hl-muted); }
.hg-hl__credits summary { cursor: pointer; font-weight: 600; color: var(--hl-ink); }
.hg-hl__credits ul { margin: 8px 0 0; padding-left: 18px; columns: 2; column-gap: 32px; }
.hg-hl__credits li { break-inside: avoid; margin: 2px 0; }
.hg-hl__credits a { color: var(--hl-muted); }
@media (max-width: 767px) { .hg-hl__credits ul { columns: 1; } }

/* --------------------------- Tablet ≤1024 ------------------------------- */
@media (max-width: 1024px) {
    .hg-hl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 14px; }
    .hg-hl__item, .hg-hl__item--portrait, .hg-hl__item--tall { grid-column: span 1; grid-row: auto; aspect-ratio: 4 / 5; }
    .hg-hl__item--wide, .hg-hl__item--feature, .hg-hl__item--panorama { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
    .hg-hl__item--feature .hg-hl__name { font-size: 28px; }
}

/* ---------------------------- Mobile ≤767 ------------------------------- */
@media (max-width: 767px) {
    .hg-hl__grid { gap: 10px; }
    .hg-hl__item, .hg-hl__item--portrait, .hg-hl__item--tall, .hg-hl__item--wide { grid-column: span 1; aspect-ratio: 3 / 4; }
    .hg-hl__item--feature, .hg-hl__item--panorama { grid-column: span 2; aspect-ratio: 4 / 5; }
    .hg-hl__card { padding: 14px; border-radius: 14px; }
    .hg-hl__num { top: 12px; left: 14px; font-size: 32px; }
    .hg-hl__name { font-size: 15px; }
    .hg-hl__meta { font-size: 10px; letter-spacing: .1em; }
    .hg-hl__item--feature .hg-hl__card, .hg-hl__item--panorama .hg-hl__card { padding: 22px; }
    .hg-hl__item--feature .hg-hl__num, .hg-hl__item--panorama .hg-hl__num { top: 14px; left: 20px; font-size: 52px; }
    .hg-hl__item--feature .hg-hl__name, .hg-hl__item--panorama .hg-hl__name { font-size: 22px; }
    .hg-hl__item--feature .hg-hl__desc, .hg-hl__item--panorama .hg-hl__desc { font-size: 13.5px; }

    .hg-hl:not(.is-expanded) .hg-hl__item--more { display: none; }
    .hg-hl:not(.is-expanded) .hg-hl__showall { display: block; }
    .hg-hl__showall .hg-hl__btn { width: 100%; }

    .hg-hl__modal, .hg-hl__modal.is-noimg { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
    .hg-hl__modal-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100%; }
    .hg-hl__modal-media { aspect-ratio: 4 / 3; }
    .hg-hl__modal.is-noimg .hg-hl__modal-media { display: none; }
    .hg-hl__modal-body { padding: 24px 18px 22px; }
    .hg-hl__modal-num { font-size: 48px; }
    body .hg-hl__modal-title { font-size: 26px; }
    .hg-hl__close { position: fixed; top: 12px; right: 12px; background: rgba(255, 255, 255, .92); }
}

@media (prefers-reduced-motion: reduce) {
    .hg-hl__img, .hg-hl__card::before { transition: none; }
    .hg-hl__card:hover .hg-hl__img { transform: none; }
}

/* ------------------- Page "22 Highlights" (Elementor) ------------------- */
/* refine.css đặt màu chữ tối cho mọi <p>; trả lại màu sáng trong khối CTA nền tối */
body .hg-hlp__cta p { color: rgba(255, 255, 255, .82); margin: 0; }
body .hg-hlp__head p { margin: 0; }
@media (max-width: 767px) {
    .hg-hlp__cta .hg-hlp__btn, .hg-hlp__cta .hg-hlp__btn .elementor-button { width: 100%; }
}
