/* er-property.css — availability-table, property-card-list, property-highlights, amenity-grid, weather-widget, location, hud-income */
/* ── Property Listing Card (used in rich-text for region pages) ── */

/* Intro text section before property cards — same width, tight gap */
.el--section:has(+ .el--section .property-card) .el-section {
  padding-bottom: 1rem;
}
.el--section:has(+ .el--section .property-card) .el-section__inner:not(.el-site-container) {
  max-width: none;
  padding: 0 var(--site-space-md, 2rem);
}
.el--section:has(+ .el--section .property-card) .el-rich-text {
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Property cards section — full width, tight top */
.el-rich-text:has(.property-card) {
  max-width: none;
}
.el-section:has(.property-card) {
  padding-top: 1rem;
}
.el-section__inner:has(.property-card):not(.el-site-container) {
  max-width: none;
  padding: 0 var(--site-space-md, 2rem);
}


/* Location card list */
.el-property-card-list {
  width: 100%;
  display: grid;
  gap: 1.75rem;
}

/* Property Grid (dynamic listings grid with filters) */
.el-property-grid { width: 100%; }
.el-property-grid__header { text-align: center; margin-bottom: 1.5rem; }
.el-property-grid__heading {
  font-family: var(--site-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.el-property-grid__subheading {
  color: var(--site-text-secondary);
  margin: 0 auto;
  max-width: 640px;
}
.el-property-grid__filters { margin-bottom: 1rem; text-align: center; }
.el-property-grid__filter-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0b2a4a;
  border: 1px solid #0b2a4a;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.el-property-grid__grid {
  display: grid;
  grid-template-columns: repeat(var(--el-grid-cols, 3), minmax(0, 1fr));
  gap: 1.5rem;
}
@container site style(--site-bp: mobile) {
  .el-property-grid__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .el-property-grid__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* was @media(max-width:480px); bucketed to mobile (480 ≤ 768) */
@container site style(--site-bp: mobile) {
  .el-property-grid__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .el-property-grid__grid { grid-template-columns: 1fr; }
}
.el-property-grid__card {
  display: flex;
  flex-direction: column;
  /* Property card radius cascades through the unified card-radius token so
     property cards align with neighbouring carousels and grids. */
  border-radius: var(--site-card-radius, var(--site-radius, 8px));
  overflow: hidden;
  /* Resting-state colors cascade through the unified card resting-state
     color contract (src/lib/themeContract.ts § Card resting-state colors). */
  background: var(--site-card-bg, var(--site-surface, transparent));
  color: var(--site-card-text, inherit);
  border: var(--site-card-border-width, 1px) solid var(--site-card-border, var(--site-border));
  box-shadow: var(--site-card-elevation, none);
}
.el-property-grid__card-image-placeholder {
  /* Aspect cascades through the unified card-media-aspect token so the
     image placeholder matches the live image proportions on this card type. */
  aspect-ratio: var(--site-card-media-aspect, 4 / 3);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--site-primary) 94%, #000 6%), color-mix(in srgb, var(--site-success, var(--site-primary)) 82%, var(--site-primary) 18%)),
    var(--site-card-bg-alt, var(--site-surface-alt));
  position: relative;
  overflow: hidden;
}
.el-property-grid__card-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--site-accent) 52%, transparent), transparent 22%),
    linear-gradient(115deg, transparent 0 45%, color-mix(in srgb, #fff 12%, transparent) 45% 47%, transparent 47%);
  opacity: 0.72;
}
.el-property-grid__card-image-placeholder::after {
  content: 'NuRock Community';
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--site-primary-fg, var(--site-bg, currentColor));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.el-property-grid__card-image {
  display: block;
  width: 100%;
  aspect-ratio: var(--site-card-media-aspect, 16 / 9);
  object-fit: cover;
  object-position: center 62%;
}
.el-property-grid__card-body { padding: var(--site-card-padding, 1rem); display: flex; flex-direction: column; gap: 0.375rem; }
.el-property-grid__card-title { font-weight: 600; color: var(--site-card-text, var(--site-text)); }
.el-property-grid__card-meta { color: var(--site-card-text-secondary, var(--site-text-secondary)); font-size: 0.875rem; }
.el-property-grid__card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--site-btn-radius, var(--site-radius, 10px));
  background: #0b2a4a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
.el-property-grid__empty {
  max-width: min(720px, 100%);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: var(--site-text-secondary, var(--site-text));
  background: var(--site-card-bg, var(--site-surface));
  border: 1px solid var(--site-card-border, var(--site-border));
  border-radius: var(--site-card-radius, var(--site-radius, 12px));
  box-shadow: var(--site-card-elevation, var(--site-shadow-sm, none));
}
.el-property-grid__empty-heading {
  margin: 0;
  color: var(--site-card-text, var(--site-text));
  font-weight: 700;
}
.el-property-grid__empty-description {
  margin: 0.5rem 0 0;
}
.el-property-card-list__header {
  display: grid;
  gap: 0.75rem;
  max-width: 840px;
}
.el-property-card-list__heading {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--pcl-heading, var(--site-fg, var(--site-fg)));
}
.el-property-card-list__subheading {
  margin: 0;
  color: var(--pcl-text, var(--site-text-secondary, var(--site-text-muted)));
  line-height: 1.72;
  font-size: 0.98rem;
  max-width: 760px;
}
.el-property-card-list__grid {
  display: grid;
  grid-template-columns: repeat(var(--el-grid-cols, auto-fit), minmax(280px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.el-property-card-list__grid > .property-card:only-child {
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.el-property-card-list .property-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  border-radius: var(--pcl-radius, 0px);
  overflow: hidden;
  /* Resting elevation cascades through the unified card resting-state
     color contract (src/lib/themeContract.ts § Card resting-state colors)
     so a single token edit retunes elevation on every card site-wide. */
  box-shadow: var(--site-card-elevation, 0 4px 12px rgba(12, 22, 40, 0.1));
  margin-bottom: 0;
  border: var(--site-card-border-width, 1px) solid var(--pcl-border, var(--site-card-border, transparent));
  background: var(--pcl-card-bg, var(--site-card-bg, var(--site-surface, transparent)));
  color: var(--site-card-text, inherit);
  min-height: 100%;
}

/* Image wrapper */
.el-property-card-list .property-card > div:first-child {
  position: relative;
  overflow: hidden;
  min-height: 0;
  /* Aspect cascades through the unified card-media-aspect token so this
     property-card-list image wrapper aligns with property-grid + every
     other card-bearing element on the page. */
  aspect-ratio: var(--site-card-media-aspect, 16 / 10);
  background: linear-gradient(135deg, var(--site-surface-tint, transparent), var(--site-accent, transparent));
}

/* Image — fills wrapper completely, overrides .el-rich-text img */
.el-property-card-list .property-card .property-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
  transition: transform 0.5s ease;
}
.el-property-card-list .property-card:hover .property-card__image {
  transform: scale(1.04);
}

/* Content side */
.el-property-card-list .property-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1.3rem;
  min-height: auto;
  background: var(--pcl-card-bg, linear-gradient(180deg, var(--site-surface, transparent), var(--site-surface-alt, transparent)));
  position: relative;
  flex: 1;
}
.el-property-card-list .property-card > .property-card__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--site-primary);
  box-shadow: none;
}

.el-property-card-list .property-card__name {
  font-family: var(--site-font-heading);
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 700;
  color: var(--pcl-heading, var(--site-fg, var(--site-fg)));
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.12;
  display: block;
}
.el-property-card-list .property-card__desc {
  color: var(--pcl-text, var(--site-text-secondary, var(--site-text-muted)));
  line-height: 1.66;
  font-size: 0.93rem;
  margin: 0;
  display: block;
  overflow: visible;
}

/* Buttons */
.el-property-card-list .property-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.55rem;
  margin-top: auto;
  width: 100%;
  min-height: calc((var(--pcl-action-rows, 1) * 3.05rem) + ((var(--pcl-action-rows, 1) - 1) * 0.55rem));
}
.el-property-card-list .property-card__actions a,
.el-property-card-list .property-card__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--site-font-body);
  border-radius: var(--site-radius-lg, 8px);
  text-decoration: none !important;
  text-underline-offset: unset;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.el-property-card-list .property-card__actions .pc-btn--primary {
  background: var(--pcl-btn-primary, var(--site-accent, var(--site-primary)));
  color: var(--site-accent-fg);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.el-property-card-list .property-card__actions .pc-btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.el-property-card-list .property-card__actions .pc-btn--sage {
  background: var(--site-accent);
  color: var(--site-accent-fg, currentColor);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.el-property-card-list .property-card__actions .pc-btn--sage:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--site-accent-secondary, currentColor);
}
.el-property-card-list .property-card__actions .pc-btn--outline {
  background: transparent;
  color: var(--pcl-btn-secondary, var(--site-primary, var(--site-fg)));
  border: 2px solid var(--pcl-btn-secondary, var(--site-primary, var(--site-fg)));
}
.el-property-card-list .property-card__actions .pc-btn--outline:hover {
  background: var(--pcl-btn-secondary, var(--site-primary, var(--site-fg)));
  color: var(--site-primary-fg);
  border-color: var(--pcl-btn-secondary, var(--site-primary, var(--site-fg)));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Feature bullets */
.el-property-card-list .property-card__features {
  list-style: none;
  padding: 0.9rem 0 0;
  margin: 0;
  border-top: 1px solid var(--site-border, transparent);
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--site-text-secondary, var(--site-text-muted));
  min-height: calc(0.9rem + (var(--pcl-feature-rows, 1) * 1.5rem) + ((var(--pcl-feature-rows, 1) - 1) * 0.45rem));
}
.el-property-card-list .property-card__features li {
  padding: 2px 0 2px 1.375rem;
  position: relative;
  line-height: 1.5;
  text-transform: none;
  font-weight: 500;
}
.el-property-card-list .property-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pcl-accent, var(--site-accent));
  box-shadow: 0 0 0 2px var(--pcl-accent, var(--site-accent, currentColor));
}
.el-property-card-list .property-card__actions--spacer,
.el-property-card-list .property-card__features--spacer {
  pointer-events: none;
}

.el-property-card-list--empty {
  padding: 3rem;
  text-align: center;
  color: var(--site-text-muted);
  font-size: 0.9375rem;
}
.el-property-card-list .property-card__image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--site-surface-alt) 0%, var(--site-border) 100%);
}

/* ── Property Detail Module (carded container) ── */
.el-rich-text:has(.property-detail-module) {
  max-width: none;
}
.property-detail-module {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: none;
}
.property-detail-module .property-card__content {
  background: var(--site-primary);
  border-radius: var(--site-radius-lg, 12px);
  padding: 2.5rem;
  gap: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.property-detail-module .property-card__name {
  font-family: var(--site-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--site-primary-fg, currentColor);
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--site-accent);
  margin: 0;
  width: 100%;
}
.property-detail-module .property-card__desc {
  color: rgba(255,255,255,0.7);
}
.property-detail-module .property-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  width: 100%;
}
.property-detail-module .property-card__features li {
  padding: 3px 0 3px 1.375rem;
  position: relative;
  line-height: 1.5;
}
.property-detail-module .property-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--site-accent);
}
.property-detail-module .property-card__features {
  flex: 1;
}
.property-detail-module .property-card__actions {
  margin-top: auto;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}
