.privaat-property {
  margin-bottom: 48px;
}

/* Match regular page content width: constrain property detail content. */
.container.privaat-property__container {
  width: 80%;
  max-width: 1400px;
}

@media (min-width: 1200px) {
  body.single-property .container.privaat-property__container {
    width: 80% !important;
    max-width: 1400px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

.privaat-property__page-strip {
  position: relative;
  padding: 34px 0;
  margin: 0 0 22px;
}

.privaat-property__page-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  /* "Window" into the background with a soft glass effect. */
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .privaat-property__page-strip::before {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.18);
  }
}

.privaat-property__page-strip-inner {
  position: relative;
}

.privaat-property__page-title {
  margin: 0;
  text-align: center;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.privaat-property__page-strip--bottom {
  margin: 28px 0 0;
  padding: 28px 0;
}

.privaat-property__page-strip--bottom::before {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 0;
}

.privaat-property__page-strip-spacer {
  height: 16px;
}

.privaat-property__hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  /* Add outside gutters to match the internal image gaps. */
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 28px;
  align-items: stretch;
}

.privaat-property__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.privaat-property__hero-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.privaat-property__hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
}

.privaat-property__hero-tile {
  overflow: hidden;
}

.privaat-property__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.privaat-property__left,
.privaat-property__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.privaat-property__card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 22px;
  color: #1a1a1a;
}

.privaat-property__title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}

.privaat-property__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.privaat-property__price {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  color: #1a1a1a;
}

.privaat-property__subtitle {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.35;
  color: #1a1a1a;
}

.privaat-property__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
  color: #1a1a1a;
  font-weight: 600;
}

.privaat-property__stats li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.privaat-property__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.privaat-property__stat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.privaat-property__description h2 {
  margin-top: 0;
}

.privaat-property__description,
.privaat-property__description p,
.privaat-property__description li,
.privaat-property__features,
.privaat-property__features li {
  color: #1a1a1a;
  opacity: 1;
}

.privaat-property__section-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
}

.privaat-property__muted {
  margin: 0;
  opacity: 0.8;
}

.privaat-property__features {
  column-count: var(--privaat-features-columns, 3);
  column-gap: 18px;
  column-fill: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.privaat-property__features li {
  padding-left: 18px;
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.privaat-property__features li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.7;
}

.privaat-property__video {
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.privaat-property__video iframe,
.privaat-property__video video,
.privaat-property__video .wp-video,
.privaat-property__video .wp-video-shortcode {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Band of fixed-height cards: Features, Video, Location, Nearby. */
.privaat-property__band--flow {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}

.privaat-property__band-card {
  height: 400px;
  display: flex;
  flex-direction: column;
  flex: 1 1 280px;
  min-width: 260px;
}

.privaat-property__band-card--features {
  /* Keep Features compact instead of stretching across the row. */
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
}

.privaat-property__band-card--faq {
  flex: 1 1 280px;
  min-width: 260px;
}

.privaat-property__band-card--nearby {
  flex: 0 0 100%;
  width: 100%;
}

.privaat-property__band-card--nearby .privaat-property__band-body {
  /* Prevent an outer scrollbar on the whole card; the list itself scrolls. */
  overflow: hidden;
}

.privaat-property__nearby-layout {
  display: grid;
  grid-template-columns: minmax(360px, 3fr) minmax(360px, 2fr);
  gap: 18px 24px;
  align-items: start;
}

@media (max-width: 991px) {
  .privaat-property__nearby-layout {
    grid-template-columns: 1fr;
  }
}

.privaat-property__nearby-map .wpgmza_map {
  height: 300px !important;
}

.privaat-property__nearby-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-height: 300px;
  overflow: auto;
  padding-right: 6px;
}

@media (max-width: 991px) {
  .privaat-property__nearby-groups {
    grid-template-columns: 1fr;
  }
}

.privaat-property__nearby-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.privaat-property__nearby-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privaat-property__nearby-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.privaat-property__nearby-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.privaat-property__nearby-distance {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

.privaat-property__nearby-item.is-active {
  background: rgba(254, 106, 0, 0.08);
  border-radius: 10px;
  padding: 10px 10px;
  border-bottom-color: transparent;
}

.privaat-property__nearby-item.is-active + .privaat-property__nearby-item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 10px;
}

.privaat-property__map-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f7f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #374151;
  font-weight: 600;
}

.privaat-property__band-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.privaat-property__band-card--features .privaat-property__band-body {
  /* Force a constrained column-flow area so features wrap into columns instead of growing taller. */
  overflow: hidden;
}

.privaat-property__band-card--faq .privaat-property__band-body {
  overflow: auto;
}

.privaat-property__band-card--features .privaat-property__features {
  height: 100%;
  column-gap: 10px;
}

.privaat-property__faq-item + .privaat-property__faq-item {
  margin-top: 14px;
}

.privaat-property__faq-question {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.privaat-property__faq-answer {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
}

.privaat-property__band-card--video .privaat-property__video {
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
}

.privaat-property__band-card--location .g5ere__single-property-map-canvas,
.privaat-property__band-card--location .g5ere__map-canvas {
  height: 100% !important;
  min-height: 0 !important;
}

.privaat-property__band-card--location .privaat-property__band-body {
  /* Reclaim any "mystery" top spacing inside ERE's map output so controls don't get clipped. */
  margin-top: -10px;
}

.privaat-property__band-card--location .privaat-property__band-body > * {
  margin-top: 0 !important;
}

.privaat-property__band-card--nearby > *:last-child,
.privaat-property__band-card--location > *:last-child {
  margin-bottom: 0;
}

.privaat-property__map-fallback {
  min-height: 320px;
  border-radius: 14px;
  background: #f6f7f7;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1f2937;
}

.privaat-agent-card {
  background: #f3f4f6;
  border-radius: 18px;
  padding: 22px;
}

.privaat-agent-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}

.privaat-agent-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.privaat-agent-card__position {
  margin: 6px 0 16px;
  text-align: center;
  opacity: 0.85;
}

.privaat-agent-card__buttons {
  display: grid;
  gap: 10px;
}

.privaat-agent-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 700;
  text-decoration: none;
}

.privaat-agent-card__btn--primary {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

/* Book a Viewing form: stack fields vertically in the right column card. */
.privaat-property #contact-agent .row {
  margin-left: 0;
  margin-right: 0;
  row-gap: 12px;
}

.privaat-property #contact-agent .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.privaat-property #contact-agent .col-md-4,
.privaat-property #contact-agent .col-sm-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

.privaat-property #contact-agent .ere__btn-submit-contact-form {
  width: 100%;
}

.privaat-property__qr {
  text-align: center;
}

.privaat-property__qr-image {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  padding: 8px;
}

@media (max-width: 991px) {
  .container.privaat-property__container {
    width: 100%;
  }

  .privaat-property__layout {
    grid-template-columns: 1fr;
  }

  .privaat-property__features {
    column-count: 2;
  }
}

@media (max-width: 767px) {
  .privaat-property__hero {
    grid-template-columns: 1fr;
  }

  .privaat-property__hero-tiles {
    height: auto;
  }

  .privaat-property__hero-tile {
    aspect-ratio: 1 / 1;
  }

  .privaat-property__title {
    font-size: 28px;
  }
  .privaat-property__title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .privaat-property__features {
    column-count: 1;
  }
}
