.blackx-discover-page {
  --discover-bg: #08090c;
  --discover-panel: #11141a;
  --discover-panel-2: #171b22;
  --discover-line: rgba(225, 195, 118, 0.22);
  --discover-gold: #d7b66a;
  --discover-text: #f4f1e8;
  --discover-muted: #b8bbc3;
  background:
    radial-gradient(circle at 18% 8%, rgba(215, 182, 106, 0.18), transparent 28%),
    linear-gradient(180deg, #090a0d 0%, #101116 46%, #08090c 100%);
  color: var(--discover-text);
  min-height: 100vh;
  overflow-x: clip;
}

.blackx-discover-page *,
.blackx-discover-page *::before,
.blackx-discover-page *::after {
  box-sizing: border-box;
}

.blackx-discover-page [hidden] {
  display: none !important;
}

.blackx-discover-hero,
.blackx-form-hero,
.blackx-post-detail__hero {
  min-height: min(620px, 82vh);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--discover-line);
}

.blackx-discover-hero__inner,
.blackx-post-detail__grid,
.blackx-blog-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.blackx-discover-hero h1,
.blackx-form-hero h1,
.blackx-post-detail__hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.blackx-discover-hero p,
.blackx-form-hero p,
.blackx-post-detail__hero p {
  max-width: 720px;
  color: var(--discover-muted);
  font-size: 1.03rem;
}

.blackx-discover-kicker,
.blackx-discover-section-head p {
  color: var(--discover-gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.blackx-discover-actions,
.blackx-post-actions,
.blackx-form-actions,
.blackx-feed-card__actions,
.blackx-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.blackx-discover-hero__signal,
.blackx-blog-form-preview,
.blackx-post-aside,
.blackx-publisher-card,
.blackx-feed-card,
.blackx-company-card__face,
.blackx-filter-form,
.blackx-empty-state,
.blackx-empty-inline {
  border: 1px solid var(--discover-line);
  background: linear-gradient(145deg, rgba(24, 28, 35, 0.94), rgba(12, 14, 18, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.blackx-discover-hero__signal {
  padding: 24px;
  border-radius: 8px;
}

.blackx-discover-hero__signal span {
  display: block;
  color: var(--discover-gold);
  font-size: 3rem;
  font-weight: 900;
}

.blackx-filter-shell {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 12px 0;
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blackx-filter-form {
  padding: 14px;
  border-radius: 8px;
}

.blackx-filter-primary,
.blackx-filter-advanced,
.blackx-filter-advanced fieldset {
  display: grid;
  gap: 12px;
}

.blackx-filter-primary {
  grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(150px, 1fr)) auto auto auto;
  align-items: end;
}

.blackx-filter-advanced {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blackx-filter-advanced fieldset {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 12px;
}

.blackx-filter-form label span,
.blackx-form-field span {
  display: block;
  color: var(--discover-muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.blackx-filter-form input,
.blackx-filter-form select,
.blackx-filter-form textarea,
.blackx-blog-form input,
.blackx-blog-form select,
.blackx-blog-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--discover-text);
}

.blackx-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blackx-check-row input {
  width: auto;
  min-height: auto;
}

.blackx-discover-partners,
.blackx-discover-featured,
.blackx-discover-feed-section {
  padding: 54px 0;
  scroll-margin-top: 110px;
}

.blackx-discover-section-head {
  margin-bottom: 18px;
}

.blackx-discover-section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2.35rem);
  letter-spacing: 0;
}

.blackx-company-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  perspective: 1000px;
}

.blackx-company-card {
  min-height: 210px;
  border: 0;
  background: transparent;
  perspective: 1000px;
  scroll-margin-top: 110px;
}

.blackx-company-card__inner {
  position: relative;
  min-height: 210px;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.blackx-company-card:hover .blackx-company-card__inner,
.blackx-company-card:focus .blackx-company-card__inner,
.blackx-company-card.is-flipped .blackx-company-card__inner {
  transform: rotateY(180deg);
}

.blackx-company-card__face {
  position: absolute;
  inset: 0;
  padding: 18px;
  border-radius: 8px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blackx-company-card__back {
  transform: rotateY(180deg);
}

.blackx-company-card__logo,
.blackx-publisher-card > span {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--discover-gold);
  color: #111;
  font-weight: 900;
  overflow: hidden;
}

.blackx-company-card img,
.blackx-feed-card img,
.blackx-quick-view-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blackx-featured-grid,
.blackx-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blackx-feed-card {
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
  scroll-margin-top: 110px;
}

.blackx-feed-card--featured {
  grid-column: span 1;
}

.blackx-feed-card__media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(215, 182, 106, 0.24), rgba(255, 255, 255, 0.05));
  color: var(--discover-gold);
  font-weight: 900;
  text-align: center;
}

.blackx-feed-card__body {
  padding: 18px;
}

.blackx-feed-card__badges,
.blackx-feed-card__footer,
.blackx-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--discover-muted);
  font-size: 0.85rem;
}

.blackx-feed-card__badges span,
.blackx-post-meta span {
  border: 1px solid rgba(215, 182, 106, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
}

.blackx-feed-card h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.blackx-feed-card h3 a {
  color: var(--discover-text);
}

.blackx-feed-card p,
.blackx-property-chip p,
.blackx-publisher-card p {
  color: var(--discover-muted);
}

.blackx-property-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.04);
}

.blackx-property-chip dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.blackx-property-chip dt {
  color: var(--discover-muted);
  font-size: 0.72rem;
}

.blackx-property-chip dd {
  margin: 0;
  font-weight: 800;
}

.blackx-publisher-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.blackx-post-body {
  padding: 26px 0 70px;
}

.blackx-post-content {
  color: #ece9df;
  line-height: 1.75;
}

.blackx-blog-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.blackx-form-field.has-errors input,
.blackx-form-field.has-errors textarea,
.blackx-form-field.has-errors select {
  border-color: #d96c6c;
}

.blackx-form-field strong,
.blackx-form-errors {
  color: #ff9b9b;
}

.blackx-feed-status,
.blackx-fallback-pagination {
  margin-top: 20px;
  text-align: center;
}

.blackx-quick-view[hidden] {
  display: none;
}

.blackx-quick-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.blackx-quick-view__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.blackx-quick-view__panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  border-radius: 8px;
  background: var(--discover-panel);
  border: 1px solid var(--discover-line);
}

.blackx-quick-view__close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  margin: 10px;
  width: 38px;
  height: 38px;
}

.blackx-quick-view-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.blackx-quick-view-content__media {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(215, 182, 106, 0.24), rgba(255, 255, 255, 0.05));
}

.blackx-quick-view-content__body {
  padding: 26px;
}

.blackx-empty-state,
.blackx-empty-inline {
  border-radius: 8px;
  padding: 20px;
}

[data-page="blackx-discover"] .blackx-feed-card,
[data-page="blackx-discover"] .blackx-company-card,
[data-page="blackx-discover"] .blackx-discover-section-head,
[data-page="blackx-discover"] .blackx-filter-shell,
[data-page="blackx-discover"] .blackx-discover-hero__copy,
[data-page="blackx-discover"] .blackx-discover-hero__signal,
[data-page="blackx-discover"] .blackx-offers-panel__shell {
  opacity: 1;
  visibility: visible;
  will-change: opacity, transform, filter;
}

