/* Hero Estudial — espacements alignés sur lusinage-hero (sellzy-home.css) */

.hero-platform.lusinage-hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  background: transparent;
  font-family: var(--font-sans, 'DM Sans', ui-sans-serif, system-ui, sans-serif);
  overflow: hidden;
}

.hero-platform__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(216, 232, 253, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 20%, rgba(12, 39, 179, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, #fff 42%);
  pointer-events: none;
}

.hero-platform .container {
  position: relative;
  z-index: 1;
}

/* Structure hero (grille + collage) — anciennement dans sellzy-home.css */
.lusinage-hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 1100px) {
  .lusinage-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: 2.5rem var(--estudial-home-grid-gap, 9rem);
    align-items: center;
    width: 100%;
    max-width: var(--estudial-home-content-max, 1340px);
    margin-inline: auto;
  }

  .lusinage-hero__copy {
    max-width: none;
    min-width: 0;
  }

  .lusinage-hero__visual {
    max-width: none;
    justify-self: stretch;
  }
}

.lusinage-hero__copy {
  min-width: 0;
}

.lusinage-hero__visual {
  min-width: 0;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.lusinage-hero__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.95rem;
}

.lusinage-hero__frame {
  margin: 0;
  min-width: 0;
  padding: 0.4rem;
  background: #ffffff;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 2px 4px rgba(22, 28, 36, 0.04),
    0 14px 34px rgba(22, 28, 36, 0.11);
}

.lusinage-hero__frame--milling {
  grid-column: 1 / -1;
}

.lusinage-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0b1f33;
  letter-spacing: -0.02em;
}

.lusinage-hero__title-line {
  display: block;
}

@media (min-width: 640px) {
  .lusinage-hero__title-line {
    white-space: nowrap;
  }
}

.lusinage-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #637381;
  text-wrap: pretty;
}

.lusinage-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.lusinage-hero__btn.btn,
a.lusinage-hero__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.lusinage-hero__btn.btn:hover,
a.lusinage-hero__btn:hover {
  transform: translateY(-1px);
}

.lusinage-hero__btn .hgi,
.lusinage-hero__btn i {
  font-size: 1.05rem;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .lusinage-hero__frame {
    animation: lusinage-hero-rise 0.65s ease both;
  }

  .lusinage-hero__frame--repro {
    animation-delay: 0.08s;
  }

  .lusinage-hero__frame--design {
    animation-delay: 0.16s;
  }
}

@media (max-width: 1099px) {
  .lusinage-hero__visual {
    max-width: 28rem;
    margin-inline: auto;
    order: -1;
  }

  .lusinage-hero__grid {
    display: flex;
    flex-direction: column;
    max-width: 42rem;
    margin-inline: auto;
  }
}

@keyframes lusinage-hero-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-platform__main {
  min-width: 0;
}

