/* Dream Home Voucher — landing promo block */
.pd-voucher-section {
  padding: 0 0 2.5rem;
}

.pd-voucher-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.pd-voucher-card__left {
  flex: 1 1 52%;
  min-width: 0;
  padding: 2.25rem 2.5rem 2.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pd-voucher-card__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #002d5b;
}

.pd-voucher-card__subtitle {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #64748b;
}

.pd-voucher-card__amount {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.08em;
  color: #e88d3a;
}

.pd-voucher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.pd-voucher-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: #e7efff;
  color: #002d5b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pd-voucher-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  font-size: 0.78rem;
  color: #002d5b;
}

.pd-voucher-builders {
  margin-bottom: 1.65rem;
}

.pd-voucher-builders__rule {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-voucher-builders__rule::before,
.pd-voucher-builders__rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #e2e8f0;
}

.pd-voucher-builders__rule span {
  padding: 0 0.85rem;
}

.pd-voucher-builders__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pd-voucher-builders__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: #e7efff;
  color: #002d5b;
  font-size: 0.95rem;
}

.pd-voucher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pd-voucher-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pd-voucher-actions__btn--primary {
  border: none;
  background: #002d5b;
  color: #fff;
}

.pd-voucher-actions__btn--primary:hover {
  background: #003f7a;
  color: #fff;
}

.pd-voucher-actions__btn--outline {
  border: 1.5px solid #002d5b;
  background: #fff;
  color: #002d5b;
}

.pd-voucher-actions__btn--outline:hover {
  background: #f8fbff;
  color: #002d5b;
}

.pd-voucher-card__right {
  position: relative;
  flex: 1 1 48%;
  min-width: 0;
  background: #f0f4ff;
}

.pd-voucher-card__right::before {
  content: "";
  position: absolute;
  left: 0;
  top: 42%;
  bottom: 0;
  width: 2px;
  background: #e88d3a;
  z-index: 2;
}

.pd-voucher-card__visual {
  position: relative;
  height: 100%;
  min-height: 100%;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-voucher-card__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 28px rgba(0, 45, 91, 0.12);
}

.pd-voucher-offer-card {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  width: min(13.5rem, 72%);
  padding: 0.95rem 1rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.pd-voucher-offer-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-bottom: 0.35rem;
  color: #e88d3a;
  font-size: 1.05rem;
}

.pd-voucher-offer-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e88d3a;
}

.pd-voucher-offer-card__value {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #475569;
}

.pd-voucher-offer-card__value strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #002d5b;
}

.pd-voucher-offer-card__foot {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

@media (max-width: 991.98px) {
  .pd-voucher-card {
    flex-direction: column;
  }

  .pd-voucher-card__left {
    padding: 1.75rem 1.35rem 1.5rem;
  }

  .pd-voucher-card__right::before {
    display: none;
  }

  .pd-voucher-card__visual {
    padding: 0 1.15rem 1.35rem;
  }

  .pd-voucher-offer-card {
    right: 1.35rem;
    bottom: 1.75rem;
    width: min(12.5rem, 78%);
  }
}

@media (max-width: 575.98px) {
  .pd-voucher-section {
    padding-bottom: 1.75rem;
  }

  .pd-voucher-card__title {
    font-size: 1.45rem;
  }

  .pd-voucher-pills {
    gap: 0.5rem;
  }

  .pd-voucher-pill {
    font-size: 0.76rem;
    padding: 0.42rem 0.72rem;
  }

  .pd-voucher-actions {
    flex-direction: column;
  }

  .pd-voucher-actions__btn {
    width: 100%;
  }

  .pd-voucher-offer-card {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
  }
}
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Side-peek voucher: angled diagonal peek under search card, slides open on top when hovered */
.hero-voucher-peek {
    --hero-voucher-w: min(500px, 45vw);
    position: absolute;
    right: -35px;
    bottom: -30px;
    width: var(--hero-voucher-w);
    z-index: 5; /* UNDER search card (search card has z-index: 20) */
    cursor: pointer;
    overflow: visible;
    border-radius: 16px;
    box-shadow:
        -6px 12px 30px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.12);
    /* Slanted diagonally, peeked further outside to the right of the search card */
    transform: perspective(1000px) rotate(6deg) translate3d(85px, 25px, 0) scale(0.93);
    transform-origin: 90% 10%;
    transition:
        transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.35s ease,
        z-index 0.1s ease;
    will-change: transform;
}

.hero-voucher-peek.is-closed {
    display: none !important;
}

.hero-voucher-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2508 / 1412;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    border-radius: 16px;
}

/* Close cross button */
.hero-voucher-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-voucher-close:hover {
    background: #ff4757;
    color: #ffffff;
}

/* Hover / Focus / Open state: comes ON TOP of search card and shows FULLY */
.hero-voucher-peek:hover,
.hero-voucher-peek:focus-within,
.hero-voucher-peek.is-open {
    z-index: 99 !important; /* Rises over search card */
    transform: perspective(1000px) rotate(0deg) translate3d(-35px, -30px, 0) scale(1.05);
    box-shadow:
        0 30px 75px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-voucher-peek:hover .hero-voucher-close,
.hero-voucher-peek:focus-within .hero-voucher-close,
.hero-voucher-peek.is-open .hero-voucher-close {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 991.98px) {
    .hero-voucher-peek {
        --hero-voucher-w: min(360px, 65vw);
        right: -20px;
        bottom: -20px;
        transform: perspective(1000px) rotate(5deg) translate3d(55px, 20px, 0) scale(0.9);
    }

    .hero-voucher-peek:hover,
    .hero-voucher-peek:focus-within,
    .hero-voucher-peek.is-open {
        transform: perspective(1000px) rotate(0deg) translate3d(-15px, -15px, 0) scale(1.02);
    }
}

@media (max-width: 575.98px) {
    .hero-voucher-peek {
        --hero-voucher-w: min(280px, 80vw);
        right: -25px;
        bottom: -15px;
        transform: perspective(1000px) rotate(4deg) translate3d(45px, 15px, 0) scale(0.88);
    }

    .hero-voucher-peek:hover,
    .hero-voucher-peek:focus-within,
    .hero-voucher-peek.is-open {
        transform: perspective(1000px) rotate(0deg) translate3d(-10px, -10px, 0) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-voucher-peek {
        transition: none;
    }
}
