/* ==========================================================================
   PhusaLand — site.css
   Tokens & motion theo HANDOFF.md. Góc vuông, đồng/navy trên nền kem.
   ========================================================================== */

:root {
  --copper: #C57421;
  --bronze: #A46427;
  --copper-deep: #7E4A17;
  --copper-light: #E3A866;
  --navy: #1C3341;
  --navy-deep: #15252F;
  --navy-text: #B9C6CD;
  --cream: #F8F3EC;
  --sand: #F3EBDF;
  --sand-2: #EFE5D7;
  --line: #E2D6C5;
  --ink: #221C17;
  --ink-2: #3D342C;
  --muted: #6B5F53;
  --white: #FFFFFF;

  --ph-1: #C9A47E; --ph-2: #B8906B; --ph-3: #8E9EA6; --ph-4: #D8C2A4;
  --ph-5: #6F8290; --ph-6: #A98260; --ph-7: #E6D7C1; --ph-8: #9C7B5E;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-mask: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1520px; /* bề rộng tối đa của nội dung (thiết kế gốc: 1280px) */
  --header-h: 75px;
  --shadow-card: 0 28px 56px -32px rgba(34, 28, 23, .5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main#main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--copper-deep); }
a:hover { color: var(--copper); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 12px 18px; text-decoration: none; transition: top .3s;
}
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); }
.em { font-style: italic; color: var(--bronze); }
.em--light { font-style: italic; color: var(--copper-light); }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-deep);
}
.eyebrow--line::before { content: ""; width: 40px; height: 1px; background: var(--copper); flex: none; }
.eyebrow--light { color: var(--copper-light); }
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 84px); line-height: 1.02; letter-spacing: -.01em; }
.h1--page { font-size: clamp(44px, 5vw, 68px); line-height: 1; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4vw, 56px); line-height: 1.05; }
.h2--sm { font-size: clamp(36px, 4vw, 50px); }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.1; }
.lead { font-size: 16px; line-height: 1.75; color: var(--muted); font-weight: 300; max-width: 560px; }
.lead--lg { font-size: 17px; max-width: 500px; }
.muted { color: var(--muted); }
.price { font-family: var(--serif); font-weight: 600; color: var(--copper-deep); line-height: 1; }
.prose { font-size: 16px; line-height: 1.85; color: var(--ink-2); display: flex; flex-direction: column; gap: 14px; }
.prose h3, .prose h4 { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; background: var(--bronze); color: var(--white);
  padding: 17px 28px; font-size: 15px; font-weight: 500; letter-spacing: .03em; text-decoration: none;
  transition: background-color .35s, transform .35s, box-shadow .35s, color .35s;
}
.btn:hover {
  background: var(--copper-deep); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(126, 74, 23, .7);
}
.btn--sm { padding: 13px 22px; font-size: 14px; }
.btn--copper { background: var(--copper); }
.btn--dark { background: var(--ink); }
.btn--block { width: 100%; height: 52px; padding: 0 20px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: 17px 28px; font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .35s, color .35s, border-color .35s;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.arrow { transition: transform .4s var(--ease); flex: none; }
a:hover > .arrow, button:hover > .arrow, .card:hover .arrow, a:hover .arrow { transform: translateX(6px); }
.arrow--up { transition: transform .4s var(--ease); }
a:hover .arrow--up { transform: translate(3px, -3px); }
.link-more {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--copper); padding-bottom: 6px; text-decoration: none; white-space: nowrap;
}
.link-more:hover { color: var(--copper-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 243, 236, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s, background-color .4s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(34, 28, 23, .45); background: rgba(248, 243, 236, .97); }
.site-header__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; overflow: visible; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.brand__name span { color: var(--copper); }
.brand__tag { font-size: 9px; font-weight: 600; letter-spacing: .3em; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; letter-spacing: .03em; }
.nav a { position: relative; text-decoration: none; color: var(--ink); transition: color .3s; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--copper);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--copper-deep); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.hotline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; text-decoration: none; transition: color .3s;
}
.icon-btn:hover { color: var(--copper-deep); }
.cart-badge {
  position: absolute; right: 2px; top: 2px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px;
  background: var(--bronze); color: var(--white); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.cart-badge[data-count="0"] { display: none; }
.cart-badge.pop { animation: lxPop .5s ease; }
.header-search { display: none; padding-bottom: 18px; }
.header-search.is-open { display: block; animation: lxDown .4s var(--ease) both; }
.header-search form { display: flex; gap: 0; max-width: 560px; margin-left: auto; }
.header-search .field { border-right: 0; }

@media (max-width: 760px) {
  .site-header__in { padding-top: 12px; padding-bottom: 0; gap: 10px 16px; }
  .nav {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    padding: 10px var(--gutter) 12px; flex-wrap: nowrap; overflow-x: auto; gap: 24px; white-space: nowrap;
    border-top: 1px solid var(--sand-2); scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .hotline__text { display: none; }
  .brand__name { font-size: 26px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__tag { font-size: 8px; letter-spacing: .24em; }
  .header-actions { gap: 8px; }
  .header-actions .btn--sm { padding: 11px 14px; font-size: 13px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--cream); margin-top: auto; }
.site-footer a { color: #DDE4E8; text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--copper-light); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
  padding-top: 80px; padding-bottom: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col h2 { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--copper-light); font-family: var(--sans); }
.footer-brand { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; }
.footer-brand span { color: var(--copper-light); }
.footer-note { font-size: 14px; line-height: 1.7; color: var(--navy-text); }
.newsletter { display: flex; }
.newsletter input {
  flex: 1; min-width: 0; height: 46px; border: 1px solid rgba(248, 243, 236, .25); background: transparent;
  color: var(--cream); padding: 0 14px; font-size: 14px;
}
.newsletter input:focus { outline: none; border-color: var(--copper-light); }
.newsletter button { width: 48px; border: 0; background: var(--copper); color: var(--white); font-size: 18px; transition: background-color .3s; }
.newsletter button:hover { background: var(--copper-deep); }
.footer-bottom {
  padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(248, 243, 236, .12); font-size: 13px; color: #93A3AC;
}
.footer-mini { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.footer-mini__brand { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.footer-mini__brand span { color: var(--copper-light); }
.footer-mini__meta { font-size: 13px; color: #93A3AC; }
.footer-mini__meta a { color: #C3CDD2; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs li { display: flex; gap: 10px; }
.crumbs li + li::before { content: "/"; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--copper-deep); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Image / placeholder ---------- */
.ph { position: relative; overflow: hidden; background: var(--sand-2); }
.ph-in {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 16px);
  transition: transform 1.4s var(--ease), opacity .7s;
}
img.ph-in { width: 100%; height: 100%; object-fit: cover; background: none; }
.t1 { background-color: var(--ph-1); } .t2 { background-color: var(--ph-2); }
.t3 { background-color: var(--ph-3); } .t4 { background-color: var(--ph-4); }
.t5 { background-color: var(--ph-5); } .t6 { background-color: var(--ph-6); }
.t7 { background-color: var(--ph-7); } .t8 { background-color: var(--ph-8); }
.ph-label { position: absolute; right: 20px; top: 20px; font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .92); }
.card:hover .ph-in, .ph--zoom:hover .ph-in { transform: scale(1.07); }
img.ph-in.is-loading { opacity: 0; }

/* ---------- Tags ---------- */
.tag {
  position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--bronze); color: var(--white);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; padding: 6px 10px; text-transform: uppercase;
}
.tag--light { background: var(--cream); color: var(--ink); }
.tag--rent { background: var(--navy); }
.tag--lg { left: 20px; top: 20px; font-size: 12px; padding: 8px 14px; }
.pill { border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.pill--copper { border-color: var(--copper); color: var(--copper-deep); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); color: var(--ink);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card a { color: inherit; text-decoration: none; }
/* Link phủ toàn thẻ, nút bên trong vẫn bấm được */
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--copper); outline-offset: 3px; }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__price { font-size: 30px; }
.card__title { font-size: 16px; font-weight: 500; line-height: 1.4; }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.card__specs {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--sand-2); font-size: 13px;
}
.card__specs .end { margin-left: auto; color: var(--muted); }
.card .ph { height: 220px; }
.photo-count {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 12px; color: var(--white);
  background: rgba(34, 28, 23, .55); padding: 4px 8px;
}
.heart {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .88); display: flex; align-items: center; justify-content: center; color: var(--copper-deep);
  transition: transform .3s, background-color .3s;
}
.heart:hover { transform: scale(1.1); background: var(--white); }
.heart svg path { transition: fill .3s; }
.heart[aria-pressed="true"] svg path { fill: currentColor; }
.heart.pop { animation: lxPop .5s ease; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }

/* List variant */
.card--row { flex-direction: row; flex-wrap: wrap; }
.card--row .ph { flex: 1 1 300px; min-height: 220px; height: auto; }
.card--row .card__body { flex: 2 1 340px; padding: 28px; gap: 12px; }
.card--row .card__title { font-size: 18px; }
.card--row .row-specs { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.card--row .row-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--sand-2);
}
.card--row .card__price { font-size: 34px; }
.more-link { font-size: 14px; font-weight: 500; color: var(--copper-deep); }