/* =========================================================
   BlackX Residences Vertical Offers UI
   ========================================================= */

.blackx-residences-page {
  --residence-pointer-x: 0;
  --residence-pointer-y: 0;
  --residence-scroll: 0;
  --residence-card-gap: clamp(12px, 1.4vw, 18px);
  --residence-shell-width: min(1120px, calc(100vw - 44px));
  --residence-glass: rgba(18, 20, 26, 0.76);
  --residence-gold-soft: rgba(215, 182, 106, 0.14);
  background:
    radial-gradient(circle at calc(18% + (var(--residence-pointer-x) * 5%)) calc(8% + (var(--residence-pointer-y) * 5%)), rgba(215, 182, 106, 0.22), transparent 30%),
    radial-gradient(circle at calc(82% - (var(--residence-pointer-x) * 4%)) calc(16% - (var(--residence-pointer-y) * 4%)), rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #06070a 0%, #101116 44%, #07080b 100%);
}

.blackx-residences-hero {
  position: relative;
  min-height: min(720px, 90vh);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(215, 182, 106, 0.28);
}

.blackx-residences-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(120deg, rgba(215, 182, 106, 0.08), transparent 38%),
    linear-gradient(270deg, rgba(255, 255, 255, 0.07), transparent 42%);
  opacity: calc(0.85 - (var(--residence-scroll) * 0.35));
}

.blackx-residences-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -2;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 12, 0.88));
  pointer-events: none;
}

.blackx-residences-hero__motion {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blackx-residences-orb,
.blackx-residences-line {
  position: absolute;
  display: block;
  pointer-events: none;
}

.blackx-residences-orb {
  width: clamp(240px, 32vw, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.72;
  mix-blend-mode: screen;
}

.blackx-residences-orb--one {
  top: 8%;
  right: 8%;
  background:
    radial-gradient(circle at 35% 35%, rgba(215, 182, 106, 0.34), transparent 34%),
    radial-gradient(circle, rgba(215, 182, 106, 0.13), transparent 66%);
  transform:
    translate3d(calc(var(--residence-pointer-x) * -22px), calc(var(--residence-pointer-y) * -18px), 0)
    scale(calc(1 - (var(--residence-scroll) * 0.08)));
  animation: blackxResidenceFloatOne 9s ease-in-out infinite;
}

.blackx-residences-orb--two {
  left: -8%;
  bottom: 2%;
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle, rgba(215, 182, 106, 0.13), transparent 68%);
  transform:
    translate3d(calc(var(--residence-pointer-x) * 18px), calc(var(--residence-pointer-y) * 14px), 0)
    scale(calc(1 + (var(--residence-scroll) * 0.08)));
  animation: blackxResidenceFloatTwo 11s ease-in-out infinite;
}

.blackx-residences-line {
  height: 1px;
  width: min(620px, 58vw);
  background: linear-gradient(90deg, transparent, rgba(215, 182, 106, 0.65), transparent);
  opacity: 0.46;
  transform-origin: center;
}

.blackx-residences-line--one {
  top: 26%;
  right: -8%;
  transform: rotate(-18deg) translate3d(calc(var(--residence-pointer-x) * -12px), calc(var(--residence-pointer-y) * -8px), 0);
  animation: blackxResidenceLineSweep 5.8s ease-in-out infinite;
}

.blackx-residences-line--two {
  left: -12%;
  bottom: 24%;
  transform: rotate(-18deg) translate3d(calc(var(--residence-pointer-x) * 12px), calc(var(--residence-pointer-y) * 8px), 0);
  animation: blackxResidenceLineSweep 7.2s ease-in-out infinite reverse;
}

.blackx-residences-hero__inner {
  position: relative;
  z-index: 1;
  align-items: center;
}

.blackx-residences-hero__copy {
  position: relative;
  padding: clamp(28px, 4vw, 46px) 0;
}

.blackx-residences-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(215, 182, 106, 0.26);
  border-radius: 999px;
  background: rgba(215, 182, 106, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.blackx-residences-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--discover-gold);
  box-shadow: 0 0 22px rgba(215, 182, 106, 0.88);
  animation: blackxResidencePulse 1.8s ease-in-out infinite;
}

.blackx-residences-hero h1 {
  max-width: 980px;
  letter-spacing: -0.055em;
  text-wrap: balance;
  background: linear-gradient(115deg, #fffaf0 0%, #f4e6bd 36%, #aeb4c1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 22px 80px rgba(0, 0, 0, 0.46);
}

.blackx-residences-hero__copy > p:not(.blackx-residences-kicker) {
  margin-top: 20px;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.8;
}

.blackx-residences-actions {
  margin-top: 28px;
}

.blackx-residences-actions .btn,
.blackx-next-offers,
.blackx-residences-page .blackx-feed-more {
  min-height: 44px;
  border-radius: 999px;
  transform: translateZ(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.blackx-residences-actions .btn:hover,
.blackx-next-offers:hover,
.blackx-residences-page .blackx-feed-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.blackx-residences-hero__signal {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(24, 27, 34, 0.88), rgba(9, 10, 13, 0.9)),
    radial-gradient(circle at top right, rgba(215, 182, 106, 0.18), transparent 42%);
  backdrop-filter: blur(18px);
  transform:
    translate3d(calc(var(--residence-pointer-x) * -6px), calc(var(--residence-pointer-y) * -6px), 0)
    translateY(calc(var(--residence-scroll) * 10px));
}

.blackx-residences-hero__signal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.11), transparent 34%);
  transform: translateX(-130%);
  animation: blackxResidenceShine 5.6s ease-in-out infinite;
}

.blackx-residences-hero__signal span {
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.blackx-residences-hero__signal strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.25;
}

.blackx-residences-page .blackx-filter-shell {
  top: 0;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.blackx-residences-page.is-page-scrolled .blackx-filter-shell {
  background: rgba(7, 8, 11, 0.84);
  border-bottom-color: rgba(215, 182, 106, 0.18);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.36),
    inset 0 -1px 0 rgba(215, 182, 106, 0.08);
}

.blackx-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(215, 182, 106, 0), rgba(215, 182, 106, 0.95), rgba(255, 255, 255, 0.72));
  box-shadow: 0 0 24px rgba(215, 182, 106, 0.42);
}

.blackx-residences-offers-story {
  position: relative;
  display: grid;
  gap: clamp(26px, 4.4vw, 54px);
  padding: clamp(30px, 5vw, 64px) 0 clamp(52px, 7vw, 86px);
}

.blackx-offers-panel {
  min-height: auto;
  padding: 0;
  scroll-margin-top: 118px;
  overflow: visible;
}

.blackx-offers-panel__shell {
  position: relative;
  width: var(--residence-shell-width);
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(215, 182, 106, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(24, 28, 35, 0.74), rgba(8, 9, 12, 0.86)),
    radial-gradient(circle at top right, rgba(215, 182, 106, 0.1), transparent 42%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
}

.blackx-offers-panel__shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(360px, 42%);
  height: 1px;
  background: linear-gradient(90deg, rgba(215, 182, 106, 0.54), transparent);
  pointer-events: none;
}

