﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

/* ============================================================
   community.css — Single Community Page Styles
   Design: Cormorant Garamond (headings) / Manrope (body/UI)
   Theme: Dark (#0A0A0A) with white/neutral accents
   ============================================================ */

.crighton-page .section-header__heading,
.section-header__heading,
.community-hero__title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: .02em !important;
}
.section-header__heading em,
.crighton-page .section-header__heading em {
  font-style: normal !important;
  font-weight: 400 !important;
  font-family: 'Montserrat', sans-serif !important;
}

html, body { margin: 0 !important; padding: 0 !important; overflow-x: hidden; max-width: 100%; }
/* line-height: 0 on main collapses the height of whitespace text nodes before the hero to zero */
.community-page main { display: flex; flex-direction: column; line-height: 0; }
/* restore line-height for every section so their text renders normally */
.community-page main > * { line-height: normal; }
.community-hero { overflow: hidden; }
.YLOPO_resultsWidget { overflow: visible !important; }

html body.community-page .nav__link { font-size: .88rem !important; letter-spacing: .1em !important; }


/* ============================================================
   1. COMMUNITY HERO
   ============================================================ */

.community-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.community-hero__topbar {
  width: 100%;
  flex-shrink: 0;
}

.community-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.community-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.68) 100%
  );
}

.community-hero__overlay2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.30) 0%,
    transparent 65%
  );
}

.community-hero__topbar {
  position: relative;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  background: transparent;
}

.community-hero__back {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.5);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.community-hero__back::before {
  content: '←';
  color: rgba(255,255,255,.6);
}

.community-hero__logo {
  height: 28px;
  filter: brightness(0) invert(1);
}

.community-hero__content {
  position: relative;
  z-index: 5;
  padding: clamp(4rem, 7vw, 8rem) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: flex-end;
  gap: 3rem;
  width: 100%;
}

.community-hero__left {
  max-width: 700px;
}

.community-hero__breadcrumb {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.community-hero__breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
}

.crighton-page .community-hero__h1,
.community-hero__h1 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 64px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.crighton-page .community-hero__h1 em,
.community-hero__h1 em {
  font-family: 'Montserrat', sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  color: #fff;
}

.community-hero__sub {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 500px;
  margin-bottom: 2rem;
}

.community-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.community-hero__stats {
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255,255,255, 0.18);
  min-width: 200px;
}

.community-hero__stat {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255, 0.1);
}

.community-hero__stat:last-child {
  border-bottom: none;
}

.community-hero__stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  line-height: 1;
}

.community-hero__stat-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.3);
  margin-top: 4px;
}


/* ============================================================
   2. QUICK STATS BAR
   ============================================================ */

.community-stats-bar {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.community-stats-bar__item {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
}

.community-stats-bar__item + .community-stats-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,255,255, 0.2) 50%,
    transparent 100%
  );
}

.community-stats-bar__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 500;
  color: rgba(255,255,255,.6);
  letter-spacing: -0.03em;
  line-height: 1;
}

.community-stats-bar__label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.3);
  margin-top: 0.4rem;
}


/* ============================================================
   3. COMMUNITY OVERVIEW
   ============================================================ */

.community-overview {
  padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 5vw, 5rem);
  background: #0A0A0A;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.community-overview__body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(248, 246, 242, 0.55);
}

.community-overview__glance {
  background: #111;
  border: 1px solid rgba(255,255,255, 0.12);
  padding: 2rem;
}

.community-overview__glance-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
}

.glance-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
}

.glance-label {
  font-weight: 500;
  color: rgba(248, 246, 242, 0.35);
}

.glance-value {
  font-weight: 600;
  color: #F8F6F2;
  text-align: right;
}


/* ============================================================
   4. COMMUNITY LIFESTYLE
   ============================================================ */

.community-lifestyle {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: #111;
}

.community-lifestyle__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.lifestyle-card {
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-top: 1.5px solid rgba(255,255,255, 0.22);
  padding: 2rem;
}

.lifestyle-card__icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.lifestyle-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #F8F6F2;
  margin-bottom: 0.65rem;
}

.lifestyle-card__body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(248, 246, 242, 0.45);
}


/* ============================================================
   5. REAL ESTATE MARKET
   ============================================================ */

.community-market {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: #0A0A0A;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.community-market__img {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.community-market__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.85s;
  display: block;
}

.community-market__img:hover img {
  transform: scale(1.04);
}

.community-market__price-range {
  background: #111;
  border-left: 3px solid rgba(255,255,255,.4);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}

.price-range__label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.35);
  margin-bottom: 0.4rem;
}

.price-range__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}


/* ============================================================
   6. ENCLAVES / SUB-NEIGHBORHOODS
   ============================================================ */

.community-enclaves {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: #111;
}

.community-enclaves__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: rgba(255,255,255, 0.08);
}

