/* Neighborhood guide page (neighborhood-controller.js / render.js's
   renderNeighborhoodPage SSR mirror). Deliberately its own visual language,
   not a reskin of .profile-hero/.directory-result-list, so a neighborhood
   guide reads as a place-guide rather than a directory listing page with
   paragraphs bolted on: a dark stat-bearing hero, content as a card grid,
   a pulled-out highlight callout, and a short curated business strip. */

.neighborhood-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 56px 0 44px;
}
.neighborhood-hero .eyebrow {
  color: #ffb892;
}
.neighborhood-hero h1 {
  color: #fff;
}
.neighborhood-hero .lead {
  color: #cfd9e8;
  max-width: 760px;
}
.neighborhood-updated {
  margin-top: 14px;
  font-size: 12px;
  color: #93a4bb;
}

/* Two photo spots - a wide banner atop the written guide and a smaller
   shot in the sidebar - both render the shared .photo-placeholder striped
   box (nova.css) until heroPhotoUrl/sidebarPhotoUrl are set. */
.neighborhood-photo {
  border-radius: 14px;
  overflow: hidden;
}
.neighborhood-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.neighborhood-photo--hero {
  height: 320px;
  margin-bottom: 24px;
}

.neighborhood-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.neighborhood-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 130px;
}
.neighborhood-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.neighborhood-stat__label {
  font-size: 12px;
  color: #a9b8cc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Live-upgraded onto the Walk Score pill once WALKSCORE_API_KEY is
   configured (neighborhood-controller.js) - its own small row under the
   label rather than crammed into __value's large bold line, so the pill
   keeps the same plain-number look as every sibling stat. */
.neighborhood-stat__attribution {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #9ecbff;
  text-decoration: none;
}
.neighborhood-stat__attribution:hover,
.neighborhood-stat__attribution:focus-visible {
  color: #fff;
  text-decoration: underline;
}
/* Combined Walk/Transit/Bike Score pill - render.js's buildNeighborhoodStatsHtml
   and neighborhood-controller.js's own copy of it group whichever of those
   three a neighborhood has into one box (data-neighborhood-walkscore) with
   up to three side-by-side sub-stats, instead of three separate pills.
   Reused as-is for the same box on city page heroes (city-shell.js) - one
   shared "Walk/Transit/Bike" look across both page types. */
.neighborhood-stat--scores {
  padding: 12px 20px;
}
/* .neighborhood-stat's own display:flex (above) otherwise beats the
   browser's [hidden]{display:none} default at equal specificity, so the
   city-page version of this box (city-shell.js's cityWalkScoreTrio, kept
   hidden until a live score actually comes back - see its own comment)
   was showing as an empty rounded box instead of staying hidden whenever
   WALKSCORE_API_KEY isn't configured. */
.neighborhood-stat--scores[hidden] {
  display: none;
}
.walkscore-trio {
  display: flex;
}
.walkscore-trio__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.walkscore-trio__item:first-child {
  padding-left: 0;
}
.walkscore-trio__item:last-child {
  padding-right: 0;
  border-right: 0;
}
.walkscore-trio__value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.walkscore-trio__label {
  font-size: 12px;
  color: #a9b8cc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.neighborhood-stat__attribution .walkscore-logo {
  margin-left: 0;
  border-radius: 3px;
}

.neighborhood-guide-grid {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 40px;
  align-items: start;
  /* Wider than the site's standard 1180px .container - the jump nav and
     sidebar are both fixed-width, so on the standard container the card
     column was left with too little room and every card ran tall instead
     of reading as a scannable grid. */
  width: min(calc(100% - 40px), 1400px);
  margin: auto;
}
/* Absent (via cardNavHtml's own empty check) whenever a neighborhood has no
   sections to jump to yet - the grid still lays out fine as two columns
   since an absent grid item just leaves its track empty. */
.neighborhood-guide-nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.neighborhood-guide-nav a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  background: var(--paper);
}
.neighborhood-guide-nav a:hover {
  color: var(--ink);
  background: var(--line);
}
.neighborhood-guide-nav a.is-active {
  color: var(--blue);
  background: var(--line);
  border-left-color: var(--blue);
}

