/* Brookewood location map */
.location-map-shell {
  display: grid;
  overflow: hidden;
  grid-template-columns: 1fr;
  border: 1px solid rgba(23, 32, 25, 0.12);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 32px 80px rgba(11, 27, 20, 0.1);
}

.location-map-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.4rem, 6vw, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 110% -10%, rgba(168, 189, 99, 0.2), transparent 38%),
    var(--paper);
}

.location-map-copy::after {
  position: absolute;
  right: -6rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(96, 122, 70, 0.13);
  border-radius: 46% 54% 50% 50%;
  content: "";
  box-shadow: 0 0 0 2rem rgba(96, 122, 70, 0.025), 0 0 0 4rem rgba(96, 122, 70, 0.018);
}

.location-map-copy .eyebrow {
  position: relative;
  z-index: 1;
  color: var(--moss);
}

.location-map-copy h2 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.location-map-copy > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 510px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.location-map-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-map-meta div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
}

.location-map-meta span {
  color: var(--moss);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-map-meta strong {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.location-map-copy .button {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.location-map-frame {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--forest-900);
}

.location-map-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(16, 39, 29, 0.12);
}

.location-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 300ms ease;
}

.location-map-frame:hover iframe,
.location-map-frame:focus-within iframe {
  filter: saturate(1) contrast(1);
}

.location-map-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(11, 27, 20, 0.85);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.location-map-caption span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(168, 189, 99, 0.14);
}

@media (min-width: 900px) {
  .location-map-shell {
    min-height: 570px;
    grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  }

  .location-map-frame,
  .location-map-frame iframe {
    min-height: 570px;
  }
}

@media (min-width: 1180px) {
  .location-map-shell {
    min-height: 630px;
    grid-template-columns: minmax(420px, 0.68fr) minmax(0, 1.32fr);
    border-radius: 0 0 4rem 4rem;
  }

  .location-map-copy {
    padding: clamp(4rem, 5.5vw, 6.25rem);
  }

  .location-map-copy h2 {
    font-size: clamp(4.2rem, 4.8vw, 5.6rem);
  }

  .location-map-frame,
  .location-map-frame iframe {
    min-height: 630px;
  }

  .location-map-caption {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 640px) {
  .location-map-shell {
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .location-map-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .location-map-meta div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .location-map-copy .button {
    width: 100%;
  }

  .location-map-frame,
  .location-map-frame iframe {
    min-height: 340px;
  }

  .location-map-caption {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    justify-content: center;
  }
}