.blackx-residences-section-head {
  position: relative;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.blackx-residences-section-head p {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 182, 106, 0.18);
  border-radius: 999px;
  background: rgba(215, 182, 106, 0.08);
}

.blackx-residences-section-head h2 {
  max-width: 820px;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.blackx-offers-grid {
  display: grid !important;
  grid-auto-flow: unset !important;
  grid-auto-columns: unset !important;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  gap: var(--residence-card-gap);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.blackx-offers-grid--publishers {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.blackx-offers-grid--featured,
.blackx-offers-grid--feed {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.blackx-residences-page .blackx-filter-form,
.blackx-residences-page .blackx-feed-card,
.blackx-residences-page .blackx-company-card__face,
.blackx-residences-page .blackx-empty-inline,
.blackx-residences-page .blackx-empty-state {
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(24, 28, 35, 0.9), rgba(9, 10, 13, 0.92)),
    radial-gradient(circle at top right, rgba(215, 182, 106, 0.08), transparent 44%);
  backdrop-filter: blur(14px);
}

.blackx-residences-page .blackx-feed-card,
.blackx-residences-page .blackx-company-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.blackx-residences-page .blackx-feed-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.blackx-residences-page .blackx-feed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 0.28s ease, transform 0.72s ease;
}

.blackx-residences-page .blackx-feed-card:hover {
  border-color: rgba(215, 182, 106, 0.42);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(215, 182, 106, 0.08);
}

.blackx-residences-page .blackx-feed-card:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.blackx-residences-page .blackx-feed-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(215, 182, 106, 0.16);
}

.blackx-residences-page .blackx-feed-card__media img {
  transition: transform 0.62s ease, filter 0.62s ease;
}

.blackx-residences-page .blackx-feed-card:hover .blackx-feed-card__media img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.05);
}

.blackx-residences-page .blackx-feed-card__body {
  padding: 14px;
}

.blackx-residences-page .blackx-feed-card h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.blackx-residences-page .blackx-feed-card p {
  font-size: 0.88rem;
  line-height: 1.55;
}

.blackx-residences-page .blackx-feed-card__badges,
.blackx-residences-page .blackx-feed-card__footer {
  font-size: 0.76rem;
}

.blackx-residences-page .blackx-feed-card__badges span,
.blackx-residences-page .blackx-post-meta span {
  background: rgba(215, 182, 106, 0.07);
}

