/* ════════════════════════════════════════════════════════════════
   NBRE · components.css — showcase, legend, dossier, cards, filter, pager, favourites, score, collection
   Tách từ styles.css. THỨ TỰ NỐI (cascade) trong index.html:
   base → layout → components → estate-detail → editorial → detail-modules → overlays → theme-light. KHỐI light-theme override
   nằm CUỐI theme-light.css — đừng đảo thứ tự <link>.
   ════════════════════════════════════════════════════════════════ */

/* ── NETFLIX-STYLE SHOWCASE ──────────────────────────────────── */
.showcase {
  --accent: #f1d9a0;
  position: absolute;
  right: clamp(0.3rem, 0.8vw, 0.6rem);
  bottom: 1.3rem;
  z-index: 13;
  width: min(520px, 48vw);
  height: 146px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  pointer-events: none;
  background: rgba(11, 14, 21, 0.62);
  backdrop-filter: blur(16px);
  box-shadow:
    0 30px 70px -30px #000,
    0 0 0 1px rgba(200, 169, 114, 0.05);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.showcase.is-in {
  opacity: 1;
  transform: none;
}
.showcase__media {
  position: relative;
  flex: 0 0 150px;
  overflow: hidden;
}
.showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(11, 14, 21, 0.65));
}
.showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.9);
  display: block;
}
.showcase__info {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}
/* title already states the district, so drop the bulky rows */
.showcase__live,
.showcase__badge,
.showcase__desc,
.showcase__loc {
  display: none;
}
/* head: eye-catching title + clearly-visible price */
.showcase__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}
.showcase__title {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0;
  color: var(--gold-bright);
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
  margin-right: 0.5em;
  vertical-align: middle;
}
.showcase__price {
  flex: none;
  font-family: var(--serif);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(240, 221, 180, 0.45);
}
.showcase__price i {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-left: 0.22em;
}
.showcase__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.62rem 0.8rem;
}
.showcase__specs div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.showcase__specs span {
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.showcase__specs b {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}
.showcase__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
@keyframes scfill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .showcase {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 1rem;
  }
}
@media (max-width: 560px) {
  .showcase {
    display: none;
  }
}

/* ── TIER LEGEND ─────────────────────────────────────────────── */
.legend {
  position: absolute;
  left: clamp(1.4rem, 5vw, 5.4rem);
  bottom: 2.4rem;
  background: rgba(11, 14, 21, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.2rem;
}
.legend__title {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}
.legend ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
}
.legend__dot {
  --c: #f1d9a0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 7px 1px var(--c);
  animation: blink 3s var(--ease) infinite;
}
.legend li b {
  font-weight: 500;
  color: var(--text);
}
.legend li i {
  font-style: normal;
  color: var(--muted);
  margin-left: 0.3rem;
  font-size: 0.72rem;
}
.legend__note {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
  line-height: 1.5;
  color: var(--muted-2);
  max-width: 210px;
}
.legend__note b {
  color: var(--gold-soft);
  font-weight: 500;
}