.enclave-item {
  background: #111;
  padding: 1.75rem 2rem;
  transition: background 0.2s;
}

.enclave-item:hover {
  background: #0A0A0A;
}

.enclave-item__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #F8F6F2;
  margin-bottom: 0.35rem;
}

.enclave-item__price {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}

.enclave-item__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(248, 246, 242, 0.35);
  margin-top: 0.25rem;
}


/* ============================================================
   7. AMENITIES
   ============================================================ */

.community-amenities {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: #0A0A0A;
}

.community-amenities__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.amenity-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.amenity-item__icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.amenity-item__icon:empty::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 246, 242, 0.45);
}

.amenity-item__title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #F8F6F2;
  margin-bottom: 0.3rem;
}

.amenity-item__body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(248, 246, 242, 0.4);
}


/* ============================================================
   8. SCHOOLS
   ============================================================ */

.community-schools {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: #111;
}

.schools-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.schools-table th {
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.3);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255, 0.15);
}

.schools-table td {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(248, 246, 242, 0.65);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.schools-table tr:hover td {
  background: rgba(255,255,255, 0.04);
  color: #F8F6F2;
}

.schools-tabs {
  display: flex;
  gap: 0;
  margin-top: 2.5rem;
  margin-bottom: 1.75rem;
}

.schools-tab-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 1px solid #0A0A0A;
  background: transparent;
  color: rgba(0,0,0,0.4);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.schools-tab-btn:first-child {
  border-right: none;
}

.schools-tab-btn--active {
  background: #0A0A0A;
  color: #F8F6F2;
}

.schools-tab-btn:hover:not(.schools-tab-btn--active) {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.65);
}

.schools-tabs + .schools-table {
  margin-top: 0;
}


/* ============================================================
   9. MAP PLACEHOLDER
   ============================================================ */

.community-map-placeholder {
  background: #080808;
  border: 1px solid rgba(255,255,255, 0.12);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.community-map-placeholder__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(248, 246, 242, 0.35);
}

.community-map-placeholder__sub {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.2);
}


/* ============================================================
   10. NEARBY COMMUNITIES
   ============================================================ */

.community-nearby {
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  background: #0A0A0A;
}

.community-nearby__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.nearby-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.nearby-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.nearby-card:hover .nearby-card__img {
  transform: scale(1.06);
}

.nearby-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

.nearby-card__name {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #F8F6F2;
}

.nearby-card__sub {
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.4);
}


/* ============================================================
   11. COMMUNITY CTA
   ============================================================ */

.community-cta {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.community-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.community-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 1;
}

.community-cta__content {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  text-align: center;
  width: 100%;
}

.crighton-page .community-cta__h2,
.community-cta__h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400 !important;
  color: #F8F6F2;
  letter-spacing: -.02em;
}

.community-cta__h2 em {
  font-style: normal;
  color: inherit;
}

.community-cta__sub {
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(248, 246, 242, 0.5);
  max-width: 480px;
  margin: 1.5rem auto 0;
}

.community-cta__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}


/* ============================================================
   12. RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .community-overview {
    grid-template-columns: 1fr;
  }

  .community-market {
    grid-template-columns: 1fr;
  }

  .community-enclaves__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .community-nearby__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-lifestyle__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .community-hero__content {
    grid-template-columns: 1fr;
  }

  .community-hero__stats {
    display: flex;
    flex-wrap: wrap;
    min-width: unset;
    width: 100%;
  }

  .community-hero__stat {
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .community-nearby__grid {
    grid-template-columns: 1fr;
  }

  .community-stats-bar {
    grid-template-columns: 1fr;
  }

  .community-lifestyle__grid { grid-template-columns: 1fr; }
  .community-amenities__list { grid-template-columns: 1fr; }

  .community-hero { min-height: 400px; height: auto; }
  .community-hero__content { padding: 2rem 1rem 1.5rem; gap: 1rem; }
  .community-hero__topbar { padding: 0 1rem; }
}

@media (max-width: 600px) {
  .community-hero__left { max-width: 100% !important; width: 100% !important; }
  .community-hero__stats { width: 100% !important; }
  .schools-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 768px) {
  .community-hero { min-height: 480px; }
  .community-hero__content { padding: 3rem 1.25rem 2rem; gap: 1.5rem; }
}

/* ── At-a-glance label visibility fix ──
   New-style community pages set .community-overview .glance-label { color:rgba(0,0,0,.45) !important }
   which makes labels invisible on the dark #111 glance box. The 3-class selector below has higher
   specificity (0-3-0 > 0-2-0) and wins even against !important at lower specificity. */
.community-overview .community-overview__glance .glance-label {
  color: rgba(248, 246, 242, 0.55) !important;
}
.community-overview .community-overview__glance .glance-value {
  color: rgba(248, 246, 242, 0.9) !important;
}
.community-overview .community-overview__glance .community-overview__glance-title {
  color: rgba(248, 246, 242, 0.35) !important;
}

