.location-hero {
  position: relative;
  overflow: hidden;
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 44%, rgba(246,250,237,0.96) 100%),
    repeating-linear-gradient(135deg, rgba(141,207,0,0.06) 0 1px, transparent 1px 25px);
  border-bottom: 1px solid var(--line);
}

.location-hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 62%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(141,207,0,0.1), transparent 68%);
  pointer-events: none;
}

.location-watermark {
  position: absolute;
  top: 42px;
  right: -26px;
  color: rgba(141,207,0,0.065);
  font-size: clamp(54px, 7.2vw, 118px);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 0.9;
  pointer-events: none;
  white-space: nowrap;
}

.location-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(52px, 6vw, 82px);
  align-items: center;
  padding-block: 34px;
}

.location-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-size: clamp(31px, 3.2vw, 47px);
}

.location-hero-copy .section-lead {
  max-width: 560px;
  margin-bottom: 17px;
  font-size: 14px;
  line-height: 1.65;
}

.location-hero-copy .eyebrow {
  margin-bottom: 13px;
}

.location-hero-copy .feature-list li {
  min-height: 31px;
  font-size: 10px;
}

.location-hero-image,
.location-image {
  position: relative;
  margin: 0;
}

.location-hero-image {
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.location-hero-image::before {
  content: "";
  position: absolute;
  top: 42px;
  left: -13px;
  width: 13px;
  height: 42%;
  background: var(--accent);
}

.location-hero-image::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -7px;
  width: 36%;
  height: 7px;
  background: var(--accent);
}

.location-hero-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.location-hero-image figcaption {
  position: absolute;
  right: 30px;
  bottom: 29px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.92);
  color: #4f5b66;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-hero-image figcaption span {
  color: var(--accent);
}

.location-stats {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding-top: 24px;
}

.location-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.location-stats article {
  min-height: 112px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid rgba(141,207,0,0.2);
  box-shadow: var(--shadow-sm);
}

.location-stats strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.location-stats span {
  display: block;
  margin-top: 11px;
  color: #5a655d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.location-stories {
  padding-block: 106px 34px;
  background: #fff;
}

.location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(52px, 6vw, 82px);
  align-items: center;
  margin-bottom: 96px;
}

.location-row-reverse .location-image {
  order: 2;
}

.location-row-reverse .location-copy {
  order: 1;
}

.location-image {
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}

.location-image::before {
  content: "";
  position: absolute;
  inset: 15px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.62);
  pointer-events: none;
}

.location-image::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 38%;
  height: 7px;
  background: var(--accent);
}

