/* ==========================================================================
   Mường Thanh Viễn Triều Nha Trang — Front-end stylesheet
   ========================================================================== */
:root {
  --navy: #0c2340;
  --navy-2: #12325a;
  --navy-3: #1c4677;
  --gold: #c6a15b;
  --gold-2: #ad8742;
  --gold-soft: #f5ecdb;
  --sea: #1597a8;
  --ink: #152033;
  --text: #414b5c;
  --muted: #7b8595;
  --line: #e9e4da;
  --bg: #ffffff;
  --bg-soft: #f8f5ef;
  --green: #1f9d6b;
  --red: #d14343;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(12, 35, 64, .06);
  --shadow: 0 12px 34px rgba(12, 35, 64, .09);
  --shadow-lg: 0 24px 60px rgba(12, 35, 64, .18);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: all .25s var(--ease); cursor: pointer; text-decoration: none;
}
.btn-lg { padding: .95em 1.8em; font-size: 1rem; }
.btn-sm { padding: .45em 1em; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: linear-gradient(135deg, #d4b06a, var(--gold-2)); color: #fff; box-shadow: 0 8px 20px rgba(173, 135, 66, .3); }
.btn-gold:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(173, 135, 66, .4); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-zalo { background: #0068ff; color: #fff; }
.btn-zalo:hover { background: #0052cc; color: #fff; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35em; padding: .32em .8em; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
}
.badge-gold { background: var(--gold); color: #fff; }
.badge-navy { background: var(--navy); color: #fff; }
.badge-soft { background: var(--gold-soft); color: var(--gold-2); }
.badge-green { background: #e3f6ee; color: var(--green); }
.badge-red { background: #fde8e8; color: var(--red); }

/* ---------- Section ---------- */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0 72px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .78); }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; max-width: none; }
.section-head-split > div:first-child { max-width: 680px; }
.section-head-split .section-desc { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: #e3c68b; }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
.section-desc { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-desc { color: rgba(255, 255, 255, .7); }
.section-foot { text-align: center; margin-top: 48px; }
.block-title { font-family: var(--font-head); font-size: 1.45rem; margin-bottom: 18px; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .35s, box-shadow .35s, transform .35s; }
.topbar { font-size: .82rem; color: rgba(255, 255, 255, .8); border-bottom: 1px solid rgba(255, 255, 255, .12); max-height: 44px; overflow: hidden; transition: max-height .35s, opacity .35s; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 20px; }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; white-space: nowrap; overflow: hidden; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); margin-right: 4px; }
.topbar-right a i { margin: 0; color: inherit; font-size: .95rem; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-logo { max-height: 56px; width: auto; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem;
  background: linear-gradient(135deg, #d9b774, var(--gold-2)); color: #fff; box-shadow: 0 6px 16px rgba(173, 135, 66, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.32rem; letter-spacing: .02em; }
.brand-text small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 13px; color: #fff; font-weight: 500; font-size: .95rem;
  border-radius: 8px; position: relative;
}
.main-nav > ul > li > a i { font-size: .7rem; opacity: .8; }
.main-nav > ul > li > a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: left;
}
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.active::after { transform: scaleX(1); }
.main-nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 10px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease);
}
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.main-nav .sub a i { color: var(--gold-2); }
.main-nav .sub a:hover { background: var(--bg-soft); color: var(--gold-2); }
.main-nav-head { display: none; }
.nav-cta { padding: .62em 1.2em; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

.site-header.scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px rgba(12, 35, 64, .08); backdrop-filter: saturate(160%) blur(10px); }
.site-header.scrolled .topbar { max-height: 0; opacity: 0; border: 0; }
.site-header.scrolled .brand, .site-header.scrolled .main-nav > ul > li > a { color: var(--ink); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.site-header.scrolled .navbar-inner { height: 72px; }
.site-header.is-hidden { transform: translateY(-100%); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--navy); }
.hero-swiper { position: absolute; inset: 0; width: 100%; }
.hero-slide { position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.swiper-slide-active .hero-bg { transform: scale(1); }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 24, 45, .88) 0%, rgba(8, 24, 45, .55) 45%, rgba(8, 24, 45, .15) 100%),
              linear-gradient(0deg, rgba(8, 24, 45, .65) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 110px; padding-bottom: 200px; }
.hero-content h1, .hero-content .h1 {
  font-family: var(--font-head); color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.12;
  max-width: 780px; margin-bottom: 20px; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}
.hero-content p { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 620px; color: rgba(255, 255, 255, .88); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-content > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.swiper-slide-active .hero-content > * { opacity: 1; transform: none; }
.swiper-slide-active .hero-content > *:nth-child(2) { transition-delay: .12s; }
.swiper-slide-active .hero-content > *:nth-child(3) { transition-delay: .24s; }
.swiper-slide-active .hero-content > *:nth-child(4) { transition-delay: .36s; }
.hero-pagination.swiper-pagination { bottom: 190px !important; text-align: left; left: 50% !important; transform: translateX(-50%); width: 100% !important; max-width: var(--container); padding: 0 20px; }
.hero-pagination .swiper-pagination-bullet { width: 34px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .5); opacity: 1; }
.hero-pagination .swiper-pagination-bullet-active { background: var(--gold); }

.hero-search-wrap { position: relative; z-index: 5; margin-top: auto; padding-bottom: 44px; }
.hero-search {
  background: rgba(255, 255, 255, .97); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 0 24px 22px; display: grid; grid-template-columns: 1fr auto; column-gap: 18px; align-items: end;
}
.hs-tabs { grid-column: 1 / -1; display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.hs-tabs button {
  border: 0; background: none; padding: 16px 16px 14px; font-weight: 600; font-size: .92rem; color: var(--muted);
  border-bottom: 2.5px solid transparent; white-space: nowrap; display: flex; gap: 7px; align-items: center;
}
.hs-tabs button.active { color: var(--navy); border-color: var(--gold); }
.hs-tabs button i { color: var(--gold-2); }
.hs-short { display: none; }
.hs-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hs-field-wide { grid-column: 1 / -1; }
.hs-field label { display: flex; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.hs-field label i { color: var(--gold-2); }
.hs-field select, .form-control {
  width: 100%; padding: .78em 1em; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem;
  color: var(--ink); background-color: #fff; transition: border-color .2s, box-shadow .2s; appearance: none;
}
select.form-control, .hs-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237b8595' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.form-control:focus, .hs-field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198, 161, 91, .15); }
textarea.form-control { resize: vertical; min-height: 90px; }
.hs-submit { height: 50px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; padding: 0 40px 40px 0; }
.about-img-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-img-sub {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  border: 8px solid #fff; box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute; left: -20px; top: 40px; background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-width: 150px;
}
.about-badge strong { font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; }
.about-badge span { font-size: .82rem; opacity: .85; margin-top: 6px; }
.about-content { color: var(--text); font-size: 1.02rem; }
.about-points { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.about-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.about-points i { color: var(--gold); margin-top: 2px; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.about-call { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.about-call-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); font-size: 1.2rem; }
.about-call small { display: block; color: var(--muted); font-size: .8rem; }
.about-call strong { font-size: 1.15rem; }
.stats {
  margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 32px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Apartment card ---------- */
.apt-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column;
}
.apt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.apt-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.apt-card:hover .apt-media img, .sale-card:hover .sale-media img, .post-card:hover .post-media img { transform: scale(1.07); }
.apt-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.apt-view, .sale-view {
  position: absolute; left: 14px; bottom: 14px; background: rgba(12, 35, 64, .78); color: #fff; font-size: .78rem;
  padding: .38em .85em; border-radius: 999px; backdrop-filter: blur(6px); font-weight: 500;
}
.apt-view i, .sale-view i { color: var(--gold); }
.apt-status { position: absolute; top: 14px; right: 14px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; }
.apt-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.apt-code { font-size: .78rem; color: var(--gold-2); font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.apt-title { font-size: 1.12rem; margin-bottom: 12px; line-height: 1.4; }
.apt-title a { color: var(--ink); }
.apt-title a:hover { color: var(--gold-2); }
.apt-specs { list-style: none; padding: 0 0 14px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.apt-specs i { color: var(--gold-2); margin-right: 3px; }
.apt-prices { display: flex; gap: 12px; margin-top: auto; }
.apt-price { flex: 1; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; white-space: nowrap; min-width: 0; }
.apt-price span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.apt-price strong { color: var(--navy); font-size: 1.02rem; }
.apt-price small { color: var(--muted); font-size: .8rem; }

/* ---------- Sale card ---------- */
.sale-grid { align-items: stretch; }
.sale-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sale-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sale-card.is-featured { border: 2px solid var(--gold); box-shadow: 0 18px 44px rgba(173, 135, 66, .22); }
.sale-ribbon { position: absolute; z-index: 3; top: 16px; right: -1px; background: var(--gold); color: #fff; font-size: .74rem; font-weight: 700; padding: .45em 1em .45em 1.2em; border-radius: 999px 0 0 999px; letter-spacing: .03em; }
.sale-media { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; }
.sale-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sale-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.sale-title { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 14px; }
.sale-title a { color: var(--ink); }
.sale-price { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.sale-price span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.sale-price strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: #f1d69c; line-height: 1.2; }
.sale-price small { display: block; font-size: .8rem; opacity: .75; margin-top: 2px; }
.sale-specs { list-style: none; padding: 0; margin: 0 0 16px; }
.sale-specs li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.sale-specs i { color: var(--gold-2); }
.sale-specs span { color: var(--muted); }
.sale-specs b { color: var(--ink); font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { display: flex; gap: 8px; padding: 4px 0; font-size: .92rem; }
.check-list i { color: var(--green); }
.sale-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.price-updated { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 28px; }
.price-updated i { color: var(--gold-2); }

/* ---------- Amenities ---------- */
.amenities { background: radial-gradient(1200px 500px at 90% -10%, rgba(21, 151, 168, .25), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(198, 161, 91, .18), transparent 60%), var(--navy); }
.amenity { padding: 30px 26px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); transition: all .35s var(--ease); }
.amenity:hover { background: rgba(255, 255, 255, .08); transform: translateY(-5px); border-color: rgba(198, 161, 91, .5); }
.amenity-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: var(--navy); background: linear-gradient(135deg, #e6c888, var(--gold)); margin-bottom: 18px; }
.amenity h3 { font-size: 1.1rem; margin-bottom: 8px; }
.amenity p { font-size: .92rem; margin: 0; color: rgba(255, 255, 255, .68); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.gallery-item.is-big { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 35, 64, .45); color: #fff; font-size: 1.6rem; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-zoom { opacity: 1; }
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry-item { display: block; position: relative; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; break-inside: avoid; }
.masonry-item img { width: 100%; transition: transform .6s var(--ease); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }

/* ---------- Reviews ---------- */
.review-swiper { padding-bottom: 56px !important; }
.review { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%; position: relative; }
.review::before { content: '\201C'; position: absolute; right: 26px; top: 6px; font-family: var(--font-head); font-size: 5rem; color: var(--gold-soft); line-height: 1; }
.stars { color: #f0b429; margin-bottom: 12px; font-size: .9rem; display: flex; gap: 3px; }
.review blockquote { margin: 0 0 22px; color: var(--text); font-size: .98rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption img, .avatar-txt { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-txt { display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.review figcaption strong { display: block; color: var(--ink); }
.review figcaption small { color: var(--muted); }
.review-swiper .swiper-slide { height: auto; }
.review-pagination .swiper-pagination-bullet-active, .swiper-pagination-bullet-active { background: var(--gold) !important; }

/* ---------- FAQ & consult ---------- */
.faq-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s; }
.faq[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--gold-2); transition: transform .3s; flex-shrink: 0; }
.faq[open] summary i { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--text); }
.consult-card { background: linear-gradient(160deg, var(--navy), var(--navy-3)); border-radius: var(--radius-lg); padding: 38px 34px; color: rgba(255, 255, 255, .8); box-shadow: var(--shadow-lg); position: sticky; top: 100px; }
.consult-card h3 { color: #fff; font-family: var(--font-head); font-size: 1.6rem; }
.consult-card .form-control { background-color: rgba(255, 255, 255, .96); border-color: transparent; }

/* ---------- Forms ---------- */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; min-width: 0; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; }
.consult-card .form-note { color: rgba(255, 255, 255, .6); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 12px; padding: 4px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .2s; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.estimate { background: var(--gold-soft); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink); }
.estimate strong { color: var(--gold-2); font-size: 1.05rem; }
.estimate .est-row { display: flex; justify-content: space-between; gap: 10px; }
.estimate .est-total { border-top: 1px dashed rgba(173, 135, 66, .4); margin-top: 6px; padding-top: 6px; font-weight: 600; }

/* ---------- Posts ---------- */
.post-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-media { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-cat { position: absolute; left: 14px; top: 14px; background: var(--gold); color: #fff; font-size: .74rem; font-weight: 600; padding: .35em .85em; border-radius: 999px; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post-meta i { color: var(--gold-2); }
.post-title { font-size: 1.12rem; line-height: 1.45; margin-bottom: 10px; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--gold-2); }
.post-body p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.link-more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; }
.link-more i { transition: transform .25s; }
.link-more:hover i { transform: translateX(4px); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 42px + 70px) 0 70px; color: #fff; background: var(--navy) var(--bg) center/cover no-repeat; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 24, 45, .92), rgba(8, 24, 45, .6)); }
.page-hero-inner { position: relative; }
.page-hero h1 { color: #fff; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 3rem); max-width: 900px; margin: 14px 0 10px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 680px; margin: 0; font-size: 1.05rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .bi-chevron-right { font-size: .7rem; opacity: .6; }
.breadcrumb span { color: var(--gold); max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--text); display: flex; gap: 7px; align-items: center; }
.filter-tab:hover { background: var(--bg-soft); color: var(--navy); }
.filter-tab.active { background: var(--navy); color: #fff; }
.filter-tab.active i { color: var(--gold); }
.filter-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-fields .form-control { width: auto; min-width: 170px; padding-top: .6em; padding-bottom: .6em; }
.result-count { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.result-count strong { color: var(--ink); }
.pill-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink); display: inline-flex; gap: 8px; }
.pill i { color: var(--gold-2); }
.pill:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 48px 0 0; flex-wrap: wrap; }
.pagination .page-link { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.pagination a.page-link:hover { border-color: var(--gold); color: var(--gold-2); }
.pagination .active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .disabled .page-link { opacity: .45; }

/* ---------- Detail ---------- */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.detail-gallery .dg-item { position: relative; overflow: hidden; display: block; background: var(--bg-soft); }
.detail-gallery .dg-item:first-child { grid-row: span 2; }
.detail-gallery .dg-item.is-hidden { display: none; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.detail-gallery .dg-item:hover img { transform: scale(1.05); }
.detail-gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 480px; }
.detail-gallery.count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 420px; }
.detail-gallery.count-2 .dg-item:first-child, .detail-gallery.count-1 .dg-item:first-child { grid-row: auto; }
.detail-gallery.count-3 { grid-template-columns: 2fr 1fr; }
.detail-gallery.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.detail-gallery.count-4 .dg-item:nth-child(4) { grid-column: span 2; }
.dg-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 35, 64, .6); color: #fff; font-weight: 600; font-size: 1.1rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; align-items: start; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.detail-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.detail-loc { color: var(--muted); }
.detail-loc i { color: var(--gold-2); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 30px; }
.spec { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.spec i { grid-row: span 2; font-size: 1.4rem; color: var(--gold-2); width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border-radius: 10px; }
.spec span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.spec strong { color: var(--ink); font-size: .98rem; }
.lead { font-size: 1.1rem; color: var(--ink); line-height: 1.7; }
.detail-block { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.price-table { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; }
.price-table table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { text-align: right; }
.price-table td i { color: var(--gold-2); margin-right: 8px; }
.price-table strong { color: var(--navy); font-size: 1.08rem; }
.price-table small { color: var(--muted); font-weight: 400; }
.price-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.amenity-list-lg { grid-template-columns: repeat(2, 1fr); }
.amenity-list li { display: flex; gap: 10px; align-items: center; }
.amenity-list i { color: var(--gold-2); font-size: 1.15rem; }
.detail-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.booking-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; border: 1px solid var(--line); }
.booking-price { display: flex; align-items: baseline; gap: 6px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.booking-price strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); }
.booking-price span { color: var(--muted); }
.booking-price-sale { flex-direction: column; gap: 2px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); border-radius: var(--radius); padding: 16px 20px; border: 0; color: #fff; }
.booking-price-sale span, .booking-price-sale small { color: rgba(255, 255, 255, .72); font-size: .82rem; }
.booking-price-sale strong { color: #f1d69c; font-size: 2.1rem; line-height: 1.15; }
.help-card { display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; }
.help-card > div { flex: 1; }
.help-card small { display: block; color: var(--muted); font-size: .8rem; }
.help-card a:not(.btn) { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.help-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1.25rem; }

/* ---------- Compare / reasons / policy ---------- */
.compare { margin-top: 56px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
.compare-table th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; text-align: left; padding: 14px 18px; text-transform: uppercase; letter-spacing: .04em; }
.compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td small { display: block; color: var(--muted); }
.compare-table td a strong { color: var(--ink); }
.td-price { font-weight: 700; color: var(--gold-2); font-size: 1.05rem; white-space: nowrap; }
.reason-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.reason-list li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.reason-list span { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); line-height: 1; font-weight: 700; }
.reason-list p { margin: 0; color: var(--ink); }
.policy-card { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.policy-card h3 { font-size: 1.2rem; display: flex; gap: 10px; }
.policy-card h3 i { color: var(--gold-2); }
.info-box { display: flex; gap: 18px; margin-top: 48px; background: var(--gold-soft); border-radius: var(--radius-lg); padding: 24px 28px; }
.info-box-icon { font-size: 1.6rem; color: var(--gold-2); }

/* ---------- Article & content ---------- */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.article-meta i { color: var(--gold-2); }
.article-meta .badge { color: #fff; }
.article-lead { font-weight: 500; padding-left: 18px; border-left: 3px solid var(--gold); }
.content { color: var(--text); font-size: 1.02rem; line-height: 1.8; overflow-wrap: anywhere; }
.content h2 { font-family: var(--font-head); font-size: 1.65rem; margin: 1.6em 0 .6em; }
.content h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.content h4 { font-size: 1.1rem; margin: 1.2em 0 .5em; }
.content img { border-radius: var(--radius); margin: 1.2em auto; height: auto !important; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.content li { margin-bottom: .35em; }
.content blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.content th { background: var(--bg-soft); }
.content a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.content iframe { max-width: 100%; border-radius: var(--radius); }
.content > *:first-child { margin-top: 0; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-weight: 600; color: var(--ink); margin-right: 4px; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); font-size: 1rem; transition: all .2s; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 96px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.widget-title { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-soft); }
.widget-search { position: relative; padding: 0; border: 0; }
.widget-search .form-control { padding-right: 50px; border-radius: 999px; }
.widget-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--text); border-bottom: 1px dashed var(--line); }
.cat-list li:last-child a { border: 0; }
.cat-list a:hover { color: var(--gold-2); }
.cat-list em { font-style: normal; font-size: .8rem; background: var(--bg-soft); border-radius: 999px; padding: 1px 10px; color: var(--muted); }
.mini-apt { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.mini-apt:last-child { border: 0; }
.mini-apt img { width: 84px; height: 66px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mini-apt strong { display: block; font-size: .9rem; line-height: 1.35; font-weight: 600; }
.mini-apt em { font-style: normal; font-size: .85rem; color: var(--gold-2); font-weight: 600; }
.widget-cta { background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: rgba(255, 255, 255, .8); text-align: center; border: 0; }
.widget-cta > i { font-size: 2.2rem; color: var(--gold); }
.widget-cta h4 { color: #fff; margin-top: 8px; }
.cta-inline { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inline h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 4px; }
.cta-inline p { margin: 0; color: var(--muted); }
.cta-inline-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; color: var(--text); transition: all .3s var(--ease); }
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--text); }
.contact-card > span { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); font-size: 1.4rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { margin: 0; word-break: break-word; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: var(--bg-soft); }
.map-card iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state > i { font-size: 3rem; color: var(--gold); }
.empty-state h3 { margin-top: 14px; }
.big-404 { display: block; font-family: var(--font-head); font-size: 7rem; line-height: 1; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: #081a30; color: rgba(255, 255, 255, .7); font-size: .94rem; }
.footer-cta { background: linear-gradient(120deg, var(--navy-2), var(--navy-3)); }
.footer-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 20px; flex-wrap: wrap; }
.footer-cta h3 { color: #fff; font-family: var(--font-head); font-size: 1.7rem; margin-bottom: 6px; }
.footer-cta p { margin: 0; color: rgba(255, 255, 255, .72); }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, .72); }
.footer-col a:hover { color: var(--gold); }
.footer-about p { margin: 18px 0 20px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--gold); margin-top: 3px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: all .25s; }
.socials a:hover { background: var(--gold); color: #fff; }
.socials .zalo-txt { font-size: .68rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: .86rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .6); }

/* ---------- Floating & utilities ---------- */
.float-contact { position: fixed; left: 20px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; transition: opacity .3s, transform .3s, visibility .3s; }
body.home:not(.past-hero) .float-contact { opacity: 0; visibility: hidden; transform: translateY(20px); }
.float-contact a { display: flex; align-items: center; gap: 10px; color: #fff; border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; }
.fc-zalo { width: 54px; height: 54px; justify-content: center; background: #0068ff; font-size: .8rem; }
.fc-mess { width: 54px; height: 54px; justify-content: center; background: linear-gradient(135deg, #00b2ff, #a033ff); font-size: 1.4rem; }
.fc-phone { background: var(--red); padding: 0 20px 0 0; height: 54px; }
.fc-phone i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font-size: 1.25rem; animation: ring 1.6s infinite; position: relative; }
.fc-phone i::before { position: relative; z-index: 1; }
.fc-phone i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; z-index: 0; }
.float-contact a:hover { color: #fff; filter: brightness(1.08); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }
.mobile-bar { display: none; }
.back-to-top { position: fixed; right: 22px; bottom: 26px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 1.1rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold-2); }

.flash { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 150; max-width: 560px; width: calc(100% - 32px); padding: 14px 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-weight: 500; animation: fadeOut 6s forwards; }
.flash-success { background: #e3f6ee; color: #11704b; }
.flash-error { background: #fde8e8; color: #a02727; }
@keyframes fadeOut { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); z-index: 300; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .35s var(--ease); max-width: calc(100% - 32px); font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.success { background: #11704b; }
.toast.error { background: #a02727; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: all .3s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 24, 45, .65); backdrop-filter: blur(3px); }
.modal-dialog { position: relative; background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 460px; padding: 34px 30px 28px; box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.98); transition: transform .3s var(--ease); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.open .modal-dialog { transform: none; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); }
.modal-head { margin-bottom: 18px; }
.modal-head h3 { font-family: var(--font-head); font-size: 1.55rem; margin-bottom: 4px; }
.modal-sub { color: var(--muted); margin: 0; font-size: .92rem; }
body.no-scroll { overflow: hidden; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* GLightbox caption */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 12px 0; }
.glightbox-clean .gslide-desc { color: #fff; text-align: center; font-family: var(--font); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .main-nav > ul > li > a { padding: 10px 9px; font-size: .9rem; }
  .main-nav > ul > li > a::after { left: 9px; right: 9px; }
  .nav-cta { display: none; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; }
}

@media (max-width: 991px) {
  :root { --header-h: 70px; }
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; z-index: 120;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 24px; transform: translateX(100%);
    transition: transform .35s var(--ease); overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: none; }
  .main-nav-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); }
  .main-nav > ul { flex-direction: column; padding: 10px 12px; gap: 0; }
  .main-nav > ul > li > a, .site-header.scrolled .main-nav > ul > li > a { color: var(--ink); padding: 13px 12px; font-size: 1rem; justify-content: space-between; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav > ul > li > a.active { color: var(--gold-2); background: var(--bg-soft); }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 12px; min-width: 0; display: none; }
  .main-nav .has-sub.open .sub { display: block; }
  .main-nav .has-sub > a i { transition: transform .3s; }
  .main-nav .has-sub.open > a i { transform: rotate(180deg); }
  .nav-cta { display: flex; margin: 12px 20px 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(8, 24, 45, .55); z-index: 110; opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .site-header.scrolled .navbar-inner { height: 64px; }

  .section { padding: 72px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .faq-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-search { grid-template-columns: 1fr; }
  .hs-submit { margin-top: 16px; }
  .hero-content { padding-bottom: 330px; }
  .hero-pagination.swiper-pagination { bottom: 330px !important; }
  .detail-grid, .layout-sidebar { grid-template-columns: 1fr; }
  .detail-aside, .sidebar, .consult-card, .policy-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-list { grid-template-columns: repeat(2, 1fr); }
  .section-head-split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-tight { padding: 36px 0 52px; }
  .section-head { margin-bottom: 32px; }
  .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .amenities .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .amenity { padding: 18px 16px; }
  .amenity-icon { width: 46px; height: 46px; font-size: 1.3rem; margin-bottom: 12px; border-radius: 12px; }
  .amenity h3 { font-size: .98rem; }
  .amenity p { font-size: .84rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.15rem; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-text small { font-size: .6rem; letter-spacing: .16em; }
  .hero-content { padding-top: 100px; padding-bottom: 36px; }
  .hero { min-height: auto; }
  .hero-swiper { position: relative; }
  .hero-slide { min-height: 78vh; min-height: 78svh; }
  .hero-pagination.swiper-pagination { bottom: 16px !important; }
  .hero-search-wrap { margin-top: -18px; padding-bottom: 24px; }
  .hero-search { padding: 0 16px 16px; border-radius: var(--radius); }
  .hs-fields { grid-template-columns: 1fr; gap: 12px; }
  .hs-tabs button { padding: 14px 8px 12px; font-size: .84rem; flex: 1; justify-content: center; }
  .hs-tabs button i, .hs-long { display: none; }
  .hs-short { display: inline !important; }
  .about-media { padding: 0 24px 24px 0; }
  .about-badge { left: 10px; top: 16px; padding: 12px 16px; min-width: 0; }
  .about-badge strong { font-size: 1.5rem; }
  .about-points { grid-template-columns: 1fr; }
  .stat { padding: 22px 12px; }
  .stat strong { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .detail-gallery, .detail-gallery.count-3, .detail-gallery.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; border-radius: var(--radius); gap: 6px; margin-bottom: 28px; }
  .detail-gallery .dg-item:first-child { grid-column: span 2; grid-row: auto; }
  .detail-gallery .dg-item:nth-child(n+4) { display: none; }
  .detail-gallery .dg-item:nth-child(4) { grid-column: auto; }
  .detail-gallery.count-1 { grid-template-rows: 260px; }
  .detail-gallery.count-2 { grid-template-rows: 240px 140px; }
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .spec { padding: 12px; column-gap: 10px; }
  .spec i { width: 36px; height: 36px; font-size: 1.15rem; }
  .amenity-list, .amenity-list-lg { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .filter-tab { white-space: nowrap; padding: 9px 14px; }
  .filter-fields { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-fields .form-control { min-width: 0; width: 100%; }
  .filter-fields select:last-of-type { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .footer-cta h3 { font-size: 1.35rem; }
  .contact-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-card { padding: 20px 12px; }
  .contact-form-card { padding: 24px 18px; }
  .map-card, .map-card iframe { min-height: 320px; }
  .booking-card { padding: 20px; }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 40px; }
  .consult-card { padding: 28px 20px; }
  .sale-actions { grid-template-columns: 1fr 1fr; }
  .float-contact { display: none; }
  .back-to-top { bottom: 80px; right: 14px; width: 42px; height: 42px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: #fff; box-shadow: 0 -4px 20px rgba(12, 35, 64, .12); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border: 0; background: none; color: var(--ink); font-size: .74rem; font-weight: 600; }
  .mobile-bar a:first-child { background: var(--red); color: #fff; }
  .mobile-bar i { font-size: 1.2rem; }
  .zalo-mini { font-size: .8rem; color: #0068ff; font-weight: 800; line-height: 1.4; }
  .toast { bottom: 80px; }
  .flash { top: 80px; }
  .compare { margin-top: 40px; }
}
