/* ════════════════════════════════════════════════════════════════
   NBRE · detail-modules.css — booking, off-market, investment, portfolio, legal, media, recommender, price history, mini-map, dual-currency
   Tách từ styles.css. THỨ TỰ NỐI (cascade): base → layout → components
   → estate-detail → editorial → detail-modules → overlays → theme-light.
   theme-light.css PHẢI nạp cuối. Đừng đảo thứ tự <link>.
   ════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   ĐẶT LỊCH XEM RIÊNG — private viewing booking (dark glass overlay)
═══════════════════════════════════════════════════════════════ */
/* nút mở trong showcase */
.showcase__book {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.1rem;
  padding: 0.7em 1.15em;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(200, 169, 114, 0.08);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.showcase__book svg {
  width: 16px;
  height: 16px;
}
.showcase__book:hover {
  border-color: var(--gold);
  background: rgba(200, 169, 114, 0.16);
  transform: translateY(-1px);
}

.booksheet {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s var(--ease);
}
.booksheet.is-open {
  opacity: 1;
  visibility: visible;
}
.booksheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.booksheet__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 500px);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  transform: translateY(18px) scale(0.99);
  transition: transform 0.5s var(--ease);
}
.booksheet.is-open .booksheet__panel {
  transform: none;
}
.booksheet__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition:
    color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.booksheet__close svg {
  width: 20px;
  height: 20px;
}
.booksheet__close:hover {
  color: var(--gold-bright);
  background: rgba(200, 169, 114, 0.1);
}
.booksheet__kicker {
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.booksheet__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  line-height: 1.1;
  color: var(--text);
}
.booksheet__intro {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.6rem 0 1.3rem;
  max-width: 42ch;
}
.booksheet__estate {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(200, 169, 114, 0.045);
  margin-bottom: 1.5rem;
}
.booksheet__estate-img {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 3px;
  overflow: hidden;
}
.booksheet__estate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.booksheet__estate-txt {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.booksheet__estate-loc {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.booksheet__estate-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.15;
}
.booksheet__estate-price {
  font-size: 0.84rem;
  color: var(--gold-soft);
}
.booksheet__lab {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.booksheet__days {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
  scrollbar-width: none;
}
.booksheet__days::-webkit-scrollbar {
  display: none;
}
.booksheet__day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 60px;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.booksheet__day i {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.booksheet__day b {
  font-size: 0.96rem;
  font-weight: 500;
}
.booksheet__day:hover {
  border-color: var(--gold-soft);
}
.booksheet__day.is-sel {
  border-color: var(--gold);
  background: rgba(200, 169, 114, 0.14);
}
.booksheet__day.is-sel i {
  color: var(--gold-soft);
}
.booksheet__day.is-sel b {
  color: var(--gold-bright);
}
.booksheet__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.booksheet__slot {
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.booksheet__slot:hover {
  border-color: var(--gold-soft);
}
.booksheet__slot.is-sel {
  border-color: var(--gold);
  background: rgba(200, 169, 114, 0.14);
  color: var(--gold-bright);
}
.booksheet .field {
  margin-bottom: 0.4rem;
}
.booksheet__phone {
  margin-bottom: 1rem;
}
.booksheet__err {
  color: #d98b7a;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}
.booksheet__err:empty {
  margin-bottom: 0;
}
.booksheet__submit {
  width: 100%;
  justify-content: center;
}
.booksheet__view--done {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.booksheet__panel.is-done .booksheet__view--form {
  display: none;
}
.booksheet__panel.is-done .booksheet__view--done {
  display: block;
}
.booksheet__check {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}
.booksheet__check svg {
  width: 30px;
  height: 30px;
}
.booksheet__oktitle {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--text);
}
.booksheet__okbody {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0.7rem auto 1.6rem;
  max-width: 40ch;
}
.booksheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.booksheet__actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 160px;
}
.booksheet__again {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.booksheet__again:hover {
  color: var(--gold-bright);
}
body.booksheet-open {
  overflow: hidden;
}
@media (max-width: 560px) {
  .booksheet {
    align-items: flex-end;
  }
  .booksheet__panel {
    width: 100%;
    max-width: none;
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }
  .booksheet.is-open .booksheet__panel {
    transform: none;
  }
}
/* access sheet dùng lại style booksheet, chỉ thêm nút gửi */
.accsheet__submit {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   OFF-MARKET — thẻ kín đáo + trang chi tiết gated
═══════════════════════════════════════════════════════════════ */
.ecard__img--locked img {
  filter: blur(16px) brightness(0.62) saturate(0.9);
  transform: scale(1.12);
}
.ecard__veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--gold-bright);
  background: linear-gradient(
    180deg,
    rgba(7, 9, 14, 0.32),
    rgba(7, 9, 14, 0.6)
  );
  text-align: center;
  pointer-events: none;
}
.ecard__veil svg {
  width: 30px;
  height: 30px;
}
.ecard__veil-lab {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.ecard__price-badge--req {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.ecard__offnote {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.5rem 0 1rem;
}
.ecard__reqbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.7em 1.2em;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(200, 169, 114, 0.08);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.ecard__reqbtn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.4s var(--ease);
}
.ecard__reqbtn:hover {
  border-color: var(--gold);
  background: rgba(200, 169, 114, 0.16);
}
.ecard__reqbtn:hover svg {
  transform: translateX(3px);
}

/* trang chi tiết: ảnh hero mờ + giá theo yêu cầu */
.estate-page__img.is-blurred {
  filter: blur(26px) brightness(0.6) saturate(0.9);
  transform: scale(1.15);
}
.estate-page__price--req b {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}
/* panel cổng yêu cầu truy cập */
.ep-gate {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.4rem, 4vw, 2.6rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(200, 169, 114, 0.04);
}
.ep-gate__ic {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}
.ep-gate__ic svg {
  width: 28px;
  height: 28px;
}
.ep-gate__kicker {
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.ep-gate__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.12;
  color: var(--text);
}
.ep-gate__body {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0.9rem auto 1.8rem;
  max-width: 46ch;
}
.ep-gate__btn {
  min-width: 240px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   PHÂN TÍCH ĐẦU TƯ — investment intelligence (deterministic)
═══════════════════════════════════════════════════════════════ */
.estate-page__invest {
  margin: 1.6rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.epinv__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.epinv__head .eps-h {
  margin: 0;
}
.epinv__tag {
  flex: none;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.3em 0.7em;
  border-radius: 2px;
}
.epinv__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1.7rem;
}
.epinv__m {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.epinv__m-lab {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.epinv__m-val {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1;
  color: var(--gold-bright);
}
.epinv__m-val i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  margin-left: 0.25em;
}
.epinv__m-sub {
  font-size: 0.74rem;
  color: var(--muted-2);
}
.epinv__proj-head,
.epinv__proj-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 0.9fr;
  gap: 0.6rem;
  align-items: center;
}
.epinv__proj-head {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.epinv__proj-head span:not(:first-child),
.epinv__proj-row b,
.epinv__proj-row .epinv__rent,
.epinv__proj-row em {
  text-align: right;
}
.epinv__proj-row {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text);
}
.epinv__proj-row:last-child {
  border-bottom: none;
}
.epinv__yrs {
  color: var(--muted);
}
.epinv__proj-row b {
  font-weight: 500;
}
.epinv__proj-row em {
  font-style: normal;
  font-weight: 500;
  color: var(--gold-bright);
}
.epinv__note {
  margin-top: 1.1rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted-2);
}
@media (max-width: 560px) {
  .epinv__rent {
    display: none;
  } /* gọn trên iPhone: ẩn cột thuê, vẫn còn ở dự phóng tổng ROI */
  .epinv__proj-head,
  .epinv__proj-row {
    grid-template-columns: 1fr 1.3fr 0.9fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DANH MỤC — portfolio analysis trong panel Bộ sưu tập
═══════════════════════════════════════════════════════════════ */
.fav-folio:empty {
  display: none;
}
.fav-folio {
  margin-top: 1rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(200, 169, 114, 0.045);
}
.fav-folio__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.fav-folio__title {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.fav-folio__tag {
  flex: none;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.25em 0.55em;
  border-radius: 2px;
}
.fav-folio__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.fav-folio__metrics > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fav-folio__metrics span {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.fav-folio__metrics b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--gold-bright);
}
.fav-folio__metrics b i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.62rem;
  color: var(--gold-soft);
  margin-left: 0.15em;
}
.fav-folio__div-lab {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.fav-folio__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}
.fav-folio__bar-lab {
  font-size: 0.76rem;
  color: var(--text);
  white-space: nowrap;
  max-width: 9ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-folio__bar-track {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.fav-folio__bar-track u {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
}
.fav-folio__bar-pct {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 3ch;
  text-align: right;
}
.fav-folio__note {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted-2);
}

/* ═══════════════════════════════════════════════════════════════
   HỒ SƠ PHÁP LÝ / PROVENANCE — trên trang chi tiết
═══════════════════════════════════════════════════════════════ */
.estate-page__legal {
  margin: 1.6rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.eplegal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.eplegal__head .eps-h {
  margin: 0;
}
.eplegal__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  flex: none;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.eplegal__verified svg {
  width: 15px;
  height: 15px;
}
.eplegal__rows {
  display: flex;
  flex-direction: column;
}
.eplegal__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.eplegal__row:last-child {
  border-bottom: none;
}
.eplegal__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold-bright);
}
.eplegal__mark svg {
  width: 15px;
  height: 15px;
}
.eplegal__row--caution .eplegal__mark {
  color: #d8b06a;
  border-color: rgba(216, 176, 106, 0.4);
}
.eplegal__row--info .eplegal__mark {
  color: var(--muted);
}
.eplegal__lab {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eplegal__val {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  text-align: right;
}
.eplegal__note {
  margin-top: 1rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted-2);
}

/* ═══════════════════════════════════════════════════════════════
   MEDIA SUITE — bộ ảnh · thước phim (Ken-Burns) · sơ đồ mặt bằng
═══════════════════════════════════════════════════════════════ */
.epmedia {
  margin: 0 0 2rem;
}
.epmedia__stage {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
}
.epmedia__photos {
  position: absolute;
  inset: 0;
}
.epmedia__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.epmedia__shot.is-on {
  opacity: 1;
}
.epmedia[data-mode="film"].is-playing .epmedia__shot.is-on {
  animation: epkenburns 4.6s var(--ease) forwards;
}
@keyframes epkenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.13);
  }
}
.epmedia__plan {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(0.8rem, 2.5vw, 1.4rem);
  background: var(--ink-2);
  color: var(--gold);
}
.epmedia[data-mode="plan"] .epmedia__plan {
  display: flex;
}
.fp {
  flex: 1;
  width: 100%;
  min-height: 0;
}
.fp .fp-lab {
  fill: var(--text);
  font-family: var(--sans);
  font-size: 2.4px;
  letter-spacing: 0.04px;
}
.epmedia__plan-cap {
  flex: none;
  font-size: 0.74rem;
  color: var(--muted-2);
  text-align: center;
}
.epmedia__play {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(7, 9, 14, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--gold-bright);
  cursor: pointer;
}
.epmedia[data-mode="film"] .epmedia__play {
  display: grid;
}
.epmedia__play svg {
  width: 20px;
  height: 20px;
}
.ic-pause {
  display: none;
}
.epmedia.is-playing .ic-play {
  display: none;
}
.epmedia.is-playing .ic-pause {
  display: block;
}
.epmedia__count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-size: 0.78rem;
  color: #e8e2d6;
  background: rgba(7, 9, 14, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.3em 0.7em;
  border-radius: 2px;
}
.epmedia__count b {
  color: var(--gold-bright);
}
.epmedia[data-mode="plan"] .epmedia__count,
.epmedia[data-mode="plan"] .epmedia__thumbs {
  display: none;
}
.epmedia__tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.9rem 0;
}
.epmedia__tab {
  flex: 0 0 auto;
  padding: 0.5em 1.1em;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.epmedia__tab:hover {
  color: var(--gold-bright);
  border-color: var(--gold-soft);
}
.epmedia__tab.is-on {
  color: #1a140a;
  background: var(--gold);
  border-color: var(--gold);
}
.epmedia__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.epmedia__thumbs::-webkit-scrollbar {
  display: none;
}
.epmedia__thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 52px;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.3s var(--ease);
}
.epmedia__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.epmedia__thumb:hover {
  opacity: 0.85;
}
.epmedia__thumb.is-on {
  opacity: 1;
  border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   PHÙ HỢP VỚI BẠN — recommender rail (trong section danh mục)
═══════════════════════════════════════════════════════════════ */
.recos {
  margin: 1.4rem 0 2.4rem;
  padding-inline: var(--pad-x); /* canh lề trùng section-head / lưới */
}
.recos.is-hidden {
  display: none;
}
.recos__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.recos__eyebrow {
  margin: 0;
}
.recos__hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.recos__rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.recos__rail::-webkit-scrollbar {
  display: none;
}
.reco {
  flex: 0 0 auto;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.reco__img {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.55rem;
}
.reco__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.reco:hover .reco__img img {
  transform: scale(1.05);
}
.reco__match {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a140a;
  background: var(--gold);
  padding: 0.25em 0.6em;
  border-radius: 2px;
}
.reco__deal {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #06222a;
  background: var(--cyan);
  padding: 0.32em 0.62em;
  border-radius: 2px;
  box-shadow: 0 5px 16px -5px rgba(111, 182, 196, 0.7);
}
.reco--deal .reco__img {
  outline: 1px solid rgba(111, 182, 196, 0.45);
  outline-offset: -1px;
}
.reco__loc {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.reco__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--text);
}
.reco__price {
  font-size: 0.82rem;
  color: var(--muted);
}
.reco__price b {
  color: var(--text);
  font-weight: 500;
}
.reco__why {
  margin-top: 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.74rem;
  color: var(--gold-soft);
}
.reco__why::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 560px) {
  .eplegal__row {
    grid-template-columns: auto 1fr;
    gap: 0.1rem 0.8rem;
  }
  .eplegal__mark {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .eplegal__lab,
  .eplegal__val {
    grid-column: 2;
  }
  .eplegal__val {
    text-align: left;
    font-size: 0.9rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LỊCH SỬ GIÁ + KHO TÀI LIỆU — trên trang chi tiết
═══════════════════════════════════════════════════════════════ */
.estate-page__phist,
.estate-page__docs {
  margin: 1.6rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.eph__head,
.epdoc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.eph__head .eps-h,
.epdoc__head .eps-h {
  margin: 0;
}
.eph__yoy {
  flex: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.eph__yoy--up {
  color: var(--cyan);
}
.eph__yoy--down {
  color: #d98b7a;
}
.eph__chart {
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.phist {
  width: 100%;
  height: auto;
  display: block;
}
.phist__x {
  fill: var(--muted-2);
  font-family: var(--sans);
  font-size: 3px;
}
.eph__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.eph__stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.eph__stats span {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eph__stats b {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.eph__note,
.epdoc__note {
  margin-top: 1rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted-2);
}
.epdoc__signed {
  flex: none;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.epdoc__gate {
  text-align: center;
  padding: 1.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(200, 169, 114, 0.04);
}
.epdoc__lock {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}
.epdoc__lock svg {
  width: 24px;
  height: 24px;
}
.epdoc__gate-txt {
  max-width: 46ch;
  margin: 0 auto 1.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.epdoc__terms {
  max-width: 48ch;
  margin: 1rem auto 0;
  font-size: 0.72rem;
  color: var(--muted-2);
}
.epdoc__list {
  display: flex;
  flex-direction: column;
}
.epdoc__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.epdoc__row:last-child {
  border-bottom: none;
}
.epdoc__ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--gold-soft);
}
.epdoc__ic svg {
  width: 20px;
  height: 20px;
}
.epdoc__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.epdoc__info b {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
}
.epdoc__info i {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.epdoc__get {
  flex: none;
  padding: 0.5em 1em;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.epdoc__get:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(200, 169, 114, 0.1);
}
.epdoc__get:disabled {
  color: var(--cyan);
  cursor: default;
  opacity: 0.85;
}
.epdoc__row.is-req .epdoc__ic {
  color: var(--cyan);
}
@media (max-width: 560px) {
  .eph__stats {
    grid-template-columns: 1fr 1fr;
  }
  .epdoc__row {
    grid-template-columns: auto 1fr;
    gap: 0.1rem 0.8rem;
  }
  .epdoc__ic {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .epdoc__get {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.45rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MINI-MAP VỊ TRÍ — trên trang chi tiết
═══════════════════════════════════════════════════════════════ */
.ep-mapwrap {
  max-width: 1040px;
  margin: 2rem auto 0;
  padding: 0 clamp(1.2rem, 4vw, 2rem) clamp(3rem, 8vh, 5rem);
}
.ep-mapwrap[aria-hidden="true"] {
  display: none;
}
.ep-mapwrap__h {
  margin-bottom: 1rem;
}
.ep-map {
  height: clamp(240px, 40vh, 420px);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ep-map__cap {
  margin-top: 0.8rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted-2);
}
.epmk {
  cursor: pointer;
}
.epmk--estate {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #1a140a;
  box-shadow:
    0 0 0 4px rgba(200, 169, 114, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.5);
}
.epmk--poi {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  border: 1px solid rgba(7, 9, 14, 0.6);
  box-shadow: 0 0 0 3px rgba(111, 182, 196, 0.18);
}
.ep-pop .maplibregl-popup-content {
  background: rgba(11, 14, 21, 0.96);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  font-family: var(--sans);
}
.ep-pop .maplibregl-popup-content b {
  display: block;
  font-size: 0.84rem;
  color: var(--gold-bright);
}
.ep-pop .maplibregl-popup-content span {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.ep-pop .maplibregl-popup-tip {
  border-top-color: rgba(11, 14, 21, 0.96) !important;
  border-bottom-color: rgba(11, 14, 21, 0.96) !important;
}
.ep-pop .maplibregl-popup-close-button {
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   GIÁ SONG TỆ — nhãn USD phụ dưới giá VND (cho khách quốc tế)
═══════════════════════════════════════════════════════════════ */
.ecard__usd {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  text-align: right;
  line-height: 1;
  margin-top: 0.3em;
  opacity: 0.92;
}
.showcase__usd {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  margin-top: 0.25rem;
}
.showcase__price {
  text-align: right;
}
.ep-usd {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  margin-top: 0.3rem;
}
.fav-folio__usd {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--muted-2);
  margin-top: 0.15rem;
}