.location-image img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.location-number {
  display: block;
  margin-bottom: -11px;
  color: rgba(141,207,0,0.17);
  font-size: 75px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.location-copy .split-title {
  margin-bottom: 25px;
  font-size: clamp(28px, 3.15vw, 43px);
}

.location-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.location-benefits {
  position: relative;
  overflow: hidden;
  padding-block: 88px 96px;
  background:
    linear-gradient(110deg, rgba(245,250,234,0.92), #fff 70%),
    repeating-linear-gradient(135deg, rgba(141,207,0,0.055) 0 1px, transparent 1px 23px);
  border-block: 1px solid var(--line);
}

.location-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.location-benefits-grid article {
  min-height: 220px;
  padding: 27px 23px;
  background: #fff;
  border: 1px solid rgba(141,207,0,0.2);
  box-shadow: 0 12px 29px rgba(15,24,10,0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.location-benefits-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(141,207,0,0.44);
  box-shadow: var(--shadow-sm);
}

.location-benefits-grid article > span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.location-benefits-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-transform: uppercase;
}

.location-benefits-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.location-map-section {
  position: relative;
  overflow: hidden;
  padding-block: 105px 146px;
  background:
    linear-gradient(105deg, rgba(255,255,255,0.99), rgba(247,251,239,0.96)),
    repeating-linear-gradient(135deg, rgba(141,207,0,0.045) 0 1px, transparent 1px 28px);
}

.location-map-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 50px;
  align-items: end;
  margin-bottom: 28px;
}

.location-map-head .split-title {
  font-size: clamp(34px, 4vw, 54px);
}

.location-address {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.location-address small {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.location-address strong {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.location-address .button {
  min-height: 43px;
  padding-inline: 17px;
  font-size: 10px;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.map-filters button {
  min-height: 39px;
  padding-inline: 16px;
  background: #fff;
  border: 1px solid rgba(141,207,0,0.3);
  color: #536057;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.map-filters button:hover,
.map-filters button.is-active {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 9px 20px rgba(141,207,0,0.22);
}

.location-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
  gap: 23px;
}

.location-map-card {
  position: relative;
  min-height: 650px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.location-map-card::before {
  content: "";
  position: absolute;
  top: 42px;
  left: -12px;
  z-index: 500;
  width: 12px;
  height: 190px;
  background: var(--accent);
}

.location-map-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -7px;
  z-index: 500;
  width: 250px;
  height: 7px;
  background: var(--accent);
}

#rajparkMap {
  width: 100%;
  height: 618px;
  background: #edf4e6;
}

#rajparkMap .leaflet-tile,
#rajparkMap .leaflet-marker-icon,
#rajparkMap .leaflet-marker-shadow {
  max-width: none !important;
  max-height: none !important;
}

.map-fallback {
  display: grid;
  place-items: center;
  min-height: 100%;
  margin: 0;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.map-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 8px 18px rgba(0,0,0,0.23);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-45deg);
}

.map-pin span {
  transform: rotate(45deg);
}

.map-pin.is-home {
  width: 48px;
  height: 48px;
  background: #111;
  border-color: var(--accent);
  color: var(--accent);
  font-size: 15px;
}

.location-poi-list {
  display: grid;
  gap: 9px;
  align-content: start;
  max-height: 650px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: var(--accent) #edf1e9;
  scrollbar-width: thin;
}

.poi-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(141,207,0,0.18);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.poi-card:hover,
.poi-card.is-focused {
  transform: translateY(-2px);
  border-color: rgba(141,207,0,0.48);
  box-shadow: 0 12px 25px rgba(15,24,10,0.08);
}

.poi-card[hidden] {
  display: none;
}

.poi-type {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.poi-card h3 {
  margin: 0 0 5px;
  font-size: 12px;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.poi-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 0;
}

.map-popup strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
}

.map-popup span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1020px) {
  .location-hero {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .location-hero-grid,
  .location-row,
  .location-map-head,
  .location-map-layout {
    grid-template-columns: 1fr;
  }

  .location-row-reverse .location-image,
  .location-row-reverse .location-copy {
    order: initial;
  }

  .location-stats {
    margin-top: 0;
  }

  .location-stats-grid,
  .location-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-address {
    max-width: 430px;
  }

  .location-poi-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  #rajparkMap {
    height: 520px;
  }

  .location-map-card {
    min-height: 552px;
  }
}

@media (max-width: 640px) {
  .location-hero {
    min-height: auto;
  }

  .location-hero-grid {
    gap: 42px;
    padding-block: 56px 70px;
  }

  .location-watermark {
    top: 24px;
    right: -150px;
    font-size: 52px;
  }

  .location-title {
    font-size: clamp(31px, 9vw, 44px);
  }

  .location-hero-image {
    padding: 10px;
  }

  .location-hero-image::before {
    display: none;
  }

  .location-hero-image figcaption {
    right: 20px;
    bottom: 20px;
    left: 20px;
    text-align: center;
  }

  .location-stats-grid,
  .location-benefits-grid,
  .location-poi-list {
    grid-template-columns: 1fr;
  }

  .location-stories {
    padding-block: 72px 16px;
  }

  .location-row {
    gap: 34px;
    margin-bottom: 70px;
  }

  .location-number {
    font-size: 58px;
  }

  .location-copy .split-title {
    font-size: clamp(27px, 8vw, 38px);
  }

  .location-benefits {
    padding-block: 68px 74px;
  }

  .location-map-section {
    padding-block: 72px 116px;
  }

  .map-filters button,
  .location-address .button {
    width: 100%;
  }

  .location-map-card {
    min-height: 422px;
    padding: 10px;
  }

  .location-map-card::before {
    display: none;
  }

  #rajparkMap {
    height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-benefits-grid article,
  .map-filters button,
  .poi-card {
    transition: none;
  }
}
