/* =========================================
   NEIGHBORHOODS PAGE
========================================= */

.neighborhoods-page {
  background: #fff;
  color: #242424;
}

.neighborhoods-page *,
.neighborhoods-page *::before,
.neighborhoods-page *::after {
  box-sizing: border-box;
}

.neighborhood-section {
  padding: 54px 0 58px;
}

.neighborhood-beige {
  background: #eeece1;
}

.neighborhood-white {
  background: #fff;
}

.neighborhood-container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #e7e1d7;
  border-radius: 18px;
  box-shadow: 0 6px 26px rgba(27, 42, 58, .06);
}

/* =========================================
   MAIN PAGE HEADING
========================================= */

.neighborhood-section:first-of-type > .neighborhood-page-heading {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto 28px !important;
  padding: 0 20px !important;
  text-align: center !important;
  position: static !important;
  transform: none !important;
  float: none !important;
}

.neighborhood-section:first-of-type > .neighborhood-page-heading h1 {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #202124;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center !important;
  text-indent: 0 !important;
  letter-spacing: normal !important;
  transform: none !important;
}

/* =========================================
   INTRODUCTION
========================================= */

.neighborhood-intro {
  min-width: 0;
  padding: 0 12px;
  margin: 0 auto 26px;
  text-align: center;
}

.neighborhood-intro-featured {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 26px;
  padding: 0 12px;
  text-align: center;
}

.neighborhood-intro h2 {
  margin: 0 0 16px;
  color: #15577a;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.neighborhood-intro-featured h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.neighborhood-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: #55565d;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
}

/* =========================================
   CAROUSEL
   Fixed dimensions prevent layout jumping.
========================================= */

.neighborhood-feature,
.neighborhood-featured-collage {
  display: block;
  width: 100%;
  margin: 0 auto 30px;
}

.neighborhood-featured-collage .neighborhood-collage {
  position: relative;
  width: 100% !important;
  max-width: 900px;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #f0eee8;
  isolation: isolate;
}

.neighborhood-collage .collage-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}

.neighborhood-collage .collage-image.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

/* =========================================
   PREVIOUS / NEXT BUTTONS
========================================= */

.neighborhoods-page .carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #173d52;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(0,0,0,.14);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease,
              color .2s ease, transform .2s ease;
}

.neighborhoods-page .carousel-previous {
  left: 16px;
}

.neighborhoods-page .carousel-next {
  right: 16px;
}

.neighborhoods-page .neighborhood-collage:hover .carousel-arrow,
.neighborhoods-page .neighborhood-collage:focus-within .carousel-arrow {
  opacity: 1;
}

