/* =====================================================================
   TRANG TRÍ (CSS) – bản 5, theo skill "thiet-ke-web-cho-thue-cao-cap"
   Số đo chốt: H1 64/40 · H2 48/36 · eyebrow 12 · tên căn 28 · thân 16 · phụ 14
   nút 14px cao 48 · header 64 · cách mục 120/80 · khung 1180, gutter 32/16 · thanh đáy 52
   Màu chữ: champagne CHỈ trên nền Deep blue; trên nền ngà dùng Deep blue hoặc vàng tối #7f6435
   ===================================================================== */

:root {
  --deep: #0a1f3d;          /* Deep blue – màu chủ đạo */
  --deep-2: #12305a;
  --deep-3: #1b3f70;
  --ivory: #f6f1e7;         /* nền ngà */
  --ivory-2: #ede5d6;
  --gold: #c8a96a;          /* vàng champagne: chữ trên nền tối, kẻ, biểu tượng, nền nút chính */
  --gold-soft: #e6d3a8;
  --gold-dark: #7f6435;     /* vàng tối: chữ nhỏ trên nền ngà (tương phản 4,9:1) */
  --gold-hover: #b9985b;
  --ink: #0d1b2e;
  --ink-soft: #3d4b5f;
  --mist: #a9b8cc;          /* chữ phụ trên nền tối */
  --line: rgba(200, 169, 106, .35);
  --line-ivory: rgba(246, 241, 231, .22);
  --loi: #7a2e1f;           /* chữ báo lỗi (8:1 trên ngà) */

  --serif: "Cormorant Garamond", "Times New Roman", "Noto Serif", serif; /* dự phòng có đủ dấu tiếng Việt (không dùng Georgia) */
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --brand: "Josefin Sans", var(--sans);
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
/* Trên nền tối / ảnh: viền focus màu ngà để nhìn thấy khi bấm Tab */
.toi :focus-visible, .bia :focus-visible, header :focus-visible, footer :focus-visible, .thanh-day :focus-visible,
.dai :focus-visible, .goi-y :focus-visible, .o-dq.chung :focus-visible, .thu-vien :focus-visible, .anh-can :focus-visible,
.anh-view-lon :focus-visible, .luoi-anh :focus-visible, .cho-anh-lon :focus-visible { outline-color: var(--ivory); }
.the-mui:focus-visible, .tv-nut:focus-visible { outline-color: var(--gold); outline-offset: 2px; }
/* Link chữ đứng một mình: nới vùng chạm lên ≥ 44px mà không đổi bố cục */
.lien-cham, .tt-lh .lien-nho, .ct-phai .lien-he-nho a, .gia-dong .lien, .goi-y .lien, .the-can .xem a, footer ul a {
  display: inline-block; padding: 12px 0; margin: -12px 0;
}

/* Ẩn ngôn ngữ không được chọn */
html[data-lang="vi"] [data-l="en"],
html[data-lang="en"] [data-l="vi"] { display: none !important; }

.khung { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
section.phan { padding: 120px 0; }
section.toi { background: var(--deep); color: var(--ivory); }
section.trang { background: #fff; }
section.toi h2 { color: var(--ivory); }
section.toi .dan { color: var(--mist); }
.phan h2 { font-size: 48px; margin: 12px 0 16px; color: var(--deep); }
.phan .dan { max-width: 560px; color: var(--ink-soft); }

/* Eyebrow: 12px in hoa, tracking .15em; trên nền ngà dùng vàng tối, trên nền tối dùng champagne */
.tieude-nho {
  font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-dark); display: flex; align-items: center; gap: 14px;
}
.tieude-nho::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.toi .tieude-nho { color: var(--gold); }

/* ---------- NÚT: một nút champagne mỗi khung nhìn ---------- */
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--deep);
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background .25s, border-color .25s, color .25s;
}
.nut:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.nut.vien { background: transparent; border-color: var(--deep); color: var(--deep); }
.nut.vien:hover { background: var(--deep); color: var(--ivory); }
.toi .nut.vien, .bia .nut.vien, footer .nut.vien, .thanh-day .nut.vien { border-color: rgba(246, 241, 231, .7); color: var(--ivory); }
.toi .nut.vien:hover, .bia .nut.vien:hover, footer .nut.vien:hover, .thanh-day .nut.vien:hover { background: var(--ivory); color: var(--deep); }
.nut:disabled { opacity: .6; cursor: wait; }
.lien { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.khong-gay { white-space: nowrap; }
.lien:hover { text-decoration-color: var(--gold); }

/* ---------- LOGO ---------- */
.ok-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); }
.ok-logo svg { width: 26px; height: 35px; }
.ok-logo b { font-family: var(--brand); font-weight: 600; font-size: 17px; letter-spacing: .16em; padding-top: 3px; }