.blackx-residences-page .blackx-property-chip {
  padding: 10px;
  border-color: rgba(215, 182, 106, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.blackx-residences-page .blackx-property-chip dl {
  gap: 6px;
}

.blackx-residences-page .blackx-property-chip dt {
  font-size: 0.68rem;
}

.blackx-residences-page .blackx-property-chip dd {
  font-size: 0.82rem;
}

.blackx-residences-page .blackx-company-card {
  min-height: 174px;
  scroll-snap-align: unset;
}

.blackx-residences-page .blackx-company-card__inner {
  min-height: 174px;
  transition: transform 0.58s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blackx-residences-page .blackx-company-card__face {
  padding: 16px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blackx-residences-page .blackx-company-card__logo,
.blackx-residences-page .blackx-publisher-card > span {
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(215, 182, 106, 0.18);
}

.blackx-offers-panel__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(16px, 2vw, 24px);
}

.blackx-next-offers {
  min-width: 148px;
}

.blackx-residences-page .blackx-feed-more:not([hidden]) {
  display: flex;
  margin: 22px auto 0;
}

.blackx-residences-page .blackx-feed-status {
  color: var(--discover-muted);
}

.blackx-residences-page .blackx-quick-view__backdrop {
  backdrop-filter: blur(8px);
}

.blackx-residences-page .blackx-quick-view__panel {
  border-radius: 24px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
}

.blackx-residences-page .blackx-quick-view__close {
  border-radius: 999px;
  border: 1px solid rgba(215, 182, 106, 0.24);
  background: rgba(8, 9, 12, 0.92);
  color: var(--discover-text);
}

.blackx-offers-panel.is-gsap-active .blackx-residences-section-head p,
.blackx-residences-page [data-blackx-section-state="active"] .blackx-residences-section-head p {
  border-color: rgba(215, 182, 106, 0.38);
  background: rgba(215, 182, 106, 0.13);
}

.blackx-offers-panel.is-gsap-active .blackx-residences-section-head h2,
.blackx-residences-page [data-blackx-section-state="active"] .blackx-residences-section-head h2 {
  text-shadow: 0 18px 58px rgba(215, 182, 106, 0.12);
}

[data-blog-animation-state="scrolltrigger"] .blackx-feed-card,
[data-blog-animation-state="scrolltrigger"] .blackx-company-card,
[data-blog-animation-state="scrolltrigger"] .blackx-discover-section-head,
[data-blog-animation-state="scrolltrigger"] .blackx-filter-shell,
[data-blog-animation-state="scrolltrigger"] .blackx-discover-hero__copy,
[data-blog-animation-state="scrolltrigger"] .blackx-discover-hero__signal,
[data-blog-animation-state="scrolltrigger"] .blackx-offers-panel__shell {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

@keyframes blackxResidenceFloatOne {
  0%, 100% {
    margin-top: 0;
    margin-right: 0;
  }

  50% {
    margin-top: -22px;
    margin-right: 18px;
  }
}

@keyframes blackxResidenceFloatTwo {
  0%, 100% {
    margin-bottom: 0;
    margin-left: 0;
  }

  50% {
    margin-bottom: 24px;
    margin-left: 20px;
  }
}

@keyframes blackxResidenceLineSweep {
  0%, 100% {
    opacity: 0.16;
  }

  50% {
    opacity: 0.62;
  }
}

@keyframes blackxResidencePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes blackxResidenceShine {
  0%, 58% {
    transform: translateX(-130%);
  }

  78%, 100% {
    transform: translateX(130%);
  }
}

@media (max-width: 1180px) {
  .blackx-offers-grid--featured,
  .blackx-offers-grid--feed {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 980px) {
  .blackx-discover-hero__inner,
  .blackx-post-detail__grid,
  .blackx-blog-form-grid,
  .blackx-quick-view-content,
  .blackx-filter-advanced {
    grid-template-columns: 1fr;
  }

  .blackx-filter-primary {
    grid-template-columns: 1fr;
  }

  .blackx-filter-shell,
  .blackx-residences-page .blackx-filter-shell {
    position: static;
  }

  .blackx-residences-hero {
    min-height: auto;
    padding: 72px 0 48px;
  }

  .blackx-residences-hero__signal {
    transform: none;
  }

  .blackx-residences-offers-story {
    gap: 28px;
    padding-top: 34px;
  }

  .blackx-offers-panel__shell {
    width: min(100% - 28px, 760px);
    padding: 18px;
    border-radius: 22px;
  }

  .blackx-offers-grid--publishers,
  .blackx-offers-grid--featured,
  .blackx-offers-grid--feed {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (max-width: 767px) {
  .blackx-residences-hero h1 {
    letter-spacing: -0.04em;
  }

  .blackx-residences-actions .btn,
  .blackx-residences-page .blackx-feed-more,
  .blackx-next-offers {
    width: 100%;
  }

  .blackx-offers-panel__footer {
    justify-content: stretch;
  }

  .blackx-offers-grid--publishers,
  .blackx-offers-grid--featured,
  .blackx-offers-grid--feed {
    grid-template-columns: 1fr;
  }

  .blackx-residences-orb {
    opacity: 0.42;
  }

  .blackx-residences-line {
    opacity: 0.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blackx-discover-page *,
  .blackx-discover-page *::before,
  .blackx-discover-page *::after {
    animation: none !important;
    transition: none !important;
  }

  .blackx-scroll-progress {
    display: none;
  }

  .blackx-residences-hero__signal,
  .blackx-residences-orb,
  .blackx-residences-line,
  .blackx-feed-card,
  .blackx-company-card,
  .blackx-offers-panel__shell {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    will-change: auto !important;
  }
}
/* =========================================================
   BlackX Offers Wheel-to-Horizontal GSAP Rails
   Pointer inside container converts vertical wheel to horizontal rail movement
   ========================================================= */

.blackx-residences-page {
  overflow-x: clip;
}

.blackx-offers-scroll-shell,
.blackx-offers-panel__shell {
  position: relative;
  width: min(1080px, calc(100vw - 56px));
  margin: 22px auto 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(215, 182, 106, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(18, 21, 28, 0.76), rgba(7, 8, 11, 0.9)),
    radial-gradient(circle at top right, rgba(215, 182, 106, 0.09), transparent 42%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
  contain: paint;
  transform-style: preserve-3d;
}

.blackx-offers-scroll-shell::before,
.blackx-offers-scroll-shell::after,
.blackx-offers-panel__shell::before,
.blackx-offers-panel__shell::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 5;
  width: min(76px, 10vw);
  height: 100%;
  pointer-events: none;
}

.blackx-offers-scroll-shell::before,
.blackx-offers-panel__shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(8, 9, 12, 0.94), transparent);
}

.blackx-offers-scroll-shell::after,
.blackx-offers-panel__shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(8, 9, 12, 0.94), transparent);
}

.blackx-offers-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
  contain: paint;
}

.blackx-offers-rail,
.blackx-residences-page .blackx-featured-grid.blackx-offers-rail,
.blackx-residences-page .blackx-feed-grid.blackx-offers-rail,
.blackx-residences-page .blackx-offers-grid--featured,
.blackx-residences-page .blackx-offers-grid--feed {
  display: flex !important;
  grid-template-columns: none !important;
  grid-auto-flow: unset !important;
  grid-auto-columns: unset !important;
  align-items: stretch;
  gap: clamp(12px, 1.25vw, 16px);
  width: max-content;
  min-width: 100%;
  max-width: none;
  padding: 8px 8px 14px;
  overflow: visible !important;
  transform-style: preserve-3d;
  will-change: transform;
}

.blackx-offers-rail > .blackx-feed-card,
.blackx-offers-rail > .blackx-company-card,
.blackx-offers-grid--featured > .blackx-feed-card,
.blackx-offers-grid--feed > .blackx-feed-card,
.blackx-offers-grid--featured > .blackx-company-card,
.blackx-offers-grid--feed > .blackx-company-card {
  flex: 0 0 clamp(220px, 22vw, 282px);
  width: clamp(220px, 22vw, 282px);
  max-width: clamp(220px, 22vw, 282px);
  min-width: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.blackx-offers-rail > .blackx-empty-inline,
.blackx-offers-grid--featured > .blackx-empty-inline,
.blackx-offers-grid--feed > .blackx-empty-inline {
  flex: 0 0 min(500px, calc(100vw - 96px));
  width: min(500px, calc(100vw - 96px));
}

.blackx-residences-page .blackx-offers-rail .blackx-feed-card,
.blackx-residences-page .blackx-offers-grid--featured .blackx-feed-card,
.blackx-residences-page .blackx-offers-grid--feed .blackx-feed-card {
  border-radius: 18px;
}

.blackx-residences-page .blackx-offers-rail .blackx-feed-card__media,
.blackx-residences-page .blackx-offers-grid--featured .blackx-feed-card__media,
.blackx-residences-page .blackx-offers-grid--feed .blackx-feed-card__media {
  aspect-ratio: 16 / 9;
}

.blackx-residences-page .blackx-offers-rail .blackx-feed-card__body,
.blackx-residences-page .blackx-offers-grid--featured .blackx-feed-card__body,
.blackx-residences-page .blackx-offers-grid--feed .blackx-feed-card__body {
  padding: 14px;
}

.blackx-residences-page .blackx-offers-rail .blackx-feed-card h3,
.blackx-residences-page .blackx-offers-grid--featured .blackx-feed-card h3,
.blackx-residences-page .blackx-offers-grid--feed .blackx-feed-card h3 {
  margin: 10px 0 7px;
  font-size: 1rem;
  line-height: 1.25;
}

.blackx-residences-page .blackx-offers-rail .blackx-feed-card p,
.blackx-residences-page .blackx-offers-grid--featured .blackx-feed-card p,
.blackx-residences-page .blackx-offers-grid--feed .blackx-feed-card p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.blackx-residences-page .blackx-offers-rail .blackx-feed-card__badges,
.blackx-residences-page .blackx-offers-rail .blackx-feed-card__footer,
.blackx-residences-page .blackx-offers-grid--featured .blackx-feed-card__badges,
.blackx-residences-page .blackx-offers-grid--featured .blackx-feed-card__footer,
.blackx-residences-page .blackx-offers-grid--feed .blackx-feed-card__badges,
.blackx-residences-page .blackx-offers-grid--feed .blackx-feed-card__footer {
  gap: 6px;
  font-size: 0.74rem;
}

.blackx-residences-page .blackx-offers-rail .blackx-property-chip,
.blackx-residences-page .blackx-offers-grid--featured .blackx-property-chip,
.blackx-residences-page .blackx-offers-grid--feed .blackx-property-chip {
  padding: 9px;
  margin: 10px 0;
}

.blackx-residences-page .blackx-offers-rail .blackx-property-chip dl,
.blackx-residences-page .blackx-offers-grid--featured .blackx-property-chip dl,
.blackx-residences-page .blackx-offers-grid--feed .blackx-property-chip dl {
  gap: 5px;
}

.blackx-residences-page .blackx-offers-rail .blackx-property-chip dt,
.blackx-residences-page .blackx-offers-grid--featured .blackx-property-chip dt,
.blackx-residences-page .blackx-offers-grid--feed .blackx-property-chip dt {
  font-size: 0.66rem;
}

.blackx-residences-page .blackx-offers-rail .blackx-property-chip dd,
.blackx-residences-page .blackx-offers-grid--featured .blackx-property-chip dd,
.blackx-residences-page .blackx-offers-grid--feed .blackx-property-chip dd {
  font-size: 0.8rem;
}

.blackx-offers-scroll-shell.is-offers-active,
.blackx-offers-scroll-shell.is-offers-wheel-active,
.blackx-offers-panel__shell.is-offers-active,
.blackx-offers-panel__shell.is-offers-wheel-active {
  border-color: rgba(215, 182, 106, 0.32);
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(215, 182, 106, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.blackx-offers-scroll-shell.is-offers-hovered,
.blackx-offers-panel__shell.is-offers-hovered {
  cursor: ew-resize;
}

@media (max-width: 980px) {
  .blackx-offers-scroll-shell,
  .blackx-offers-panel__shell {
    width: min(100%, calc(100vw - 28px));
    padding: 12px;
  }

  .blackx-offers-rail > .blackx-feed-card,
  .blackx-offers-rail > .blackx-company-card,
  .blackx-offers-grid--featured > .blackx-feed-card,
  .blackx-offers-grid--feed > .blackx-feed-card,
  .blackx-offers-grid--featured > .blackx-company-card,
  .blackx-offers-grid--feed > .blackx-company-card {
    flex-basis: min(74vw, 282px);
    width: min(74vw, 282px);
    max-width: min(74vw, 282px);
  }
}

@media (max-width: 767px) {
  .blackx-offers-scroll-shell,
  .blackx-offers-panel__shell {
    width: min(100%, calc(100vw - 22px));
  }

  .blackx-offers-rail,
  .blackx-offers-grid--featured,
  .blackx-offers-grid--feed {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blackx-offers-rail,
  .blackx-offers-grid--featured,
  .blackx-offers-grid--feed,
  .blackx-offers-rail > .blackx-feed-card,
  .blackx-offers-grid--featured > .blackx-feed-card,
  .blackx-offers-grid--feed > .blackx-feed-card {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* =========================================================
   BlackX Publisher Company Cards Flip Fix
   Scoped fix for Verified Publishers cards only
   ========================================================= */

.blackx-residences-publishers .blackx-company-card,
.blackx-offers-grid--publishers .blackx-company-card {
  position: relative;
  min-height: 188px;
  height: 188px;
  perspective: 1200px;
  transform: none !important;
  cursor: pointer;
  outline: none;
}

.blackx-residences-publishers .blackx-company-card__inner,
.blackx-offers-grid--publishers .blackx-company-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 188px;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.blackx-residences-publishers .blackx-company-card:hover .blackx-company-card__inner,
.blackx-residences-publishers .blackx-company-card:focus-within .blackx-company-card__inner,
.blackx-residences-publishers .blackx-company-card.is-flipped .blackx-company-card__inner,
.blackx-offers-grid--publishers .blackx-company-card:hover .blackx-company-card__inner,
.blackx-offers-grid--publishers .blackx-company-card:focus-within .blackx-company-card__inner,
.blackx-offers-grid--publishers .blackx-company-card.is-flipped .blackx-company-card__inner {
  transform: rotateY(180deg);
}

.blackx-residences-publishers .blackx-company-card__face,
.blackx-offers-grid--publishers .blackx-company-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.blackx-residences-publishers .blackx-company-card__front,
.blackx-offers-grid--publishers .blackx-company-card__front {
  transform: rotateY(0deg);
}

.blackx-residences-publishers .blackx-company-card__back,
.blackx-offers-grid--publishers .blackx-company-card__back {
  transform: rotateY(180deg);
}

.blackx-residences-publishers .blackx-company-card:focus-visible,
.blackx-offers-grid--publishers .blackx-company-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 182, 106, 0.28);
}

@media (max-width: 767px) {
  .blackx-residences-publishers .blackx-company-card,
  .blackx-offers-grid--publishers .blackx-company-card {
    height: 198px;
    min-height: 198px;
  }

  .blackx-residences-publishers .blackx-company-card__inner,
  .blackx-offers-grid--publishers .blackx-company-card__inner {
    min-height: 198px;
  }
}
/* =========================================================
   BlackX Offers Section Controls + Grid Modal
   ========================================================= */

.blackx-offers-panel__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: clamp(16px, 2vw, 24px);
}

.blackx-offers-control {
  min-width: 126px;
  min-height: 42px;
  border-radius: 999px;
}

.blackx-offers-control--modal {
  min-width: 138px;
}

.blackx-offers-grid-modal[hidden] {
  display: none !important;
}

.blackx-offers-grid-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.blackx-offers-grid-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.blackx-offers-grid-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 30px));
  max-height: calc(100vh - 36px);
  margin: 18px auto;
  overflow: auto;
  border: 1px solid rgba(215, 182, 106, 0.24);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(18, 21, 28, 0.98), rgba(7, 8, 11, 0.98)),
    radial-gradient(circle at top right, rgba(215, 182, 106, 0.12), transparent 42%);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
}

.blackx-offers-grid-modal__close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  width: 40px;
  height: 40px;
  margin: 12px;
  border: 1px solid rgba(215, 182, 106, 0.24);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.94);
  color: var(--discover-text);
}