.property-detail-module .property-card__actions a {
  text-decoration: none !important;
  border-radius: var(--site-radius-lg, 8px);
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s, filter 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.property-detail-module .pc-btn--primary {
  background: var(--site-accent);
  color: var(--site-accent-fg, currentColor);
  border: 2px solid var(--site-accent);
}
.property-detail-module .pc-btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--site-accent, currentColor);
}
.property-detail-module .pc-btn--sage {
  background: var(--site-accent);
  color: var(--site-accent-fg, currentColor);
  border: 2px solid var(--site-accent);
}
.property-detail-module .pc-btn--sage:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--site-accent-secondary, currentColor);
}
@container site style(--site-bp: mobile) {
  .property-detail-module {
    grid-template-columns: 1fr;
  }
  .property-detail-module .property-card__content {
    padding: 2rem 1.5rem;
  }
  .property-detail-module .property-card__actions {
    grid-template-columns: 1fr;
  }
  .property-detail-module .property-card__features {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .property-detail-module {
    grid-template-columns: 1fr;
  }
  .property-detail-module .property-card__content {
    padding: 2rem 1.5rem;
  }
  .property-detail-module .property-card__actions {
    grid-template-columns: 1fr;
  }
  .property-detail-module .property-card__features {
    grid-template-columns: 1fr;
  }
}

/* ── Max Income Module ── */
.property-income-module {
  background: var(--site-primary);
  border-radius: var(--site-radius-lg, 12px);
  padding: 2.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.property-income-module__heading {
  font-family: var(--site-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--site-primary-fg, currentColor);
  margin: 0 0 0.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--site-accent);
}
.property-income-module__note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin: 0.5rem 0 1.25rem;
}
.property-income-module__table {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.property-income-module__table li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.875rem;
}
.property-income-module__table li:nth-last-child(-n+2) {
  border-bottom: none;
}
.pdm-income__label {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.pdm-income__amount {
  color: var(--site-primary-fg, currentColor);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.el-rich-text:has(.property-income-module) {
  max-width: none;
}
@container site style(--site-bp: mobile) {
  .property-income-module {
    padding: 2rem 1.5rem;
  }
  .property-income-module__table {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .property-income-module {
    padding: 2rem 1.5rem;
  }
  .property-income-module__table {
    grid-template-columns: 1fr;
  }
}

/* @media (min-width: 768px) and (max-width: 1024px) → tablet only */
@container site style(--site-bp: tablet) {
  .el-property-card-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .el-property-card-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* was @media(max-width:767px); bucketed to mobile (767 ≤ 768) */
@container site style(--site-bp: mobile) {
  .el-property-card-list__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .el-property-card-list__grid {
    grid-template-columns: 1fr;
  }
  .el-property-card-list .property-card {
    margin-bottom: 2rem;
  }
  .el-property-card-list .property-card > div:first-child {
    position: relative;
    min-height: 0;
  }
  .el-property-card-list .property-card .property-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
  }
  .el-property-card-list .property-card > .property-card__content {
    padding: 1.75rem 1.5rem;
    min-height: auto;
  }
  .el-property-card-list .property-card > .property-card__content::before {
    left: 0;
    right: 0;
  }
  .el-property-card-list .property-card__name { font-size: 1.5rem; }
  .el-property-card-list .property-card__actions {
    grid-template-columns: 1fr;
  }
  .el-property-card-list .property-card__features { grid-template-columns: 1fr; }
  .el--section:has(+ .el--section .el-property-card-list .property-card) .el-section__inner:not(.el-site-container),
  .el-section__inner:has(.el-property-card-list .property-card):not(.el-site-container) {
    padding: 0 var(--site-space-sm, 1.25rem);
  }
}

/* ── Availability Table — ExactEstate-fed unit table ─────────── */
/* Vertical padding from the rhythm token (see er-layout.css § Section
   Vertical Rhythm Contract). Horizontal from the site gutter. */
.el-availability-table {
  padding-block: var(--site-section-pad-y);
  padding-inline: var(--site-content-gutter, 24px);
  max-width: var(--site-max-width, 1280px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.el-availability-table__heading {
  font-family: var(--site-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--site-fg);
}
.el-availability-table__wrap {
  overflow-x: auto;
  background: var(--site-surface, transparent);
  border: 1px solid var(--site-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(12, 20, 38, 0.06);
}
.el-availability-table__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--site-font-body);
  font-size: 0.95rem;
}
.el-availability-table__table thead {
  background: var(--site-surface-alt);
  border-bottom: 2px solid var(--site-border);
}
.el-availability-table__table th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--site-text-secondary);
}
.el-availability-table__row {
  border-bottom: 1px solid var(--site-border-muted);
  transition: background 0.2s ease;
}
.el-availability-table__row:hover {
  background: rgba(201, 168, 76, 0.05);
}
.el-availability-table__row:last-child {
  border-bottom: none;
}
.el-availability-table__table td {
  padding: 16px 18px;
  color: var(--site-text);
}
.el-availability-table__apply {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--site-accent);
  color: var(--site-accent-fg);
  border-radius: var(--site-radius-lg, 8px);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}
.el-availability-table__apply:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.el-availability-table__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  background: var(--site-surface, transparent);
  border: 1px dashed var(--site-border);
  border-radius: 16px;
  text-align: center;
  color: var(--site-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
  gap: 1rem;
}
.el-availability-table__empty::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  background-color: var(--site-accent);
  mask-image: url('/platform_ui/icons/calendar-icon.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('/platform_ui/icons/calendar-icon.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  opacity: 0.9;
}
.el-availability-table__updated {
  margin: 0;
  justify-self: end;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-accent) 14%, white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--site-primary);
}
.el-availability-table__summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--site-text-secondary);
}
@container site style(--site-bp: mobile) or style(--site-bp: tablet) {
  .el-availability-table__wrap {
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .el-availability-table__table,
  .el-availability-table__table thead,
  .el-availability-table__table tbody,
  .el-availability-table__row,
  .el-availability-table__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .el-availability-table__table thead {
    display: none;
  }
  .el-availability-table__table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .el-availability-table__table td {
    padding: 0.5rem 0 0;
    font-size: 0.93rem;
  }
  .el-availability-table__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--site-text-muted);
  }
  .el-availability-table__table td:first-child {
    padding-top: 0.55rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--site-primary);
  }
  .el-availability-table__table td[data-label='Apply'] {
    padding-top: 0.8rem;
  }
  .el-availability-table__apply {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .el-availability-table__summary,
  .el-availability-table__updated {
    text-align: left;
    justify-self: start;
  }
}
@media (max-width: 1024px) {
  .el-availability-table__wrap {
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .el-availability-table__table,
  .el-availability-table__table thead,
  .el-availability-table__table tbody,
  .el-availability-table__row,
  .el-availability-table__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .el-availability-table__table thead {
    display: none;
  }
  .el-availability-table__table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .el-availability-table__table td {
    padding: 0.5rem 0 0;
    font-size: 0.93rem;
  }
  .el-availability-table__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--site-text-muted);
  }
  .el-availability-table__table td:first-child {
    padding-top: 0.55rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--site-primary);
  }
  .el-availability-table__table td[data-label='Apply'] {
    padding-top: 0.8rem;
  }
  .el-availability-table__apply {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .el-availability-table__summary,
  .el-availability-table__updated {
    text-align: left;
    justify-self: start;
  }
}
/* was @media(max-width:767px); bucketed to mobile (767 ≤ 768) */
@container site style(--site-bp: mobile) {
  .el-property-card-list__grid--cols-2,
  .el-property-card-list__grid--cols-3,
  .el-property-card-list__grid--cols-4 {
    grid-template-columns: 1fr;
  }
  .el-availability-table__table tbody {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .el-property-card-list__grid--cols-2,
  .el-property-card-list__grid--cols-3,
  .el-property-card-list__grid--cols-4 {
    grid-template-columns: 1fr;
  }
  .el-availability-table__table tbody {
    grid-template-columns: 1fr;
  }
}

/* ── Availability Table ────────────────────────────────────────── */
/* Shared section wrapper */
.el-avail-table {
  --el-padding-default: clamp(28px, 4vw, 42px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0;
}
.el-avail-table__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 680px;
  margin: 0 auto;
}
/* Wrapper around the heading slot — layout/colour only. Typography
   (font-size, weight, letter-spacing, line-height) is owned by the inner
   .el-heading element so it cannot cascade into the eyebrow/subtitle
   children of the consolidated heading. */
.el-avail-table__heading {
  margin: 0;
  color: var(--site-widget-heading-color, var(--site-fg));
  text-align: var(--site-widget-heading-align, center);
}
.el-avail-table__subheading {
  margin: 0 auto;
  max-width: var(--site-widget-subheading-max-width, 62ch);
  font-size: var(--site-widget-subheading-size, 1.0625rem);
  line-height: var(--site-widget-subheading-line-height, 1.65);
  color: var(--site-widget-subheading-color, var(--site-text-secondary));
  text-align: var(--site-widget-heading-align, center);
  text-wrap: pretty;
}
.el-avail-table__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--site-text-muted);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Empty state ─────────────────────────────────────────────────── */
.el-avail-table__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  background: var(--site-surface-alt);
  border-radius: 16px;
  border: 1px dashed var(--site-border, transparent);
  text-align: center;
}
.el-avail-table__empty-icon {
  width: 48px;
  height: 48px;
  color: var(--site-text-muted);
  flex-shrink: 0;
}
.el-avail-table__empty-msg {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--site-text-secondary);
  max-width: 420px;
  line-height: 1.6;
}
.el-avail-table__empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--avail-cta-bg, var(--site-accent));
  color: var(--avail-cta-text, var(--site-accent-fg));
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}
.el-avail-table__empty-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Skeleton loader ──────────────────────────────────────────────── */
@keyframes avail-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .avail-skeleton__img,
  .avail-skeleton__line,
  .avail-skeleton__stat {
    animation: none;
  }
}
.avail-skeleton--cards {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
}
.avail-skeleton--fp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.avail-skeleton__card {
  flex: 0 0 calc((100% - 3rem) / 3);
  border-radius: 14px;
  overflow: hidden;
  background: var(--site-surface, transparent);
  border: 1px solid var(--site-border, transparent);
}
.avail-skeleton__card--fp {
  flex: unset;
  padding: 1.5rem;
  min-height: 200px;
}
.avail-skeleton__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, var(--site-surface-alt) 25%, var(--site-border) 50%, var(--site-surface-alt) 75%);
  background-size: 400px 100%;
  animation: avail-shimmer 1.4s infinite;
}
.avail-skeleton__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.avail-skeleton__line {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--site-surface-alt) 25%, var(--site-border) 50%, var(--site-surface-alt) 75%);
  background-size: 400px 100%;
  animation: avail-shimmer 1.4s infinite;
}
.avail-skeleton__line--xl { height: 2.25rem; width: 60%; }
.avail-skeleton__line--lg { height: 1.25rem; width: 75%; }
.avail-skeleton__line--md { height: 1rem; width: 55%; }
.avail-skeleton__line--sm { height: 0.875rem; width: 40%; }
.avail-skeleton__stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.avail-skeleton__stat {
  flex: 1;
  height: 4rem;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--site-surface-alt) 25%, var(--site-border) 50%, var(--site-surface-alt) 75%);
  background-size: 400px 100%;
  animation: avail-shimmer 1.4s infinite;
}

/* ── Carousel wrapper ─────────────────────────────────────────────── */
.el-avail-table__carousel-wrap {
  position: relative;
  padding: 0 2px; /* room for box-shadow */
}

/* Nav arrows — aligned with testimonials carousel (top: 50%, -22px offset)
   so the two carousels read as one design system instead of two diverging
   implementations. Arrow surface uses --carousel-arrow-* tokens emitted by
   buildCarouselStyleVars, falling back to the local --avail-nav-* tokens
   for sites that still set them via the design panel. */
