/* ===================== Masterplan interativo (pdc_masterplan) ===================== */
/* linha WPBakery que contém o elemento */
.pdcMasterplanSection {
  padding-top: 64px;
  background: #fcfbf7;
}

@media (max-width: 767px) {
  .pdcMasterplanSection { padding-top: 36px; }
}

/* a legenda do mapa substitui os cartões grandes do hero (ficam escondidos, não apagados) */
body:has(.pdc-mp) #riverOptions { display: none !important; }

/* ---------- legenda: ● Riverside II · 19 disponíveis ---------- */
.pdc-mp__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 44px;
  padding: 0 20px 26px;
}

.pdc-mp__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: #3c3b36;
  font-family: "Avenir", sans-serif;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.pdc-mp__dot {
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pin-cor);
  box-shadow: 0 0 0 0 var(--pin-cor);
  transition: box-shadow 0.25s ease;
}

.pdc-mp__lname {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pdc-mp__lcount {
  font-size: 13px;
  color: #8b897f;
}

.pdc-mp__lcount::before { content: "·"; margin-right: 10px; color: #c9c6bb; }

.pdc-mp__chip:hover,
.pdc-mp__chip:focus-visible,
.pdc-mp__chip.is-on {
  color: var(--pin-cor);
  border-bottom-color: var(--pin-cor);
  outline: none;
}

.pdc-mp__chip:hover .pdc-mp__dot,
.pdc-mp__chip.is-on .pdc-mp__dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 5px var(--pin-cor); }

.pdc-mp {
  --mp-ink: #2f4a52;
  --mp-paper: #fcfbf7;
  position: relative;
  width: 100%;
  max-width: 1200px;           /* mapa mais contido, centrado na página */
  margin: 0 auto;
  background: var(--mp-paper);
  overflow: hidden;
}

.pdc-mp__stage {
  position: relative;
  width: 100%;
  line-height: 0;
}

.pdc-mp__base,
.pdc-mp__highlight {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.pdc-mp__highlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* véu que esbate o mapa quando um edifício está ativo */
.pdc-mp__veil {
  position: absolute;
  inset: 0;
  background: var(--mp-paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.pdc-mp.is-active .pdc-mp__veil { opacity: 0.72; }
.pdc-mp.is-hover:not(.is-active) .pdc-mp__veil { opacity: 0.25; }
.pdc-mp__highlight.is-on { opacity: 1; }

/* ---------- pontos "+" ---------- */
.pdc-mp__pin {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 0 var(--pin-cor);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.4s ease, box-shadow 0.3s ease;
  animation: pdc-mp-pulse 2.6s ease-out infinite;
}

.pdc-mp__pin:hover,
.pdc-mp__pin:focus-visible,
.pdc-mp__pin.is-peek {
  transform: scale(1.15);
  background: var(--pin-cor);
  outline: none;
}

.pdc-mp__pin.is-peek .pdc-mp__pin-plus,
.pdc-mp__pin.is-peek .pdc-mp__pin-plus::after { background: #fff; }
.pdc-mp__pin.is-peek .pdc-mp__pin-label { opacity: 1; transform: translate(-50%, 0); }

.pdc-mp__pin-plus,
.pdc-mp__pin-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  background: var(--pin-cor);
  border-radius: 1px;
  transition: background-color 0.3s ease, transform 0.35s ease;
}

.pdc-mp__pin-plus::after {
  content: "";
  transform: rotate(90deg);
}

.pdc-mp__pin:hover .pdc-mp__pin-plus,
.pdc-mp__pin:hover .pdc-mp__pin-plus::after,
.pdc-mp__pin:focus-visible .pdc-mp__pin-plus,
.pdc-mp__pin:focus-visible .pdc-mp__pin-plus::after { background: #fff; }

/* etiqueta com o nome, ao passar o rato */
.pdc-mp__pin-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--pin-cor);
  font-family: "Avenir", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pdc-mp__pin:hover .pdc-mp__pin-label,
.pdc-mp__pin:focus-visible .pdc-mp__pin-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* com um edifício ativo: o ponto ativo fica preenchido, os outros esbatem */
.pdc-mp.is-active .pdc-mp__pin { opacity: 0.35; animation: none; }
.pdc-mp.is-active .pdc-mp__pin.is-on {
  opacity: 1;
  background: var(--pin-cor);
}
.pdc-mp.is-active .pdc-mp__pin.is-on .pdc-mp__pin-plus,
.pdc-mp.is-active .pdc-mp__pin.is-on .pdc-mp__pin-plus::after { background: #fff; }
.pdc-mp.is-active .pdc-mp__pin.is-on .pdc-mp__pin-plus { transform: rotate(45deg); }

@keyframes pdc-mp-pulse {
  0%   { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(255, 255, 255, 0.85); }
  70%  { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ---------- painel de informação ---------- */
.pdc-mp__info {
  position: absolute;
  z-index: 4;
  left: var(--info-x, 55%);
  top: var(--info-y, 35%);
  width: max-content;
  max-width: 600px;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--pin-cor);
  color: var(--pin-cor);
}

.pdc-mp__info[hidden] { display: none; }

.pdc-mp__eyebrow {
  display: block;
  font-family: "Avenir", sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pin-cor);
}

.pdc-mp__title {
  margin: 4px 0 10px;
  font-family: "BigCaslon", serif;
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 68px);
  line-height: 1;
  white-space: nowrap;
  color: var(--pin-cor);
}

.pdc-mp__state,
.pdc-mp__count {
  margin: 0 0 6px;
  font-family: "Avenir", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--mp-ink);
}

.pdc-mp__count strong { color: var(--pin-cor); font-weight: 600; }

.pdc-mp__btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 26px;
  border-radius: 30px;
  background: var(--pin-cor);
  color: #fff !important;
  font-family: "Avenir", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.pdc-mp__btn:hover { filter: brightness(0.9); transform: translateY(-1px); }

.pdc-mp__close {
  position: absolute;
  top: -6px;
  right: -40px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--pin-cor);
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
}

.pdc-mp__hint {
  margin: 0;
  padding: 14px 20px 22px;
  text-align: center;
  font-family: "Avenir", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a80;
  transition: opacity 0.4s ease;
}

.pdc-mp.is-active .pdc-mp__hint { opacity: 0; }

/* ---------- tablet e telemóvel ---------- */
@media (max-width: 1024px) {
  .pdc-mp__title { font-size: 48px; }
  .pdc-mp__info { max-width: 360px; }
}

@media (max-width: 767px) {
  .pdc-mp__stage { width: 165%; margin-left: -38%; } /* aproxima o mapa ao conjunto central */
  .pdc-mp__pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .pdc-mp__pin-plus, .pdc-mp__pin-plus::after { width: 8px; margin-left: -4px; }
  .pdc-mp__pin-label { display: none; }
  .pdc-mp__hint { display: none; }

  .pdc-mp__legend { flex-direction: column; align-items: center; gap: 6px; padding-bottom: 14px; }
  .pdc-mp__lname, .pdc-mp__lcount { font-size: 12px; }

  .pdc-mp__info {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-width: none;
    margin: 18px 20px 26px;
  }
  .pdc-mp__title { font-size: 40px; }
  .pdc-mp__close { right: 0; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pdc-mp__pin { animation: none; }
  .pdc-mp *, .pdc-mp__veil, .pdc-mp__highlight { transition-duration: 0.01ms !important; }
}