.bs-lockup { display: inline-flex; flex-direction: column; align-items: center; color: var(--ivory); }
.bs-lockup svg { width: var(--co, 120px); height: var(--co, 120px); }
.bs-lockup .bs-chu {
  font-family: var(--serif); font-weight: 600; letter-spacing: .26em;
  font-size: calc(var(--co, 120px) * .24); margin-top: calc(var(--co, 120px) * .14);
  padding-left: .26em; white-space: nowrap;
}
.bs-gach { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; }
.bs-gach span { flex: 1; height: 1px; background: currentColor; opacity: .7; }
.bs-gach i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ---------- HEADER 64px ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, box-shadow .4s, transform .4s;
}
header.cuon { background: rgba(10, 31, 61, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
header.an { transform: translateY(-100%); }
.menu { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.menu nav { display: flex; gap: 26px; }
.menu nav a {
  color: var(--ivory); text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; opacity: .85; position: relative; padding: 6px 0;
}
.menu nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.menu nav a:hover { opacity: 1; }
.menu nav a:hover::after { transform: scaleX(1); }
.menu-phai { display: flex; align-items: center; gap: 14px; }
.hotline-header { display: flex; align-items: center; gap: 8px; color: var(--ivory); text-decoration: none; font-size: 14px; white-space: nowrap; }
.hotline-header b { font-weight: 600; letter-spacing: .04em; }
.hotline-header small { font-size: 12px; color: var(--mist); }
.cham-truc { width: 8px; height: 8px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 3px rgba(63, 191, 127, .25); }
.nut-ngonngu {
  border: 1px solid var(--gold); background: none; color: var(--gold); height: 40px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; padding: 0 12px;
}
.nut-ngonngu:hover { background: var(--gold); color: var(--deep); }
.nut-header { height: 44px; padding: 0 20px; }
/* Nút champagne của header chỉ hiện khi hero và mục liên hệ không ở trong khung nhìn */
body.thay-hero .nut-header, body.thay-lienhe .nut-header { display: none; }
.nut-menu { display: none; background: none; border: 0; color: var(--ivory); width: 44px; height: 44px; margin-right: -8px; }
.nut-menu span { display: block; height: 1px; background: currentColor; margin: 7px 10px; transition: transform .3s, opacity .3s; }
/* Khi menu mở: 3 gạch thành dấu × */
header.mo-menu .nut-menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
header.mo-menu .nut-menu span:nth-child(2) { opacity: 0; }
header.mo-menu .nut-menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- ẢNH BÌA: ảnh view thật theo giờ Vũng Tàu ---------- */
.bia {
  position: relative; height: min(62vh, 560px); min-height: 440px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ivory); padding: 64px 0 40px;
  transition: background 1.5s;
}
/* Gradient bầu trời: làm nền hai bên khi màn rộng hơn 1536px và khi ảnh chưa tải */
.bia[data-troi="binhminh"] { background: linear-gradient(180deg, #2b4a78 0%, #a48c93 60%, #d8b7a4 100%); }
.bia[data-troi="ngay"]     { background: linear-gradient(180deg, #1d4f86 0%, #4f83b4 60%, #8fb3d3 100%); }
.bia[data-troi="hoanghon"] { background: linear-gradient(180deg, #1b2a55 0%, #6a4b70 55%, #c98a62 100%); }
.bia[data-troi="dem"]      { background: linear-gradient(180deg, #040b18 0%, #0a1f3d 60%, #132f57 100%); }
.bia-anh {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100%; max-width: 1536px;
  transform: translateX(-50%);
}
.bia-anh img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transition: opacity .8s; }
.bia-anh img.doi { opacity: 0; }
/* Lớp phủ Deep blue: đậm ở dải trên (sau chữ header) để logo, menu, nút EN đọc được trên mọi ảnh */
.bia-phu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 31, 61, .72) 0, rgba(10, 31, 61, .25) 140px, rgba(10, 31, 61, .55) 100%); }
.sao { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s; pointer-events: none; }
.bia[data-troi="dem"] .sao { opacity: .5; }
.sao i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: nhapnhay 3s infinite ease-in-out; }
@keyframes nhapnhay { 50% { opacity: .2; } }

.bia .noi-dung { position: relative; z-index: 2; }
.bia .bs-lockup { --co: 72px; }
.bia .bs-lockup .bs-chu { font-size: 18px; }
.bia h1 { font-size: 64px; margin: 26px auto 10px; max-width: 760px; text-wrap: balance; text-shadow: 0 2px 24px rgba(10, 31, 61, .45); }
@media (max-height: 599px) { .dong-ho { display: none; } }
.bia h1 em { font-style: italic; font-weight: 500; color: var(--gold-soft); }
.bia .khau-hieu { font-size: 16px; opacity: .92; }
.bia .nhom-nut { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* Đồng hồ + vòng tiến độ của ngày */
.dong-ho {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(10, 31, 61, .45); border: 1px solid rgba(246, 241, 231, .3);
  backdrop-filter: blur(6px); color: var(--ivory);
  font-size: 12px; letter-spacing: .06em; padding: 8px 14px 8px 10px; text-align: left; line-height: 1.4;
}
.dong-ho:hover { border-color: var(--gold); }
.dong-ho .vong { width: 36px; height: 36px; flex: none; transform: rotate(-90deg); }
.dong-ho .vong circle { fill: none; stroke-width: 2; }
.dong-ho .vong .nen { stroke: rgba(246, 241, 231, .25); }
.dong-ho .vong .tien { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; transition: stroke-dashoffset 1s; }
.dong-ho b { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .02em; display: block; }
.dong-ho small { opacity: .75; display: block; font-size: 12px; }

/* Sóng biển (nền động duy nhất cùng bầu trời) */
.song { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 1; overflow: hidden; pointer-events: none; }
.song svg { position: absolute; bottom: 0; width: 200%; height: 100%; animation: troi 18s linear infinite; }
.song svg:nth-child(1) { opacity: .25; animation-duration: 26s; height: 92%; }
.song svg:nth-child(2) { opacity: .45; animation-duration: 20s; animation-direction: reverse; height: 75%; }
.song svg:nth-child(3) { height: 55%; }
.song path { fill: var(--deep); }
@keyframes troi { to { transform: translateX(-50%); } }

/* ---------- DẢI CON SỐ THẬT ---------- */
.dai { background: var(--deep); color: var(--ivory); padding: 8px 0 64px; }
.dai .luoi { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.dai .o { padding: 36px 32px 0; border-left: 1px solid var(--line); }
.dai .o:first-child { border-left: 0; padding-left: 0; }
.dai .so { font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--gold); line-height: 1; }
.dai .so small { font-size: 16px; font-family: var(--sans); font-weight: 500; color: var(--gold-soft); margin-left: 4px; }
.dai h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 16px 0 6px; }
.dai p { color: var(--mist); font-size: 15px; }
.dai .dong-phu { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-ivory); font-size: 14px; letter-spacing: .06em; color: var(--mist); }
.dai .dong-phu a { color: var(--ivory); text-decoration: none; }

/* ---------- THẺ CĂN ---------- */
.dau-can { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.dau-can .bs-lockup { --co: 64px; color: var(--deep); }
.dau-can .bs-lockup .bs-chu { font-size: 16px; }
.luoi-can { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.goi-y { grid-column: span 2; } /* 7 thẻ + ô gợi ý = 3 hàng kín trên máy tính */
.the-can {
  background: #fff; border: 1px solid var(--ivory-2); text-align: left; color: inherit;
  display: flex; flex-direction: column; cursor: pointer;
}
.the-can:hover { border-color: var(--gold); }
.anh-can {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--deep); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.anh-can > svg { width: 30%; height: auto; opacity: .5; }
.truot-the { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.truot-the::-webkit-scrollbar { display: none; }
.truot-the img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.the-mui {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; z-index: 2;
  border: 1px solid rgba(246, 241, 231, .6); background: rgba(10, 31, 61, .5); color: var(--ivory);
  font-size: 22px; line-height: 1; opacity: 0; transition: opacity .25s, background .25s;
}
.the-mui.truoc { left: 10px; } .the-mui.sau { right: 10px; }
.the-can:hover .the-mui, .the-mui:focus-visible { opacity: 1; }
.the-mui:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.the-cham { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
.the-cham i { width: 6px; height: 6px; border-radius: 50%; background: rgba(246, 241, 231, .5); transition: background .25s; }
.the-cham i.chon { background: var(--ivory); }
.anh-can .nhan-view {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 14px 10px;
  background: linear-gradient(180deg, rgba(10, 31, 61, 0), rgba(10, 31, 61, .75));
  color: var(--ivory); font-size: 12px; letter-spacing: .04em; text-align: left;
}
.anh-can .cho-anh { position: absolute; left: 0; right: 0; bottom: 14px; color: var(--mist); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.the-can .than { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.the-can .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.the-can h3 { font-size: 28px; letter-spacing: .06em; color: var(--deep); margin-top: 4px; }
.the-can h3 small { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; letter-spacing: 0; color: var(--ink-soft); margin-left: 8px; }
.the-can .tt { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.the-can .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.the-can .chip { font-size: 12px; padding: 4px 10px; border: 1px solid var(--ivory-2); background: var(--ivory); color: var(--ink-soft); }
.the-can .gia-the { font-size: 15px; color: var(--ink); margin-top: 16px; }
.the-can .gia-the b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--deep); margin-right: 4px; }
.the-can .gia-the small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-top: 2px; }
.the-can .xem { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--deep); }
.goi-y { background: var(--deep); color: var(--ivory); padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.goi-y h3 { font-size: 28px; font-weight: 500; }
.goi-y p { color: var(--mist); font-size: 15px; margin: 12px 0 18px; }
.goi-y .lien { color: var(--gold); font-size: 14px; }

/* ---------- QUANH OASKY: dải ảnh dọc 3:4 ---------- */
.quanh { background: #fff; overflow: hidden; }
.dai-anh {
  display: flex; gap: 20px; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); /* ảnh dừng đúng mép lề, không dính sát mép màn hình */
}
.dai-anh::-webkit-scrollbar { display: none; }
.o-anh { flex: 0 0 clamp(240px, 24vw, 360px); scroll-snap-align: start; }
.o-anh .khung-anh { aspect-ratio: 3 / 4; overflow: hidden; background: var(--deep); }
.o-anh img { width: 100%; height: 100%; object-fit: cover; }
.o-anh figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.ghi-chu-anh { font-size: 14px; color: var(--ink-soft); margin-top: 20px; }

/* ---------- ĐẶC QUYỀN ---------- */
.luoi-dq { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 28px; margin-top: 56px; }
.o-dq { border: 1px solid var(--ivory-2); padding: 36px 32px; background: var(--ivory); }
.o-dq.chung { background: var(--deep); color: var(--ivory); border-color: var(--deep); }
.o-dq h3 { font-size: 24px; color: var(--deep); margin-bottom: 18px; }
.o-dq.chung h3 { color: var(--gold-soft); }
.ds-diem { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.ds-diem li { padding-left: 20px; position: relative; }
.ds-diem li::before { content: "◆"; position: absolute; left: 0; top: .6em; color: var(--gold); font-size: 7px; }

/* ---------- BẢNG GIÁ ---------- */
.tab-gia { display: inline-flex; border: 1px solid var(--line); margin-top: 32px; }
.tab-gia button { background: none; border: 0; color: var(--mist); padding: 12px 22px; font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.tab-gia button.chon { background: rgba(200, 169, 106, .14); color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); } /* không dùng nền champagne: tránh thành "nút chính" thứ hai */
.bang-gia { width: 100%; border-collapse: collapse; margin-top: 36px; }
.bang-gia th {
  text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); padding: 0 16px 16px; border-bottom: 1px solid var(--line);
}
.bang-gia td { padding: 22px 16px; border-bottom: 1px solid var(--line-ivory); color: var(--ivory); }
.bang-gia td:first-child { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.bang-gia td .y { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--mist); font-weight: 500; }
.bang-gia td .y-tang { display: none; font-family: var(--sans); font-size: 13px; color: var(--mist); font-weight: 400; margin-top: 2px; } /* chỉ hiện trên điện thoại (thay cột Tầng) */
.bang-gia td.gia { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); }
.bang-gia tbody tr:hover { background: rgba(200, 169, 106, .07); }
.bang-gia .nut-nho { background: none; border: 1px solid var(--line); color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; height: 44px; padding: 0 14px; }
.bang-gia .nut-nho:hover { background: var(--gold); color: var(--deep); }
.ghi-chu-gia { color: var(--mist); font-size: 14px; margin-top: 22px; max-width: 760px; }

/* ---------- PHẢN HỒI (ẩn cho đến khi có phản hồi thật) ---------- */
.phan-hoi { text-align: center; }
.phan-hoi .tieude-nho { justify-content: center; }
.phan-hoi .tieude-nho::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
.truot { overflow: hidden; margin-top: 40px; }
.ray { display: flex; transition: transform .9s cubic-bezier(.6, 0, .2, 1); }
.slide { flex: 0 0 100%; padding: 0 8%; }
.slide .ngoac { font-family: var(--serif); font-size: 110px; line-height: .6; color: var(--gold); height: 50px; }
.slide blockquote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.35; color: var(--deep); }
.slide .ai { margin-top: 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.slide .ai small { display: block; color: var(--ink-soft); font-weight: 400; letter-spacing: .06em; text-transform: none; font-size: 14px; }
.nhan-mau { display: inline-block; margin-top: 10px; font-size: 12px; letter-spacing: .2em; color: var(--gold-dark); border: 1px solid var(--line); padding: 2px 8px; }
.cham { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.cham button { width: 28px; height: 2px; border: 0; background: var(--ivory-2); padding: 0; transition: background .3s, width .3s; }
.cham button.chon { background: var(--gold); width: 48px; }

/* ---------- TUYỂN DỤNG (nền trắng, xen giữa Bảng giá tối và Liên hệ ngà) ---------- */
.luoi-td { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.ds-td { border-top: 1px solid var(--ivory-2); }
.viec { border-bottom: 1px solid var(--ivory-2); }
.viec > button { width: 100%; background: none; border: 0; color: var(--deep); text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; }
.viec h3 { font-size: 26px; }
.viec .hinh-thuc { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; font-family: var(--sans); font-weight: 500; }
.viec .cong { font-size: 26px; color: var(--gold-dark); transition: transform .4s; flex: none; font-weight: 300; }
.viec.mo .cong { transform: rotate(45deg); }
.viec .chi-tiet { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s; }
.viec.mo .chi-tiet { grid-template-rows: 1fr; }
.viec .chi-tiet > div { overflow: hidden; }
.viec .chi-tiet p { color: var(--ink-soft); padding-bottom: 14px; font-size: 15px; }
.viec .chi-tiet .nut { margin: 6px 0 28px; }

/* ---------- LIÊN HỆ: trái = tiêu đề + hotline + 3 thẻ nhỏ, phải = form (chiếm 2 hàng) ---------- */
.luoi-lh { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px 80px; align-items: start; }
#khungLienHe { grid-column: 2; grid-row: 1 / 3; }
.tt-lh { list-style: none; }
.tt-lh li { padding: 16px 0; border-bottom: 1px solid var(--ivory-2); }
.tt-lh small { display: block; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dark); font-weight: 500; }
.tt-lh span { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--deep); }
.tt-lh a { text-decoration: none; }
.tt-lh .lien-nho { font-family: var(--sans); font-size: 14px; font-weight: 400; margin-left: 12px; }
.tt-lh .ghi { font-size: 14px; color: var(--ink-soft); }
.the-nho { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.the-nho a { display: block; border: 1px solid var(--ivory-2); background: #fff; padding: 16px; font-size: 14px; color: var(--deep); text-decoration: none; line-height: 1.5; }
.the-nho a:hover { border-color: var(--gold); }
.the-nho b { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.the-nho span { color: var(--ink-soft); font-size: 14px; }

form.bieu-mau { display: grid; gap: 20px; max-width: 560px; }
.bieu-mau label { display: grid; gap: 6px; }
.bieu-mau .nhan { font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.bieu-mau .nhan i { font-style: normal; color: var(--gold-dark); margin-left: 2px; }
.bieu-mau input, .bieu-mau select, .bieu-mau textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid #b8ae9c; padding: 0; height: 48px; outline: none; border-radius: 0;
}
.bieu-mau textarea { height: auto; min-height: 96px; padding: 12px 0; resize: vertical; }
.bieu-mau input:focus, .bieu-mau select:focus, .bieu-mau textarea:focus { border-bottom: 2px solid var(--deep); }
.bieu-mau .hai { display: grid; gap: 20px; } /* form một cột (số đo chốt), mỗi ô một dòng */
.bieu-mau .loi-o { display: none; font-size: 14px; color: var(--loi); }
.bieu-mau label.sai .loi-o { display: block; }
.bieu-mau label.sai input, .bieu-mau label.sai select { border-bottom-color: var(--loi); }
.bieu-mau .nut { justify-self: start; margin-top: 4px; }
.tran-an { font-size: 13px; color: var(--ink-soft); margin-top: -8px; }
.loi-gui { display: none; font-size: 14px; color: var(--loi); }
form.loi .loi-gui { display: block; }
.cam-on { display: none; padding: 8px 0; }
.cam-on b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--deep); margin-bottom: 8px; }
.cam-on p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.cam-on .nhom-nut { display: flex; gap: 12px; flex-wrap: wrap; }
.da-gui .cam-on { display: block; }
.da-gui form { display: none; }

/* ---------- THANH ĐÁY (điện thoại) ---------- */
.thanh-day { display: none; }

/* ---------- CHÂN TRANG ---------- */
footer { background: #06142a; color: var(--mist); padding: 72px 0 36px; font-size: 14px; }
footer .cot { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-ivory); }
footer .bs-lockup { --co: 56px; color: var(--ivory); align-items: flex-start; }
footer .bs-lockup .bs-chu { font-size: 14px; }
footer h4 { font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
footer ul { list-style: none; display: grid; gap: 12px; }
footer a { color: var(--ivory); text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer .minh-bach { font-size: 14px; line-height: 1.6; }
footer .duoi { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; }

/* ---------- CỬA SỔ NỔI (chi tiết căn / ứng tuyển) ---------- */
dialog { border: 0; padding: 0; max-width: 880px; width: calc(100% - 32px); max-height: calc(100vh - 32px); margin: auto; background: var(--ivory); color: var(--ink); overscroll-behavior: contain; }
dialog.rong { max-width: 1240px; }
dialog::backdrop { background: rgba(4, 11, 24, .75); backdrop-filter: blur(4px); }
dialog[open] { animation: hien-ra .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes hien-ra { from { opacity: 0; transform: translateY(16px); } }
/* Nút × trong khung dính cao 0px ở đầu cửa sổ → luôn thấy khi cuộn */
.dong-khung { position: sticky; top: 0; height: 0; z-index: 6; }
.dong {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--ivory); color: var(--deep); font-size: 24px; line-height: 1;
}
.dong:hover { background: var(--deep); color: var(--ivory); border-color: var(--deep); }
.ct-can { display: grid; grid-template-columns: 1fr 340px; gap: 0 24px; align-items: start; padding-right: 24px; }
.ct-trai { min-width: 0; padding-bottom: 32px; }
.ct-phai {
  position: sticky; top: 76px; margin: 76px 0 24px; padding: 24px; /* 76px: chừa chỗ cho nút × */
  border: 1px solid rgba(200, 169, 106, .4); background: #fff;
}
.ct-phai .ten { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--deep); letter-spacing: .06em; }
.ct-phai .gia { margin: 6px 0 18px; }
.ct-phai .gia-so { display: block; font-size: 16px; color: var(--ink); }
.ct-phai .gia-so b { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--deep); margin-right: 4px; }
.ct-phai .gia-nhan { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-top: 2px; }
.ct-phai .nut-goi { display: none; } /* chỉ hiện trên điện thoại */
.ct-phai .nut { width: 100%; }
.ct-phai .chu-ngan { display: none; }
.ct-phai .tran-an { margin-top: 10px; }
.ct-phai .lien-he-nho { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ivory-2); font-size: 14px; }

.thu-vien { position: relative; aspect-ratio: 3 / 2; max-height: 60vh; width: 100%; overflow: hidden; background: var(--deep); }
.thu-vien img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.thu-vien img.dang-doi { opacity: .15; }
.tv-nut {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; z-index: 2;
  border: 1px solid rgba(246, 241, 231, .5); background: rgba(10, 31, 61, .45); backdrop-filter: blur(6px);
  color: var(--ivory); font-size: 26px; line-height: 1; transition: background .25s;
}
.tv-nut:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.tv-truoc { left: 14px; } .tv-sau { right: 14px; }
.tv-chu {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 40px 18px 12px; background: linear-gradient(180deg, rgba(10, 31, 61, 0), rgba(10, 31, 61, .75));
  color: var(--ivory); font-size: 14px;
}
.tv-chu .mo-ta-anh { font-family: var(--serif); font-style: italic; font-size: 18px; }
.tv-chu button { background: none; border: 0; color: var(--ivory); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.tv-nho { display: flex; gap: 6px; padding: 8px 0 0; overflow-x: auto; scrollbar-width: thin; }
.tv-nho button { flex: 0 0 84px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; background: none; opacity: .5; transition: opacity .25s, border-color .25s; }
.tv-nho button img { width: 100%; height: 100%; object-fit: cover; }
.tv-nho button:hover { opacity: .85; }
.tv-nho button.chon { opacity: 1; border-color: var(--gold); }
.anh-view-lon { position: relative; aspect-ratio: 3 / 2; max-height: 60vh; overflow: hidden; background: var(--deep); }
.anh-view-lon img { width: 100%; height: 100%; object-fit: cover; }
.cho-anh-lon { aspect-ratio: 3 / 2; max-height: 50vh; background: var(--deep); color: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.cho-anh-lon svg { width: 90px; height: 90px; }
.cho-anh-lon span { color: var(--mist); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

.ct-dau { padding: 28px 32px 0; }
.ct-dau .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dark); }
.ct-dau h3 { font-size: 48px; letter-spacing: .06em; color: var(--deep); margin-top: 6px; line-height: 1.05; }
.ct-dau h3 small { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: 0; color: var(--ink-soft); margin-left: 10px; }
.ct-dau .hang-so { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.ct-dau .hang-so b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--deep); margin-right: 4px; }
.ct-khoi { padding: 24px 32px; border-top: 1px solid var(--ivory-2); }
.ct-dau + .ct-khoi { border-top: 0; }
.ct-khoi h4 { font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.ct-khoi p { font-size: 16px; }
.luoi-anh { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.luoi-anh button { padding: 0; border: 0; background: var(--deep); aspect-ratio: 3 / 2; overflow: hidden; grid-column: span 2; }
.luoi-anh button:nth-child(6n+4) { grid-column: span 6; }
.luoi-anh button:nth-child(6n+5), .luoi-anh button:nth-child(6n+6) { grid-column: span 3; }
.luoi-anh img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.luoi-anh button:hover img { opacity: .85; }
.gia-dong { font-size: 15px; }
.gia-dong b { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--deep); margin-right: 6px; }
.gia-dong .lien { margin-left: 10px; font-size: 14px; }
.ct-chuyen { display: flex; justify-content: space-between; gap: 12px; }
.ct-chuyen button { background: none; border: 1px solid var(--ivory-2); padding: 10px 16px; color: var(--deep); display: grid; gap: 2px; text-align: left; white-space: nowrap; }
.ct-chuyen button:last-child { text-align: right; }
.ct-chuyen button:hover { border-color: var(--gold); }
.ct-chuyen small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ct-chuyen b { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .06em; }
.ung-tuyen { padding: 48px 40px; }
.ung-tuyen h3 { font-size: 36px; color: var(--deep); margin: 8px 0 24px; }

/* ---------- HIỆN DẦN KHI CUỘN (16px, 400ms, chỉ khi có JS) ---------- */
html.js .hien-dan { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
html.js .hien-dan.hien { opacity: 1; transform: none; }

/* ---------- MÁY TÍNH BẢNG ---------- */
@media (max-width: 1023px) {
  .luoi-can { grid-template-columns: repeat(2, 1fr); }
  .goi-y { grid-column: auto; }
  .luoi-dq, .luoi-td, .luoi-lh { grid-template-columns: 1fr; gap: 48px; }
  #khungLienHe { grid-column: auto; grid-row: auto; } /* thứ tự tự nhiên: tiêu đề → form → hotline, thẻ nhỏ */
  .menu nav { gap: 18px; }
  .hotline-header small { display: none; }
  .ct-can { grid-template-columns: 1fr 300px; }
}

/* ---------- ĐIỆN THOẠI (< 768px) ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { padding-bottom: 52px; }
  /* Khóa cuộn trang nền khi cửa sổ chi tiết hoặc menu đang mở */
  body:has(dialog[open]), body:has(header.mo-menu) { overflow: hidden; }
  section.phan { padding: 80px 0; }
  .phan h2 { font-size: 36px; }
  .nut-menu { display: block; }
  .nut-ngonngu { height: 44px; }
  .hotline-header, .nut-header { display: none; }
  .menu nav {
    position: fixed; inset: 64px 0 auto 0; background: var(--deep); flex-direction: column; gap: 0;
    padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .4s; z-index: -1;
  }
  .menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  header.mo-menu { background: var(--deep); transform: none; }
  header.mo-menu nav { transform: none; }

  /* Hero điện thoại: cao theo nội dung, không đoạn văn, 2 nút xếp dọc, đồng hồ nằm dưới nút (không đè) */
  .bia { height: auto; min-height: min(70vh, 560px); padding: 88px 0 76px; flex-direction: column; }
  .bia .noi-dung { width: 100%; }
  .bia h1 { font-size: 40px; margin-top: 18px; }
  .bia .bs-lockup { --co: 56px; }
  .bia .bs-lockup .bs-chu { font-size: 18px; }
  .bia .khau-hieu { display: none; }
  .bia .nhom-nut { margin-top: 24px; gap: 10px; flex-direction: column; align-items: center; }
  .bia .nut { width: 100%; max-width: 360px; padding: 0 18px; }
  .dong-ho { position: relative; left: auto; bottom: auto; margin-top: 24px; padding: 6px 12px 6px 8px; }
  .dong-ho b { font-size: 18px; }
  .dong-ho small:last-child { display: none; }
  .song { height: 56px; }

  .dai { padding-bottom: 48px; }
  .dai .luoi { grid-template-columns: 1fr; }
  .dai .o { border-left: 0; padding: 28px 0 0; }
  .dai .so { font-size: 40px; }
  .dai .so small { font-size: 14px; }

  .dau-can .bs-lockup { display: none; }
  .luoi-can { display: flex; gap: 16px; margin: 40px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .luoi-can::-webkit-scrollbar { display: none; }
  .the-can, .goi-y { flex: 0 0 84vw; scroll-snap-align: start; }
  .the-mui { opacity: 1; width: 44px; height: 44px; }
  .o-anh { flex-basis: 72vw; }
  .dai-anh { gap: 14px; margin-top: 36px; }
  .the-nho { grid-template-columns: 1fr; }
  .bieu-mau .nut { width: 100%; }
  /* Điện thoại: bỏ cột Tầng (gộp thành dòng nhỏ dưới tên căn) và cột nút (thanh đáy đã có "Đặt lịch xem"), giá không gãy dòng */
  .bang-gia th:nth-child(2), .bang-gia td:nth-child(2), .bang-gia th:nth-child(4), .bang-gia td:nth-child(4) { display: none; }
  .bang-gia td .y-tang { display: block; }
  .bang-gia td, .bang-gia th { padding-left: 4px; padding-right: 4px; }
  .bang-gia td:first-child { font-size: 20px; }
  .bang-gia td.gia { white-space: nowrap; text-align: right; font-size: 20px; }
  .bang-gia th:nth-child(3) { text-align: right; }
  .slide { padding: 0; }
  .slide blockquote { font-size: 24px; }
  footer .cot { grid-template-columns: 1fr; gap: 32px; }

  /* Thanh đáy 52px: Gọi | Đặt lịch xem; ẩn khi hero (đã có nút) hoặc form liên hệ đang trong khung nhìn */
  .thanh-day {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 52px;
    display: grid; grid-template-columns: auto 1fr; background: var(--deep); border-top: 1px solid var(--line);
    transition: transform .3s;
  }
  .thanh-day .nut { height: 52px; border: 0; padding: 0 14px; letter-spacing: .06em; }
  .thanh-day .nut.vien { border-right: 1px solid var(--line); }
  body.thay-hero .thanh-day, body.thay-lienhe .thanh-day { transform: translateY(100%); }

  dialog, dialog.rong { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; }
  .ct-can { grid-template-columns: 1fr; gap: 0; padding-right: 0; }
  .ct-trai { padding-bottom: 0; }
  /* Thanh dính đáy trong cửa sổ: tên + giá | nút Gọi tròn | nút chính */
  .ct-phai {
    position: sticky; top: auto; bottom: 0; margin: 0; padding: 10px 16px; z-index: 4;
    border: 0; border-top: 1px solid var(--line); background: var(--ivory);
    display: grid; grid-template-columns: 1fr auto auto; gap: 0 8px; align-items: center;
  }
  .ct-phai .ten { font-size: 16px; min-width: 0; line-height: 1.2; }
  .ct-phai .gia { margin: 0; grid-row: 2; min-width: 0; line-height: 1.3; }
  .ct-phai .gia-so { font-size: 13px; }
  .ct-phai .gia-so b { font-size: 16px; margin-right: 2px; }
  .ct-phai .gia-nhan { font-size: 10px; letter-spacing: .06em; margin-top: 0; }
  .ct-phai .nut-goi {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    grid-column: 2; grid-row: 1 / 3; border: 1px solid var(--deep); color: var(--deep);
  }
  .ct-phai .nut { grid-column: 3; grid-row: 1 / 3; width: auto; height: 44px; padding: 0 14px; letter-spacing: .06em; white-space: nowrap; }
  .ct-phai .chu-dai { display: none; }
  .ct-phai .chu-ngan { display: inline; }
  .ct-phai .tran-an, .ct-phai .lien-he-nho { display: none; }
  .tv-chu { flex-wrap: wrap; padding: 36px 14px 10px; }
  .tv-chu .mo-ta-anh { font-size: 18px; }
  .tv-dem-khung { white-space: nowrap; }
  .thu-vien, .anh-view-lon { max-height: none; }
  .ct-dau, .ct-khoi { padding-left: 16px; padding-right: 16px; }
  .ct-dau h3 { font-size: 36px; }
  .ct-dau h3 small { display: block; margin: 4px 0 0; font-size: 18px; }
  .luoi-anh button, .luoi-anh button:nth-child(6n+5), .luoi-anh button:nth-child(6n+6) { grid-column: span 3; }
  .luoi-anh button:nth-child(6n+4) { grid-column: span 6; }
  .ung-tuyen { padding: 32px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .hien-dan { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