.el-avail-table__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: var(--carousel-arrow-size, 44px);
  height: var(--carousel-arrow-size, 44px);
  border-radius: var(--carousel-arrow-radius, 999px);
  border: 1px solid var(--carousel-arrow-border,
    color-mix(in srgb, var(--avail-accent, var(--site-accent, currentColor)) 26%, transparent));
  background: var(--carousel-arrow-bg,
    var(--avail-nav-bg, color-mix(in srgb, var(--avail-card-bg, var(--site-surface, transparent)) 92%, transparent)));
  color: var(--carousel-arrow-color,
    var(--avail-nav-icon, var(--avail-text, var(--site-fg, inherit))));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--carousel-arrow-shadow, 0 18px 40px rgba(15, 23, 42, 0.14));
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.el-avail-table__nav--prev { left: -22px; }
.el-avail-table__nav--next { right: -22px; }
.el-avail-table__nav:hover {
  filter: var(--carousel-arrow-hover-filter, brightness(1.08));
  background: var(--carousel-arrow-hover-bg,
    var(--avail-accent, var(--site-accent, var(--site-primary))));
  color: var(--carousel-arrow-hover-color, var(--site-accent-fg, var(--site-primary-fg, currentColor)));
  border-color: var(--carousel-arrow-hover-border,
    var(--carousel-arrow-hover-bg, var(--avail-accent, var(--site-accent, var(--site-primary)))));
  transform: translateY(-50%) scale(var(--carousel-arrow-hover-scale, 1.06));
  box-shadow: var(--carousel-arrow-hover-shadow, 0 8px 24px rgba(0, 0, 0, 0.22));
}
.el-avail-table__nav:active,
.el-avail-table__nav:focus {
  background: var(--carousel-arrow-bg,
    var(--avail-accent, var(--site-accent, var(--site-primary))));
  color: var(--carousel-arrow-color,
    var(--site-accent-fg, var(--site-primary-fg, currentColor)));
}
.el-avail-table__nav--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
}

/* Grid variant */
.el-avail-table__grid {
  display: grid;
  grid-template-columns: repeat(var(--avail-cpv, 3), minmax(0, 1fr));
  gap: var(--avail-item-gap, 1.5rem);
}

/* ── Floorplans variant grid ──────────────────────────────────────── */
/* `align-items: start` keeps each card at its natural content height
   instead of stretching to the row's tallest. Without this the cards
   pad out to match the tallest neighbour and `__footer { margin-top: auto }`
   parks the slack between the stats row and the buttons. */
.el-avail-table__fp-grid {
  display: grid;
  grid-template-columns: repeat(var(--avail-cpv, 3), minmax(0, 1fr));
  gap: var(--avail-item-gap, 1.25rem);
  align-items: start;
}

/* ── Availability Card (carousel / grid) ──────────────────────────── */
.avail-card {
  background: var(--avail-card-bg, var(--site-surface, transparent));
  border: 1px solid var(--avail-card-border, var(--site-border, transparent));
  border-radius: var(--avail-radius, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
  height: 100%;
}
/* CARD_HOVER_FIELDS contract — see AvailabilityTableRenderer + cardHoverVars.
   Every value is token-driven so the inspector's Card Hover panel controls
   the lift (set cardHoverLift=0 to disable), bg, border and shadow. */
/* Self-hover removed (hover-lift safety guard) — parent-anchored via
   [data-card-hover-shell]:hover keeps the card stable while it lifts. */
[data-card-hover-shell]:hover .avail-card {
  transform: translateY(calc(var(--avail-card-hover-lift, 4px) * -1));
  background: var(--avail-card-hover-bg,
    var(--avail-hover-bg, var(--avail-card-bg, var(--site-surface, transparent))));
  border-color: var(--avail-card-hover-border-color,
    color-mix(in srgb, var(--avail-accent, var(--site-accent, currentColor)) 36%, transparent));
  box-shadow: var(--avail-card-hover-shadow, 0 8px 32px rgba(0,0,0,0.12), 0 20px 48px rgba(0,0,0,0.07));
}

/* Image area with overlay */
.avail-card__image-wrap {
  position: relative;
  width: 100%;
  /* Aspect cascades through the unified card-media-aspect token. */
  aspect-ratio: var(--site-card-media-aspect, 4/3);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--avail-accent, var(--site-accent)) 14%, white), color-mix(in srgb, var(--avail-card-bg, var(--site-surface, transparent)) 84%, var(--site-fg, currentColor) 16%));
}
.avail-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.avail-card:hover .avail-card__image {
  transform: scale(1.06);
}
.avail-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0.72) 100%
  );
}
/* Property name & location over the image */
.avail-card__image-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.avail-card__title-over {
  margin: 0;
  font-family: var(--site-font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  /* Always render light over the dark image-overlay gradient. Previously
     `color: inherit` could resolve to white on a light card body when the
     image failed to load → invisible title. */
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55), 0 0 12px rgba(0,0,0,0.35);
  letter-spacing: -0.015em;
}
.avail-card__location-over {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Placeholder when no image */
.avail-card__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--avail-card-bg, var(--site-surface)) 84%, var(--site-fg, currentColor) 16%) 0%, color-mix(in srgb, var(--avail-card-bg, var(--site-surface)) 70%, transparent) 100%);
  color: color-mix(in srgb, var(--avail-text, var(--site-fg, currentColor)) 35%, transparent);
}

/* Status badge (top right corner) */
.avail-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.avail-card__badge--available {
  background: var(--avail-badge-available-bg, var(--site-success, transparent));
  color: var(--avail-badge-available-color, var(--site-success-fg, currentColor));
}
.avail-card__badge--limited {
  background: var(--avail-badge-limited-bg, var(--site-warning, transparent));
  color: var(--avail-badge-limited-color, var(--site-warning-fg, currentColor));
}
.avail-card__badge--waitlist {
  background: var(--avail-badge-waitlist-bg, transparent);
  color: var(--avail-badge-waitlist-color, var(--site-fg, currentColor));
}

/* Card body (below image) */
.avail-card__body {
  padding: 1.125rem 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
/* When no image, name goes here */
.avail-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.avail-card__title {
  font-family: var(--site-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--avail-text, var(--site-fg));
  line-height: 1.3;
}
.avail-card__location {
  margin: 0;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--avail-text, var(--site-fg, currentColor)) 55%, transparent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Pricing hook */
.avail-card__price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--avail-accent, var(--site-accent, currentColor)) 78%, var(--avail-text, var(--site-fg, currentColor)));
  letter-spacing: -0.01em;
}

/* Floorplan bullets */
.avail-card__floorplans {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.avail-card__floorplan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--avail-card-bg, var(--site-surface, transparent)) 88%, var(--avail-accent, var(--site-accent)) 12%);
  border-radius: 8px;
  border-left: 3px solid var(--avail-accent, var(--site-accent));
}
.avail-card__fp-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--avail-text, var(--site-fg));
}
.avail-card__fp-detail {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--avail-text, var(--site-fg, currentColor)) 65%, transparent);
  line-height: 1.5;
}
.avail-card__floorplan--more {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--avail-text, var(--site-fg, currentColor)) 55%, transparent);
  font-style: italic;
  background: transparent;
  border-left: none;
  padding: 0 0.25rem;
}
.avail-card__summary {
  margin: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--avail-text, var(--site-fg, currentColor)) 55%, transparent);
}
.avail-card__actions {
  margin-top: auto;
  padding-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.avail-card__actions-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.avail-card__actions-row > .avail-card__cta {
  flex: 1 1 0;
  min-width: max-content;
  white-space: nowrap;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  gap: 0.375rem;
}
.avail-card__actions-row > .avail-card__cta svg {
  flex-shrink: 0;
}
/* Shared CTA shape (layout + typography only — colors come from variant rules).
   Sizing inside `.avail-card__actions-row > .avail-card__cta` overrides the padding
   for the 2-col/wrap case, so solo buttons get the taller default. */
.avail-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8125rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--site-radius-lg, 8px);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.avail-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Three button treatments, derived from always-distinct base tokens so each
   button always reads as a different hierarchy level regardless of how the
   theme has configured its btn-* tokens:
     Primary   — accent color fill           (Apply Now)
     Secondary — foreground color fill       (Applicant Portal) — always a
                 neutral dark, never the accent, so it can't collapse into
                 the primary when a theme sets btnSecondaryBg = accent.
     Outline   — transparent, accent border  (View Community, Resident Portal)
   All three still respect `--site-btn-*` tokens when the site has explicitly
   customized them (e.g. via the Design System panel). */
.avail-card__cta--primary {
  background: var(--site-btn-primary-bg, var(--avail-cta-bg, var(--site-accent)));
  color: var(--site-btn-primary-text, var(--avail-cta-text, var(--site-accent-fg, currentColor)));
}
.avail-card__cta--primary:hover {
  background: var(--site-btn-primary-hover-bg, color-mix(in srgb, var(--site-btn-primary-bg, var(--avail-cta-bg, var(--site-accent))) 88%, #000 12%)); /* mathematical darken-with-black */
  color: var(--site-btn-primary-hover-text, var(--site-btn-primary-text, var(--avail-cta-text, var(--site-accent-fg, currentColor))));
  filter: none;
}

/* Secondary defaults derive from --site-fg (guaranteed dark neutral), not
   from --site-btn-secondary-bg, because some brand themes map that token to
   the accent color and make the button indistinguishable from Primary. The
   fg-derived fallback ensures a reliable tonal contrast. */
.avail-card__cta--secondary {
  /* Inverted high-contrast pair: dark bg + light text — guaranteed AA
     regardless of theme. Was previously color-mix(currentColor 92%) for
     bg + var(--site-surface) for text, which on light cards composited
     to white-on-white. */
  background: var(--site-fg, currentColor);
  color: var(--site-bg, var(--site-surface, currentColor));
  border-color: var(--site-fg, transparent);
}
.avail-card__cta--secondary:hover {
  background: color-mix(in srgb, var(--site-fg, transparent) 85%, var(--site-accent, transparent) 15%);
  border-color: color-mix(in srgb, var(--site-fg, transparent) 85%, var(--site-accent, transparent) 15%);
  color: var(--site-bg, var(--site-surface, currentColor));
  filter: none;
}

/* Outline — info-seeking / alternate audience (View Community, Resident Portal). */
.avail-card__cta--outline {
  background: transparent;
  color: var(--site-btn-outline-text, color-mix(in srgb, var(--avail-accent, var(--site-accent, currentColor)) 85%, var(--avail-text, var(--site-fg, currentColor))));
  border-color: var(--site-btn-outline-border, color-mix(in srgb, var(--avail-accent, var(--site-accent, currentColor)) 55%, transparent));
}
.avail-card__cta--outline:hover {
  background: var(--site-btn-outline-hover-bg, color-mix(in srgb, var(--avail-accent, var(--site-accent, currentColor)) 10%, transparent));
  color: var(--site-btn-outline-hover-text, var(--site-btn-outline-text, color-mix(in srgb, var(--avail-accent, var(--site-accent, currentColor)) 95%, var(--site-fg, currentColor))));
  border-color: var(--site-btn-outline-border, var(--avail-accent, var(--site-accent, currentColor)));
  filter: none;
}

/* ── Floorplan Card (floorplans variant) ───────────────────────────── */
/* Mirrors the HUD income-limits tier card on the same detail page so both
   widgets share identical chrome: surface bg, soft 18px radius, transparent
   border by default, generous padding driven by --avail-card-padding, a soft
   md drop shadow driven by --avail-card-shadow-outer, plus a top accent
   strip rendered via inset box-shadow. Author overrides the dropdowns/sliders
   in the design panel; defaults make every site land in the bold treatment. */
.avail-fp-card {
  background: var(--avail-card-bg, var(--site-surface, transparent));
  border: var(--avail-fp-border-width, 0px) solid var(--avail-fp-border-color, transparent);
  border-radius: var(--avail-radius, 18px);
  padding: var(--avail-card-padding, 32px);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  /* Card-scoped container so the head row can stack the CTA above the
     BR/BA text whenever the card itself is narrow — independent of the
     viewport. Carousels routinely render mobile-width cards on desktop. */
  container-type: inline-size;
  container-name: avail-fp-card;
  /* No top accent strip by default — clean card with rounded corners +
     soft drop shadow. Authors who want a strip can set `--avail-card-strip-h`
     (e.g. `4px`) on the widget instance via the inspector. The inset shadow
     below adds the strip only when the height var is non-zero, and it
     always clips exactly to the card's border-radius regardless of
     `overflow: visible` (the card needs visible overflow so the notched
     badge can escape — a `::before` strip would otherwise bleed past the
     rounded corners). */
  box-shadow:
    inset 0 var(--avail-card-strip-h, 0) 0 0 var(--avail-card-strip, var(--avail-accent, var(--site-accent, currentColor))),
    var(--avail-card-shadow-outer, 0 14px 34px rgba(15,23,42,0.07), 0 2px 10px rgba(15,23,42,0.04));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  position: relative;
  overflow: visible;
}
/* Self-hover removed (hover-lift safety guard) — parent-anchored only. */
[data-card-hover-shell]:hover .avail-fp-card {
  transform: translateY(-2px);
  box-shadow:
    inset 0 var(--avail-card-strip-h, 0) 0 0 var(--avail-card-strip, var(--avail-accent, var(--site-accent, currentColor))),
    var(--avail-card-shadow-outer-hover, 0 20px 42px rgba(15,23,42,0.1), 0 6px 16px rgba(15,23,42,0.05));
  border-color: var(--avail-fp-border-color, transparent);
}
.avail-fp-card__media {
  margin: calc(var(--avail-card-padding, 32px) * -1) calc(var(--avail-card-padding, 32px) * -1) 1rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--avail-radius, 18px) - 1px) calc(var(--avail-radius, 18px) - 1px) 0 0;
  background: var(--site-surface-alt);
}
.avail-fp-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reserve space for the notched badge that straddles each floorplan card's top border.
   Badge pill is ~30px tall translated -50% = 15px above the card edge; both the grid
   and the carousel wrap need padding-top + overflow:visible so no ancestor clips the pill. */