/* Typo & boutons Estudial (structure = Lusinage) */
.hero-platform .lusinage-hero__highlight {
  color: var(--color-primary, #0c27b3);
}

.hero-platform .lusinage-hero__btn.btn-primary {
  background-color: var(--color-primary, #0c27b3) !important;
  color: #fff !important;
  border: 1px solid var(--color-primary, #0c27b3) !important;
  box-shadow: 0 6px 15px rgba(12, 39, 179, 0.16) !important;
}

.hero-platform .lusinage-hero__btn.btn-primary:hover {
  background-color: var(--color-primary-dark, #0a2199) !important;
  border-color: var(--color-primary-dark, #0a2199) !important;
  box-shadow: 0 8px 18px rgba(12, 39, 179, 0.22) !important;
}

.hero-platform .lusinage-hero__btn.btn-secondary {
  background-color: #fff !important;
  color: var(--color-primary, #0c27b3) !important;
  border: 1.5px solid var(--color-primary, #0c27b3) !important;
}

.hero-platform .lusinage-hero__btn.btn-secondary:hover {
  background-color: rgba(12, 39, 179, 0.05) !important;
  color: var(--color-primary, #0c27b3) !important;
  border-color: var(--color-primary, #0c27b3) !important;
}

/* Partenaires — bandeau crédibilité */
.hero-partners {
  margin: 0;
  padding: 1.125rem 1.25rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(12, 39, 179, 0.1);
  background:
    linear-gradient(135deg, rgba(216, 232, 253, 0.35) 0%, rgba(255, 255, 255, 0.98) 42%),
    #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 36px rgba(0, 46, 88, 0.07);
}

.hero-partners__lead {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0b1f33;
}

.hero-platform .hero-partners__lead .lusinage-hero__highlight {
  color: var(--color-primary, #0c27b3);
}

.hero-partners__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.hero-partners__track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
  animation: hero-partners-marquee 42s linear infinite;
}

.hero-partners__item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-partners__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 3.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(12, 39, 179, 0.08);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.hero-partners__logo-link:hover {
  border-color: rgba(12, 39, 179, 0.18);
  box-shadow: 0 6px 20px rgba(12, 39, 179, 0.1);
  transform: translateY(-1px);
}

.hero-partners__logo {
  display: block;
  width: auto;
  max-width: 7.5rem;
  max-height: 2.75rem;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1);
  opacity: 0.78;
  transition:
    filter 0.2s ease,
    opacity 0.2s ease;
}

.hero-partners__logo-link:hover .hero-partners__logo {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes hero-partners-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 1100px) {
  .hero-partners__viewport {
    mask-image: none;
  }

  .hero-partners__track {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    animation: none;
  }

  .hero-partners__item--duplicate {
    display: none;
  }

  .hero-partners__logo-link {
    min-width: 0;
    width: 100%;
    padding: 0.5rem 0.35rem;
  }

  .hero-partners__logo {
    max-width: 6.5rem;
    max-height: 3rem;
  }
}

@media (min-width: 1200px) {
  .hero-partners__logo {
    max-width: 7.25rem;
    max-height: 3.25rem;
  }
}

@media (max-width: 479px) {
  .hero-partners {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-partners__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

  .hero-partners__item--duplicate {
    display: none;
  }

  .hero-partners__viewport {
    mask-image: none;
  }

  .hero-partners__logo-link:hover {
    transform: none;
  }
}

/* Collage hybride : logement + services mobilité */
.hero-platform__collage {
  position: relative;
}

.hero-platform__collage-frame {
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-platform__collage-frame:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(22, 28, 36, 0.06),
    0 18px 40px rgba(22, 28, 36, 0.14);
}

.hero-platform__collage-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.hero-platform__collage-link:focus-visible {
  outline: 2px solid var(--color-primary, #0c27b3);
  outline-offset: 3px;
  border-radius: 1rem;
}

.hero-platform__collage-media {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
}

.hero-platform__collage-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lusinage-hero__frame--milling .hero-platform__collage-img {
  aspect-ratio: 900 / 520;
}

.lusinage-hero__frame--repro .hero-platform__collage-img,
.lusinage-hero__frame--design .hero-platform__collage-img {
  aspect-ratio: 560 / 380;
}

.hero-platform__collage-frame--service .hero-platform__collage-img {
  object-position: center top;
}

.hero-platform__collage-tag {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-platform__collage-tag--verified {
  background: #19c37d;
  color: #fff;
  box-shadow: 0 4px 14px rgba(25, 195, 125, 0.35);
}

.hero-platform__collage-tag--service {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-primary-dark, #002e58);
  box-shadow: 0 4px 14px rgba(0, 46, 88, 0.12);
}

.hero-platform__collage-tag .hgi,
.hero-platform__collage-tag i {
  font-size: 0.875rem;
}

.hero-platform__collage-tag--verified .hgi,
.hero-platform__collage-tag--verified i {
  color: #fff !important;
}

.hero-platform__collage-tag--service .hgi,
.hero-platform__collage-tag--service i {
  color: var(--color-primary, #0c27b3) !important;
}

.hero-platform__collage-foot {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.35rem 0.2rem;
  margin: 0;
}

.hero-platform__collage-title {
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0b1f33;
}

.hero-platform__collage-frame--main .hero-platform__collage-title {
  font-size: 0.9375rem;
}

.hero-platform__collage-subtitle {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #637381;
}

.hero-platform__visual {
  position: relative;
}

@media (min-width: 768px) {
  .hero-partners {
    padding: 1.25rem 1.5rem 1.35rem;
  }
}

@media (max-width: 479px) {
  .hero-platform__collage-tag {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-partners__logo-link:hover,
  .hero-platform__collage-frame:hover {
    transform: none;
  }

  .hero-partners__logo-link,
  .hero-platform__collage-frame {
    transition: none;
  }
}

.hero-mobility {
  display: none;
}

/* ——— Piliers mobilité (section sous le hero) ——— */
.mobility-pillars {
  padding: 3.5rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(216, 232, 253, 0.35) 0%, #fff 72%);
}

.mobility-pillars__header {
  max-width: 38rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.mobility-pillars__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0b1f33;
}

.mobility-pillars__lead {
  margin: 0.65rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #637381;
}

.mobility-pillars__grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .mobility-pillars__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.mobility-pillars__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid rgba(12, 39, 179, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 36px rgba(0, 46, 88, 0.06);
}

.mobility-pillars__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(12, 39, 179, 0.08);
  color: var(--color-primary, #0c27b3);
}

.mobility-pillars__icon .hgi,
.mobility-pillars__icon i {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-primary, #0c27b3) !important;
}

.mobility-pillars__card-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0b1f33;
}

.mobility-pillars__card-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #637381;
}

/* ——— Logements à la une ——— */
.featured-housing {
  position: relative;
  margin-top: 0;
  padding: 0.5rem 0 0.25rem;
}

.featured-housing__bg {
  position: absolute;
  inset: -1rem -1rem auto;
  height: 14rem;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 80% at 10% 0%, rgba(12, 39, 179, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 70% at 90% 10%, rgba(25, 195, 125, 0.07) 0%, transparent 55%);
}

.featured-housing__header {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  max-width: 42rem;
}

.featured-housing__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary, #0c27b3);
}

.featured-housing__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0b1f33;
}

.featured-housing__title-line {
  display: block;
}

@media (min-width: 640px) {
  .featured-housing__title-line {
    white-space: nowrap;
  }
}

.featured-housing__highlight {
  color: var(--color-primary, #0c27b3);
}

.featured-housing__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #637381;
  text-wrap: pretty;
}

.featured-housing__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1100px) {
  .featured-housing__layout {
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: 1.75rem 2rem;
    align-items: start;
  }
}

.featured-housing__main {
  min-width: 0;
}

/* Carte pays d'accueil */
.housing-map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid rgba(12, 39, 179, 0.12);
  border-radius: 1.25rem;
  background:
    linear-gradient(160deg, rgba(216, 232, 253, 0.55) 0%, #fff 48%);
  box-shadow:
    0 2px 4px rgba(22, 28, 36, 0.04),
    0 16px 40px rgba(0, 46, 88, 0.08);
}

@media (min-width: 1100px) {
  .housing-map-card {
    position: sticky;
    top: 5.5rem;
  }
}

.housing-map-card__kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary, #0c27b3);
}

.housing-map-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.housing-map-card__flag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(12, 39, 179, 0.1);
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 46, 88, 0.06);
}

.housing-map-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0b1f33;
}

.housing-map-card__blurb {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #637381;
}

.housing-map-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(12, 39, 179, 0.08) 0%, transparent 70%),
    #f4f7fc;
  border: 1px solid rgba(12, 39, 179, 0.08);
  overflow: hidden;
}

.housing-map-card__map {
  display: block;
  width: min(100%, 15rem);
  height: auto;
  max-height: 16rem;
  object-fit: contain;
  filter: invert(18%) sepia(92%) saturate(3200%) hue-rotate(222deg) brightness(0.85);
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.housing-map-card:hover .housing-map-card__map {
  transform: scale(1.03);
}

.housing-map-card__pins {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.housing-map-card__pin {
  position: absolute;
  transform: translate(-50%, -50%);
}

.housing-map-card__pin-dot {
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #19c37d;
  box-shadow:
    0 0 0 4px rgba(25, 195, 125, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.15);
  animation: housing-map-pin-pulse 2.2s ease infinite;
}

.housing-map-card__pin-label {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 0.3rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1f33;
  font-size: 0.625rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes housing-map-pin-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(25, 195, 125, 0.22),
      0 4px 10px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(25, 195, 125, 0.12),
      0 4px 10px rgba(0, 0, 0, 0.15);
  }
}

.housing-map-card__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.housing-map-card__cities li {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(12, 39, 179, 0.08);
  color: var(--color-primary, #0c27b3);
  font-size: 0.75rem;
  font-weight: 700;
}

.housing-map-card__change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(12, 39, 179, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary, #0c27b3);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.housing-map-card__change:hover {
  background: rgba(12, 39, 179, 0.05);
  border-color: rgba(12, 39, 179, 0.28);
}

.housing-map-card__change .hgi,
.housing-map-card__change i {
  font-size: 0.9rem;
  color: currentColor !important;
}

@media (prefers-reduced-motion: reduce) {
  .housing-map-card__pin-dot {
    animation: none;
  }

  .housing-map-card__map {
    transition: none;
  }
}

.featured-housing__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .featured-housing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.featured-housing__card {
  min-width: 0;
  animation: featured-housing-rise 0.55s ease both;
  animation-delay: calc(var(--card-index, 0) * 80ms);
}

@keyframes featured-housing-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-housing__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(12, 39, 179, 0.1);
  border-radius: 1.25rem;
  background: #fff;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 2px 4px rgba(22, 28, 36, 0.04),
    0 14px 36px rgba(0, 46, 88, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.featured-housing__link:hover {
  transform: translateY(-5px);
  border-color: rgba(12, 39, 179, 0.2);
  box-shadow:
    0 4px 8px rgba(22, 28, 36, 0.05),
    0 22px 48px rgba(0, 46, 88, 0.12);
}

.featured-housing__link:focus-visible {
  outline: 2px solid var(--color-primary, #0c27b3);
  outline-offset: 3px;
}

.featured-housing__media {
  position: relative;
  aspect-ratio: 5 / 3.35;
  overflow: hidden;
  background: #e8eef8;
}

.featured-housing__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-housing__link:hover .featured-housing__image {
  transform: scale(1.05);
}

.featured-housing__media-fade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 31, 51, 0.45) 100%);
  pointer-events: none;
}

.featured-housing__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(25, 195, 125, 0.95);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(25, 195, 125, 0.35);
}

.featured-housing__badge .hgi,
.featured-housing__badge i {
  font-size: 0.875rem;
  color: #fff !important;
}

.featured-housing__city-chip {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1f33;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.featured-housing__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem 1.15rem;
}

.featured-housing__matches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.featured-housing__match {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.featured-housing__match .hgi,
.featured-housing__match i {
  font-size: 0.75rem;
  color: currentColor !important;
}

.featured-housing__match.is-pending {
  background: rgba(145, 158, 171, 0.12);
  color: #637381;
}

.featured-housing__match.is-ok {
  background: rgba(0, 171, 85, 0.12);
  color: #008a47;
}

.featured-housing__match.is-flash {
  animation: featured-match-flash 0.45s ease;
}

@keyframes featured-match-flash {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(0, 171, 85, 0.18);
  }
  100% {
    transform: scale(1);
  }
}

.featured-housing__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #637381;
}

.featured-housing__dot {
  opacity: 0.6;
}

.featured-housing__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0b1f33;
}