/* ---------- Sections ---------- */
.section { padding-top: 112px; padding-bottom: 112px; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--line { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.sec-head__text { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 760px) { .section { padding-top: 72px; padding-bottom: 72px; } }

/* ---------- Forms ---------- */
.field {
  width: 100%; height: 48px; border: 1px solid var(--line); background: var(--white); padding: 0 14px;
  font-size: 15px; color: var(--ink); border-radius: 0; transition: border-color .3s, box-shadow .3s;
}
.field:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(197, 116, 33, .12); }
select.field {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237E4A17' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
textarea.field { height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field--sm { height: 46px; font-size: 14px; padding: 0 12px; }
.field--xs { height: 44px; font-size: 14px; padding: 0 12px; width: auto; }
select.field--xs { padding-right: 34px; }
.field.is-invalid { border-color: #B3261E; }
.lbl { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.lbl--caps { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; gap: 10px; }
.lbl--inline { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.err { font-size: 12px; color: #B3261E; font-weight: 400; letter-spacing: 0; text-transform: none; }
fieldset.fs { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
fieldset.fs legend { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; padding: 0; text-transform: uppercase; }

.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 10px 18px;
  font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--copper); color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Ô chọn dạng nút (radio ẩn) */
.mini { position: relative; display: inline-flex; }
.mini input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mini span {
  min-width: 44px; height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--ink);
  transition: all .3s;
}
.mini:hover span { border-color: var(--copper); }
.mini input:checked + span { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.mini input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
button.mini-btn {
  min-width: 44px; height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--ink); transition: all .3s;
}
button.mini-btn:hover { border-color: var(--copper); }
button.mini-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.on-dark button.mini-btn { background: transparent; color: var(--cream); border-color: rgba(248, 243, 236, .3); }
.on-dark button.mini-btn:hover { border-color: var(--copper-light); }
.on-dark button.mini-btn[aria-pressed="true"] { background: var(--bronze); border-color: var(--bronze); color: var(--white); }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--bronze); margin: 0; }

.view-btn {
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); color: var(--muted);
  display: flex; align-items: center; justify-content: center; transition: all .3s; text-decoration: none;
}
.view-btn:hover { border-color: var(--copper); color: var(--ink); }
.view-btn[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.pager a, .pager span {
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); display: flex;
  align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: none; transition: all .3s;
}
.pager a:hover { border-color: var(--copper); color: var(--copper-deep); }
.pager [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pager .gap { border-color: transparent; background: transparent; }
.pager .off { opacity: .4; }

.form-status { font-size: 14px; line-height: 1.6; }
.form-status.ok { color: #2F6B3A; }
.form-status.bad { color: #B3261E; }
.form-done {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  animation: lxUp .7s var(--ease) both;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 24px); opacity: 0;
  background: var(--ink); color: var(--cream); padding: 14px 22px; font-size: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  transition: opacity .4s, transform .5s var(--ease); pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--copper-light); }

/* ==========================================================================
   Trang chủ
   ========================================================================== */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__text h1 > span { display: block; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { flex: 1 1 460px; min-width: 0; position: relative; padding: 0 0 32px 32px; }
.hero__frame { position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border: 1px solid var(--copper); }
.hero__img { height: 640px; }
.hero__float {
  position: absolute; left: 0; bottom: 64px; z-index: 2; background: var(--white); padding: 22px 26px;
  display: flex; gap: 22px; align-items: center; box-shadow: 0 24px 50px -28px rgba(34, 28, 23, .45);
  color: var(--ink); text-decoration: none;
  transition: transform .6s var(--ease), box-shadow .6s;
}
.hero__float:hover { color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow-card); }
.hero__float small { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--copper-deep); }
.hero__float strong { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; }
.hero__float .muted { font-size: 13px; }
.round-arrow {
  width: 44px; height: 44px; border-radius: 50%; background: var(--copper); color: var(--white); flex: none;
  display: flex; align-items: center; justify-content: center; transition: background-color .3s;
}
.hero__float:hover .round-arrow { background: var(--copper-deep); }
@media (max-width: 760px) {
  .hero { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .hero__img { height: 420px; }
  .hero__media { padding: 0 0 20px 20px; }
  .hero__float { bottom: 40px; padding: 16px 18px; gap: 14px; }
  .hero__float strong { font-size: 22px; }
}

.search-card { margin-top: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(34, 28, 23, .35); }
.search-tabs {
  display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid var(--sand-2);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  border: 0; background: transparent; padding: 14px 4px; font-size: 14px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; white-space: nowrap;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--copper); }
.search-fields { display: flex; flex-wrap: wrap; gap: 14px; padding: 20px 24px 24px; align-items: flex-end; }
.search-fields .lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.search-fields .grow-2 { flex: 2 1 170px; }
.search-fields .grow-1 { flex: 1 1 124px; }
.search-fields [hidden] { display: none; }
.search-go {
  height: 48px; width: 56px; border: 0; background: var(--ink); color: var(--white); flex: none;
  display: flex; align-items: center; justify-content: center; transition: background-color .35s, transform .35s;
}
.search-go:hover { background: var(--copper-deep); transform: translateY(-2px); }

.pillars { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sand); }
.pillars__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pillar {
  display: flex; flex-direction: column; gap: 16px; padding: 48px 36px; border-left: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: background-color .5s;
}
.pillar:hover { background: rgba(255, 255, 255, .45); color: var(--ink); }
.pillar__no { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--copper); }
.pillar__title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; }
.pillar__desc { font-size: 15px; line-height: 1.7; color: var(--muted); }
.pillar__cta { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--copper-deep); }