.el-avail-table--floorplans .el-avail-table__fp-grid,
.el-avail-table__fp-grid {
  padding-top: 32px;
  overflow: visible;
}
.el-avail-table--floorplans .el-avail-table__carousel-wrap {
  padding-top: 20px;
  overflow: visible;
}
.el-avail-table--floorplans { overflow: visible; }

/* Per-card header: stacked top-down — Contact Us CTA on top (full-width,
   centered), then the BR/BA spec row, then the floorplan name. Was a flex
   row at >=480px card width, but that left "2 BR / 2 BA TWO BEDROOM" on the
   left and the CTA on the right with no visual hierarchy — the CTA is the
   primary action so it pins to the top. */
.avail-fp-card__head {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 0.5rem;
}
.avail-fp-card__head-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  text-align: center;
}
.avail-fp-card__head .avail-fp-card__cta--contact,
.avail-fp-card__head .avail-fp-card__cta--floorplan {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.avail-fp-card__head .avail-fp-card__type {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
}
.avail-fp-card__head .avail-fp-card__separator {
  display: inline;
  color: var(--site-accent-on-light, var(--site-accent, currentColor));
  opacity: 0.6;
}
.avail-fp-card__head .avail-fp-card__br,
.avail-fp-card__head .avail-fp-card__ba,
.avail-fp-card__head .avail-fp-card__name {
  text-align: center;
}
/* The base `.avail-fp-card__head` above is already stacked + centered at
   every viewport, so no per-breakpoint override is needed. */
/* Contact CTA in the card head row — inherits the full .avail-fp-card__cta
   pill (solid bg, dark text, 8px radius) so it visually matches Apply Now /
   Resident Portal. The modifier just sizes it down a hair and protects it
   from being squeezed by the header text column. */
.avail-fp-card__cta--contact,
.avail-fp-card__cta--floorplan {
  flex-shrink: 0;
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
}
.avail-fp-card__cta--floorplan {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Header block: accent BR/BA label + muted floorplan name — mirrors the
   HUD income-limits tier card rhythm (small accent, small muted sub). */
.avail-fp-card__type {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.125rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.avail-fp-card__br,
.avail-fp-card__ba {
  font-family: var(--site-font-heading, inherit);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  /* Floorplan beds/baths labels are accent text on the white card surface.
     Always darken with --site-accent-on-light (oklab 55% mixed with black)
     so light gold/yellow accents pass WCAG 4.5:1 against the card. The
     --avail-accent override is intentionally NOT used here — it's the raw
     brand accent and would fail contrast on a white card. */
  color: var(--site-accent-on-light, var(--site-accent, var(--avail-accent, currentColor)));
  line-height: 1.18;
}
.avail-fp-card__separator {
  display: none;
}
.avail-fp-card__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--site-textSecondary, var(--site-fg, currentColor));
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Stats row — lighter weight: subtle divider, tight cells, no heavy box */
.avail-fp-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--site-fg) 8%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--site-fg) 8%, transparent);
  background: transparent;
  padding: 0.25rem 0;
}
.avail-fp-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.625rem 0.375rem;
  text-align: center;
  position: relative;
}
.avail-fp-card__stat + .avail-fp-card__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: color-mix(in srgb, var(--site-fg) 10%, transparent);
}
.avail-fp-card__stat-icon {
  width: 14px;
  height: 14px;
  color: var(--avail-icon-color, var(--site-fg, currentColor));
  flex-shrink: 0;
  margin-bottom: 2px;
}
.avail-fp-card__stat-value {
  font-family: var(--site-font-heading, inherit);
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  font-weight: 800;
  color: #0b2a4a;
  line-height: 1.1;
  /* Price ranges like '$1,205 – $1,642' are a single logical token —
     never wrap mid-range. The size clamp above + min-width:0 on the
     parent cell shrinks the value to fit instead of breaking lines. */
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.avail-fp-card__stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Footer: actions row */
.avail-fp-card__footer {
  display: flex;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--avail-text, currentColor) 8%, transparent);
}
.avail-fp-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Notched status badge straddling the top border. Geometry mirrors HUD's
   `.el-hud-income__tier-badge` "Popular" pill (compact, 11px / 700, accent-
   tinted) so both detail-page widgets speak the same vocabulary. The straddle
   is preserved to call out availability state at-a-glance — sits half-above
   the top edge with a 2px ring of card-bg punching it through the border. */
.avail-fp-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  /* No card-bg-tinted ring around the badge: the badge straddles the card's
     top edge via translate(-50%, -50%), so the upper half always sits on the
     section background. A ring colored as --avail-card-bg only works when
     the surrounding section bg matches the card bg (the original assumption);
     on any other section bg it shows up as a stray white halo. The badge's
     own background already provides contrast — see the user-flagged artifact
     when stretchFullWidth changed sibling backgrounds. */
}
.avail-fp-card__badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}
.avail-fp-card__badge--available {
  background: var(--avail-badge-available-bg, var(--site-success, currentColor));
  color: var(--avail-badge-available-color, var(--site-success-fg));
}
.avail-fp-card__badge--limited {
  background: var(--avail-badge-limited-bg, var(--site-warning, currentColor));
  color: var(--avail-badge-limited-color, var(--site-warning-fg));
}
.avail-fp-card__badge--waitlist {
  background: var(--avail-badge-waitlist-bg, var(--site-accent, currentColor));
  color: var(--avail-badge-waitlist-color, var(--site-accent-fg));
}

/* Per-status card outline tint — uses same tokens as the badges so the
   border reads as a muted version of the status color. */
.avail-fp-card--available {
  border-color: color-mix(in srgb, var(--avail-badge-available-bg, var(--site-success, currentColor)) 55%, transparent);
  /* Re-declare the same inset-strip + drop-shadow pair as the base rule so
     the strip isn't clobbered by this status-variant override. Default
     strip height is 0 (invisible) — author opts in via inspector. */
  box-shadow:
    inset 0 var(--avail-card-strip-h, 0) 0 0 var(--avail-card-strip, var(--avail-accent, var(--site-accent, currentColor))),
    var(--avail-card-shadow-outer, 0 14px 34px rgba(15,23,42,0.07), 0 2px 10px rgba(15,23,42,0.04));
}
.avail-fp-card--limited {
  border-color: color-mix(in srgb, var(--avail-badge-limited-bg, var(--site-warning, currentColor)) 45%, transparent);
}
.avail-fp-card--waitlist {
  border-color: color-mix(in srgb, var(--avail-badge-waitlist-bg, var(--site-accent, currentColor)) 40%, transparent);
}
.avail-fp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.125rem;
  background: var(--avail-cta-bg, var(--site-accent));
  color: var(--avail-cta-text, var(--site-accent-fg));
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.avail-fp-card__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.avail-fp-card__cta--waitlist {
  background: transparent;
  color: var(--avail-cta-bg, var(--site-accent));
  border: 1.5px solid var(--avail-cta-bg, var(--site-accent));
}
.avail-fp-card__cta--waitlist:hover {
  background: var(--avail-cta-bg, var(--site-accent));
  color: var(--avail-cta-text, var(--site-accent-fg));
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@container site style(--site-bp: mobile) or style(--site-bp: tablet) {
  .el-avail-table__fp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .el-avail-table__fp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@container site style(--site-bp: mobile) {
  .el-avail-table__grid {
    grid-template-columns: 1fr;
  }
  .el-avail-table__fp-grid {
    grid-template-columns: 1fr !important;
    width: min(100%, calc(100vw - 32px));
    margin-inline: auto;
  }
  .el-avail-table__nav--prev { left: -8px; }
  .el-avail-table__nav--next { right: -8px; }
  .el-avail-table__nav { width: 40px; height: 40px; }
  .avail-skeleton--cards { overflow: hidden; }
  .avail-skeleton__card { flex: 0 0 100%; }
  .avail-skeleton--fp { grid-template-columns: 1fr; }
  .avail-fp-card__br { font-size: 1.75rem; }
  .avail-fp-card__stat-value { font-size: 0.95rem; }
  .el-avail-table__fp-grid > .avail-fp-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 768px) {
  .el-avail-table__grid {
    grid-template-columns: 1fr;
  }
  .el-avail-table__fp-grid {
    grid-template-columns: 1fr !important;
    width: min(100%, calc(100vw - 32px));
    margin-inline: auto;
  }
  .el-avail-table__nav--prev { left: -8px; }
  .el-avail-table__nav--next { right: -8px; }
  .el-avail-table__nav { width: 40px; height: 40px; }
  .avail-skeleton--cards { overflow: hidden; }
  .avail-skeleton__card { flex: 0 0 100%; }
  .avail-skeleton--fp { grid-template-columns: 1fr; }
  .avail-fp-card__br { font-size: 1.75rem; }
  .avail-fp-card__stat-value { font-size: 0.95rem; }
  .el-avail-table__fp-grid > .avail-fp-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ── Weather Widget ────────────────────────────────────────────── */
.el-weather { font-family: system-ui, -apple-system, sans-serif; --el-padding-default: 1.5rem; color: var(--el-weather-text, var(--site-text)); background: var(--el-weather-bg, transparent); }
.el-weather--card { background: var(--el-weather-bg, var(--site-bg, transparent)); border: 1px solid var(--el-weather-border, var(--site-border)); --el-padding-default: 1.5rem; }
.el-weather--compact { --el-padding-default: 0.75rem 1rem; }
.el-weather--empty, .el-weather--loading, .el-weather--error {
  display: flex; align-items: center; justify-content: center; min-height: 120px; text-align: center;
}
.el-weather__empty-label, .el-weather__loading-label { margin: 0; font-size: 14px; color: var(--el-weather-text-muted, var(--site-text-muted)); }
.el-weather__error-label { margin: 0; font-size: 14px; color: var(--el-weather-text, var(--site-danger)); }
.el-weather__current { display: flex; align-items: flex-start; gap: 1rem; }
.el-weather--compact .el-weather__current { align-items: center; gap: 0.75rem; }
.el-weather__icon { flex-shrink: 0; line-height: 0; }
.el-weather--compact .el-weather__icon svg { width: 32px; height: 32px; }
.el-weather__info { flex: 1; min-width: 0; }
.el-weather__temp { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--el-weather-text, var(--site-text)); }
.el-weather--compact .el-weather__temp { font-size: 1.25rem; }
.el-weather__desc { font-size: 0.9375rem; color: var(--el-weather-text-muted, var(--site-text-muted)); margin-top: 0.125rem; }
.el-weather__details { display: flex; gap: 1rem; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--el-weather-text-muted, var(--site-text-muted)); }
.el-weather__location { margin-top: 0.375rem; font-size: 0.8125rem; font-weight: 500; color: var(--el-weather-text-muted, var(--site-text-muted)); }
.el-weather__forecast {
  display: flex; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--el-weather-border, var(--site-border));
}
.el-weather__forecast-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.el-weather__forecast-name { font-size: 0.75rem; font-weight: 600; color: var(--el-weather-text-muted, var(--site-text-muted)); text-transform: uppercase; letter-spacing: 0.03em; }
.el-weather__forecast-icon { line-height: 0; }
.el-weather__forecast-temps { display: flex; gap: 0.375rem; font-size: 0.8125rem; }
.el-weather__forecast-high { font-weight: 600; color: var(--el-weather-text, var(--site-text)); }
.el-weather__forecast-low { color: var(--el-weather-text-muted, var(--site-text-muted)); }