/* ── dossier attribute grid + score dots ─────────────────────── */
.dossier__attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.9rem;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.dossier__attrs .attr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dossier__attrs .attr span {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dossier__attrs .attr b {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}
.dots {
  display: inline-flex;
  gap: 3px;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

/* ── estate card attributes row ──────────────────────────────── */
.ecard__attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.3rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}
.ecard__attrs span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--muted);
}
.ecard__attrs i {
  font-style: normal;
}
.ecard__attrs b {
  color: var(--text);
  font-weight: 500;
}
.hero__copy {
  position: absolute;
  left: var(--pad-x);
  top: 50%;
  transform: translateY(-46%);
  max-width: min(700px, 54vw);
  z-index: 10;
  pointer-events: none;
}
.hero__copy .btn,
.hero__copy a {
  pointer-events: auto;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.2vw, 3.95rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero__line > span {
  display: inline-block;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform;
}
.ready .hero__line > span {
  animation: heroLineRise 1.05s var(--ease) forwards;
}
.ready .hero__line:nth-child(1) > span {
  animation-delay: 0.4s;
}
.ready .hero__line:nth-child(2) > span {
  animation-delay: 0.58s;
}
@keyframes heroLineRise {
  to {
    transform: none;
    opacity: 1;
  }
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(
    100deg,
    var(--gold) 28%,
    var(--gold-bright) 50%,
    var(--gold) 72%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShimmer 9s ease-in-out 2s infinite;
}
@keyframes heroShimmer {
  0%,
  100% {
    background-position: 120% 0;
  }
  50% {
    background-position: -20% 0;
  }
}
.hero__sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.7;
  max-width: 40ch;
  margin-bottom: 2.8rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__actions .btn--gold {
  padding: 1.15em 2.5em;
}
/* quiet search trigger beside the CTA — summons the map search sheet */
.hero__search-toggle {
  pointer-events: auto;
  flex: none;
  width: 3.05rem;
  height: 3.05rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  background: rgba(10, 13, 20, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition:
    border-color 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.4s var(--ease);
}
.hero__search-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
  background: rgba(200, 169, 114, 0.1);
}
.hero__search-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 10;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__hint-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: hintPulse 2.4s var(--ease) infinite;
}
@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* quiet figures pinned to the foot of the hero — present, never shouting */
.hero__stats {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(2rem, 5vh, 3.4rem);
  z-index: 12;
  list-style: none;
  display: flex;
  gap: clamp(1.8rem, 4vw, 3.6rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  pointer-events: none;
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  max-width: 160px;
}
.hero__stats b {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 1.9vw, 2rem);
  color: var(--gold-soft);
  line-height: 1;
}
.hero__stats i {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 0.6rem;
}

/* ── floating dossier card ───────────────────────────────── */
.dossier {
  position: fixed;
  z-index: 300;
  width: clamp(430px, 40vw, 540px);
  aspect-ratio: 16/9;
  pointer-events: none;
  display: flex;
  align-items: stretch;
  background: rgba(11, 14, 21, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
  box-shadow:
    0 36px 90px -34px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(200, 169, 114, 0.05);
}
.dossier.is-on {
  opacity: 1;
  transform: scale(1);
}
.dossier__img {
  flex: 0 0 47%;
  position: relative;
  overflow: hidden;
}
.dossier__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(11, 14, 21, 0.9));
}
.dossier__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.92);
}
.dossier__body {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dossier__loc {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.dossier__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0.35rem 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dossier__meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.dossier__meta span {
  position: relative;
}
.dossier__meta span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -0.5rem;
  color: var(--muted-2);
}
.dossier__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}
.dossier__price b {
  font-family: var(--serif);
  font-size: 1.65rem;
  color: var(--gold-bright);
  font-weight: 500;
}
.dossier__price i {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.dossier__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid var(--line);
  color: var(--gold-soft);
  padding: 0.4em 0.8em;
  border-radius: 2px;
}

/* ── section scaffolding ─────────────────────────────────── */
section {
  position: relative;
}
.section-head {
  padding-inline: var(--pad-x);
}
.section-head h2,
.approach__lede h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 20ch;
}
.contact h2 {
  max-width: 16ch;
} /* lời mời cột trái, căn lề trái cùng eyebrow/lead */
.section-head h2 em,
.approach__lede h2 em,
.contact h2 em,
.broker__text em {
  color: var(--gold);
}
.estates .section-head h2 {
  white-space: nowrap;
  max-width: none;
}
@media (max-width: 760px) {
  .estates .section-head h2 {
    white-space: normal;
  }
}

/* ── estates grid ────────────────────────────────────────── */
.estates {
  padding: clamp(6rem, 12vh, 11rem) 0 clamp(3rem, 8vh, 7rem);
}

