/**
 * Interactive map overlays the RIGHT portion of banner panel 2
 * (photo + copy stay as the static image; only map area is live).
 */

.mp-banner-stack__item--with-map {
  position: relative;
  isolation: isolate;
}

/* Map covers the map region of the marketing banner (~right half) */
.mp-banner-map-overlay {
  --mp-map-ink: #151717;
  --mp-map-blue: #733635;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* Banner composition: photo | dark copy | map.
     Start further right so middle copy isn’t covered (cut map from the left). */
  left: 60%;
  width: auto;
  z-index: 3;
  overflow: hidden;
  background: #e8eef2;
  /* soft seam so map blends into dark middle panel edge */
  box-shadow: inset 1px 0 0 rgba(21, 23, 23, 0.06);
}

#mp-map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 3.2rem; /* leave room for caption bar (fs--16 scale) */
  width: 100%;
  height: auto;
  z-index: 1;
  background: #e8eef2;
}

.mp-map-wash {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(248, 248, 246, 0.12) 0%,
    transparent 12%
  );
}

.mp-map-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  min-height: 3.2rem;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 1rem;
  background: rgba(248, 248, 246, 0.96);
  border-top: 1px solid rgba(115, 54, 53, 0.1);
  font-family: Outfit, adelphi-pe-variable, system-ui, sans-serif;
  /* Match hero .project-description / .fs--16 (1.6rem) */
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3em;
  color: var(--mp-map-ink);
  text-align: center;
}

/* Markers */
.mp-map-marker {
  background: transparent !important;
  border: 0 !important;
}

/* Campus / mall pin + always-visible name */
.mp-place-marker {
  position: relative;
  width: 22rem;
  height: 5.2rem;
  pointer-events: auto;
}

.mp-place-marker__pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.6rem;
  height: 4.4rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #fff;
  border: 0.15rem solid #733635;
  box-shadow: 0 0.3rem 1rem rgba(21, 23, 23, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.mp-place-marker__pin .mp-place-marker__icon {
  transform: rotate(45deg);
  display: block;
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
}

.mp-place-marker__label {
  position: absolute;
  left: 3.4rem;
  top: 0.35rem;
  max-width: 18rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.3rem;
  background: rgba(248, 248, 246, 0.96);
  border: 1px solid rgba(115, 54, 53, 0.14);
  box-shadow: 0 0.15rem 0.45rem rgba(21, 23, 23, 0.08);
  font-family: Outfit, adelphi-pe-variable, system-ui, sans-serif;
  /* Same scale as hero description (.fs--16 / project-description) */
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3em;
  color: #733635;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* MetroPoint wordmark — linear brand red (0% #361E1C → 71% #733635) */
.mp-place-marker__label--project {
  left: 0;
  right: auto;
  top: 1rem;
  bottom: auto;
  transform: none;
  max-width: none;
  width: max-content;
  padding: 0;
  margin: 0;
  text-align: right;
  font-family: "Gilda Display", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  border: 0;
  box-shadow: none;
  background: linear-gradient(
    90deg,
    #361e1c 0%,
    #733635 71%,
    #733635 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: visible;
}

.mp-place-marker__bullet {
  margin-left: 0.02em;
  font-size: 0.72em;
  vertical-align: 0.28em;
}

.mp-map-marker__project {
  position: relative;
  width: 260px;
  height: 100px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mp-map-marker__project .mp-map-marker__logo-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.mp-map-marker__project .mp-map-marker__pin,
.mp-map-marker__project .mp-map-marker__pulse {
  position: absolute;
  /* pin under logo circle */
}

.mp-map-marker__project .mp-map-marker__pin {
  right: 1.15rem;
  top: 3.35rem;
  left: auto;
  margin: 0;
}

.mp-map-marker__project .mp-map-marker__pulse {
  right: 1.55rem;
  top: 4.5rem;
  left: auto;
  margin: 0;
}

.mp-map-marker__project .mp-place-marker__label--project {
  position: relative;
  left: auto;
  top: 1.15rem;
  margin-right: 0.15rem;
}

.mp-map-marker__logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #733635;
  box-shadow: 0 4px 14px rgba(21, 23, 23, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
  padding: 7px;
  box-sizing: border-box;
}

.mp-map-marker__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mp-map-marker__pin {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid #733635;
  margin-top: -2px;
  z-index: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.mp-map-marker__pulse {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: rgba(115, 54, 53, 0.25);
  animation: mp-map-pulse 2.2s ease-out infinite;
  z-index: 0;
}

@keyframes mp-map-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.mp-map-popup {
  font-family: Outfit, system-ui, sans-serif;
  min-width: 11rem;
}

.mp-map-popup strong {
  display: block;
  color: #733635;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.mp-map-popup p {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #363636;
}

.mp-map-popup a {
  font-size: 0.72rem;
  color: #733635;
  text-decoration: underline;
}

.leaflet-container {
  font-family: Outfit, system-ui, sans-serif;
  background: #e8eef2;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 2px 10px rgba(21, 23, 23, 0.12) !important;
}

.leaflet-control-zoom a {
  color: #733635 !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  font-size: 14px !important;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(248, 248, 246, 0.75) !important;
  max-width: 55%;
}

/* Tablet / mobile: map becomes full-width under the static banner strip */
@media only screen and (max-width: 900px) {
  .mp-banner-map-overlay {
    position: relative;
    left: 0 !important;
    right: 0;
    width: 100% !important;
    height: min(58vw, 20rem);
    min-height: 15rem;
  }

  #mp-map {
    top: 0;
    left: 0;
    right: 0;
    bottom: 2.6rem;
  }

  .mp-banner-stack__item--with-map .mp-banner-stack__img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Compact labels so pins stay readable */
  .mp-place-marker__label {
    font-size: 1.05rem !important;
    padding: 0.15rem 0.35rem;
    max-width: 8.5rem;
  }

  .mp-place-marker__label--project {
    font-size: 1.15rem !important;
  }

  .mp-map-caption {
    font-size: 1.1rem !important;
    min-height: 2.5rem;
  }

  .mp-map-marker__project {
    width: 160px !important;
    height: 80px !important;
  }

  .mp-map-marker__logo-wrap {
    width: 40px;
    height: 40px;
  }
}

@media only screen and (min-width: 901px) {
  .mp-banner-stack__item--with-map::after {
    content: none;
  }
}