/* ── HUD Income Limits ──────────────────────────────────────── */
/* Animations handled by AnimationWrapper (editable in builder) */
.el-hud-income {
  width: 100%;
  /* min-width: 0 lets the inner carousel grid's intrinsic min-content
     never push the section past its parent (e.g. a flex/grid container).
     Intentionally NOT setting max-width here — the section root is wrapped
     in `.el-site-container` (siteContainerClassName) which sets max-width
     via :where() at zero specificity; an explicit max-width here would
     beat the container cap and let the section grow edge-to-edge. */
  min-width: 0;
  font-family: var(--site-font-body, inherit);
  /* The .el > :not(style) bridge paints `padding: var(--el-padding-default, 0)`
     onto the section root, which would zero out the `padding-inline` that the
     `:where(.el-site-container)` rule sets — making the section bleed to the
     viewport edges at narrow widths. Default the bridge to a horizontal gutter
     so the site-container width is honored; paddingTop / paddingBottom from
     the inspector still override top/bottom via the per-side override rules
     in er-layout.css. */
  --el-padding-default: 0 var(--site-content-gutter, clamp(1rem, 4vw, 2rem));
}

/* States: empty / loading / error */
.el-hud-income--empty,
.el-hud-income--loading,
.el-hud-income--error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  text-align: center;
  color: var(--site-text-muted);
  font-size: 0.875rem;
  gap: 0.5rem;
  border: 1px dashed var(--site-border, transparent);
  border-radius: var(--el-hud-radius, 8px);
  padding: 2rem;
}
.el-hud-income--error {
  color: var(--site-danger);
  border-color: var(--site-status-danger-border, transparent);
}

.el-hud-income__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--site-border, transparent);
  border-top-color: var(--el-hud-accent, var(--site-primary));
  border-radius: 50%;
  animation: el-hud-spin 0.7s linear infinite;
}
@keyframes el-hud-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .el-hud-income__spinner { animation: none; }
}

/* Typography — driven by site-level widget heading tokens so every widget
   on a page shares the same type scale. Per-element overrides still work
   via the el-hud-specific fallbacks. */
.el-hud-income__heading {
  font-family: var(--site-widget-heading-font, var(--site-font-heading, inherit));
  font-size: var(--site-widget-heading-size, var(--el-hud-heading-size, clamp(2rem, 3vw, 3rem)));
  font-weight: var(--site-widget-heading-weight, 800);
  line-height: var(--site-widget-heading-line-height, 1.2);
  letter-spacing: var(--site-widget-heading-spacing, -0.01em);
  color: var(--site-widget-heading-color, var(--site-heading, var(--site-fg)));
  text-align: var(--site-widget-heading-align, center);
  margin: 0 0 0.5rem;
}
.el-hud-income__subheading {
  font-size: var(--site-widget-subheading-size, 0.9375rem);
  color: var(--site-widget-subheading-color, var(--site-text-muted));
  text-align: var(--site-widget-heading-align, center);
  margin: 0 auto 0.5rem;
  max-width: var(--site-widget-subheading-max-width, 62ch);
  line-height: var(--site-widget-subheading-line-height, 1.5);
}
.el-hud-income__area {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  /* Use accent-on-light so light gold/yellow accents pass AA on the
     accent-tinted bg (raw accent renders ~1:1). */
  color: var(--site-accent-on-light, var(--el-hud-accent, var(--site-primary)));
  /* Solid surface with stronger gold tint so the pill remains AA-readable
     when composited over dark hero overlays (was 8% on transparent → ~2:1). */
  background: color-mix(in srgb, var(--site-surface, var(--site-bg, transparent)) 72%, var(--el-hud-accent, var(--site-primary)) 28%);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin: 0 0 1rem;
}
/* The area pill + filter follow the heading-align token. The pill is
   inline-block so it sits where text-align places it; the filter is a flex
   row that gets justified to match. */
.el-hud-income__inner {
  text-align: var(--site-widget-heading-align, center);
}

/* ── Household size filter ─────────────────────────────────── */
.el-hud-income__filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
  justify-content: var(--el-hud-filter-justify, center);
  /* Reset inner text-align so the filter buttons render normally — the
     justify above already handles row alignment. */
  text-align: left;
}
.el-hud-income__filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Mix darkened-accent (on-light variant) with site-fg so the label
     stays brand-tinted but still passes AA on light section bgs. */
  color: color-mix(in srgb, var(--site-accent-on-light, var(--el-hud-accent, var(--site-primary))) 65%, var(--site-fg));
  white-space: nowrap;
}
.el-hud-income__filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: calc(var(--el-hud-household-radius, 8px) + 8px);
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 7%, var(--site-surface, transparent));
  border: 1px solid color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 16%, var(--site-border, transparent));
  box-shadow: 0 10px 28px rgba(15,23,42,0.05);
}
.el-hud-income__filter-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--site-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
  border-radius: var(--el-hud-household-radius, calc(var(--el-hud-radius, 8px) - 1px));
}
.el-hud-income__filter-btn:hover {
  background: rgba(255,255,255,0.78);
  border-color: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 24%, transparent);
  transform: translateY(-1px);
}
.el-hud-income__filter-btn--active {
  background: var(--el-hud-accent, var(--site-primary));
  color: var(--site-primary-fg, currentColor);
  border-color: var(--el-hud-accent, var(--site-primary));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 30%, transparent);
  border-radius: var(--el-hud-household-radius, calc(var(--el-hud-radius, 8px) - 1px));
}
.el-hud-income__filter-btn--active:hover {
  background: var(--el-hud-accent, var(--site-primary));
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Narrow widths (≤880px viewport): stretch the household-size filter to
   span the row and lay buttons out in a 4×2 grid so each one reads as a
   real target instead of the tight ~44px squares the natural flex layout
   produces. Grid uses minmax(0,1fr) so an 8-way wrap still divides the
   available row width evenly. */
@media (max-width: 880px) {
  .el-hud-income__filter-btns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 480px;
  }
  .el-hud-income__filter-btn {
    min-width: 0;
    padding: 0.65rem 0.4rem;
  }
}

/* ── Grid layout ────────────────────────────────────────────── */
.el-hud-income__grid--vertical {
  display: block;
}
.el-hud-income__grid--horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
/* was @media(max-width:900px); bucketed to mobile+tablet (768 < 900 ≤ 1024) */
@container site style(--site-bp: mobile) or style(--site-bp: tablet) {
  .el-hud-income__grid--horizontal {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .el-hud-income__grid--horizontal {
    grid-template-columns: 1fr;
  }
}

/* ── Table wrapper — no container shadow (shadow is per-card now) ───── */
.el-hud-income__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--el-hud-radius, 8px);
  border: 1px solid var(--site-border, transparent);
  background: var(--site-surface, transparent);
  position: relative;
}

/* ── Table ──────────────────────────────────────────────────── */
.el-hud-income__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* Header row */
.el-hud-income__th {
  padding: 0.95rem 1rem;
  text-align: right;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-primary-fg, currentColor);
  background: var(--el-hud-accent, var(--site-primary));
  position: relative;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.el-hud-income__th:first-child {
  border-radius: calc(var(--el-hud-radius, 8px) - 1px) 0 0 0;
}
.el-hud-income__th:last-child {
  border-radius: 0 calc(var(--el-hud-radius, 8px) - 1px) 0 0;
  padding-right: 1.25rem;
}
.el-hud-income__th--ami {
  text-align: left;
  min-width: 88px;
  padding-left: 1.25rem;
}
/* Active column header highlight */
.el-hud-income__th--active {
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 100%, #000 15%); /* mathematical darken-with-black */
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.3);
}

/* Body cells */
.el-hud-income__td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--site-border, transparent);
  color: var(--site-fg);
  transition: background 0.15s ease, color 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.el-hud-income__td:last-child {
  padding-right: 1.25rem;
}
.el-hud-income__td--ami {
  text-align: left;
  font-weight: 700;
  color: var(--el-hud-accent, var(--site-primary));
  position: sticky;
  left: 0;
  background: var(--site-surface, transparent);
  z-index: 1;
  border-right: 1px solid var(--site-border, transparent);
  white-space: nowrap;
  padding-left: 1.25rem;
}
/* Active column cell highlight */
.el-hud-income__td--col-active {
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 6%, transparent);
  font-weight: 600;
}

/* Zebra striping */
.el-hud-income__row:nth-child(even) .el-hud-income__td {
  background: var(--site-surface-alt, transparent);
}
.el-hud-income__row:nth-child(even) .el-hud-income__td--ami {
  background: var(--site-surface-alt, transparent);
}
.el-hud-income__row:nth-child(even) .el-hud-income__td--col-active {
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 8%, var(--site-surface-alt, transparent));
}

/* Hover */
.el-hud-income__row:hover .el-hud-income__td {
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 6%, transparent);
}
.el-hud-income__row:hover .el-hud-income__td--ami {
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 6%, var(--site-surface, transparent));
}

/* Last row — no bottom border */
.el-hud-income__row:last-child .el-hud-income__td {
  border-bottom: none;
}