/* ── DANH MỤC · BỘ LỌC (Zillow-style: tìm · facet pills · CTA) ── */
.estate-filter {
  margin-top: clamp(2.2rem, 4.5vh, 3.4rem);
  padding-inline: var(--pad-x);
}
.zbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.zbar__search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 1 360px;
  min-width: 230px;
  height: 46px;
  padding: 0 1rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s;
}
.zbar__search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 114, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.zbar__search svg {
  width: 17px;
  height: 17px;
  color: var(--gold-soft);
  flex: none;
}
.zbar__search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.84rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.zbar__search input::placeholder {
  color: var(--muted);
}
.zbar__search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.efdrop {
  position: relative;
}
.efdrop__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  cursor: pointer;
  white-space: nowrap;
  height: 46px;
  padding: 0 1.05rem;
  border-radius: 11px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition:
    border-color 0.22s var(--ease),
    color 0.22s,
    background 0.22s,
    box-shadow 0.22s;
}
.efdrop__btn:hover {
  border-color: rgba(200, 169, 114, 0.55);
  color: var(--gold-bright);
}
.efdrop__btn .caret {
  width: 11px;
  height: 11px;
  opacity: 0.6;
  transition: transform 0.25s var(--ease);
}
.efdrop.is-open .efdrop__btn {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(200, 169, 114, 0.14);
}
.efdrop.is-open .caret {
  transform: rotate(180deg);
}
.efdrop.has-sel .efdrop__btn {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(200, 169, 114, 0.1);
  font-weight: 500;
}
.efdrop__badge {
  display: none;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 0.4em;
  border-radius: 30px;
  font-size: 0.62rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a140a;
}
.efdrop.has-sel .efdrop__badge {
  display: inline-flex;
}
.efdrop__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 60;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  background: rgba(10, 13, 20, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 24px 54px -20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  transform-origin: top left;
  pointer-events: none;
  transition: all 0.2s var(--ease);
}
.efdrop:nth-last-child(2) .efdrop__menu,
.efdrop:nth-last-child(3) .efdrop__menu {
  left: auto;
  right: 0;
  transform-origin: top right;
}
.efdrop.is-open .efdrop__menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.eopt {
  display: flex;
  align-items: center;
  gap: 0.65em;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--gold-soft);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  transition:
    background 0.18s var(--ease),
    color 0.18s;
}
.eopt:hover {
  background: rgba(200, 169, 114, 0.1);
  color: var(--gold-bright);
}
.eopt__box {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #1a140a;
  transition: all 0.18s var(--ease);
}
.eopt.on .eopt__box {
  background: var(--gold);
  border-color: var(--gold);
}
.eopt__box svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.15s;
}
.eopt.on .eopt__box svg {
  opacity: 1;
}
.eopt__label {
  flex: 1;
  white-space: nowrap;
}
.eopt__n {
  font-size: 0.66rem;
  opacity: 0.5;
}
.zbar__save {
  height: 46px;
  padding: 0 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 11px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  background: var(--gold);
  color: #1a140a;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.zbar__save:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 10px 30px -10px rgba(200, 169, 114, 0.6);
}
.zbar__save.is-saved {
  background: transparent;
  color: var(--gold-bright);
}
.efilter__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}
.efilter__count {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.efilter__count b {
  color: var(--gold-bright);
  font-weight: 600;
}
.efilter__reset {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.25s var(--ease),
    color 0.2s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.efilter__reset.show {
  opacity: 1;
  pointer-events: auto;
}
.efilter__reset:hover {
  color: var(--gold-bright);
}
.estates__empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}
@media (max-width: 760px) {
  .zbar__search {
    flex: 1 1 100%;
  }
  .zbar__save {
    flex: 1 1 100%;
  }
}

.estates__grid {
  margin-top: clamp(2.4rem, 5vh, 4rem);
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.6rem, 2.4vw, 2.6rem);
}

/* ── PHÂN TRANG — số serif · trang hiện tại tô vàng ─────────── */
.pager {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: clamp(2.8rem, 5.5vh, 4.4rem) auto 0;
  padding-inline: var(--pad-x);
}
.pager.is-on {
  display: flex;
}
.pager__nums {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}
.pager__num,
.pager__arrow {
  font-family: var(--serif);
  cursor: pointer;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.25s var(--ease);
}
.pager__num {
  min-width: 2.7rem;
  height: 2.7rem;
  padding: 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
}
.pager__num:hover {
  border-color: var(--line);
  color: var(--gold-bright);
}
.pager__num.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a140a;
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(200, 169, 114, 0.7);
}
.pager__gap {
  min-width: 1.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  list-style: none;
  user-select: none;
}
.pager__arrow {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-color: var(--line);
}
.pager__arrow svg {
  width: 18px;
  height: 18px;
}
.pager__arrow:hover:not([disabled]) {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(200, 169, 114, 0.07);
}
.pager__arrow[disabled] {
  opacity: 0.28;
  cursor: default;
}
@media (max-width: 520px) {
  .pager__num,
  .pager__arrow {
    min-width: 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
  }
}
.ecard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-2);
  opacity: 0;
  transform: translateY(36px);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease),
    opacity 0.9s var(--ease),
    border-color 0.6s;
}
.ecard.in {
  opacity: 1;
  transform: none;
}
.ecard:hover {
  border-color: rgba(200, 169, 114, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 26px 54px -26px rgba(0, 0, 0, 0.75);
}
.ecard__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.ecard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.88);
  transition:
    transform 1.2s var(--ease),
    filter 0.6s;
}
.ecard:hover .ecard__img img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}
.ecard__price-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold-bright);
  background: rgba(7, 9, 14, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.1em 0.5em;
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.ecard__price-badge i {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-left: 0.3em;
  text-transform: uppercase;
}
.ecard__tier {
  --c: #f1d9a0;
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c);
  padding: 0.4em 0.8em;
  border-radius: 2px;
  background: rgba(7, 9, 14, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.ecard__tier::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
  margin-right: 0.55em;
  vertical-align: middle;
}
.ecard__body {
  padding: 1.3rem 1.4rem 1.6rem;
}
.ecard__loc {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.ecard__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 0.45rem 0 0.9rem;
}
.ecard__meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.ecard__meta span b {
  color: var(--text);
  font-weight: 500;
}

/* ── favourite heart on card ─────────────────────────────── */
.ecard__fav {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(7, 9, 14, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(200, 169, 114, 0.3);
  color: var(--gold-bright);
  transition:
    transform 0.25s var(--ease),
    background 0.3s,
    border-color 0.3s;
}
.ecard__fav svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.ecard__fav:hover {
  transform: scale(1.12);
  border-color: var(--gold);
  background: rgba(7, 9, 14, 0.72);
}
.ecard__fav.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.ecard__fav.is-on svg {
  fill: var(--ink);
  stroke: var(--ink);
}
.ecard__fav.is-on {
  animation: favPop 0.4s var(--ease);
}
@keyframes favPop {
  0% {
    transform: scale(0.7);
  }
  55% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

/* ── clickable NBRE score badge on card ──────────────────── */
.ecard__score {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: var(--serif);
  line-height: 1;
  background: rgba(7, 9, 14, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 169, 114, 0.32);
  border-radius: 2px;
  padding: 0.4em 0.6em 0.35em;
  color: var(--gold-bright);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.25s var(--ease);
}
.ecard__score:hover {
  border-color: var(--gold);
  background: rgba(7, 9, 14, 0.8);
  transform: translateY(-1px);
}
.ecard__score b {
  font-size: 1.35rem;
  font-weight: 500;
}
.ecard__score i {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
}
.ecard__score span {
  font-family: var(--sans);
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  align-self: center;
  margin-left: 0.4em;
}

/* ── floating collection button ──────────────────────────── */
.fav-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.85rem 1.3rem;
  border-radius: 40px;
  background: rgba(11, 14, 21, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 169, 114, 0.34);
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease);
}
.fav-fab:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.fav-fab svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.7;
}
.fav-fab.has-items svg {
  fill: var(--gold-bright);
}
.fav-fab__n {
  display: grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.4em;
  border-radius: 1em;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0;
}

