/* Ad Banner Styles */
.ad-banner-container {
  width: 100%;
  margin: 2rem 0;
  padding: 1rem 0;
  text-align: center;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: block !important;
  visibility: visible !important;
}

.ad-banner {
  display: inline-block;
  max-width: 100%;
  transition: opacity 0.3s ease;
  margin: 0 auto;
}

.ad-banner:hover {
  opacity: 0.9;
}

.ad-banner-image {
  max-width: 728px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: block !important;
  margin: 0 auto;
}

/* Make sure the banner section has proper spacing */
section .ad-banner-container {
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Banner position (components/banner-slot.njk): paid banners shown in turn,
   and the house advert that sells the space while any of it is unsold.
   -------------------------------------------------------------------------- */
.banner-slot {
  max-width: 960px;
  margin: 2.5rem auto;
}

.banner-slot-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: var(--text-tag);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: center;
}

.banner-slot-item {
  display: block;
  text-decoration: none;
}

.banner-slot-item[hidden],
.banner-slot-caption[hidden] {
  display: none;
}

.banner-slot-paid img {
  display: block;
  width: 100%;
  max-width: 728px;
  height: auto;
  margin: 0 auto;
}

.banner-slot-caption {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.banner-slot-caption a {
  color: var(--ink-500);
  text-decoration: underline;
}

.house-advert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 1.4rem 1.75rem;
  background: var(--teal-700);
  color: #fff;
}

.house-advert:hover,
.house-advert:focus-visible {
  color: #fff;
  text-decoration: none;
}

.house-advert-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.house-advert-copy,
.house-advert-eyebrow,
.house-advert-headline,
.house-advert-text {
  display: block;
}

.house-advert-eyebrow {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--mint-300);
}

.house-advert-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: #fff;
}

.house-advert-text {
  max-width: 58ch;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.house-advert-offer {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.25rem;
}

.house-advert-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.house-advert-from,
.house-advert-per {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mint-300);
}

.house-advert-from {
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.house-advert-button {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  background: var(--mint-300);
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: var(--text-button);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--ease-calm);
}

.house-advert:hover .house-advert-button,
.house-advert:focus-visible .house-advert-button {
  background: #fff;
}

@media (max-width: 760px) {
  .house-advert {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }

  .house-advert-offer {
    width: 100%;
    justify-content: space-between;
  }
}