/* ── Highlighted AMI tier row ──────────────────────────────── */
.el-hud-income__row--highlight .el-hud-income__td {
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 10%, transparent);
  font-weight: 600;
}
.el-hud-income__row--highlight .el-hud-income__td--ami {
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 12%, var(--site-surface, transparent));
  position: relative;
}
.el-hud-income__row--highlight .el-hud-income__td--ami::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--el-hud-accent, var(--site-primary));
  border-radius: 0 2px 2px 0;
}
.el-hud-income__highlight-badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--site-primary-fg, currentColor);
  background: var(--el-hud-accent, var(--site-primary));
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── Source footer ──────────────────────────────────────────── */
.el-hud-income__source {
  font-size: 0.8125rem;
  font-weight: 500;
  /* Use a darkened mix of fg + bg instead of the muted token so the
     attribution stays AA-readable on light section backgrounds. The
     muted token can resolve to ~rgb(107,114,128) which fails 4.5:1 at
     0.75rem on a near-white bg. */
  color: color-mix(in srgb, var(--site-fg, currentColor) 78%, var(--site-bg, transparent));
  margin: 0.875rem 0 0;
  text-align: center;
}

/* ── Mobile card view ──────────────────────────────────────── */
.el-hud-income__mobile-only { display: none; }
.el-hud-income__desktop-only { display: block; }
.el-hud-income__grid--horizontal.el-hud-income__desktop-only { display: grid; }

.el-hud-income__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.el-hud-income__card {
  position: relative;
  background: var(--site-surface, transparent);
  border: 1px solid color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 10%, var(--site-border, transparent));
  border-radius: calc(var(--el-hud-radius, 8px) + 6px);
  padding: 1.1rem 1rem 1rem;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 12px 28px rgba(15,23,42,0.05);
}
.el-hud-income__card--highlight {
  border-color: var(--el-hud-accent, var(--site-primary));
  box-shadow: 0 18px 34px rgba(15,23,42,0.09), 0 0 0 1px var(--el-hud-accent, var(--site-primary));
  transform: translateY(-2px);
}
.el-hud-income__card::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: color-mix(in srgb, var(--el-hud-accent, var(--site-primary)) 28%, transparent);
}
.el-hud-income__card--highlight::before {
  background: var(--el-hud-accent, var(--site-primary));
}
.el-hud-income__card-ami {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--el-hud-accent, var(--site-primary));
  margin-bottom: 0.375rem;
}
.el-hud-income__card-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--site-fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-bottom: 0.18rem;
}
.el-hud-income__card-label {
  font-size: 0.72rem;
  color: var(--site-text-muted);
}

/* Inner content wrap — caps section content width when the element is
   stretched edge-to-edge, so cards keep a readable gutter and sit inside
   a normal reading line-length. Matches the affordable-housing template's
   HUD widget layout (section-level padding + constrained inner width). */
.el-hud-income__inner {
  /* Width is controlled by the parent .el-site-container wrap on the
     section root (siteContainerClassName) — this just keeps inner full
     width inside that cap. Per-instance `contentMaxWidth` still wins via
     the renderer-emitted --el-hud-content-max. */
  max-width: var(--el-hud-content-max, 100%);
  margin: 0 auto;
  width: 100%;
}

/* ── Tier cards (cards + carousel mode) ──────────────────── */
.el-hud-income__tier-grid {
  display: grid;
  grid-template-columns: repeat(var(--hud-cards-per-row, 3), minmax(0, 1fr));
  gap: var(--el-hud-tier-gap, 20px);
}
/* Reserve space above highlighted cards so longer regulatory badges sit clear
   of the tier title instead of covering the AMI label. No layout shift on
   sites without a highlight. */
.el-hud-income__tier-grid:has(.el-hud-income__tier-card--highlight) {
  padding-top: 30px;
}

.el-hud-income__tier-card {
  --nr-hud-text: var(--site-textPrimary, var(--site-text, var(--site-fg, currentColor)));
  --nr-hud-muted: var(--site-textSecondary, var(--site-text-secondary, var(--site-text-muted, currentColor)));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: var(--el-hud-card-padding, 36px) var(--el-hud-card-padding, 36px) var(--el-hud-card-padding, 36px);
  border-radius: var(--el-hud-card-radius, 18px);
  background: var(--el-hud-card-bg, var(--site-surface, transparent));
  /* Default to transparent border so a `--site-border` token tinted to a
     brand color (e.g. gold) doesn't leak as a visible rim. Authors can
     re-introduce one via `--el-hud-card-border-color`. */
  border: 1px solid var(--el-hud-card-border-color, transparent);
  /* No top accent strip by default — clean card with rounded corners +
     soft drop shadow. Authors who want a strip can set
     `--el-hud-tier-strip-h` (e.g. `4px`) on the widget; the inset shadow
     below adds the strip only when the height var is non-zero, and it
     always clips exactly to the card's border-radius. */
  box-shadow:
    inset 0 var(--el-hud-tier-strip-h, 0) 0 0 var(--el-hud-tier-strip, var(--el-hud-accent, var(--site-primary))),
    var(--el-hud-card-shadow-outer, 0 14px 34px rgba(15,23,42,0.07), 0 2px 10px rgba(15,23,42,0.04));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  overflow: visible;
  color: var(--nr-hud-text);
}
/* Self-hover removed (hover-lift safety guard) — parent-anchored only. */
[data-card-hover-shell]:hover .el-hud-income__tier-card {
  transform: translateY(-2px);
  box-shadow:
    inset 0 var(--el-hud-tier-strip-h, 0) 0 0 var(--el-hud-tier-strip, var(--el-hud-accent, var(--site-primary))),
    var(--el-hud-card-shadow-outer-hover, 0 20px 42px rgba(15,23,42,0.1), 0 6px 16px rgba(15,23,42,0.05));
}
.el-hud-income__tier-card--highlight {
  /* Highlight variant: 2px inset accent ring around the card (no top
     strip — the "Popular" badge already marks this tier). Inset shadow
     so the ring follows the card's border-radius exactly. */
  border-color: var(--el-hud-highlight-border, var(--el-hud-accent, var(--site-accent)));
  box-shadow:
    inset 0 var(--el-hud-tier-strip-h, 0) 0 0 var(--el-hud-tier-strip, var(--el-hud-highlight-border, var(--el-hud-accent, var(--site-accent)))),
    inset 0 0 0 2px var(--el-hud-highlight-border, var(--el-hud-accent, var(--site-accent))),
    var(--el-hud-card-shadow-outer-hover, 0 20px 42px rgba(15,23,42,0.1), 0 6px 16px rgba(15,23,42,0.05));
}
.el-hud-income__tier-card--highlight:hover {
  box-shadow:
    inset 0 var(--el-hud-tier-strip-h, 0) 0 0 var(--el-hud-tier-strip, var(--el-hud-highlight-border, var(--el-hud-accent, var(--site-accent)))),
    inset 0 0 0 2px var(--el-hud-highlight-border, var(--el-hud-accent, var(--site-accent))),
    var(--el-hud-card-shadow-outer-hover, 0 20px 42px rgba(15,23,42,0.1), 0 6px 16px rgba(15,23,42,0.05));
}

/* ── Per-tenant strip opt-ins ──────────────────────────────────────
   Scoped to `[data-website-id="<id>"]` emitted by ThemeProvider's
   wrapper. Adding a tenant here turns the 4px top accent strip back on
   for HUD income cards + availability floorplan cards via the existing
   `--el-hud-tier-strip-h` / `--avail-card-strip-h` knobs. The inset
   box-shadow that consumes those vars is guaranteed to clip to
   border-radius (works equally with overflow:hidden and visible). */
[data-website-id="1"] .el-hud-income__tier-card,
[data-website-id="1"] .avail-fp-card {
  --el-hud-tier-strip-h: 4px;
  --avail-card-strip-h: 4px;
}

.el-hud-income__tier-badge {
  /* Sit centered on the card's outer top border. `top: -50%` of own height
     would straddle 50/50, but mixing `top: 0` with `translateY(-50%)` floats
     above the carousel-slide's padding-block when the card's containing-block
     edge differs from its outer border. Use an explicit negative offset that
     yields a clear "tab on the border" — most of the pill sits on the card. */
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: var(--el-hud-highlight-border, var(--el-hud-accent, var(--site-accent)));
  color: var(--el-hud-badge-color, var(--site-accent-fg, currentColor));
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  max-width: min(220px, calc(100% - 28px));
  text-align: center;
  overflow-wrap: break-word;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  z-index: 2;
}

.el-hud-income__tier-pct {
  font-family: var(--site-font-heading, inherit);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--site-primary, var(--el-hud-accent, var(--site-fg, currentColor)));
  margin-bottom: 2px;
  min-height: 1.1rem;
}
.el-hud-income__tier-label {
  font-size: 0.75rem;
  color: var(--nr-hud-muted);
  margin-bottom: 14px;
  min-height: 1rem;
}
.el-hud-income__tier-amount {
  font-family: var(--site-font-heading, inherit);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nr-hud-text);
  line-height: 1;
  margin-bottom: 6px;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
.el-hud-income__tier-household {
  font-size: 0.8125rem;
  color: var(--nr-hud-muted);
  margin-bottom: 18px;
  overflow-wrap: break-word;
}

.el-hud-income__tier-breakdown {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  width: 100%;
  border-top: 1px solid color-mix(in srgb, var(--site-fg) 8%, transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.el-hud-income__tier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8125rem;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  min-width: 0;
}
.el-hud-income__tier-row-label {
  color: var(--nr-hud-muted);
  overflow-wrap: break-word;
  min-width: 0;
}
.el-hud-income__tier-row-val {
  font-weight: 600;
  color: var(--nr-hud-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.el-hud-income__tier-row--active {
  /* Solid surface with stronger gold tint (was 10% on transparent → ~2:1 vs
     dark text when composited over dark hero overlays). Now opaque: site
     surface mixed with 30% accent so contrast against tier-row label/val
     text is preserved regardless of ancestor (light page or dark hero). */
  background: color-mix(in srgb, var(--site-surface, var(--site-bg, transparent)) 70%, var(--el-hud-accent, var(--site-primary)) 30%);
}
/* Active row uses --site-accent-on-light (oklab-darkened accent) so light
   gold/yellow accents still pass WCAG AA on the accent-tinted bg. The raw
   accent token would render gold-on-gold (~1.0:1). */
.el-hud-income__tier-row--active .el-hud-income__tier-row-label,
.el-hud-income__tier-row--active .el-hud-income__tier-row-val {
  color: var(--site-accent-on-light, var(--el-hud-accent, var(--site-primary)));
  font-weight: 700;
}
.el-hud-income__tier-card--highlight .el-hud-income__tier-row--active {
  /* Solid surface (see comment on .el-hud-income__tier-row--active above). */
  background: color-mix(in srgb, var(--site-surface, var(--site-bg, transparent)) 65%, var(--el-hud-highlight-border, var(--el-hud-accent, var(--site-accent))) 35%);
}
.el-hud-income__tier-card--highlight .el-hud-income__tier-row--active .el-hud-income__tier-row-label,
.el-hud-income__tier-card--highlight .el-hud-income__tier-row--active .el-hud-income__tier-row-val {
  color: var(--site-accent-on-light, var(--el-hud-highlight-border, var(--el-hud-accent, var(--site-accent))));
}

/* ── Carousel ────────────────────────────────────────────── */
.el-hud-income__carousel-wrap {
  position: relative;
  /* Allow vertical overflow so the highlight badge / hover lift / focus ring
     can extend above/below the cards. Horizontal overflow is clipped on the
     track below so the carousel never bleeds past the viewport. */
  overflow: visible;
  min-width: 0;
  max-width: 100%;
}
.el-hud-income__carousel-wrap .uc .uc-nav--prev {
  left: 10px;
}
.el-hud-income__carousel-wrap .uc .uc-nav--next {
  right: 10px;
}
.el-hud-income__carousel-wrap .uc .uc-nav {
  z-index: 6;
}
@container site style(--site-bp: mobile) or style(--site-bp: tablet) {
  .el-hud-income__carousel-wrap .uc .uc-nav--prev {
    left: 4px;
  }
  .el-hud-income__carousel-wrap .uc .uc-nav--next {
    right: 4px;
  }
}
/* ── Skeleton loading — mirrors the tier-card shape so the loading state
      previews the real layout instead of a generic spinner ───────────── */
.el-hud-income__tier-card--skeleton {
  pointer-events: none;
  gap: 8px;
  min-height: 360px;
}
.el-hud-income__skeleton-line {
  height: 14px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--site-fg) 6%, transparent) 0%,
    color-mix(in srgb, var(--site-fg) 12%, transparent) 50%,
    color-mix(in srgb, var(--site-fg) 6%, transparent) 100%
  );
  background-size: 200% 100%;
  animation: el-hud-skeleton-shimmer 1.4s ease-in-out infinite;
}
.el-hud-income__skeleton-line--xs { height: 10px; width: 50%; margin: 0 auto; }
.el-hud-income__skeleton-line--sm { height: 12px; width: 35%; margin: 0 auto; }
.el-hud-income__skeleton-line--md { height: 12px; width: 60%; margin: 0 auto 6px; }
.el-hud-income__skeleton-line--xl { height: 32px; width: 70%; margin: 8px auto 4px; border-radius: 8px; }
.el-hud-income__skeleton-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--site-fg) 8%, transparent);
}
.el-hud-income__skeleton-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.el-hud-income__skeleton-row .el-hud-income__skeleton-line {
  width: 40%;
  margin: 0;
}
@keyframes el-hud-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .el-hud-income__skeleton-line { animation: none; }
}

