/* ============================================================
   MPA — Shared office location map and contact ribbon
============================================================ */

.map-zone {
  position: relative;
  height: 490px;
  overflow: visible;
  background: #e9e9e9;
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #e9e9e9;
}

.map-open-link {
  position: absolute;
  z-index: 5;
  left: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.map-open-link:hover {
  transform: translateY(-1px);
}

.map-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, .02),
    rgba(255, 255, 255, 0)
  );
}

.map-overlay-nav {
  position: absolute;
  z-index: 4;
  top: 120px;
  left: 0;
  right: 0;
  min-height: 76px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.map-overlay-nav .navbar {
  min-height: 76px;
}

.contact-ribbon {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: -45px;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--brand-dark), #a70d11);
  color: #fff;
  box-shadow: 0 14px 34px rgba(76, 0, 3, .24);
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.contact-item strong {
  display: block;
  font-size: 17px;
}

.contact-item span,
.contact-item a {
  display: block;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .contact-ribbon {
    grid-template-columns: repeat(2, 1fr);
    bottom: -104px;
  }

  body.has-location-map .site-footer {
    padding-top: 155px;
  }
}

@media (max-width: 760px) {
  .map-zone {
    height: 540px;
  }

  .map-overlay-nav {
    top: 80px;
  }

  .map-open-link {
    left: 18px;
    bottom: 18px;
  }

  .map-overlay-nav .nav-links,
  .map-overlay-nav .nav-cta,
  .map-overlay-nav .menu-toggle {
    display: none;
  }

  .contact-ribbon {
    grid-template-columns: 1fr;
    bottom: -235px;
    padding: 20px;
  }

  body.has-location-map .site-footer {
    padding-top: 285px;
  }
}