.projects { display: flex; flex-wrap: wrap; gap: 28px; }
.projects__main { flex: 3 1 520px; min-width: 0; }
.projects__main .ph { height: 520px; }
.projects__side { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.projects__side .card { flex: 1 1 0; }
.projects__side .ph { height: 230px; flex: none; }
.project-body { padding: 28px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.project-body--sm { padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 6px; }
.project-name { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1.05; }
.project-body--sm .project-name { font-size: 28px; }
.project-meta { font-size: 13px; color: var(--muted); }
.project-price { font-size: 14px; color: var(--muted); }
.project-price strong { font-family: var(--serif); font-size: 26px; color: var(--copper-deep); }
@media (max-width: 760px) { .projects__main .ph { height: 340px; } .project-name { font-size: 30px; } }

.cta-navy { display: flex; flex-wrap: wrap; gap: 64px; }
.cta-navy__text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 24px; }
.cta-navy__text .h2 { font-size: clamp(40px, 4.4vw, 60px); }
.cta-navy__text p { max-width: 440px; font-size: 16px; line-height: 1.75; color: var(--navy-text); font-weight: 300; }
.steps { flex: 1 1 460px; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.step {
  display: flex; gap: 28px; padding: 28px 0; border-top: 1px solid rgba(248, 243, 236, .16);
  transition: padding-left .45s var(--ease);
}
.step:hover { padding-left: 12px; }
.step__no { font-family: var(--serif); font-size: 40px; font-style: italic; color: var(--copper-light); line-height: 1; width: 56px; flex: none; }
.step__title { font-size: 19px; font-weight: 500; }
.step__desc { font-size: 14px; line-height: 1.65; color: var(--navy-text); }

.deco-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 24px; }
.deco-mosaic .big { grid-column: span 2; grid-row: span 2; }
.deco-tile { position: relative; display: block; overflow: hidden; color: var(--ink); text-decoration: none; }
.deco-tile:hover { color: var(--ink); }
.deco-tile:hover .ph-in { transform: scale(1.07); }
.deco-tile__bar {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; background: rgba(248, 243, 236, .95);
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: transform .6s var(--ease);
}
.deco-tile:hover .deco-tile__bar { transform: translateY(-4px); }
.deco-tile__bar span:first-child { font-size: 15px; font-weight: 500; }
.deco-tile__bar span:last-child { font-size: 14px; color: var(--copper-deep); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
  .deco-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .deco-mosaic .big { grid-row: span 1; }
}
@media (max-width: 520px) {
  .deco-mosaic { grid-template-columns: 1fr; }
  .deco-mosaic .big { grid-column: span 1; }
}

.contact { display: flex; flex-wrap: wrap; gap: 64px; }
.contact__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.contact__lines { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; font-size: 15px; }
.contact__lines a { color: var(--ink); text-decoration: none; }
.contact__lines a:hover { color: var(--copper-deep); }
/* Luôn 2 cột bằng nhau (auto-fit từng tạo cột thứ 3 trống làm 2 ô đầu lệch so với ô full) */
.lead-form {
  flex: 1 1 480px; background: var(--white); padding: 40px; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start;
}
.lead-form .full { grid-column: 1 / -1; }
.lead-form .btn { height: 54px; }
@media (max-width: 560px) { .lead-form { padding: 24px; grid-template-columns: minmax(0, 1fr); } }

/* Captcha phép tính (site.js tự chèn trước nút gửi) */
.captcha { display: flex; flex-direction: column; gap: 8px; }
.captcha__row { display: flex; gap: 10px; }
.captcha__img {
  display: block; flex: none; width: 132px; height: 48px; border: 1px solid var(--line); background: var(--sand);
  color: var(--muted); font-size: 11px; line-height: 1.3; overflow: hidden; transition: opacity .3s;
}
.captcha__new {
  flex: none; width: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white);
  color: var(--muted); cursor: pointer; transition: color .3s, border-color .3s;
}
.captcha__new:hover, .captcha__new:focus-visible { color: var(--copper-deep); border-color: var(--copper); }
.captcha__new svg { transition: transform .5s var(--ease); }
.captcha.is-loading .captcha__img { opacity: .4; }
.captcha.is-loading .captcha__new svg { transform: rotate(-180deg); }
.captcha .field { flex: 1 1 auto; min-width: 0; }
.captcha--sm .captcha__img, .captcha--sm .captcha__new { height: 46px; }
.captcha--sm .captcha__img { width: 126px; }
.captcha--sm .captcha__new { width: 46px; }