/* ── Map info panel: prevent clipping on narrow viewports ── */
@media (max-width: 600px) {
  .community-map-section .map-info-panel,
  .map-info-panel {
    right: 0.5rem !important;
    left: 0.5rem !important;
    width: auto !important;
    max-width: none !important;
    top: 0.5rem !important;
  }
}

/* ============================================================
   14. MOBILE POLISH — ≤600px
   ============================================================ */

@media (max-width: 600px) {
  /* Hero H1: allow wrapping, prevent overflow */
  .community-hero__h1,
  .crighton-page .community-hero__h1,
  .community-page .community-hero__h1 {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Hero stats: stack vertically */
  .community-hero__stat {
    flex: 1 1 100% !important;
  }

  /* Market price boxes: single column */
  .community-market__prices {
    grid-template-columns: 1fr !important;
  }

  /* Stats bar: 2 cols on narrow mobile */
  .community-stats-bar {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Hero CTA buttons: stack */
  .community-hero__ctas {
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Section headings: prevent overflow */
  .section-header__heading {
    font-size: clamp(1.4rem, 6vw, 2.4rem) !important;
    overflow-wrap: break-word !important;
  }

  /* Topbar: tighten spacing */
  .community-hero__topbar {
    padding: 0 1rem !important;
  }

  /* Overview glance box: full width */
  .community-overview__glance {
    width: 100% !important;
  }
}

@media (max-width: 400px) {
  /* Stats bar: single column */
  .community-stats-bar {
    grid-template-columns: 1fr !important;
  }

  /* Hero H1: extra small screens */
  .community-hero__h1,
  .community-page .community-hero__h1 {
    font-size: clamp(1.6rem, 9vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }
}

/* ============================================================
   15. NAV — match homepage breakpoint (860px)
   crighton-rinaldi.css uses html body.crighton-page .nav__links { display:flex !important }
   with specificity 0-2-2. We must match that specificity here; community.css loads
   AFTER crighton-rinaldi.css so same-specificity !important in community.css wins.
   ============================================================ */
@media (max-width: 860px) {
  html body.community-page .nav__links { display: none !important; }
  html body.community-page .nav__ham,
  html body.community-page .nav__menu-toggle { display: flex !important; }
  html body.community-page .nav__cta { display: none !important; }
}

/* ============================================================
   18. HERO CONTENT — clear absolute-positioned topbar at bottom
   The topbar is position:absolute; bottom:2rem.
   Content needs ≥5rem padding to avoid overlap on mobile.
   .community-page selector (0-2-0) beats inline block (0-1-0).
   ============================================================ */
@media (max-width: 768px) {
  .community-page .community-hero__content {
    padding-bottom: 5rem !important;
  }
}

/* ============================================================
   19. TOPBAR — mobile stacking
   On ≤600px: hide hero logo (nav already has it), stack the two
   remaining items vertically with column-reverse so the CTA button
   (last in HTML) appears on top and the back-link below.
   Increase content padding-bottom to clear the taller stacked topbar.
   ============================================================ */
@media (max-width: 600px) {
  .community-page .community-hero__logo {
    display: none !important;
  }
  .community-page .community-hero__topbar {
    flex-direction: column-reverse !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0 1.5rem !important;
  }
  .community-page .community-hero__content {
    padding-top: 10rem !important;
    padding-bottom: 11rem !important;
  }
  .community-page .community-hero__breadcrumb {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }
  .community-page .community-hero__breadcrumb .breadcrumb-sep {
    display: none !important;
  }
  .community-page .comm-lst-hdr {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
}

/* ============================================================
   20. MOBILE NAV — community pages: ensure inline block overrides
   are corrected back to the global components.css design.
   The inline block (0-1-0) sets gap:1.5rem on nav__mobile-links;
   community.css (0-2-0) resets it to 0 so padding drives spacing.
   ============================================================ */
.community-page .nav__mobile-links {
  gap: 0 !important;
}
.community-page .nav__mobile-link {
  padding: 1.25rem 0 !important;
  border-bottom: 1px solid rgba(248, 246, 242, 0.1) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: rgba(248, 246, 242, 0.65) !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
.community-page .nav__mobile-link:last-child {
  border-bottom: none !important;
}

/* ============================================================
   16. SECTION HEADING EM — keep white on dark map section
   ============================================================ */
.community-map-section .section-header__heading em,
.community-nearby .section-header__heading em {
  color: rgba(255,255,255,.75) !important;
  font-style: normal !important;
}

/* ============================================================
   17. MAP PANEL — prevent translateX from causing horizontal scroll
   ============================================================ */
.community-map-section__inner { overflow-x: hidden; }
