/* =========================
   Neighborhood Hero Section
========================= */
section#neighborhood-hero.inner-hero-section {
  --first-inner-hero-bg: var(--first-neighborhood-hero-bg);
}

/* =========================
   Neighborhood Intro Section
========================= */
body section#neighborhood.neighborhood {
  min-height: 0;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--first-white);
  color: #000;
  font-family: var(--first-font-body);
  font-size: 18px;
  line-height: 20.7px;
}

body section#neighborhood::before,
body section#neighborhood .nbp-container::before,
body section#neighborhood .nbp-filter-wrapper::before {
  display: block;
  z-index: 1;
  width: min(700px, calc(100% - 60px));
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  pointer-events: none;
}
body section#neighborhood .nbp-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: static;
}

/* =========================
   Neighborhood Map Section
========================= */
body section#neighborhood .nbp-filter-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  background: var(--first-white);
  text-align: center;
}

body section#neighborhood .nbp-filter-mob-wrap,
body section#neighborhood .nbp-nav-btn {
  display: none;
}
body section#neighborhood .nbp-filter-opt-wrapp {
  width: 100%;
  max-width: none;
  padding: 25px 0;
  background: var(--base-color);
}

body section#neighborhood .nb-map-filter {
  margin: 0;
  padding: 0 30px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  /* color: var(--first-white); */
  opacity: 0.5;
  font-family: var(--first-font-body);
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
}

body section#neighborhood .nb-map-filter i {
  display: none;
}

body section#neighborhood .nb-map-filter::after {
  display: block;
  padding: 15px 0;
  font-size: 14px;
  line-height: 16.1px;
}

/* Active tab: full-strength label with a rule above and below.
   component-common.js toggles .active on .nb-map-filter, so the state hangs off
   that class. ::before and ::after need content to generate a box at all. */
body section#neighborhood .nb-map-filter.active {
  opacity: 1;
}

body section#neighborhood .nb-map-filter.active::before,
body section#neighborhood .nb-map-filter.active::after {
  content: "";
  display: block;
  width: 60px;
  height: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  border-top: 2px solid;
}

body section#neighborhood .nb-map-filter.active::before {
  margin: 0 auto 10px;
}

body section#neighborhood .nb-map-filter.active::after {
  margin: 10px auto 0;
}

body section#neighborhood .map-list-wrapper {
  width: 100%;
  margin: 0;
  padding: 0 0 100px;
  display: flex;
  align-items: stretch;
  background: var(--first-white);
}

body section#neighborhood .map-canvas {
  width: 70%;
  height: 764.59px;
  min-height: 500px;
  padding: 0;
}

body section#neighborhood .map-wrap,
body section#neighborhood .map-wrap iframe {
  width: 100%;
  height: 100%;
}

body section#neighborhood .map-wrap {
  background: url("../assets/images/neighborhood-map-live.png") center center / cover no-repeat;
}

body section#neighborhood .map-wrap iframe {
  opacity: 0;
  pointer-events: none;
}

body section#neighborhood .nbp-filter-places {
  width: 30%;
  min-height: 500px;
  height: 764.59px;
  padding: 0;
  overflow: hidden;
  background: var(--first-white);
}

body section#neighborhood .nbp-list-view-wrap {
  width: calc(100% - 100px);
  height: calc(100% - 95px);
  margin-left: 30px;
  padding-top: 200px;
  background: var(--first-white);
}

body section#neighborhood .nbp-heading-wrap {
  display: flex;
  margin: 0 0 35px;
  align-items: center;
  gap: 10px;
}

body section#neighborhood .nbp-heading-wrap span {
  display: none;
}

body section#neighborhood .nbp-places-heading {
  width: 100%;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}
body section#neighborhood .nbp-places-list {
  height: auto;
  max-height: none;
  margin: 0;
  overflow: visible;
}

body section#neighborhood .nb-places-ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid;
  gap: 0;
}

body section#neighborhood .nb-places-ul li {
  margin: 0;
  padding: 0;
}

body section#neighborhood .nb-places-ul .screen-reader-text {
  display: none;
}

body section#neighborhood .nb-places-ul li a {
  display: block;
  padding: 15px 0 15px 35px;
  position: relative;
  border-top: 1px solid ;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.2px;
  text-decoration: none;
  text-transform: uppercase;
}
body section#neighborhood .nb-places-ul li a::before,
body section#neighborhood .nb-places-ul::after {
  display: block;
  font-size: 14px;
}

