 .featured-ad-section {
  padding: clamp(42px, 6vw, 78px) 0;
  background: linear-gradient(180deg, #f4f8f9 0%, #fff 100%);
  border-block: 1px solid #e3ecee;
}

.featured-ad-heading {
  margin-bottom: 25px;
}

.featured-ad-kicker {
  margin: 0 0 8px;
  color: #9a7612;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.featured-ad-heading h2 {
  margin: 0;
  color: #12384b;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.featured-ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.featured-ad-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d5e3e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(12, 48, 66, .1);
}

.featured-ad-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050914;
}

.featured-ad-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.featured-ad-card--lead .featured-ad-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f7f3e8;
}

.featured-ad-card--lead .featured-ad-image img {
  height: 100%;
  object-fit: contain;
}

.featured-ad-image a {
  display: block;
}

.featured-ad-image a:focus-visible {
  outline: 3px solid #287db4;
  outline-offset: -3px;
}

.featured-ad-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid #d5bd61;
  background: #0c3042;
  color: #fff;
}

.featured-ad-actions span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.featured-ad-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid #e3c44d;
  border-radius: 999px;
  background: #e3c44d;
  color: #102e3f;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease;
}

.featured-ad-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featured-ad-actions .featured-ad-phone {
  border-color: rgba(255, 255, 255, .55);
  background: transparent;
  color: #fff;
}

.featured-ad-actions a:hover {
  border-color: #f1d978;
  background: #f1d978;
  color: #102e3f;
}

.featured-ad-actions a:focus-visible {
  outline: 3px solid #287db4;
  outline-offset: 3px;
}

.featured-floating-ad {
  position: fixed;
  z-index: 35;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 13px;
  width: min(390px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid #d5e3e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(12, 48, 66, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.featured-floating-ad.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.featured-floating-ad-image {
  display: block;
  min-height: 126px;
  overflow: hidden;
  border-radius: 12px;
  background: #050914;
}

.featured-floating-ad-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-floating-ad-copy {
  min-width: 0;
  padding: 4px 25px 4px 0;
}

.featured-floating-ad-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding-right: 2px;
}

.featured-floating-ad-topline span {
  color: #9a7612;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.featured-floating-ad-topline strong {
  color: #12384b;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.featured-floating-ad-copy h2 {
  margin: 5px 0 3px;
  color: #12384b;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.featured-floating-ad-copy p {
  margin: 0 0 9px;
  color: #617781;
  font-size: 12px;
  line-height: 1.35;
}

.featured-floating-ad-cta {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #e3c44d;
  border-radius: 999px;
  background: #e3c44d;
  color: #102e3f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.featured-floating-ad-cta:hover {
  border-color: #f1d978;
  background: #f1d978;
}

.featured-floating-ad-cta:focus-visible,
.featured-floating-ad-image:focus-visible,
.featured-floating-ad-close:focus-visible {
  outline: 3px solid #287db4;
  outline-offset: 3px;
}

.featured-floating-ad-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid #d5e3e6;
  border-radius: 50%;
  background: #fff;
  color: #294a5a;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.featured-floating-ad-close:hover {
  background: #f1f8f9;
}

body.has-featured-floating-ad .property-assistant-launcher {
  bottom: 190px;
}

body.has-featured-floating-ad .property-assistant-panel {
  bottom: 248px;
}

@media (max-width: 760px) {
  .featured-ad-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .featured-ad-section {
    padding-block: 42px;
  }

  .featured-ad-heading {
    margin-bottom: 18px;
  }

  .featured-ad-actions {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .featured-ad-links {
    width: 100%;
  }

  .featured-floating-ad {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px;
    width: auto;
    padding: 8px;
    border-radius: 15px;
  }

  .featured-floating-ad-image {
    min-height: 112px;
    border-radius: 10px;
  }

  .featured-floating-ad-copy {
    padding: 2px 22px 2px 0;
  }

  .featured-floating-ad-topline span {
    font-size: 9px;
  }

  .featured-floating-ad-topline strong {
    font-size: 14px;
  }

  .featured-floating-ad-copy h2 {
    margin-top: 4px;
    font-size: 14px;
  }

  .featured-floating-ad-copy p {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .featured-floating-ad-cta {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 11px;
  }

  body.has-featured-floating-ad .property-assistant-launcher {
    bottom: calc(170px + env(safe-area-inset-bottom));
  }

  body.has-featured-floating-ad .property-assistant-panel {
    bottom: calc(228px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-ad-actions a,
  .featured-floating-ad {
    transition: none;
  }
}