/* ── Responsive ────────────────────────────────────────────── */
@container site style(--site-bp: mobile) {
  .el-hud-income__mobile-only { display: block; }
  .el-hud-income__desktop-only { display: none !important; }
  .el-hud-income__heading { --el-hud-heading-size: 1.5rem; }
  .el-hud-income__filter { justify-content: center; }
  .el-hud-income__filter-label { width: 100%; text-align: center; }
  .el-hud-income__source { text-align: center; }
  .el-hud-income__tier-grid { grid-template-columns: 1fr !important; }
  .el-hud-income__tier-amount { font-size: 1.75rem; }
  /* Radius-strip on .el-hud-income__tier-card removed 2026-05-13 — was
     part of the "card-mobile-fullbleed" pattern that flattened every
     framed card on phones. Tier cards keep their desktop radius. */
  .el-hud-income__filter-btns {
    /* 8 household-size buttons in a 4×2 grid at <=768px — flex-wrap landed
       7 + 1 at narrow widths which read as a layout bug. Grid gives clean
       symmetrical rows regardless of label width. */
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
  }
  .el-hud-income__filter-btn {
    /* Override flex-basis so each cell stretches in the grid track. */
    flex: 1 1 auto;
    min-width: 0;
  }
  .el-hud-income__tier-card {
    padding: clamp(20px, 5vw, 32px) clamp(16px, 4.5vw, 28px);
  }
  .el-hud-income__tier-breakdown {
    padding-inline: 18px;
  }
  .el-hud-income__tier-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-inline: 20px;
    font-size: 0.75rem;
  }
}
@media (max-width: 768px) {
  .el-hud-income__mobile-only { display: block; }
  .el-hud-income__desktop-only { display: none !important; }
  .el-hud-income__heading { --el-hud-heading-size: 1.5rem; }
  .el-hud-income__filter { justify-content: center; }
  .el-hud-income__filter-label { width: 100%; text-align: center; }
  .el-hud-income__source { text-align: center; }
  .el-hud-income__tier-grid { grid-template-columns: 1fr !important; }
  .el-hud-income__tier-amount { font-size: 1.75rem; }
  /* Radius-strip on .el-hud-income__tier-card removed 2026-05-13 — see
     container-query block above for rationale. */
  /* Drop the household filter to a clean centered single line on mobile. */
  .el-hud-income__filter-btns {
    justify-content: center;
  }
  /* Reduce card padding on mobile so amount + breakdown fit without
     forcing an overflow chevron on the dense $$ values. */
  .el-hud-income__tier-card {
    padding: clamp(20px, 5vw, 32px) clamp(16px, 4.5vw, 28px);
  }
  .el-hud-income__tier-breakdown {
    padding-inline: 18px;
  }
  .el-hud-income__tier-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-inline: 20px;
    font-size: 0.75rem;
  }
}
/* was @media(min-width:769px) and (max-width:1024px); bucketed to tablet (769 ≈ 768; 1024 boundary) */
@container site style(--site-bp: tablet) {
  .el-hud-income__tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .el-hud-income__tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* was @media(max-width:400px); bucketed to mobile (400 ≤ 768) */
@container site style(--site-bp: mobile) {
  .el-hud-income__cards { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .el-hud-income__cards { grid-template-columns: 1fr; }
}

/* ── Property Highlights ────────────────────────────────────────── */
.el-property-highlights { --el-padding-default: var(--site-space-lg, 3rem) var(--site-space-md, 2rem); }
.el-property-highlights__heading { font-family: var(--site-font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--site-text); }
.el-property-highlights__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
/* High-specificity bridge — `.el > :not(style)` (0,1,1) beats
   `.el-property-highlights__item` (0,1,0) and zeros bg/padding/border-radius/shadow. */
.el.el--highlight-card > .el-property-highlights__item {
  background: var(--property-highlight-bg, var(--site-surface));
  padding: var(--property-highlight-padding, 1rem);
  border-radius: var(--property-highlight-border-radius, var(--site-radius-md, 8px));
  box-shadow: var(--property-highlight-shadow, none);
}

.el-property-highlights__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--property-highlight-padding, 1rem);
  background: var(--property-highlight-bg, var(--site-surface));
  color: var(--property-highlight-text, inherit);
  border-radius: var(--property-highlight-border-radius, var(--site-radius-md, 8px));
  border: var(--property-highlight-border-width, 1px) solid var(--property-highlight-border-color, var(--site-border));
  /* Per-side accent bars — see .el-pricing-card__plan in er-content.css for
     rationale. Fallback chain routes through --property-highlight-border-color
     → --site-border so the test guard (`no hardcoded color fallbacks outside
     the Card Hover Contract`) stays green. */
  border-top-width: var(--property-highlight-accent-bar-height, var(--property-highlight-border-width, 1px));
  border-top-color: var(--property-highlight-accent-bar-color, var(--property-highlight-border-color, var(--site-border)));
  border-right-width: var(--property-highlight-accent-bar-right-height, var(--property-highlight-border-width, 1px));
  border-right-color: var(--property-highlight-accent-bar-right-color, var(--property-highlight-border-color, var(--site-border)));
  border-bottom-width: var(--property-highlight-accent-bar-bottom-height, var(--property-highlight-border-width, 1px));
  border-bottom-color: var(--property-highlight-accent-bar-bottom-color, var(--property-highlight-border-color, var(--site-border)));
  border-left-width: var(--property-highlight-accent-bar-left-height, var(--property-highlight-border-width, 1px));
  border-left-color: var(--property-highlight-accent-bar-left-color, var(--property-highlight-border-color, var(--site-border)));
  box-shadow: var(--property-highlight-shadow, none);
  transition: transform 0.2s ease, background 0.2s ease;
}
/* Self-hover removed (hover-lift safety guard) — parent-anchored only. */
[data-card-hover-shell]:hover .el-property-highlights__item {
  transform: translateY(calc(var(--property-highlight-hover-lift, 0px) * -1));
  background: var(--property-highlight-hover-bg, var(--site-surface));
}
.el-property-highlights__content {
  display: grid;
  gap: 0.125rem;
}
.el-property-highlights__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: var(--property-highlight-icon-size, 1.5rem);
  height: var(--property-highlight-icon-size, 1.5rem);
  border-radius: var(--property-highlight-icon-radius, 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--property-highlight-icon-offset, 0);
}
.el-property-highlights__label { display: block; font-weight: var(--property-highlight-title-weight, 600); font-size: var(--property-highlight-title-size, 0.875rem); color: var(--site-text); }
.el-property-highlights__value { display: block; font-size: 0.875rem; color: var(--site-primary); font-weight: 500; }
.el-property-highlights__desc { font-size: var(--property-highlight-description-size, 0.8125rem); line-height: var(--property-highlight-description-line-height, 1.5); color: var(--site-text-muted); margin-top: 0.25rem; }
@container site style(--site-bp: mobile) {
  .el-property-highlights__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .el-property-highlights__list { grid-template-columns: repeat(2, 1fr); }
}
/* was @media(max-width:480px); bucketed to mobile (480 ≤ 768) */
@container site style(--site-bp: mobile) {
  .el-property-highlights__list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .el-property-highlights__list { grid-template-columns: 1fr; }
}

/* ── Amenity Grid ───────────────────────────────────────────────── */
.el-amenity-grid { --el-padding-default: var(--site-space-lg, 3rem) var(--site-space-md, 2rem); }
.el-amenity-grid__heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--amenity-heading-color, var(--site-text)); }
.el-amenity-grid__list,
.el-amenity-grid__grid,
.el-amenity-grid__items {
  display: grid;
  grid-template-columns: repeat(var(--el-grid-cols, 3), minmax(160px, 1fr));
  gap: 1rem;
}
.el-amenity-grid__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--site-surface);
  border-radius: var(--site-radius-md, 8px);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.875rem;
  color: var(--site-text);
}
.el-amenity-grid__label { color: var(--amenity-label-color, var(--site-text)); }
.el-amenity-grid__desc { color: var(--amenity-description-color, var(--site-text-muted)); margin: 0; }
.el-amenity-grid__icon { font-size: 1.25rem; flex-shrink: 0; color: var(--amenity-icon-color, var(--site-primary)); }
@container site style(--site-bp: mobile) {
  .el-amenity-grid__list,
  .el-amenity-grid__grid,
  .el-amenity-grid__items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .el-amenity-grid__list,
  .el-amenity-grid__grid,
  .el-amenity-grid__items { grid-template-columns: repeat(2, 1fr); }
}
/* was @media(max-width:480px); bucketed to mobile (480 ≤ 768) */
@container site style(--site-bp: mobile) {
  .el-amenity-grid__list,
  .el-amenity-grid__grid,
  .el-amenity-grid__items { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .el-amenity-grid__list,
  .el-amenity-grid__grid,
  .el-amenity-grid__items { grid-template-columns: 1fr; }
}
/* ── Location Showcase ────────────────────────────────────── */
.el-location-showcase { --el-padding-default: 2rem 0; }
.el-location-showcase__heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--site-text);
  margin: 0 0 1rem;
}
.el-location-showcase__description {
  font-size: 1rem;
  color: var(--site-text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.el-location-showcase__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.el-location-showcase__stat { display: flex; flex-direction: column; gap: 0.25rem; }
.el-location-showcase__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--site-primary);
}
.el-location-showcase__stat-label {
  font-size: 0.8125rem;
  color: var(--site-text-muted);
}
.el-location-showcase__map { border-radius: var(--site-radius, 0.75rem); overflow: hidden; margin-top: 1.5rem; }
.el-location-showcase__map iframe { display: block; width: 100%; border: 0; }