.neighborhood-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.neighborhood-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  scroll-margin-top: 100px;
}
.neighborhood-card__icon {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 8px;
}
.neighborhood-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}
.neighborhood-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.neighborhood-card p + p {
  margin-top: 12px;
}
.neighborhood-card p strong {
  color: var(--ink);
}
.neighborhood-card__links {
  margin-top: 10px !important;
  font-size: 13px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.neighborhood-card__note {
  margin-top: 10px !important;
  font-size: 13px !important;
  color: var(--muted);
}

.neighborhood-card--schools,
.neighborhood-card--map,
.neighborhood-card--history {
  grid-column: 1 / -1;
}

/* Thin-guide-only extras (render.js's `thinGuide` gate) - a homes-for-sale
   link under the hero photo, a compact real-estate card, a plain-link mini
   list of nearby businesses, one featured restaurant, and a sources footer.
   Never appears on the fully hand-authored guides. */
.neighborhood-photo-caption {
  margin: -14px 0 24px;
  font-size: 13px;
}
.neighborhood-card--real-estate {
  grid-column: 1 / -1;
}
.neighborhood-micro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.neighborhood-micro-list__category {
  color: var(--muted);
  font-weight: 400;
}
.neighborhood-photo--restaurant {
  height: 180px;
  margin-bottom: 12px;
}
.neighborhood-restaurant__name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.neighborhood-restaurant__meta {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  color: var(--muted);
}
.neighborhood-sources {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.neighborhood-card--map .neighborhood-map {
  margin-top: 4px;
  margin-bottom: 0;
}
.neighborhood-card--map .neighborhood-map iframe {
  height: 340px;
}
/* History & Local Flavor tends to run several paragraphs - at half the
   grid's width (like every other text card) that made it by far the
   tallest card on the page. Full width plus two text columns is what
   actually shortens it, not just a wider single column that would stay
   just as tall; letting paragraphs split across columns (no
   break-inside guard) is the normal, expected look for this layout, same
   as a newspaper/magazine column. Collapses to one column under
   980px alongside the rest of the grid (see the max-width:980px query
   below) since a two-up split gets too narrow to read comfortably once
   the whole grid drops to a single column of its own. */
.neighborhood-card--history .neighborhood-card__columns {
  column-count: 2;
  column-gap: 40px;
}
.neighborhood-school-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.neighborhood-school-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.neighborhood-school-list__level {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 2px;
}
.neighborhood-school-list a {
  font-weight: 700;
}
.neighborhood-school-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.neighborhood-highlight {
  margin-top: 24px;
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
}
.neighborhood-highlight__label {
  display: block;
  font-weight: 800;
  color: #b83d00;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.neighborhood-highlight p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
}

.neighborhood-faq {
  margin-top: 32px;
}
.neighborhood-faq h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--ink);
}
.neighborhood-faq__item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.neighborhood-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.neighborhood-faq__item summary::-webkit-details-marker {
  display: none;
}
.neighborhood-faq__item summary::before {
  content: '+';
  display: inline-block;
  width: 16px;
  color: var(--blue);
  font-weight: 900;
}
.neighborhood-faq__item[open] summary::before {
  content: '−';
}
.neighborhood-faq__item p {
  margin: 10px 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.neighborhood-guide-sidebar {
  position: sticky;
  top: 100px;
}
.neighborhood-map {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.neighborhood-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}
.neighborhood-sponsor-slot {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  max-height: 300px;
  overflow: hidden;
  opacity: 1;
  transition: max-height .35s ease, opacity .3s ease, padding .35s ease, border-width .35s ease;
}
/* Faded/collapsed instead of an instant hidden=true snap the moment a
   city sponsorship is found (neighborhood-controller.js) - an abrupt cut
   right as the sponsor feature above pushes this same sidebar down reads
   as the CTA vanishing rather than a normal handoff to real content. */
.neighborhood-sponsor-slot.is-hiding {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-width: 0;
  pointer-events: none;
}
.neighborhood-sponsor-slot__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 8px;
}
.neighborhood-sponsor-slot p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.neighborhood-local-section {
  border-top: 1px solid var(--line);
}
.neighborhood-business-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.neighborhood-guide-more {
  margin-top: 20px;
}

@media (max-width: 980px) {
  .neighborhood-guide-grid { grid-template-columns: 1fr; }
  .neighborhood-guide-sidebar { position: static; }
  /* A vertical jump-nav only earns its keep as a sticky rail beside the
     content it points to - stacked above the hero photo on a narrow
     viewport it would just be a wall of links before anything readable,
     so it drops out entirely rather than reflowing awkwardly. */
  .neighborhood-guide-nav { display: none; }
  .neighborhood-cards { grid-template-columns: 1fr; }
  .neighborhood-business-strip { grid-template-columns: repeat(2, 1fr); }
  .neighborhood-card--history .neighborhood-card__columns { column-count: 1; }
}