/* ==========================================================================
   Danh sách ký gửi
   ========================================================================== */
.page-head { border-bottom: 1px solid var(--line); }
.page-head__in { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.page-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head__text { display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Hình thức (Chuyển nhượng / Cho thuê) đặt trên hàng loại hình */
.chip-groups { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chips--deal .chip { font-weight: 600; }
@media (max-width: 760px) { .chip-groups { align-items: flex-start; } }

.listing-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 96px; }
.filters { flex: 1 1 260px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .filters { position: sticky; top: calc(var(--header-h) + 24px); max-width: 320px; } }
.filter-box { background: var(--white); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 26px; }
.filter-box__head { display: flex; justify-content: space-between; align-items: center; }
.filter-box__head h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.filter-clear { border: 0; background: transparent; color: var(--copper-deep); font-size: 13px; font-weight: 500; text-decoration: underline; padding: 4px; }
.range { display: flex; gap: 10px; align-items: center; }
.mini-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-toggle { display: none; }
@media (max-width: 899px) {
  .filter-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; height: 50px; padding: 0 18px;
    background: var(--white); border: 1px solid var(--line); font-weight: 500;
  }
  .filter-toggle svg { transition: transform .4s var(--ease); }
  .filter-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .filters.is-collapsed .filter-box { display: none; }
  .filters .mini-cta { display: none; }
  .results__tools select { width: 170px; }
  .listing-layout { gap: 24px; padding-top: 24px; }
}
.mini-cta { background: var(--navy); color: var(--cream); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.mini-cta__title { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.1; }
.mini-cta p { font-size: 14px; line-height: 1.65; color: var(--navy-text); }
.mini-cta .btn { align-self: flex-start; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.results__count { font-size: 15px; color: var(--muted); }
.results__count strong { color: var(--ink); }
.results__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.results__tools select { width: 200px; }
.list-rows { display: flex; flex-direction: column; gap: 20px; }
.empty {
  padding: 64px 24px; text-align: center; background: var(--white); border: 1px dashed var(--line); color: var(--muted);
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}

/* ==========================================================================
   Chi tiết ký gửi
   ========================================================================== */
.gallery { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.gallery__main { height: clamp(320px, 46vw, 620px); touch-action: pan-y; cursor: zoom-in; }
.gallery__main .ph-in.is-in { animation: lxFade .7s ease both; }
.gallery__cap {
  position: absolute; left: 24px; bottom: 24px; z-index: 2; background: rgba(34, 28, 23, .6); color: var(--white);
  font-size: 13px; padding: 8px 14px; letter-spacing: .04em;
}
.gallery__nav { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(248, 243, 236, .92); color: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: background-color .3s, transform .3s;
}
.round-btn:hover { background: var(--white); transform: scale(1.08); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.thumb {
  position: relative; height: 96px; border: 0; padding: 0; overflow: hidden; background: var(--sand-2);
  outline: 2px solid transparent; outline-offset: 2px; opacity: .65; transition: outline-color .3s, opacity .3s;
}
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { outline-color: var(--copper); opacity: 1; }
@media (max-width: 600px) {
  .thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 8px; }
  .thumb { flex: 0 0 96px; height: 72px; scroll-snap-align: start; }
  .gallery__cap { left: 12px; bottom: 12px; font-size: 12px; }
  .gallery__nav { right: 12px; bottom: 12px; }
}

.detail-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 48px; padding-bottom: 96px; }
.detail-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.detail-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1000px) { .detail-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.detail-title { display: flex; flex-direction: column; gap: 16px; }
.detail-title h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 54px); line-height: 1.08; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.addr { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.specs > div { padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--sand-2); }
.specs > div:last-child { border-right: 0; }
.specs dt { font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.specs dd { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.block { display: flex; flex-direction: column; gap: 18px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 40px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sand-2); font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }
.amen { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.amen li { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); padding: 10px 16px; font-size: 14px; }
.map { height: 340px; background: #DCE3E6; position: relative; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.12); }
.map__pin {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg); background: var(--copper); box-shadow: 0 10px 20px -8px rgba(126, 74, 23, .7);
}
.map__load {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
}
.nearby { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--white); font-size: 14px; }
.nearby li span:last-child { color: var(--copper-deep); font-weight: 500; white-space: nowrap; }

.side-card {
  background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 30px 60px -44px rgba(34, 28, 23, .4);
}
@media (max-width: 520px) { .side-card { padding: 24px; } }
.side-card__price { font-size: 52px; }
.side-card__unit { font-size: 22px; font-weight: 500; margin-left: 2px; }
.agent { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--sand-2); border-bottom: 1px solid var(--sand-2); }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--ph-4); flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--copper-deep);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-form { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.side-form__title { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.loan { background: var(--navy); color: var(--cream); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.loan__title { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.loan__lbl { font-size: 12px; letter-spacing: .12em; color: var(--navy-text); text-transform: uppercase; }
.loan__out { padding-top: 18px; border-top: 1px solid rgba(248, 243, 236, .16); display: flex; flex-direction: column; gap: 4px; }
.loan__out small { font-size: 13px; color: var(--navy-text); }
.loan__value { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--copper-light); line-height: 1.1; transition: opacity .25s; }
.loan__value.tick { animation: lxTick .45s var(--ease); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(21, 37, 47, .96); color: var(--cream);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lxFadeIn .35s ease both; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { position: relative; width: min(92vw, 1400px); height: min(80vh, 900px); }
.lightbox__stage > .ph-in, .lightbox__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox__stage > .ph-in.is-in, .lightbox__stage > img.is-in { animation: lxFade .5s ease both; }
.lightbox__close { position: absolute; right: 20px; top: 20px; z-index: 2; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__cap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 14px; color: var(--navy-text); }

/* ==========================================================================
   Decor — danh sách
   ========================================================================== */
.decor-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 24px; }
.decor-hero__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.decor-hero__text .h1 { font-size: clamp(46px, 5.4vw, 76px); line-height: 1; }
.decor-hero__img { flex: 1.3 1 480px; height: 380px; }
.decor-hero__card {
  position: absolute; left: 28px; bottom: 28px; z-index: 2; background: var(--cream); padding: 18px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.decor-hero__card small { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--copper-deep); }
.decor-hero__card strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }
@media (max-width: 600px) { .decor-hero__img { height: 280px; flex-basis: 100%; } }

.cat-bar {
  position: sticky; top: var(--header-h); z-index: 20; margin-top: 24px;
  background: rgba(248, 243, 236, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.cat-bar__in { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.cat-bar__in::-webkit-scrollbar { display: none; }
.cat-link {
  padding: 16px 2px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .3s, border-color .3s;
}
.cat-link:hover { color: var(--ink); }
.cat-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--copper); }

.shop { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; padding-bottom: 96px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.swatches { display: flex; align-items: center; gap: 10px; padding-left: 8px; border: 0; margin: 0; }
.swatches legend { float: left; font-size: 14px; color: var(--muted); padding: 0; margin-right: 2px; }
.sw { position: relative; display: inline-flex; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw span {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cream); outline: 1px solid var(--line);
  transition: outline-color .3s, transform .3s; display: block;
}
.sw:hover span { transform: scale(1.12); }
.sw input:checked + span { outline: 2px solid var(--ink); }
.sw input:focus-visible + span { box-shadow: 0 0 0 4px rgba(197, 116, 33, .35); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 24px; }
.prod { position: relative; display: flex; flex-direction: column; gap: 16px; }
.prod .ph { height: 340px; }
.prod .alt { opacity: 0; }
.prod:hover .ph-in { transform: scale(1.06); }
.prod:hover .alt { opacity: 1; }
.prod__info { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.prod__info:hover { color: var(--ink); }
.prod__info::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 340px; z-index: 1; }
.prod__mat { font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.prod__name { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.prod__price { display: flex; align-items: baseline; gap: 10px; }
.prod__price .now { font-size: 16px; font-weight: 600; color: var(--copper-deep); }
.prod__price s { font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.add-btn {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; height: 48px; border: 0;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 500; letter-spacing: .03em;
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s, transform .45s var(--ease), background-color .3s;
}
.prod:hover .add-btn, .add-btn:focus-visible { opacity: 1; transform: none; }
.add-btn:hover { background: var(--bronze); }
.add-btn.is-done { background: var(--bronze); opacity: 1; transform: none; }
@media (hover: none) { .add-btn { opacity: 1; transform: none; height: 44px; } }
.prod .heart { width: 40px; height: 40px; }
.prod .tag { left: 14px; top: 14px; background: var(--cream); color: var(--ink); letter-spacing: .12em; }
.load-more { align-self: center; margin-top: 16px; height: 54px; padding: 0 40px; }
.load-more.is-loading { opacity: .6; pointer-events: none; }
.prod.is-new { animation: lxUp .8s var(--ease) both; }

.consult { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; padding-top: 88px; padding-bottom: 88px; }
.consult__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 18px; }
.consult__text .h2 { font-size: clamp(36px, 4vw, 54px); }
.consult__text p { max-width: 520px; font-size: 16px; line-height: 1.75; color: var(--navy-text); }

/* ==========================================================================
   Decor — chi tiết
   ========================================================================== */
.product { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 28px; padding-bottom: 96px; }
.pgallery { flex: 1.25 1 520px; min-width: 0; display: flex; gap: 16px; flex-wrap: wrap-reverse; }
@media (min-width: 1000px) { .pgallery { position: sticky; top: calc(var(--header-h) + 24px); } }
.pthumbs { display: flex; flex-direction: column; gap: 14px; flex: 0 0 auto; }
.pthumb {
  position: relative; width: 88px; height: 104px; border: 0; padding: 0; overflow: hidden; background: var(--sand-2);
  outline: 2px solid transparent; outline-offset: 3px; opacity: .6; transition: opacity .3s, outline-color .3s;
}
.pthumb:hover { opacity: 1; }
.pthumb[aria-current="true"] { opacity: 1; outline-color: var(--copper); }
.pmain { flex: 1 1 360px; height: clamp(420px, 48vw, 660px); touch-action: pan-y; }
.pmain:hover .ph-in { transform: scale(1.08); }
.pmain .ph-in.is-in { animation: lxFade .8s ease both; }
.pmain__cap {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; background: rgba(248, 243, 236, .92); color: var(--ink);
  font-size: 12px; letter-spacing: .06em; padding: 8px 12px;
}
@media (max-width: 700px) {
  .pthumbs { flex-direction: row; overflow-x: auto; width: 100%; padding: 4px; }
  .pthumb { width: 72px; height: 84px; flex: none; }
  .pmain { height: 420px; }
}
.pinfo { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.pinfo__head { display: flex; flex-direction: column; gap: 12px; }
.pinfo__head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; }
.pinfo__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.pinfo__price .price { font-size: 38px; }
.pinfo__price .price.tick { animation: lxTick .45s var(--ease); }
.pinfo__price s { font-size: 15px; color: var(--muted); }
.pinfo__desc { font-size: 16px; line-height: 1.8; color: var(--ink-2); font-weight: 300; }
.opt-group { display: flex; flex-direction: column; gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.opt-group legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 14px; }
.opt-group legend strong { color: var(--ink); font-weight: 500; }
.opt-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sw-lg {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--cream); outline: 1px solid var(--line);
  padding: 0; transition: outline .3s, transform .3s;
}
.sw-lg:hover { transform: scale(1.08); }
.sw-lg[aria-checked="true"] { outline: 2px solid var(--ink); }
.opt {
  border: 1px solid var(--line); background: var(--white); padding: 0 18px; height: 46px; font-size: 14px; font-weight: 500;
  color: var(--ink); transition: all .3s;
}
.opt:hover { border-color: var(--copper); }
.opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.buy { display: flex; flex-wrap: wrap; gap: 12px; }
.qty { display: flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 46px; height: 54px; border: 0; background: transparent; font-size: 20px; font-weight: 500; transition: background-color .3s; }
.qty button:hover { background: var(--sand-2); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output, .qty input { width: 40px; text-align: center; font-size: 16px; font-weight: 500; border: 0; background: transparent; }
.buy .btn { flex: 1 1 220px; height: 56px; }
.buy .btn-ghost { flex: 1 1 100%; height: 54px; padding: 0 20px; }
.stock { font-size: 13px; color: var(--muted); }
.perks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; margin: 0;
}
.perks li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.perks .ring {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--copper); color: var(--copper);
  display: flex; align-items: center; justify-content: center;
}
.perks strong { font-size: 13px; font-weight: 500; }
.perks span:last-child { font-size: 12px; color: var(--muted); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h2 { font: inherit; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border: 0;
  background: transparent; font-size: 16px; font-weight: 500; color: var(--ink); text-align: left;
}
.acc-btn svg { transition: transform .45s var(--ease); flex: none; }
.acc-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc-panel { padding: 0 0 22px; font-size: 15px; line-height: 1.8; color: var(--ink-2); white-space: pre-line; }
.acc-panel:not([hidden]) { animation: lxDown .5s var(--ease) both; }

.look { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.look__img { flex: 1.2 1 460px; height: 460px; }
.look__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 18px; }
.look__text .btn { align-self: flex-start; }
@media (max-width: 600px) { .look__img { height: 320px; flex-basis: 100%; } }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.related .prod .ph { height: 300px; }
.related .prod__info::after { height: 300px; }

/* ---------- Giỏ hàng ---------- */
.cart-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 32px; padding-bottom: 96px; }
.cart-lines { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .ph { width: 96px; height: 112px; }
.cart-line__name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-line__meta { font-size: 13px; color: var(--muted); }
.cart-line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-line .qty button { height: 40px; width: 36px; font-size: 16px; }
.cart-line .qty output { width: 32px; font-size: 14px; }
.link-btn { border: 0; background: none; color: var(--copper-deep); text-decoration: underline; font-size: 13px; padding: 0; }
.cart-sum { flex: 1 1 360px; background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.cart-sum__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--sand-2); border-bottom: 1px solid var(--sand-2); }
.cart-sum__total .price { font-size: 34px; }
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line .ph { width: 72px; height: 88px; }
  .cart-line__right { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .cart-sum { padding: 24px; }
}

/* ---------- Trang dự án (danh mục) ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
@media (max-width: 400px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-grid .ph { height: 300px; }

/* ---------- Môi giới (thương hiệu cá nhân) ---------- */
.avatar-round { display: block; border-radius: 50%; object-fit: cover; object-position: 50% 28%; flex: none; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* Chip giới thiệu ở hero */
.broker-chip {
  align-self: flex-start; display: flex; align-items: center; gap: 14px;
  padding: 8px 18px 8px 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7);
  color: var(--ink); text-decoration: none; transition: border-color .35s, background-color .35s;
}
.broker-chip:hover { border-color: var(--copper); background: var(--white); color: var(--ink); }
.broker-chip .avatar-round { width: 46px; height: 46px; }
.broker-chip__text { display: flex; flex-direction: column; gap: 2px; }
.broker-chip__text strong { font-size: 14px; font-weight: 600; }
.broker-chip__text span { font-size: 12px; color: var(--muted); }

/* Section "Về Ms. Quỳnh" */
.about-broker {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 7vw, 104px);
  padding-top: 120px; padding-bottom: 40px; scroll-margin-top: var(--header-h);
}
.about-broker__media { flex: 1 1 400px; max-width: 520px; position: relative; padding: 0 32px 32px 0; }
.about-broker__frame { position: absolute; right: 0; bottom: 0; width: 82%; height: 82%; border: 1px solid var(--copper); }
.about-broker__dot { position: absolute; left: -24px; top: 40px; width: 96px; height: 96px; background: #EFE5D7; }
.portrait { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand-2); }
.portrait img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.04); transition: transform 1.6s var(--ease);
}
.portrait:hover img { transform: scale(1.09); }
.about-broker__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-broker__name { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 6vw, 84px); line-height: .98; }
.about-broker__title { font-size: 18px; font-weight: 500; letter-spacing: .02em; }
.about-broker__quote {
  max-width: 500px; padding-left: 22px; border-left: 1px solid var(--copper);
  font-family: var(--serif); font-size: 26px; font-style: italic; line-height: 1.4; color: #3D342C;
}
.area-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-tags li { font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); background: var(--white); }
.about-broker__sign { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--copper); margin-top: 4px; }
@media (max-width: 600px) {
  .about-broker { padding-top: 80px; }
  .about-broker__dot { left: -8px; }
  .about-broker__quote { font-size: 22px; }
}