/* ── slide-in collection panel ───────────────────────────── */
.fav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 600;
  height: 100dvh;
  width: min(380px, 90vw);
  background: rgba(9, 12, 18, 0.96);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
}
.fav-panel.is-open {
  transform: none;
}
.fav-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.fav-panel__head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}
.fav-panel__head h3 span {
  color: var(--gold);
}
.fav-panel__close {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  transition: color 0.3s;
}
.fav-panel__close:hover {
  color: var(--gold-bright);
}
.fav-panel__list {
  flex: 1;
  overflow-y: auto;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.fav-panel__empty {
  display: none;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  margin: auto 0;
  line-height: 1.7;
}
.fav-panel.is-empty .fav-panel__empty {
  display: block;
}
.fav-panel.is-empty .fav-panel__list {
  flex: 0;
}
.fav-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.fav-item__img {
  flex: 0 0 64px;
  height: 56px;
  border-radius: 3px;
  overflow: hidden;
}
.fav-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fav-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.fav-item__loc {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.fav-item__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-item__meta {
  font-size: 0.72rem;
  color: var(--muted);
}
.fav-item__rm {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted-2);
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.3s;
}
.fav-item__rm:hover {
  color: var(--gold-bright);
}

/* ── ĐIỂM NBRE breakdown popup ───────────────────────────── */
.score-pop {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
  padding: 1.4rem;
}
.score-pop.is-open {
  opacity: 1;
  visibility: visible;
}
.score-pop__card {
  position: relative;
  width: min(420px, 100%);
  background: rgba(13, 16, 23, 0.98);
  border: 1px solid rgba(200, 169, 114, 0.28);
  border-radius: 8px;
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.score-pop.is-open .score-pop__card {
  transform: none;
}
.score-pop__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  transition: color 0.3s;
}
.score-pop__close:hover {
  color: var(--gold-bright);
}
.score-pop__total {
  font-family: var(--serif);
  color: var(--gold-bright);
  line-height: 1;
}
.score-pop__total b {
  font-size: 3.4rem;
  font-weight: 500;
}
.score-pop__total i {
  font-style: normal;
  font-size: 1.1rem;
  color: var(--muted);
}
.score-pop__title {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.5rem 0 1.4rem;
}
.score-pop__rows {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.score-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
}
.score-row__label {
  font-size: 0.82rem;
  color: var(--text);
}
.score-row__track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.score-row__track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.score-row__val {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-bright);
  font-weight: 500;
}
.score-row__val em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted-2);
}