@media (max-width: 620px) {
  .neighborhood-business-strip { grid-template-columns: 1fr; }
}

/* The exclusive city-wide sponsor feature (src/backend/sponsorship.js) -
   hidden until neighborhood-controller.js's live-upgrade confirms this
   city actually has an active sponsor, same "hidden until live" pattern as
   every other API-backed card on this page. */
.neighborhood-sponsor-feature {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
/* Grown in over .sponsor-feature-enter -> .sponsor-feature-visible
   (neighborhood-controller.js) instead of an instant hidden->visible
   snap - unhiding this section shoves the entire card grid below it
   (including the sidebar CTA) down by several hundred pixels the moment
   a city sponsorship is found, and doing that in a single frame reads as
   the new content popping in and the CTA vanishing rather than a normal
   load. max-height's target is set inline by JS to the section's actual
   measured scrollHeight (not a fixed guess here) - a fixed cap like the
   900px this used to be is either too short (content clips/overlaps
   whatever comes after it - this happened on mobile, where the logo,
   meta strip, both paragraphs and all 6 listings stack into a single
   column far taller than desktop) or too tall (the animation looks like
   an instant snap once real content is shorter than the cap).
   Deliberately NOT zeroing padding-top/padding-bottom here (an earlier
   version of this rule did) - this element is box-sizing:border-box
   (nova.css), so max-height:0 already fully collapses the whole box
   including its padding with nothing extra needed; explicitly zeroing
   padding as well just meant neighborhood-controller.js's scrollHeight
   measurement (taken while this class is still applied) excluded the
   ~108px (2x54px) of padding that .section supplies once this class is
   removed - permanently undersizing the reveal target by that much on
   every load, not just an occasional timing race. */
.neighborhood-sponsor-feature.sponsor-feature-enter {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-bottom-width: 0;
}
.neighborhood-sponsor-feature.sponsor-feature-visible {
  opacity: 1;
  transition: max-height .4s ease, opacity .35s ease, border-bottom-width .4s ease;
}
.sponsor-feature {
  width: min(calc(100% - 40px), 1400px);
  margin: auto;
  padding: 32px 0;
}
.sponsor-feature__top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
/* Photo + its own "Visit website" button, stacked - a self-contained
   column rather than the CTA living in the text column next to it. */
.sponsor-feature__photo-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}
/* The agent's own headshot, not the firm logo (see neighborhood-controller.js's
   comment) - sized to match the sticky sidebar's copy of the same photo
   (.sponsor-headshot-card__photo: full sidebar-column width, square) rather
   than the small logo box this replaced. Left-aligned next to the text
   column, top-aligned (not vertically centered) with it. */
.sponsor-feature__headshot {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}
/* Wraps .sponsor-feature__headshot in a link to the sponsor's site when one
   is set (see neighborhood-controller.js) - display:block so the <a> hugs
   the photo's own box instead of behaving as inline, and a subtle hover
   affordance since the image itself gives no other sign it's clickable. */
.sponsor-feature__photo-link {
  display: block;
  width: 300px;
  max-width: 100%;
  border-radius: 14px;
  transition: opacity 0.15s ease;
}
.sponsor-feature__photo-link:hover {
  opacity: 0.9;
}
/* align-self: stretch (overriding .sponsor-feature__top's flex-start)
   makes this column match .sponsor-feature__photo-col's full height
   (photo + its button), so the facts strip/badges at its end
   (margin-top: auto on .sponsor-feature__meta) sit near the bottom of
   the photo instead of floating right under the headline with a dead
   gap below. */
.sponsor-feature__intro {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  flex: 0 0 320px;
  min-width: 0;
}
/* Sits right after .sponsor-feature__intro at a fixed 320px (flex-shrink:
   0 - the paragraphs' own natural content width would otherwise pull
   flex-basis:auto sizing down well below 320px, squeezing the CTA
   button/facts strip). flex-basis: 0 here (not auto) means this column's
   share of the remaining width comes purely from flex-grow, not from its
   own content trying to size the row - it just takes whatever's left,
   rather than an equal 320px share like intro gets, which was leaving
   this copy starting far to the right. */