.blackx-offers-grid-modal__head {
  padding: 26px 26px 8px;
}

.blackx-offers-grid-modal__head p {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 182, 106, 0.18);
  border-radius: 999px;
  background: rgba(215, 182, 106, 0.08);
  color: var(--discover-gold);
  font-weight: 800;
  text-transform: uppercase;
}

.blackx-offers-grid-modal__head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.blackx-offers-grid-modal__body {
  padding: 18px 26px 30px;
}

.blackx-offers-grid-modal__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  overflow: visible !important;
}

.blackx-offers-grid-modal__grid > .blackx-feed-card,
.blackx-offers-grid-modal__grid > .blackx-company-card,
.blackx-offers-grid-modal__grid > .blackx-empty-inline {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 767px) {
  .blackx-offers-panel__footer {
    justify-content: stretch;
  }

  .blackx-offers-control {
    width: 100%;
  }

  .blackx-offers-grid-modal__body,
  .blackx-offers-grid-modal__head {
    padding-inline: 16px;
  }

  .blackx-offers-grid-modal__grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   BlackX Modal Top Layer + Scroll Lock Fix
   ========================================================= */

html.blackx-modal-open,
body.blackx-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.blackx-offers-grid-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  isolation: isolate;
  width: 100vw;
  height: 100dvh;
  overflow: hidden !important;
  pointer-events: auto;
}

.blackx-offers-grid-modal__backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0;
}

.blackx-offers-grid-modal__panel {
  position: relative !important;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 30px));
  height: calc(100dvh - 36px);
  max-height: calc(100dvh - 36px);
  margin: 18px auto;
  overflow: hidden !important;
}

.blackx-offers-grid-modal__head {
  flex: 0 0 auto;
}

.blackx-offers-grid-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 34px;
}

.blackx-offers-grid-modal__close {
  z-index: 5;
}

.blackx-quick-view {
  z-index: 2147482000 !important;
}

/* =========================================================
   BlackX Offers Modal Wheel Scroll Fix
   ========================================================= */

.blackx-offers-grid-modal__panel {
  overflow: hidden !important;
}

.blackx-offers-grid-modal__body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: none;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  touch-action: pan-y;
  scrollbar-gutter: stable;
}

.blackx-offers-grid-modal__body > * {
  max-width: 100%;
}
/* =========================================================
   BlackX Offers Light UI Refinements
   Counts, controls layout, card numbers, scrollbar
   ========================================================= */

