/* ==========================================================================
   Edy London: Contact page (page-contacts.php)
   The "Meet Edy" hero reuses the Home visit hero (.el-hv-hero, home-visit.css)
   and the breadcrumb rules of services-archive.css; testimonials come from
   the shared front page testimonials part. This file adds the contact
   information block with the map. The Marylebone video section has its own
   component stylesheet (marylebone-video.css).
   Breakpoints: 900px (stack), 767px (mobile).
   ========================================================================== */

/* ---------- Contact information + map */
/* Both columns stretch to the same height: the map runs from the top of
   the heading to the bottom of the "Open" row. */
.el-contact-info__grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: stretch;
}

.el-contact-info .el-h2 {
    margin-bottom: 20px;
}

.el-contact-info__lead {
    margin-bottom: 36px;
}

.el-contact-info__list {
    margin: 0;
    border-top: 1px solid var(--el-line);
}

.el-contact-info__list > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--el-line);
}

.el-contact-info__list dt {
    font-size: 14px;
    font-weight: 600;
    color: var(--el-ink);
}

.el-contact-info__list dd {
    margin: 0;
    color: var(--el-text);
}

/* Phone / email: no underline, colour change on hover like the other links. */
.el-contact-info__link {
    color: var(--el-ink);
    text-decoration: none;
    transition: color .2s;
}

.el-contact-info__link:hover {
    color: var(--el-sage);
}

.el-contact-info__map {
    min-height: 320px;
    overflow: hidden;
    border: 1px solid var(--el-line);
    background: #fff;
}

.el-contact-info__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Stack below 900px */
@media (max-width: 900px) {
    .el-contact-info__grid {
        grid-template-columns: 1fr;
    }

    /* Stacked: the map gets its own proportions again. */
    .el-contact-info__map {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

/* ---------- Mobile */
@media (max-width: 767px) {
    .el-contact-info__list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}






/* =========================================================
   CONTACT MAP - CUSTOM EDY LONDON PIN
   Branded black map marker over the default Google marker.
   ========================================================= */
.el-contact-info__map iframe {
  pointer-events: none;
}
.el-contact-info__map {
  position: relative;
}


.el-contact-info__custom-pin {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -100%);
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.el-contact-info__custom-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #40372c;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.el-contact-info__pin-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  line-height: 1;
  transform: translateY(-2px);
}

.el-contact-info__pin-brand strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.el-contact-info__pin-brand small {
  display: block;
  margin-top: 2px;
  font-size: 5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .el-contact-info__custom-pin {
    width: 68px;
    height: 68px;
  }

  .el-contact-info__pin-brand {
    transform: translateY(-1px);
  }

  .el-contact-info__pin-brand strong {
    font-size: 8px;
  }

  .el-contact-info__pin-brand small {
    margin-top: 2px;
    font-size: 4.5px;
    letter-spacing: 0.1em;
  }
}