.sponsor-feature__paragraphs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
}
.sponsor-feature__paragraphs p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.sponsor-feature h2 {
  margin: 4px 0 0;
  font-size: 26px;
  color: var(--ink);
}
/* Sits under the headshot inside .sponsor-feature__photo-col, full width
   of the photo - a shorter bar than the old inline button (smaller
   vertical padding), not a separate item competing with the text column
   for space. */
.sponsor-feature__cta {
  display: block;
  text-align: center;
  width: 300px;
  max-width: 100%;
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.sponsor-feature__cta:hover {
  opacity: 0.9;
}
/* Google-Business-Profile-style facts strip (category, years in business,
   service area, hours, phone, response time) - wraps as a row of icon+text
   items rather than one per line, badges on their own line at the end.
   Deliberately no star rating here - see sponsorship.js's module comment.
   margin-top: auto pushes this to the bottom of .sponsor-feature__intro's
   stretched column (see its comment above), landing it near the photo's
   bottom edge. */
.sponsor-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  column-gap: 18px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.sponsor-feature__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sponsor-feature__meta-item svg {
  flex-shrink: 0;
  color: var(--blue);
  opacity: 0.75;
}
.sponsor-feature__meta-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sponsor-feature__meta-item a:hover,
.sponsor-feature__meta-item a:focus-visible {
  color: var(--blue);
  border-bottom-color: currentColor;
}
.sponsor-feature__badges {
  flex-basis: 100%;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sponsor-feature__badges .pill {
  background: #e3f5e9;
  color: #1a7a3d;
}
/* Horizontal-scroll row rather than a wrapping grid, on every screen size
   including mobile (scrolls, never stacks) - up to 6 listings read as a
   browsable strip instead of a tall wall of cards. -webkit-overflow-
   scrolling:touch matches .new-biz-rail's identical horizontal-rail
   pattern (new-businesses.css) - without it, older iOS Safari and some
   in-app WebViews don't give this row native momentum/inertial touch
   scrolling, so a swipe can fail to register as a scroll gesture at all. */
.sponsor-feature__listings-wrap {
  position: relative;
  margin-top: 24px;
}
.sponsor-feature__listings {
  display: flex;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
/* Overlaid on the listing photos, vertically centered on the media area
   (105px = 1px border-top + 24px padding-top + half of the 160px-tall
   .sponsor-listing-card__media) - not the whole card including its
   caption text, which would look off-center against the photos
   themselves. Hidden by default and only shown by JS once there's
   actually more to scroll to in that direction (see
   neighborhood-controller.js's updateArrows). */
.sponsor-listings-arrow {
  position: absolute;
  top: 105px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(11, 26, 46, 0.25);
  cursor: pointer;
}
.sponsor-listings-arrow:hover {
  background: #fff;
  color: var(--blue);
}
/* Needed because [hidden]{display:none} (nova.css) and this rule's own
   display:flex above have equal specificity and this file loads later -
   without this, the hidden attribute JS toggles would never actually
   hide the arrow. */
.sponsor-listings-arrow[hidden] {
  display: none;
}
.sponsor-listings-arrow--prev {
  left: 4px;
}
.sponsor-listings-arrow--next {
  right: 4px;
}
.sponsor-listing-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
}
.sponsor-listing-card__media {
  height: 160px;
}
.sponsor-listing-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sponsor-listing-card p {
  margin: 0;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .sponsor-feature__top { flex-direction: column; align-items: flex-start; }
  /* Full width instead of a fixed 300px square, so this photo reads the
     same size as the sticky sidebar's own copy of it
     (.sponsor-headshot-card__photo), which is already full-width in its
     own column - on mobile that column becomes the full page width (see
     .neighborhood-guide-grid's max-width:980px rule), so matching it here
     means going full width too, not just centering a smaller fixed box. */
  .sponsor-feature__photo-col { align-self: stretch; }
  .sponsor-feature__headshot,
  .sponsor-feature__photo-link,
  .sponsor-feature__cta { width: 100%; }
  /* flex: 0 0 320px above sets a fixed *height* here (main axis flips to
     vertical once .sponsor-feature__top goes column), which left a dead
     320px-tall gap under the title. Let it size to its own content instead,
     and center the eyebrow/title/facts strip under the now full-width photo. */
  .sponsor-feature__intro {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
  }
  .sponsor-feature__meta { justify-content: center; }
}

/* Sticky sidebar headshot (neighborhood-controller.js) - lives beside the
   "Sponsor this neighborhood" CTA (which fades out once this appears), inside the
   already-sticky .neighborhood-guide-sidebar so it stays in view as the
   visitor scrolls the card grid below it. */
.sponsor-headshot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 10px rgba(20, 30, 50, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
/* Photo itself is untouched on purpose - only the card chrome around it
   gets the visual polish below. */
.sponsor-headshot-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.sponsor-headshot-card__body {
  padding: 14px 16px 16px;
}
.sponsor-headshot-card__caption {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.sponsor-headshot-card__cta {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
/* Whole card links out to the sponsor's own site when they've set one -
   "real thing or nothing", same as every other optional sponsor field. */
.sponsor-headshot-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
/* :hover/:focus-within on the outer card (not the inner __link) - the
   card is the element that actually carries the border-radius/box-shadow
   below, and :focus-within lets the anchor's own focus ring still raise
   it the same way a mouse hover does. */
.sponsor-headshot-card:hover,
.sponsor-headshot-card:focus-within {
  box-shadow: 0 6px 18px rgba(20, 30, 50, 0.12);
  transform: translateY(-2px);
}
.sponsor-headshot-card:hover .sponsor-headshot-card__cta,
.sponsor-headshot-card:focus-within .sponsor-headshot-card__cta {
  background: var(--ink);
}

/* Decoration around the banner photo at the top of every neighborhood guide (Old Town and every
   neighborhood added later: one shared template, server built and browser built). Same family as
   the city page intro photo and the home page photos, arranged differently so each page keeps its
   own feel: a peach-to-blue panel offset to the lower right, an orange dot pattern at the lower
   left, and a soft blue ring at the top right. Pure CSS, works with any photo; the striped
   "image placeholder" shown until a photo is set is left as is. The photo keeps its size; its box stops clipping
   so the decoration can sit outside it. Offsets stay inside the gaps beside the photo (the section
   links on the left, the sponsor card on the right). */
.neighborhood-guide-body{position:relative}
.neighborhood-guide-body:has(.neighborhood-photo--hero:not(.photo-placeholder)):before{content:'';position:absolute;right:-14px;top:-24px;width:76px;height:76px;border-radius:50%;border:10px solid rgba(0,84,204,.15);pointer-events:none}
.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder){position:relative;isolation:isolate;overflow:visible;margin-bottom:34px}
.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder) img{border-radius:14px;border:1px solid #d4dee9;box-shadow:0 10px 28px rgba(11,26,46,.16)}
.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder):before{content:'';position:absolute;inset:16px -16px -16px 16px;z-index:-1;border-radius:14px;background:linear-gradient(135deg,#ffcfb3 0%,#c9dcf7 100%);transition:transform .35s ease}
.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder):after{content:'';position:absolute;left:-24px;bottom:-28px;width:132px;height:104px;z-index:-1;background:radial-gradient(circle,rgba(252,84,0,.65) 2px,transparent 2.6px) 0 0/17px 17px}
.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder):hover:before{transform:translate(5px,5px)}
@media(prefers-reduced-motion:reduce){.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder):before{transition:none}.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder):hover:before{transform:none}}
@media(max-width:900px){.neighborhood-guide-body:has(.neighborhood-photo--hero:not(.photo-placeholder)):before{display:none}.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder){margin-bottom:30px}.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder):before{inset:10px -8px -10px 8px}.neighborhood-guide-body .neighborhood-photo--hero:not(.photo-placeholder):after{left:-6px;bottom:-14px;width:84px;height:66px}}

/* "Other <city> neighborhoods" (renderNeighborhoodPage): on a phone the cards are one
   swipeable row (a little of the next card shows) with an arrow on each side, wired up
   by home-experience.js. Computers and tablets keep the card grid. */
.swipe-row { position: relative; }
.swipe-row__arrow { display: none; }
@media (max-width: 700px) {
  .swipe-row > [data-ec-track] {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .swipe-row > [data-ec-track]::-webkit-scrollbar { display: none; }
  .swipe-row > [data-ec-track] > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
  /* Room on both sides so the arrows never sit on top of the card's text. */
  .swipe-row > [data-ec-track] > .card { padding-left: 56px; padding-right: 56px; }
  .swipe-row__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    margin-top: -19px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .9);
    background: rgba(7, 19, 33, .7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
  }
  .swipe-row__arrow--prev { left: 8px; }
  .swipe-row__arrow--next { right: 8px; }
  .swipe-row__arrow:hover:not(:disabled), .swipe-row__arrow:focus-visible { background: #e8590c; }
  .swipe-row__arrow:disabled { opacity: .35; cursor: default; }
}