.blackx-offers-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.blackx-offers-section-head > div {
  min-width: 0;
}

.blackx-offers-card-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(215, 182, 106, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(215, 182, 106, 0.12), rgba(255, 255, 255, 0.045));
  color: var(--discover-gold);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.blackx-offers-panel__footer[data-offers-controls] {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: clamp(16px, 2vw, 24px);
}

.blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--left {
  justify-self: start;
}

.blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--modal {
  justify-self: center;
}

.blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--right {
  justify-self: end;
}

.blackx-offers-control {
  min-width: 124px;
  min-height: 42px;
  border-radius: 999px;
}

.blackx-offers-control--modal {
  min-width: 150px;
}

.blackx-feed-more,
.blackx-fallback-pagination {
  display: none !important;
}

.blackx-feed-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 14px;
  pointer-events: none;
}

.blackx-card-position-badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(215, 182, 106, 0.28);
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.82);
  color: var(--discover-gold);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.blackx-feed-card,
.blackx-company-card {
  position: relative;
}

.blackx-feed-status:not([hidden]) {
  display: block;
  margin: 16px auto 0;
  color: var(--discover-muted);
  font-size: 0.86rem;
  text-align: center;
}

/* Page scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 182, 106, 0.72) rgba(8, 9, 12, 0.92);
}

body::-webkit-scrollbar {
  width: 11px;
}

body::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.96), rgba(15, 17, 22, 0.96));
}

body::-webkit-scrollbar-thumb {
  border: 3px solid rgba(8, 9, 12, 0.96);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(215, 182, 106, 0.95), rgba(133, 103, 42, 0.88));
}

body::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(242, 214, 142, 1), rgba(166, 130, 54, 0.95));
}

@media (max-width: 767px) {
  .blackx-offers-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .blackx-offers-card-count {
    width: fit-content;
  }

  .blackx-offers-panel__footer[data-offers-controls] {
    grid-template-columns: 1fr;
  }

  .blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--left,
  .blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--modal,
  .blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--right {
    justify-self: stretch;
    width: 100%;
  }
}

/* =========================================================
   BlackX Lazy Grid Modal Rendering
   Loads modal cards in visual batches instead of cloning all at once
   ========================================================= */

.blackx-offers-grid-modal__status {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid rgba(215, 182, 106, 0.22);
  border-radius: 999px;
  background: rgba(215, 182, 106, 0.08);
  color: var(--discover-gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  transform: none !important;
}

.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] > .blackx-feed-card,
.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] > .blackx-company-card,
.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] > .blackx-empty-inline {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] .blackx-feed-card__body {
  padding: 12px;
}

.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] .blackx-feed-card h3 {
  display: -webkit-box;
  margin: 9px 0 6px;
  overflow: hidden;
  font-size: 0.96rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] .blackx-feed-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] .blackx-feed-card__media {
  aspect-ratio: 16 / 9;
}

.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] .blackx-property-chip {
  padding: 8px;
  margin: 8px 0;
}

.blackx-offers-grid-modal__sentinel {
  display: grid;
  place-items: center;
  min-height: 56px;
  margin-top: 12px;
  color: var(--discover-muted);
  font-size: 0.84rem;
}

.blackx-offers-grid-modal__sentinel[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid] {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   BlackX Residences Lazy Page Pilot
   Section hydration, compact cards, content containment
   ========================================================= */

.blackx-offers-panel[data-lazy-section],
.blackx-offers-panel[data-lazy-state] {
  content-visibility: auto;
  contain-intrinsic-size: 640px;
}

.blackx-offers-panel[data-lazy-state="idle"] .blackx-offers-panel__shell {
  transform: translateY(10px);
}

.blackx-offers-panel[data-lazy-state="hydrating"] .blackx-offers-panel__shell,
.blackx-offers-panel[data-lazy-state="ready"] .blackx-offers-panel__shell {
  transform: translateY(0);
}

.blackx-offers-panel.is-lazy-section-ready {
  contain-intrinsic-size: auto;
}

.blackx-feed-card.is-lazy-card-passive,
.blackx-company-card.is-lazy-card-passive {
  opacity: 0.92;
}

.blackx-feed-card.is-lazy-card-ready,
.blackx-company-card.is-lazy-card-ready {
  opacity: 1;
}

/* Compact card sizing across all offer sections */
.blackx-residences-page .blackx-offers-rail > .blackx-feed-card,
.blackx-residences-page .blackx-offers-rail > .blackx-company-card,
.blackx-residences-page .blackx-offers-grid--featured > .blackx-feed-card,
.blackx-residences-page .blackx-offers-grid--feed > .blackx-feed-card,
.blackx-residences-page .blackx-offers-grid--publishers > .blackx-company-card {
  flex-basis: clamp(198px, 19vw, 248px) !important;
  width: clamp(198px, 19vw, 248px) !important;
  max-width: clamp(198px, 19vw, 248px) !important;
}

.blackx-residences-page .blackx-offers-grid--publishers {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

.blackx-residences-page .blackx-offers-grid--publishers > .blackx-company-card {
  width: 100% !important;
  max-width: 100% !important;
}

.blackx-residences-page .blackx-feed-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blackx-residences-page .blackx-feed-card__media {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
}

.blackx-residences-page .blackx-feed-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 11px !important;
}

.blackx-residences-page .blackx-feed-card h3 {
  display: -webkit-box;
  margin: 8px 0 6px;
  overflow: hidden;
  font-size: 0.94rem !important;
  line-height: 1.24 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-residences-page .blackx-feed-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-residences-page .blackx-feed-card__badges {
  max-height: 54px;
  overflow: hidden;
  gap: 5px;
  font-size: 0.7rem !important;
}

.blackx-residences-page .blackx-feed-card__badges span {
  padding: 3px 7px;
}

.blackx-residences-page .blackx-property-chip {
  padding: 8px !important;
  margin: 8px 0 !important;
}

.blackx-residences-page .blackx-property-chip p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-residences-page .blackx-property-chip dl {
  gap: 5px !important;
  margin: 7px 0 0;
}

.blackx-residences-page .blackx-property-chip dt {
  font-size: 0.62rem !important;
}

.blackx-residences-page .blackx-property-chip dd {
  font-size: 0.74rem !important;
}

.blackx-residences-page .blackx-feed-card__footer,
.blackx-residences-page .blackx-feed-card__actions {
  margin-top: auto;
  gap: 6px;
  font-size: 0.72rem !important;
}

.blackx-residences-page .blackx-feed-card__actions .btn,
.blackx-residences-page .blackx-feed-card .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.76rem;
  border-radius: 999px;
}

/* Company cards compact containment */
.blackx-residences-page .blackx-company-card {
  min-height: 164px !important;
}

.blackx-residences-page .blackx-company-card__inner {
  min-height: 164px !important;
}

.blackx-residences-page .blackx-company-card__face {
  padding: 13px !important;
}

.blackx-residences-page .blackx-company-card__face h3,
.blackx-residences-page .blackx-company-card__face strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.24;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-residences-page .blackx-company-card__face p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.38;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Reduce repeated heavy effects on card level */
.blackx-residences-page .blackx-feed-card,
.blackx-residences-page .blackx-company-card__face {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: none;
}

.blackx-residences-page .blackx-offers-panel__shell {
  backdrop-filter: blur(14px);
}

/* Lazy image stability */
.blackx-residences-page img[loading="lazy"] {
  content-visibility: auto;
}

/* Mobile compact behavior */
@media (max-width: 767px) {
  .blackx-residences-page .blackx-offers-rail > .blackx-feed-card,
  .blackx-residences-page .blackx-offers-rail > .blackx-company-card,
  .blackx-residences-page .blackx-offers-grid--featured > .blackx-feed-card,
  .blackx-residences-page .blackx-offers-grid--feed > .blackx-feed-card {
    flex-basis: min(72vw, 248px) !important;
    width: min(72vw, 248px) !important;
    max-width: min(72vw, 248px) !important;
  }

  .blackx-residences-page .blackx-offers-grid--publishers {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }

  .blackx-residences-page .blackx-feed-card__body {
    padding: 10px !important;
  }
}
/* =========================================================
   BlackX Featured Lazy Data Placeholder
   ========================================================= */

.blackx-lazy-data-placeholder {
  min-width: clamp(210px, 22vw, 260px);
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--discover-muted);
  border-style: dashed;
  background:
    linear-gradient(145deg, rgba(24, 28, 35, 0.62), rgba(8, 9, 12, 0.78)),
    radial-gradient(circle at top right, rgba(215, 182, 106, 0.08), transparent 42%);
}