/* ── Location Detail ──────────────────────────────────────── */
.el-location-detail { --el-padding-default: 2rem 0; }
.el-location-detail--compound .el-compound-section__media {
  display: grid;
  gap: 14px;
  overflow: visible;
  aspect-ratio: auto;
  max-height: none;
}
.el-location-detail--compound .el-compound-section__media-primary,
.el-location-detail--compound .el-compound-section__media-secondary {
  overflow: hidden;
  border-radius: var(--ld-card-radius, 14px);
  box-shadow: var(--ld-card-shadow, none);
}
.el-location-detail--compound .el-compound-section__media-primary > .el,
.el-location-detail--compound .el-compound-section__media-primary > .el > *,
.el-location-detail--compound .el-compound-section__media-secondary > .el,
.el-location-detail--compound .el-compound-section__media-secondary > .el > * {
  width: 100%;
  height: 100%;
}
.el-location-detail--compound .el-compound-section__media-primary img,
.el-location-detail--compound .el-compound-section__media-primary video,
.el-location-detail--compound .el-compound-section__media-secondary img,
.el-location-detail--compound .el-compound-section__media-secondary video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.el-location-detail--compound .el-compound-section__media-secondary {
  width: min(220px, 55%);
  justify-self: end;
  border: 1px solid color-mix(in srgb, var(--ld-accent, var(--site-primary)) 18%, transparent);
}
.el-location-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
}
@container site style(--site-bp: mobile) {
  .el-location-detail__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .el-location-detail__grid { grid-template-columns: 1fr; }
}
.el-location-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.el-location-detail__item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem;
  background: var(--site-surface-alt);
  border-radius: var(--site-radius, 0.5rem);
}
.el-location-detail__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--site-text-muted);
}
.el-location-detail__value {
  font-size: 0.9375rem;
  color: var(--site-text);
  font-weight: 500;
}

/* ── Property Contact Modal ──────────────────────────────────── */
.pcm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 16, 28, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pcm-fade-in 0.25s ease-out;
}
@keyframes pcm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pcm-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pcm-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 20px;
  background: var(--site-surface, transparent);
  box-shadow:
    0 24px 80px rgba(10, 16, 28, 0.32),
    0 8px 24px rgba(10, 16, 28, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  animation: pcm-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 36px;
}
.pcm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--site-surface-alt);
  color: var(--site-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}
.pcm-close:hover {
  background: var(--site-primary);
  color: var(--site-primary-fg, inherit);
}

/* Header */
.pcm-header {
  margin-bottom: 28px;
}
.pcm-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--site-accent);
  margin-bottom: 8px;
}
.pcm-title {
  font-family: var(--site-font-heading);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--site-primary);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pcm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.pcm-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--site-text-secondary);
  text-decoration: none;
}
a.pcm-meta-item:hover {
  color: var(--site-accent);
}

/* Form */
.pcm-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pcm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pcm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcm-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--site-text);
  letter-spacing: 0.01em;
}
.pcm-input,
.pcm-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: var(--site-font-body);
  border: 1.5px solid var(--site-border);
  border-radius: 10px;
  background: var(--site-surface, transparent);
  color: var(--site-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.pcm-input:focus,
.pcm-textarea:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}
.pcm-input::placeholder,
.pcm-textarea::placeholder {
  color: var(--site-text-muted);
}
.pcm-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.pcm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--site-font-body);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}
.pcm-btn--primary {
  background: var(--site-primary);
  color: var(--site-primary-fg);
}
.pcm-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.3);
  filter: brightness(1.1);
}
.pcm-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error */
.pcm-error {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--site-control-error-bg, transparent);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--site-danger, currentColor);
  font-size: 0.84rem;
  font-weight: 500;
}

/* Disclaimer */
.pcm-disclaimer {
  font-size: 0.72rem;
  color: var(--site-text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* Success */
.pcm-success {
  text-align: center;
  padding: 24px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pcm-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.1);
  color: var(--site-success, currentColor);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcm-success-heading {
  font-family: var(--site-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--site-primary);
  margin: 0;
}
.pcm-success-text {
  font-size: 0.9rem;
  color: var(--site-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
}

/* Responsive */
/* was @media(max-width:560px); bucketed to mobile (560 ≤ 768) */
@container site style(--site-bp: mobile) {
  .pcm-dialog {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .pcm-field-row {
    grid-template-columns: 1fr;
  }
  .pcm-overlay {
    padding: 12px;
    align-items: flex-end;
  }
}
@media (max-width: 560px) {
  .pcm-dialog {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .pcm-field-row {
    grid-template-columns: 1fr;
  }
  .pcm-overlay {
    padding: 12px;
    align-items: flex-end;
  }
}

/* ── Card Hover Contract: batch 1 — accordion / amenity-grid / blog-post-content / blog-post-list / contact-section / content-slider ───────────── */
/* Wires CARD_HOVER_FIELDS for amenity-grid (--ag-hover-*). Vars come from
   extractCardHoverCssVars() in src/lib/elements/cardHoverVars.ts; CSS
   chains var(--scope-hover-X, existing-fallback) so unset values do not
   change current visuals. */
[data-card-hover-shell]:hover .el-amenity-grid .el-amenity-grid__item,
.el-amenity-grid .el-amenity-grid__item:hover {
  background: var(--ag-hover-bg, var(--site-surface));
  color: var(--ag-hover-color, var(--site-text));
  border-color: var(--ag-hover-border-color, transparent);
  box-shadow: var(--ag-hover-shadow, none);
  transform: translateY(calc(var(--ag-hover-lift, 0px) * -1));
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* ── Card Hover Contract: batch 4 — logo-slider / pricing-card / product-detail / product-featured / product-grid / project-card / property-grid / recent-posts ───────────── */

/* CARD_HOVER_FIELDS contract — see SKILL_REFERENCE.md § Card Hover Contract.
   property-grid — per-card hover treatment. Scope `--prop-` is
   property-grid-specific (no other element uses this namespace). Resting
   colors continue to come from --site-card-bg / --site-card-border so
   unset hover vars don't change current visuals. */
.el-property-grid .el-property-grid__card {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
[data-card-hover-shell]:hover .el-property-grid .el-property-grid__card,
.el-property-grid .el-property-grid__card:hover {
  background: var(--prop-hover-bg, var(--site-card-bg, var(--site-surface, transparent)));
  color: var(--prop-hover-color, inherit);
  border-color: var(--prop-hover-border-color,
    color-mix(in srgb, var(--site-accent, currentColor) 45%, transparent));
  box-shadow: var(--prop-hover-shadow,
    0 8px 24px rgba(0, 0, 0, calc(0.10 * var(--prop-hover-glow-opacity, 1))));
  transform: translateY(calc(var(--prop-hover-lift, 0px) * -1));
}

/* ── Card Hover Contract: batch 3 — hud-income-limits / location-availability / location-search / login-form / register-form / tabs ───────────── */
/* Wires CARD_HOVER_FIELDS for hud-income-limits (--hud-hover-*),
   location-availability (--avail-hover-*), and location-search
   (--ls-search-hover-*). Vars come from extractCardHoverCssVars() in
   src/lib/elements/cardHoverVars.ts; CSS chains var(--scope-hover-X,
   existing-fallback) so unset values do not change current visuals.
   Shadow plumbing on hud + avail (--el-hud-card-shadow-outer-hover /
   --avail-card-hover-shadow) is preserved unchanged — these rules only
   add the missing CARD_HOVER_FIELDS pass-through. */
[data-card-hover-shell]:hover .el-hud-income .el-hud-income__tier-card,
.el-hud-income .el-hud-income__tier-card:hover {
  background: var(--hud-hover-bg, var(--el-hud-card-bg, var(--site-surface, transparent)));
  color: var(--hud-hover-color, inherit);
  border-color: var(--hud-hover-border-color, var(--el-hud-card-border-color, transparent));
  box-shadow: var(--hud-hover-shadow,
    inset 0 var(--el-hud-tier-strip-h, 0) 0 0 var(--el-hud-tier-strip, var(--el-hud-accent, var(--site-primary))),
    var(--el-hud-card-shadow-outer-hover, 0 20px 42px rgba(15,23,42,0.1), 0 6px 16px rgba(15,23,42,0.05)));
  transform: translateY(calc(var(--hud-hover-lift, 2px) * -1));
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
[data-card-hover-shell]:hover .el-avail-table .avail-card,
.el-avail-table .avail-card:hover {
  background: var(--avail-hover-bg,
    var(--avail-card-hover-bg, var(--avail-card-bg, var(--site-surface, transparent))));
  color: var(--avail-hover-color, inherit);
  border-color: var(--avail-hover-border-color,
    var(--avail-card-hover-border-color,
      color-mix(in srgb, var(--avail-accent, var(--site-accent, currentColor)) 36%, transparent)));
  box-shadow: var(--avail-hover-shadow,
    var(--avail-card-hover-shadow, 0 8px 32px rgba(0,0,0,0.12), 0 20px 48px rgba(0,0,0,0.07)));
  transform: translateY(calc(var(--avail-hover-lift, var(--avail-card-hover-lift, 4px)) * -1));
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
[data-card-hover-shell]:hover .el-location-search .el-location-search__filter,
.el-location-search .el-location-search__filter:hover {
  background: var(--ls-search-hover-bg, var(--site-surface, transparent));
  color: var(--ls-search-hover-color, inherit);
  border-color: var(--ls-search-hover-border-color, var(--site-border, transparent));
  box-shadow: var(--ls-search-hover-shadow, none);
  transform: translateY(calc(var(--ls-search-hover-lift, 0px) * -1));
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* ──────────────────────────────────────────────────────────────────────
 * Mobile tap-target floor for availability-card / floorplan-card CTAs.
 * Apple HIG and WCAG 2.5.5 want 44x44 minimum. The default avail-card
 * button lands at ~36px on narrow widths because actions-row halves the
 * vertical padding. Hard-floor min-height to 44px below 768px so every
 * primary/secondary/contact/portal button stays thumb-friendly.
 * ────────────────────────────────────────────────────────────────────── */
@container site style(--site-bp: mobile) {
  .avail-card__cta,
  .avail-card__actions-row > .avail-card__cta,
  .avail-fp-card__cta,
  .avail-fp-card__cta--contact,
  .avail-fp-card__cta--waitlist {
    min-height: 44px;
    padding-top: 0.6875rem;
    padding-bottom: 0.6875rem;
  }
}
@media (max-width: 768px) {
  .avail-card__cta,
  .avail-card__actions-row > .avail-card__cta,
  .avail-fp-card__cta,
  .avail-fp-card__cta--contact,
  .avail-fp-card__cta--waitlist {
    min-height: 44px;
    padding-top: 0.6875rem;
    padding-bottom: 0.6875rem;
  }
}

/* ──────────────────────────────────────────────────────────────────────
 * HUD income carousel — horizontal overflow guard.
 * The slick track inside .el-hud-income--mode-carousel can briefly
 * report scrollWidth wider than the viewport on narrow breakpoints
 * (320-412px) because the tier-card padding (36px each side) plus the
 * carousel arrows push min-content past 320px. The viewport never
 * actually scrolls horizontally, but the leak triggers a 24-44px
 * overflow report. Clip it explicitly so the assertion is true.
 * ────────────────────────────────────────────────────────────────────── */
.el--hud-income-limits,
.el-hud-income {
  overflow-x: clip;
  /* Preserve vertical overflow for hover lift / focus rings / popover. */
  overflow-y: visible;
  /* Let card drop shadows bleed past the section's horizontal edges
     while still preventing scrollWidth-overflow on narrow viewports.
     Use the SHORTHAND — `overflow-clip-margin-inline` is silently
     ignored by Chromium (CSS Overflow L4 logical-axis longhands). */
  overflow-clip-margin: 200px;
}
