/**
 * Public property detail — home-aligned gallery hero + listing helpers.
 */

/* —— Full-bleed gallery hero (matches home-hero stage) —— */
.re-property-detail-page .pd-hero__stage {
  position: relative;
  overflow: hidden;
  background-color: #071e42;
  min-height: 420px;
}

@media (min-width: 640px) {
  .re-property-detail-page .pd-hero__stage {
    min-height: 480px;
  }
}

@media (min-width: 1024px) {
  .re-property-detail-page .pd-hero__stage {
    min-height: 520px;
  }
}

.re-property-detail-page .pd-hero__gallery,
.re-property-detail-page .pd-hero__gallery .swiper,
.re-property-detail-page .pd-hero__gallery .swiper-wrapper,
.re-property-detail-page .pd-hero__gallery .swiper-slide {
  height: 100%;
  width: 100%;
}

.re-property-detail-page .pd-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Left-to-right navy wash — image stays clear on the right (home hero pattern) */
.re-property-detail-page .pd-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7, 30, 66, 0.92) 0%,
      rgba(7, 30, 66, 0.82) 28%,
      rgba(7, 30, 66, 0.45) 48%,
      rgba(7, 30, 66, 0.12) 62%,
      rgba(7, 30, 66, 0) 78%
    ),
    linear-gradient(
      180deg,
      rgba(7, 30, 66, 0.3) 0%,
      rgba(7, 30, 66, 0) 38%,
      rgba(7, 30, 66, 0.45) 100%
    );
}

.re-property-detail-page .pd-hero__eyebrow {
  animation: pdHeroFadeUp 0.7s ease both;
}

.re-property-detail-page .pd-hero__title {
  animation: pdHeroFadeUp 0.85s ease 0.08s both;
}

.re-property-detail-page .pd-hero__sub {
  animation: pdHeroFadeUp 0.85s ease 0.16s both;
}

.re-property-detail-page .pd-hero__price {
  animation: pdHeroFadeUp 0.9s ease 0.22s both;
}

.re-property-detail-page .pd-hero__approval {
  animation: pdHeroFadeUp 0.75s ease 0.04s both;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #70b000 0%, #5c9e00 100%);
  box-shadow: 0 10px 24px -12px rgba(112, 176, 0, 0.85);
}

.re-property-detail-page .pd-hero__approval-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.re-property-detail-page .pd-hero__approval-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.re-property-detail-page .pd-hero__approval-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

@media (max-width: 639px) {
  .re-property-detail-page .pd-hero__approval {
    width: 100%;
  }
}

@keyframes pdHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .re-property-detail-page .pd-hero__eyebrow,
  .re-property-detail-page .pd-hero__title,
  .re-property-detail-page .pd-hero__sub,
  .re-property-detail-page .pd-hero__price,
  .re-property-detail-page .pd-hero__approval {
    animation: none;
  }
}

/* Gallery thumbs + controls */
.re-property-gallery-slider .swiper-pagination,
.re-property-gallery-slider .thumbs-sw-pagi {
  display: none !important;
}

.re-property-detail-page .re-pd-thumb-frame {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.re-property-detail-page .swiper-slide-thumb-active .re-pd-thumb-frame {
  border-color: #70b000;
  box-shadow: 0 0 0 1px rgba(112, 176, 0, 0.35);
}

body.re-property-detail-page .re-pd-header {
  min-width: 0;
}

/* Soften pd2 section headings toward home section style */
body.re-property-detail-page .re-public-pd-listing .pd2-h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
}

/* Remap leftover pd2 blues to the navy/green public palette */
body.re-property-detail-page .re-public-pd-listing {
  --pd2-hl-accent: #70b000;
}

body.re-property-detail-page .re-public-pd-listing .pd2-sec-ico,
body.re-property-detail-page .re-public-pd-listing .pd2-mini-ico,
body.re-property-detail-page .re-public-pd-listing .pd2-stat-tile__ico,
body.re-property-detail-page .re-public-pd-listing .pd2-plot-section__ico,
body.re-property-detail-page .re-public-pd-listing .pd2-price-metric__ico,
body.re-property-detail-page .re-public-pd-listing .pd2-loc-banner__ico,
body.re-property-detail-page .re-public-pd-listing .pd2-pulse-stat__icon,
body.re-property-detail-page .re-public-pd-listing .pd2-media-count,
body.re-property-detail-page .re-public-pd-listing .pd2-aside-gallery-more,
body.re-property-detail-page .re-public-pd-listing .pd2-video--plot a {
  color: #70b000;
}

body.re-property-detail-page .re-public-pd-listing .pd2-sec-ico--plot svg,
body.re-property-detail-page .re-public-pd-listing .pd2-stat-tile__ico svg {
  stroke: #70b000;
}

body.re-property-detail-page .re-public-pd-listing .pd2-hero__title,
body.re-property-detail-page .re-public-pd-listing .pd2-price-value,
body.re-property-detail-page .re-public-pd-listing .pd2-stat-tile__value,
body.re-property-detail-page .re-public-pd-listing .pd2-price-metric__value,
body.re-property-detail-page .re-public-pd-listing .pd2-loc-banner__text,
body.re-property-detail-page .re-public-pd-listing .pd2-hl-head__title,
body.re-property-detail-page .re-public-pd-listing .pd2-hl-feature__value,
body.re-property-detail-page .re-public-pd-listing .pd2-hl-tile__value,
body.re-property-detail-page .re-public-pd-listing .pd2-pulse-status__label,
body.re-property-detail-page .re-public-pd-listing .pd2-pulse-stat__value,
body.re-property-detail-page .re-public-pd-listing .pd2-aside-title {
  color: #071e42;
}

body.re-property-detail-page .re-public-pd-listing .pd2-btn--primary,
body.re-property-detail-page .re-public-pd-listing .pd2-aside-action--primary {
  background: #70b000;
  border-color: #70b000;
  color: #fff;
}

body.re-property-detail-page .re-public-pd-listing .pd2-btn--primary:hover,
body.re-property-detail-page .re-public-pd-listing .pd2-aside-action--primary:hover {
  background: #5c9e00;
  border-color: #5c9e00;
}

body.re-property-detail-page .re-public-pd-listing .pd2-aside-spotlight {
  background: linear-gradient(145deg, #071e42 0%, #0b3d91 58%, #12559c 100%);
}

body.re-property-detail-page .re-public-pd-listing .pd2-card {
  padding: 1.25rem 1.35rem;
}

@media (min-width: 640px) {
  body.re-property-detail-page .re-public-pd-listing .pd2-card {
    padding: 1.5rem 1.65rem;
  }
}

/* Sidebar photos (above Key details) */
.re-property-detail-page .pd-aside-photos__cell:focus-visible {
  outline: 2px solid #70b000;
  outline-offset: 2px;
}

/* Mobile: right-hand column (key details / contact) first */
@media (max-width: 1023px) {
  .pd-detail-layout {
    display: flex;
    flex-direction: column;
  }

  .pd-detail-aside {
    order: 1;
  }

  .pd-detail-main {
    order: 2;
  }
}