/* Shared bullet marker — used by the neighborhood places list, the home
   amenities list and the amenities page. SIZE IS SET ONCE HERE so every page
   matches; each section only positions it (top/left) against its own text.
   Colour comes from the .bg-primary utility on the same span. */
.bullet-span {
  display: block;
  width: 14px;
  height: 14px;
  position: absolute;
  padding: 0;
  border-radius: 50%;
}

/* Tablet and below. */
@media screen and (max-width: 1200px) {
  .bullet-span {
    width: 10px;
    height: 10px;
  }
}

/* Neighborhood places list: .nb-places-ul li a reserves 35px of left padding. */
.nb-places-ul li a .bullet-span {
  top: 23px;
  left: 4px;
}


/* =========================
   Neighborhood Responsive
   Desktop is a 70/30 split of a 764.59px-tall map and list. Both are fixed
   sizes, so everything below needs unwinding.

   Two JS constraints shape this:
   - component-common.js initMobileTabs() hides every .nbp-view-panel but the
     active one below 767, so .nbp-view-toggle has to be visible there or the
     list view becomes unreachable.
   - .nbp-mobile-filters (the category <select>) has no change handler in the
     codebase, so it stays hidden; category filtering keeps using the tab row,
     which scrolls horizontally once it stops fitting.
========================= */
@media screen and (max-width: 1200px) {
  body section#neighborhood .map-canvas,
  body section#neighborhood .nbp-filter-places {
    height: 620px;
  }

  body section#neighborhood .nb-map-filter {
    padding: 0 18px;
    letter-spacing: 2px;
  }

  body section#neighborhood .nbp-list-view-wrap {
    width: calc(100% - 50px);
    margin-left: 20px;
    padding-top: 90px;
  }

  body section#neighborhood .map-list-wrapper {
    padding-bottom: 70px;
  }
}

@media screen and (max-width: 992px) {
  body section#neighborhood .map-list-wrapper {
    flex-direction: column;
    padding-bottom: 60px;
  }

  body section#neighborhood .map-canvas {
    width: 100%;
    height: 440px;
    min-height: 0;
  }

  body section#neighborhood .nbp-filter-places {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  body section#neighborhood .nbp-list-view-wrap {
    width: 100%;
    height: auto;
    margin-left: 0;
    padding: 40px 20px 0;
  }

  /* The tab row no longer fits on one line; let it scroll instead of wrap. */
  body section#neighborhood .nbp-filter-scroll {
    overflow-x: auto;
    scrollbar-width: none;
  }

  body section#neighborhood .nbp-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  body section#neighborhood .nbp-filter-options {
    display: flex;
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  body section#neighborhood .nb-map-filter {
    flex: 0 0 auto;
  }

  body section#neighborhood .nbp-filter-opt-wrapp {
    padding: 18px 0;
  }
}

@media screen and (max-width: 767px) {
  /* initMobileTabs() leaves only one panel visible below this width, so the
     Map/List toggle has to be reachable. The category <select> beside it is
     inert, so it stays hidden. */
  body section#neighborhood .nbp-filter-mob-wrap {
    display: block;
    padding: 20px 15px 0;
  }

  body section#neighborhood .nbp-fliter-dropdown {
    display: none;
  }

  body section#neighborhood .nbp-view-toggle {
    display: inline-flex;
    width: 100%;
    gap: 6px;
  }

  body section#neighborhood .nbp-view-tab {
    width: 50%;
    padding: 12px 10px;
    border: 1px solid var(--base-color);
    background: transparent;
    color: var(--base-color);
    font-family: var(--first-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  body section#neighborhood .nbp-view-tab.active {
    background: var(--base-color);
    color: var(--first-white);
  }

  body section#neighborhood .map-canvas {
    height: 360px;
  }

  body section#neighborhood .nbp-list-view-wrap {
    padding: 30px 15px 0;
  }

  body section#neighborhood .nb-map-filter {
    padding: 0 14px;
    letter-spacing: 1px;
  }

  body section#neighborhood .nb-map-filter::after {
    font-size: 12px;
  }

  body section#neighborhood .nbp-places-heading {
    font-size: 26px;
  }

  body section#neighborhood .map-list-wrapper {
    padding-bottom: 40px;
  }
}