.featured-housing__district {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #98a2b3;
}

.featured-housing__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(12, 39, 179, 0.08);
}

.featured-housing__price {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #637381;
}

.featured-housing__price strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary, #0c27b3);
}

.featured-housing__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary, #0c27b3);
}

.featured-housing__more .hgi,
.featured-housing__more i {
  font-size: 0.875rem;
  color: currentColor !important;
  transition: transform 0.2s ease;
}

.featured-housing__link:hover .featured-housing__more .hgi,
.featured-housing__link:hover .featured-housing__more i {
  transform: translateX(3px);
}

.featured-housing__actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.featured-housing__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px !important;
  padding: 0.8rem 1.5rem !important;
  font-weight: 700;
}

.featured-housing__cta .hgi,
.featured-housing__cta i {
  color: currentColor !important;
}

@media (prefers-reduced-motion: reduce) {
  .featured-housing__card {
    animation: none;
  }

  .featured-housing__link,
  .featured-housing__image,
  .featured-housing__match,
  .featured-housing__more .hgi,
  .featured-housing__more i {
    transition: none;
  }

  .featured-housing__link:hover {
    transform: none;
  }

  .featured-housing__link:hover .featured-housing__image {
    transform: none;
  }

  .featured-housing__match.is-flash {
    animation: none;
  }
}