.neighborhoods-page .carousel-arrow:hover {
  background: #15577a;
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

/* =========================================
   PLAY / PAUSE BUTTON
========================================= */

.neighborhoods-page .carousel-play-pause {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #173d52;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(0,0,0,.14);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .2s ease, color .2s ease,
              transform .2s ease;
}

.neighborhoods-page .carousel-play-pause:hover {
  background: #15577a;
  color: #fff;
  transform: scale(1.08);
}

/* =========================================
   CAROUSEL DOTS
========================================= */

.neighborhoods-page .neighborhood-carousel-controls {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100%;
  margin: 14px auto 0 !important;
  padding: 0 !important;
}

.neighborhoods-page .neighborhood-carousel-controls button,
.neighborhoods-page .neighborhood-carousel-controls button.is-active {
  all: unset !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 9px !important;
  height: 9px !important;
  flex: 0 0 9px !important;
  border-radius: 50% !important;
  background: #c7c2b7 !important;
  cursor: pointer !important;
}

.neighborhoods-page .neighborhood-carousel-controls button.is-active {
  background: #15577a !important;
}

.neighborhood-carousel-controls button:focus-visible,
.carousel-arrow:focus-visible,
.carousel-play-pause:focus-visible {
  outline: 2px solid #15577a;
  outline-offset: 4px;
}

/* =========================================
   WALKABILITY AND DESCRIPTION
========================================= */

.neighborhood-details {
  position: relative;
  margin-top: 0;
  text-align: center;
}

.walkability {
  margin: 0 0 9px;
  color: #202124;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.neighborhood-description {
  max-width: 960px;
  margin: 0 auto 26px;
  color: #343434;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* =========================================
   SUPPORTING IMAGE GALLERY
========================================= */

.neighborhood-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 26px;
}

.neighborhood-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

/* =========================================
   LEGACY GOOGLE MAP
========================================= */

.neighborhood-map {
  width: min(820px, 100%);
  height: 300px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e7e1d7;
  border-radius: 12px;
}

.neighborhood-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
  .neighborhood-section {
    padding: 42px 0 46px;
  }

  .neighborhood-container {
    width: calc(100% - 36px);
    padding: 24px;
  }

  .neighborhood-intro {
    margin-bottom: 22px;
  }

  .neighborhood-description {
    font-size: .98rem;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 560px) {
  .neighborhood-section {
    padding: 30px 0 34px;
  }

  .neighborhood-container {
    width: calc(100% - 24px);
    padding: 16px 13px;
    border-radius: 14px;
  }

  .neighborhood-section:first-of-type > .neighborhood-page-heading {
    margin-bottom: 22px !important;
    padding: 0 14px !important;
  }

  .neighborhood-section:first-of-type > .neighborhood-page-heading h1 {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .neighborhood-intro,
  .neighborhood-intro-featured {
    padding: 0 3px;
    margin-bottom: 20px;
  }

  .neighborhood-intro h2,
  .neighborhood-intro-featured h2 {
    margin-bottom: 12px;
    font-size: 1.55rem;
  }

  .neighborhood-intro p {
    font-size: .94rem;
    line-height: 1.65;
  }

  .neighborhood-feature,
  .neighborhood-featured-collage {
    margin-bottom: 22px;
  }

  .neighborhood-featured-collage .neighborhood-collage {
    aspect-ratio: 4 / 3 !important;
    border-radius: 11px;
  }

  .neighborhood-collage .collage-image {
    border-radius: 11px;
  }

  .neighborhoods-page .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 23px;
    opacity: 1;
  }

  .neighborhoods-page .carousel-previous {
    left: 9px;
  }

  .neighborhoods-page .carousel-next {
    right: 9px;
  }

  .neighborhoods-page .carousel-play-pause {
    right: 10px;
    bottom: 10px;
    width: 33px;
    height: 33px;
  }

  .neighborhood-description {
    margin-bottom: 20px;
    font-size: .94rem;
    line-height: 1.65;
  }

  .neighborhood-gallery {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 20px;
  }

  .neighborhood-gallery img {
    aspect-ratio: 1.6 / 1;
  }

  .neighborhood-map {
    height: 250px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 360px) {
  .neighborhood-container {
    width: calc(100% - 18px);
    padding: 13px 10px;
  }

  .neighborhood-intro h2,
  .neighborhood-intro-featured h2 {
    font-size: 1.4rem;
  }

  .neighborhood-map {
    height: 225px;
  }
}

/* =========================================
   TOUCHSCREEN
========================================= */

@media (hover: none) {
  .neighborhoods-page .carousel-arrow {
    opacity: 1;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  .neighborhood-collage .collage-image,
  .neighborhoods-page .carousel-arrow,
  .neighborhoods-page .carousel-play-pause {
    transition: none;
  }
}

/* =========================================
   DRAMATIC PREMIUM MAP CARDS
   Charcoal, warm copper and editorial styling
========================================= */

.neighborhoods-page .neighborhood-map-card {
  width: 100%;
  max-width: 900px;
  margin: 42px auto 12px;
  overflow: hidden;
  background: #20282b;
  border: 1px solid rgba(190, 145, 105, .48);
  border-radius: 4px;
  box-shadow: 0 22px 48px rgba(20, 25, 27, .19);
  transition: box-shadow .25s ease, transform .25s ease;
}

.neighborhoods-page .neighborhood-map-card:hover {
  box-shadow: 0 27px 58px rgba(20, 25, 27, .25);
  transform: translateY(-2px);
}

.neighborhoods-page .neighborhood-map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 38px 30px;
  color: #f4eee5;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(189, 145, 105, .17), transparent 42%),
    linear-gradient(118deg, #182226 0%, #263033 58%, #303532 100%);
  border-bottom: 1px solid rgba(196, 154, 114, .35);
}

.neighborhoods-page .neighborhood-map-heading > div {
  min-width: 0;
}

.neighborhoods-page .map-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: #c49a72;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.5;
  text-transform: uppercase;
}

.neighborhoods-page .neighborhood-map-heading h3 {
  margin: 0;
  color: #f5eee5;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.025em;
}

.neighborhoods-page .neighborhood-map-heading p {
  max-width: 540px;
  margin: 13px 0 0;
  color: rgba(245, 238, 229, .76);
  font-size: .9rem;
  line-height: 1.75;
}

.neighborhoods-page .map-location-label {
  flex: 0 0 auto;
  padding: 8px 0 3px 16px;
  border-left: 1px solid rgba(196, 154, 114, .55);
  color: #d9c5b0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.neighborhoods-page .neighborhood-map-frame {
  position: relative;
  width: 100%;
  height: 390px;
  overflow: hidden;
  padding: 10px;
  background: #20282b;
}

.neighborhoods-page .neighborhood-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.82) contrast(1.04);
}

.neighborhoods-page .neighborhood-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 30px;
  background: #20282b;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.neighborhoods-page .neighborhood-map-footer p {
  margin: 0;
  color: rgba(245, 238, 229, .72);
  font-size: .84rem;
  line-height: 1.6;
}

.neighborhoods-page .map-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 19px;
  border: 1px solid #c49a72;
  border-radius: 0;
  background: #c49a72;
  color: #20282b;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.neighborhoods-page .map-external-link:hover {
  background: #e0bd9d;
  border-color: #e0bd9d;
  color: #182226;
  transform: translateY(-2px);
}

.neighborhoods-page .map-external-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neighborhoods-page .neighborhood-map-card-featured {
  margin-top: 44px;
  box-shadow: 0 26px 58px rgba(20, 25, 27, .24);
}

/* =========================================
   PREMIUM MAP RESPONSIVE STYLING
========================================= */

@media (max-width: 650px) {
  .neighborhoods-page .neighborhood-map-card {
    margin-top: 28px;
    border-radius: 3px;
  }

  .neighborhoods-page .neighborhood-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 27px 23px 24px;
  }

  .neighborhoods-page .neighborhood-map-heading h3 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .neighborhoods-page .map-location-label {
    padding: 0;
    border-left: 0;
    text-align: left;
  }

  .neighborhoods-page .neighborhood-map-frame {
    height: 300px;
    padding: 7px;
  }

  .neighborhoods-page .neighborhood-map-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 23px;
  }

  .neighborhoods-page .map-external-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neighborhoods-page .neighborhood-map-card,
  .neighborhoods-page .map-external-link {
    transition: none;
  }
}