.blackx-offers-panel[data-lazy-data-state="loading"] .blackx-lazy-data-placeholder {
  position: relative;
  overflow: hidden;
}

.blackx-offers-panel[data-lazy-data-state="loading"] .blackx-lazy-data-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.08), transparent 72%);
  transform: translateX(-120%);
  animation: blackxLazyDataShimmer 1.2s ease-in-out infinite;
}

@keyframes blackxLazyDataShimmer {
  to {
    transform: translateX(120%);
  }
}
/* =========================================================
   BlackX Compact Residence Cards + Controls Containment
   Phase: Compact UI after lazy data publishers/featured
   ========================================================= */

.blackx-residences-page {
  --blackx-compact-feed-card: clamp(196px, 18.5vw, 244px);
  --blackx-compact-company-card: clamp(170px, 16vw, 220px);
  --blackx-compact-card-gap: clamp(10px, 1.15vw, 14px);
}

/* Section control buttons: Previous left, Grid center, Next right */
.blackx-offers-panel__footer[data-offers-controls] {
  display: grid !important;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: clamp(14px, 1.8vw, 22px);
}

.blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--left {
  justify-self: start;
}

.blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--modal {
  justify-self: center;
}

.blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--right {
  justify-self: end;
}

.blackx-offers-control {
  min-width: 118px;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.blackx-offers-control--modal {
  min-width: 142px;
}

/* Remove old manual pagination UI from the public page */
.blackx-feed-more,
.blackx-fallback-pagination {
  display: none !important;
}

/* Rails compact sizing */
.blackx-residences-page .blackx-offers-rail {
  gap: var(--blackx-compact-card-gap) !important;
}

.blackx-residences-page .blackx-offers-rail > .blackx-feed-card,
.blackx-residences-page .blackx-featured-grid.blackx-offers-rail > .blackx-feed-card,
.blackx-residences-page .blackx-feed-grid.blackx-offers-rail > .blackx-feed-card {
  flex: 0 0 var(--blackx-compact-feed-card) !important;
  width: var(--blackx-compact-feed-card) !important;
  max-width: var(--blackx-compact-feed-card) !important;
}

.blackx-residences-page .blackx-offers-grid--publishers {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
  gap: var(--blackx-compact-card-gap) !important;
}

.blackx-residences-page .blackx-offers-grid--publishers > .blackx-company-card {
  width: 100% !important;
  max-width: 100% !important;
}

/* Feed card containment */
.blackx-residences-page .blackx-feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 16px !important;
  overflow: hidden;
}

.blackx-residences-page .blackx-feed-card__media {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
}

.blackx-residences-page .blackx-feed-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 10px !important;
}

.blackx-residences-page .blackx-feed-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 48px;
  overflow: hidden;
  font-size: 0.68rem !important;
}

.blackx-residences-page .blackx-feed-card__badges span {
  padding: 3px 6px !important;
  line-height: 1.15;
}

.blackx-residences-page .blackx-feed-card h3 {
  display: -webkit-box;
  margin: 7px 0 5px !important;
  overflow: hidden;
  font-size: 0.92rem !important;
  line-height: 1.24 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-residences-page .blackx-feed-card h3 a {
  color: var(--discover-text);
}

.blackx-residences-page .blackx-feed-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Property chip containment */
.blackx-residences-page .blackx-property-chip {
  margin: 7px 0 !important;
  padding: 8px !important;
  border-radius: 12px !important;
}

.blackx-residences-page .blackx-property-chip p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 0.76rem !important;
  line-height: 1.34 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-residences-page .blackx-property-chip dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px !important;
  margin: 7px 0 0 !important;
}

.blackx-residences-page .blackx-property-chip dt {
  font-size: 0.6rem !important;
}

.blackx-residences-page .blackx-property-chip dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  font-size: 0.72rem !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card footer/actions stay inside the card */
.blackx-residences-page .blackx-feed-card__footer {
  margin-top: auto;
  gap: 5px;
  font-size: 0.68rem !important;
}

.blackx-residences-page .blackx-feed-card__footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blackx-residences-page .blackx-feed-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.blackx-residences-page .blackx-feed-card__actions .btn,
.blackx-residences-page .blackx-feed-card .btn-compact {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

/* Company card compact containment */
.blackx-residences-page .blackx-company-card {
  min-height: 158px !important;
  height: 158px !important;
}

.blackx-residences-page .blackx-company-card__inner {
  min-height: 158px !important;
  height: 158px !important;
}

.blackx-residences-page .blackx-company-card__face {
  padding: 12px !important;
  border-radius: 15px !important;
}

.blackx-residences-page .blackx-company-card__logo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
}

.blackx-residences-page .blackx-company-card__face h3,
.blackx-residences-page .blackx-company-card__face strong {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 0.9rem !important;
  line-height: 1.22 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blackx-residences-page .blackx-company-card__face p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 0.76rem !important;
  line-height: 1.34 !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Card number badge should not block actions */
.blackx-card-position-badge {
  top: 8px !important;
  inset-inline-end: 8px !important;
  min-width: 42px;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.68rem;
  pointer-events: none;
}

/* Modal grid cards use same compact behavior */
.blackx-offers-grid-modal__grid[data-offers-lazy-modal-grid],
.blackx-offers-grid-modal__grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px !important;
}

.blackx-offers-grid-modal__grid .blackx-feed-card__body {
  padding: 10px !important;
}

.blackx-offers-grid-modal__grid .blackx-feed-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Reduce repeated heavy rendering on many cards */
.blackx-residences-page .blackx-feed-card,
.blackx-residences-page .blackx-company-card__face {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: none !important;
}