/* Thẻ liên hệ ở khối "Tư vấn miễn phí" */
.broker-card { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 18px; background: var(--white); border: 1px solid var(--line); }
.broker-card .avatar-round { width: 72px; height: 72px; }
.broker-card__text { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.broker-card__name { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.broker-card__text a { font-size: 16px; font-weight: 600; color: var(--copper-deep); text-decoration: none; }
.broker-card__text a:hover { color: var(--copper); }
.contact__meta { font-size: 14px; color: var(--muted); }
.contact__meta a { color: inherit; }

/* Nút liên hệ nổi */
.contact-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: 6px 20px 6px 6px; border-radius: 40px; background: var(--white); color: var(--ink); text-decoration: none;
  box-shadow: 0 16px 34px -16px rgba(34, 28, 23, .5); transition: transform .4s var(--ease), box-shadow .4s;
}
.contact-fab:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -16px rgba(34, 28, 23, .55); color: var(--ink); }
.contact-fab__avatar { position: relative; width: 48px; height: 48px; flex: none; }
.contact-fab__avatar .avatar-round { position: relative; width: 48px; height: 48px; }
.contact-fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--copper); animation: lxRing 2.4s ease-out infinite; }
.contact-fab__online { position: absolute; right: 0; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #3E9B6B; border: 2px solid var(--white); }
.contact-fab__text { display: flex; flex-direction: column; gap: 1px; }
.contact-fab__text small { font-size: 12px; color: var(--muted); }
.contact-fab__text strong { font-size: 15px; font-weight: 600; color: var(--copper-deep); }
@media (max-width: 600px) {
  .contact-fab { right: 16px; bottom: 16px; padding: 6px; }
  .contact-fab__text { display: none; }
}

/* ---------- 404 ---------- */
.notfound { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes lxUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
/* Reveal dùng thuộc tính `translate` để không đè transform hover của thẻ */
@keyframes lxRv { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: none; } }
@keyframes lxMask { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lxMaskX { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lxFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes lxFade { from { opacity: .2; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes lxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lxDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes lxPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes lxTick { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lxFrame { from { opacity: 0; translate: -28px 28px; } to { opacity: 1; translate: none; } }
@keyframes lxClip { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lxRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

.up { animation: lxUp 1.1s var(--ease) both; }
.mask { animation: lxMask 1.4s var(--ease-mask) both; }
.mask-x { animation: lxMaskX 1.4s var(--ease-mask) both; }
.float { animation: lxFloat 6s ease-in-out infinite; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .34s; }
.d4 { animation-delay: .46s; } .d5 { animation-delay: .6s; }

/* Scroll reveal: CSS scroll-driven nếu hỗ trợ, ngược lại IntersectionObserver (site.js) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: lxRv linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
    /* Section môi giới: ảnh mở từ dưới lên, khung trượt vào, chữ ký tự viết */
    .clip-rv { animation: lxClip linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
    .frame-rv { animation: lxFrame linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .sign-rv { animation: lxMaskX linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
  @supports not (animation-timeline: view()) {
    .js .rv { opacity: 0; translate: 0 32px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
    .js .rv.is-in { opacity: 1; translate: none; }
  }
  /* Chuyển trang mượt (trình duyệt hỗ trợ View Transitions giữa các trang) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: lxFadeOut .25s ease both; }
  ::view-transition-new(root) { animation: lxFadeIn .45s ease both; }
  .site-header { view-transition-name: site-header; }
  /* Logo tự vẽ nét khi tải trang chủ */
  .brand__mark--draw path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: lxDraw 1.4s var(--ease) forwards; }
  .brand__mark--draw path:nth-child(2) { animation-delay: .15s; }
  .brand__mark--draw path:nth-child(3) { animation-delay: .3s; }
  .brand__mark--draw path:nth-child(4) { animation-delay: .45s; }
}
@keyframes lxDraw { to { stroke-dashoffset: 0; } }
@keyframes lxFadeOut { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
