/* Shared Location & Nearby Places component
   Content hooks are exposed through data-locality-* and data-field attributes
   so a future CMS/admin layer can update the section without changing layout. */
.locality-section-block {
  background: var(--ivory, #faf8f4);
  padding-block: clamp(48px, 5.5vw, 76px);
}

/* Property detail placement: the component lives directly after Floor Plan
   inside the main content column, while the sticky enquiry card stays at right. */
.detail-content > .locality-section-block {
  background: transparent;
  padding-block: 0;
}

.detail-content > .locality-section-block > .container {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.locality-section-block + .section {
  padding-top: clamp(64px, 7vw, 96px);
}

.locality-section-heading {
  color: var(--text, #18211e);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0 0 26px;
}

.locality-context-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e1e7e3);
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  min-height: 402px;
  overflow: hidden;
}

.locality-map-visual {
  background-color: #dfe9e2;
  background-image:
    linear-gradient(90deg, transparent 18%, #faf8f4 18%, #faf8f4 21%, transparent 21%, transparent 38%, #faf8f4 38%, #faf8f4 41%, transparent 41%, transparent 59%, #faf8f4 59%, #faf8f4 62%, transparent 62%, transparent 79%, #faf8f4 79%, #faf8f4 82%, transparent 82%),
    linear-gradient(0deg, transparent 17%, #faf8f4 17%, #faf8f4 20%, transparent 20%, transparent 39%, #faf8f4 39%, #faf8f4 42%, transparent 42%, transparent 61%, #faf8f4 61%, #faf8f4 64%, transparent 64%, transparent 82%, #faf8f4 82%, #faf8f4 85%, transparent 85%);
  border-right: 1px solid var(--border, #e1e7e3);
  min-height: 402px;
  overflow: hidden;
  position: relative;
}

.locality-road {
  background: #faf8f4;
  border: 1px solid #cfd9d2;
  height: 44px;
  left: -14%;
  position: absolute;
  top: 46%;
  width: 135%;
}

.locality-road::after {
  background: #faf8f4;
  border: 1px solid #cfd9d2;
  content: "";
  height: 42px;
  left: 14%;
  position: absolute;
  top: -150px;
  transform: rotate(73deg);
  width: 96%;
}

.locality-road-one {
  transform: rotate(-29deg);
}

.locality-road-two {
  left: -28%;
  top: 74%;
  transform: rotate(23deg);
  width: 154%;
}

.locality-map-pin {
  align-items: center;
  background: var(--forest, #163a32);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(22, 58, 50, 0.14);
  color: #fff;
  display: flex;
  height: 50px;
  justify-content: center;
  left: 52%;
  position: absolute;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 50px;
  z-index: 2;
}

.locality-map-pin svg {
  height: 22px;
  width: 22px;
}

.locality-map-name {
  background: #fff;
  border-radius: 10px;
  bottom: 25%;
  color: var(--forest, #163a32);
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  left: 12%;
  padding: 11px 18px;
  position: absolute;
  right: 12%;
  text-align: center;
  z-index: 2;
}

.locality-context-content {
  align-self: center;
  padding: 28px;
}

.locality-context-label {
  align-items: center;
  color: var(--emerald, #2e7d65);
  display: flex;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0.18em;
  line-height: 1.3;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.locality-context-label::before {
  background: currentColor;
  content: "";
  height: 2px;
  width: 30px;
}

.locality-context-content h3 {
  color: var(--text, #18211e);
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.locality-context-content > p {
  color: var(--muted, #68736e);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 6px;
}

.locality-nearby-list {
  color: var(--muted, #68736e);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  list-style: disc;
  margin: 0 0 22px;
  padding-left: 1.45rem;
}

.locality-nearby-list li {
  line-height: 1.55;
  margin-top: 7px;
  padding-left: 4px;
}

.locality-map-cta {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border, #e1e7e3);
  border-radius: 12px;
  color: var(--forest, #163a32);
  display: inline-flex;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  line-height: 1.3;
  min-height: 52px;
  padding: 11px 20px;
  position: relative;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.locality-map-cta > span {
  transition: transform 0.25s;
}

.locality-map-cta:hover {
  border-color: var(--emerald, #2e7d65);
  box-shadow: rgba(17, 55, 47, 0.16) 0 16px 34px;
  transform: translateY(-3px) scale(0.975);
}

.locality-map-cta:hover > span {
  transform: translateX(4px);
}

.locality-map-cta:active {
  transform: scale(0.98);
}

.locality-map-cta:focus-visible {
  outline: 3px solid rgba(46, 125, 101, 0.28);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .locality-context-card {
    grid-template-columns: 1fr;
  }

  .locality-map-visual {
    border-bottom: 1px solid var(--border, #e1e7e3);
    border-right: 0;
    min-height: 230px;
  }
}

@media (max-width: 560px) {
  .locality-section-block {
    padding-block: 42px;
  }

  .detail-content > .locality-section-block {
    padding-block: 0;
  }

  .locality-section-heading {
    font-size: clamp(1.85rem, 8vw, 2.15rem);
    margin-bottom: 24px;
  }

  .locality-map-visual {
    min-height: 210px;
  }

  .locality-map-pin {
    height: 50px;
    width: 50px;
  }

  .locality-map-name {
    bottom: 20%;
    left: 8%;
    right: 8%;
  }

  .locality-context-content {
    padding: 26px 20px 28px;
  }

  .locality-context-label {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
  }

  .locality-context-content h3 {
    font-size: 1.45rem;
  }

  .locality-map-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .locality-map-cta {
    transition: none;
  }
}