.blackx-residences-page .blackx-feed-card:hover {
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(215, 182, 106, 0.08) !important;
}

/* Mobile */
@media (max-width: 767px) {
  .blackx-offers-panel__footer[data-offers-controls] {
    grid-template-columns: 1fr;
  }

  .blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--left,
  .blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--modal,
  .blackx-offers-panel__footer[data-offers-controls] .blackx-offers-control--right {
    justify-self: stretch;
    width: 100%;
  }

  .blackx-residences-page .blackx-offers-rail > .blackx-feed-card,
  .blackx-residences-page .blackx-featured-grid.blackx-offers-rail > .blackx-feed-card,
  .blackx-residences-page .blackx-feed-grid.blackx-offers-rail > .blackx-feed-card {
    flex-basis: min(72vw, 238px) !important;
    width: min(72vw, 238px) !important;
    max-width: min(72vw, 238px) !important;
  }

  .blackx-residences-page .blackx-offers-grid--publishers {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  }

  .blackx-residences-page .blackx-company-card,
  .blackx-residences-page .blackx-company-card__inner {
    height: 168px !important;
    min-height: 168px !important;
  }
}
/* =========================================================
   BlackX Interactive Buttons Protection inside Scroll Rails
   ========================================================= */

.blackx-offers-panel__footer {
  position: relative;
  z-index: 30;
  pointer-events: auto;
}

.blackx-offers-panel__footer .blackx-offers-control,
.blackx-offers-panel__footer button,
.blackx-offers-panel__footer a {
  position: relative;
  z-index: 31;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.blackx-offers-scroll-shell,
.blackx-offers-viewport {
  position: relative;
  z-index: 1;
}

.blackx-offers-rail {
  position: relative;
  z-index: 2;
}

.blackx-feed-card,
.blackx-company-card {
  pointer-events: auto;
}

.blackx-feed-card__body,
.blackx-feed-card__actions,
.blackx-company-card__face {
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

.blackx-feed-card__actions .btn,
.blackx-feed-card__actions button,
.blackx-feed-card__actions a,
.blackx-feed-card button,
.blackx-feed-card a,
.blackx-company-card button,
.blackx-company-card a {
  position: relative;
  z-index: 12;
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

.blackx-offers-scroll-shell button,
.blackx-offers-scroll-shell a,
.blackx-offers-scroll-shell [role="button"],
.blackx-offers-scroll-shell [data-quick-view-open] {
  cursor: pointer !important;
}

.blackx-offers-scroll-shell,
.blackx-offers-viewport,
.blackx-offers-rail {
  cursor: default;
}

.blackx-offers-scroll-shell.is-offers-wheel-active,
.is-offers-wheel-active .blackx-offers-scroll-shell,
.is-offers-wheel-active .blackx-offers-viewport {
  cursor: ew-resize;
}

.blackx-offers-scroll-shell button:hover,
.blackx-offers-scroll-shell a:hover,
.blackx-offers-panel__footer button:hover {
  cursor: pointer !important;
}
/* =========================================================
   BlackX Final Interaction Repair
   Buttons must stay clickable inside scroll rails
   ========================================================= */

.blackx-offers-panel__footer,
.blackx-feed-card__actions,
.blackx-feed-card__body,
.blackx-company-card__face {
  position: relative;
  z-index: 40;
  pointer-events: auto !important;
}

.blackx-offers-panel__footer button,
.blackx-offers-panel__footer a,
.blackx-feed-card__actions button,
.blackx-feed-card__actions a,
.blackx-feed-card button,
.blackx-feed-card a,
.blackx-company-card button,
.blackx-company-card a,
.blackx-residences-page .btn {
  position: relative;
  z-index: 45;
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

.blackx-offers-scroll-shell,
.blackx-offers-viewport,
.blackx-offers-rail {
  cursor: default !important;
}

.blackx-offers-scroll-shell.is-offers-wheel-active,
.is-offers-wheel-active .blackx-offers-scroll-shell,
.is-offers-wheel-active .blackx-offers-viewport {
  cursor: default !important;
}

.blackx-offers-scroll-shell button,
.blackx-offers-scroll-shell a,
.blackx-offers-scroll-shell .btn,
.blackx-offers-panel__footer button,
.blackx-offers-panel__footer .btn {
  cursor: pointer !important;
}

.blackx-feed-card::before {
  pointer-events: none !important;
}

.blackx-card-position-badge {
  pointer-events: none !important;
}

/* =========================================================
   Phase 35.1 Blog View Modes
   ========================================================= */

.blackx-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid rgba(215, 182, 106, 0.22);
  border-radius: 8px;
  background: rgba(7, 8, 11, 0.72);
}

.blackx-view-toggle__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--discover-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.blackx-view-toggle__button:hover,
.blackx-view-toggle__button:focus-visible {
  color: var(--discover-text);
  outline: 2px solid rgba(215, 182, 106, 0.45);
  outline-offset: 2px;
}

.blackx-view-toggle__button.is-active {
  background: linear-gradient(135deg, rgba(215, 182, 106, 0.32), rgba(215, 182, 106, 0.16));
  color: var(--discover-text);
  box-shadow: inset 0 0 0 1px rgba(215, 182, 106, 0.28);
}

.blackx-feed-more {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  margin-top: 16px;
  color: var(--discover-muted);
  font-size: 0.9rem;
}

.blackx-feed-more .btn[aria-disabled="true"] {
  opacity: 0.64;
  pointer-events: none;
}

.blackx-blog-view--vertical {
  overflow-x: clip;
}

.blackx-vertical-feed-story {
  position: relative;
  padding: clamp(24px, 4vw, 54px) 0 clamp(44px, 7vw, 88px);
}

.blackx-vertical-feed-section {
  position: relative;
}

.blackx-vertical-feed-shell {
  width: min(880px, 100%);
  max-width: 100%;
  margin: 0 auto;
}

.blackx-blog-view--vertical .blackx-vertical-feed {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none !important;
  gap: clamp(16px, 2vw, 22px);
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0;
  overflow: visible !important;
  transform: none !important;
  will-change: auto;
}

.blackx-blog-view--vertical .blackx-vertical-feed > .blackx-feed-card,
.blackx-blog-view--vertical .blackx-vertical-feed > .blackx-empty-state {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  transform: none;
}

.blackx-blog-view--vertical .blackx-feed-card {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  align-items: stretch;
}

.blackx-blog-view--vertical .blackx-feed-card__media {
  min-height: 100%;
  aspect-ratio: auto;
  border-right: 1px solid rgba(215, 182, 106, 0.14);
  border-bottom: 0;
}

.blackx-blog-view--vertical .blackx-feed-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
}

.blackx-blog-view--vertical .blackx-card-position-badge {
  display: none;
}

@media (max-width: 760px) {
  .blackx-view-toggle {
    width: 100%;
  }

  .blackx-view-toggle__button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
  }

  .blackx-blog-view--vertical .blackx-feed-card {
    display: block;
  }

  .blackx-blog-view--vertical .blackx-feed-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid rgba(215, 182, 106, 0.14);
  }
}
