/* ==========================================================================
   WAM Single Listing Page Styles
   File: assets/css/single-listings.css
   ========================================================================== */
 
/* ── PAGE WRAPPER ───────────────────────────────────────────────────────── */
.wam-single-listing {
  padding: 0 40px 80px;
  max-width: 1300px;
  margin: 0 auto;
}
 
.wam-listing-page {
  width: 100%;
}
 
/* ── BREADCRUMB ─────────────────────────────────────────────────────────── */
.wam-listing-nav {
  padding: 16px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
 
.wam-breadcrumbs {
  font-size: 13px;
  color: #7A7A7A;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
 
.wam-breadcrumbs a { color: #7A7A7A; }
.wam-breadcrumbs a:hover { color: #FF6E00; }
.wam-breadcrumbs span[aria-hidden] { color: #B9B9B9; }
 
.wam-listing-back a {
  font-size: 13px;
  font-weight: 600;
  color: #1B1C39;
  text-decoration: none;
}
.wam-listing-back a:hover { color: #FF6E00; }
 
 
/* ── HERO: TWO-COLUMN STICKY LAYOUT ────────────────────────────────────────
   Left column (gallery) is sticky — it stays in view while the right
   column (details, description) scrolls past it.
   ────────────────────────────────────────────────────────────────────── */
.wam-listing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start; /* REQUIRED for sticky to work */
  padding: 32px 0 48px;
}
 
/* Sticky left column */
.wam-listing-hero__media {
  position: sticky;
  top: var(--wam-header-height);
  min-width: 0;
}
 
/* Right column — no special positioning needed, just scrolls */
.wam-listing-hero__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
 
 
/* ── LISTING HEADER ─────────────────────────────────────────────────────── */
.wam-listing-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.wam-listing-neighborhood {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FF6E00;
  margin: 0;
  font-weight: 600;
}
 
.wam-listing-neighborhood a {
  color: inherit;
  text-decoration: none;
}
 
.wam-listing-neighborhood a:hover { color: #1B1C39; }
 
.wam-listing-title {
  margin: 0;
  line-height: 1.1;
}
 
.wam-listing-building {
  font-size: 0.95rem;
  color: #7A7A7A;
  margin: 0;
}
 
.wam-listing-building a {
  color: #1B1C39;
  font-weight: 600;
}
 
.wam-listing-building a:hover { color: #FF6E00; }

.wam-listing-address {
  font-size: 1.1rem;
  color: #7A7A7A;
  margin: 0;
}

 
/* ── GALLERY CAROUSEL ───────────────────────────────────────────────────── */
.wam-listing-gallery { width: 100%; }
 
.wam-listing-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 6px;
}
 
.wam-listing-gallery__slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
 
.wam-listing-gallery__slide.is-active { display: block; }
 
.wam-listing-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.wam-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1B1C39;
  font-size: 14px;
  transition: background 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
 
.wam-gallery-btn:hover { background: #ffffff; }
.wam-gallery-btn--prev { left: 12px; }
.wam-gallery-btn--next { right: 12px; }
 
.wam-listing-gallery__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
 
.wam-listing-gallery__thumbs::-webkit-scrollbar { display: none; }
 
.wam-listing-gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease;
  background: none;
}
 
.wam-listing-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.wam-listing-gallery__thumb.is-active {
  opacity: 1;
  border-color: #1B1C39;
}
 
.wam-listing-gallery__thumb:hover { opacity: 0.85; }
 
 
/* ── SPECS ──────────────────────────────────────────────────────────────── */
.wam-listing-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
 
.wam-spec-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: #393939;
}
 
.wam-spec-item i {
  color: #7A7A7A;
  font-size: 14px;
  flex-shrink: 0;
}
 
 
/* ── DETAIL LIST ─────────────────────────────────────────────────────────── */
.wam-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #f0f0f0;
}
 
.wam-detail-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
 
.wam-detail-item dt {
  font-weight: 600;
  color: #7A7A7A;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
 
.wam-detail-item dd {
  margin: 0;
  color: #393939;
}

/* ── Open House callout ───────────────────────────────────────────────────── */
.wam-open-house-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--wp--preset--color--pale-blue);
    border-left: 3px solid var(--wp--preset--color--accent-blue);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.wam-open-house-callout i {
    font-size: 1.25rem;
    color: var(--wp--preset--color--accent-blue);
    flex-shrink: 0;
}

.wam-open-house-callout__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--contrast-two);
}

.wam-open-house-callout__date {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
}
 
 
/* ── REQUIREMENTS ACCORDION ─────────────────────────────────────────────── */
.wam-listing-requirements { margin: 0; }
 
.wam-accordion {
  border: 1px solid #e8e5e2;
  border-radius: 4px;
}
 
.wam-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1B1C39;
  list-style: none;
  user-select: none;
}
 
.wam-accordion__trigger::-webkit-details-marker { display: none; }
 
.wam-accordion[open] .wam-accordion__icon {
  transform: rotate(180deg);
}
 
.wam-accordion__icon {
  transition: transform 0.2s ease;
  font-size: 12px;
  color: #7A7A7A;
}
 
.wam-accordion__content {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #393939;
}
 
 
/* ── QUICK LINKS ────────────────────────────────────────────────────────── */
.wam-listing-quick-links {
  background-color: #F1EDEA;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  border-radius: 6px;
}
 
.wam-quick-link { display: flex; flex-direction: column; gap: 4px; }
 
.wam-quick-link__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #7A7A7A;
  margin: 0;
}
 
.wam-quick-link a {
  font-size: 14px;
  color: #1B1C39;
  font-weight: 500;
}
 
.wam-quick-link a:hover { color: #FF6E00; }
 
 
/* ── FLOOR PLAN LIGHTBOX ────────────────────────────────────────────────── */
.wam-listing-floorplan-link {
  margin: 0;
}
 
.wam-floorplan-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #1B1C39;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
 
.wam-floorplan-trigger:hover { color: #FF6E00; }
 
.wam-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
 
.wam-lightbox[hidden] { display: none; }
.wam-lightbox.is-open { opacity: 1; }
 
.wam-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}
 
.wam-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
 
.wam-lightbox.is-open .wam-lightbox__content { transform: scale(1); }
 
.wam-lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
 
.wam-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s ease;
}
 
.wam-lightbox__close:hover { background: rgba(0,0,0,0.8); }
 
 
/* ── NET EFFECTIVE RATE TOOLTIP ─────────────────────────────────────────── */
.wam-net-info-btn {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  color: #7A7A7A;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  position: relative;
}
 
.wam-net-info-btn:hover { color: #1B1C39; }
 
.wam-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #1B1C39;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 100;
  pointer-events: none;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}
 
.wam-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1B1C39;
}
 
.wam-net-info-btn.is-open .wam-tooltip { display: block; }
 
 
/* ── Astor Furnished Badge on Cards ─────────────────────────────────────── */
.wam-listing-card__badge--astor {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto; /* override any left positioning from the base badge */
    background: rgba(27, 28, 57, 0.82);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 2px;
    backdrop-filter: blur(2px);
}

/* ── Astor Furnished Callout Box on Single Listing ───────────────────────── */
.wam-astor-callout {
    border: 1.5px solid #E07C3A;
    background: #FFF5EC;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 16px 0;
}

.wam-astor-callout__title {
    font-size: 1rem;
    font-weight: 700;
    color: #C55A1E;
    margin: 0 0 12px 0;
}

.wam-astor-callout__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wam-astor-callout__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #C55A1E;
    font-weight: 500;
}

.wam-astor-callout__list li i {
    color: #C55A1E;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Requirements heading inside combined accordion */
.wam-accordion__requirements { 
  padding-top: 16px;
}
.wam-accordion__requirements-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: #7A7A7A;
  margin: 0 0 10px;
}

/* ── Building listings horizontal scroll — constrain to viewport width ──── */
.wam-building-listings__scroll {
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.wam-building-listings__scroll .wam-listings-grid,
.wam-building-listings__scroll > * {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 0 40px 16px;
    width: max-content; /* allows scroll, but won't blow past container */
}

/* Each card in horizontal scroll gets a fixed width */
.wam-building-listings__scroll .wam-listing-card {
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* ── AMENITIES ──────────────────────────────────────────────────────────── */
.wam-listing-amenities {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}
 
.wam-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px 32px;
  margin-bottom: 32px;
}
 
.wam-amenity-group h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7A7A7A;
  margin-bottom: 12px;
}
 
.wam-amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
.wam-amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #393939;
}
 
.wam-amenity-item i {
  color: #7A7A7A;
  font-size: 13px;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}
 
.wam-building-amenities { margin-top: 16px; }
 
.wam-building-amenities h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7A7A7A;
  margin-bottom: 12px;
}
 
/* Two equal columns for building amenities on listing pages */
.wam-building-amenities__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  align-items: start;
}
 
.wam-building-amenities__cols .wam-amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
 
/* ── ABOUT THE BUILDING ─────────────────────────────────────────────────── */

.wam-listing-building-info {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}
 
.wam-listing-building-info__body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
}
 
.wam-listing-building-info__desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
 
.wam-link {
  font-size: 16px;
  font-weight: 600;
  color: #1B1C39;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  align-self: flex-start;
}
 
.wam-link:hover { color: #FF6E00; }

aside.wam-listing-building-info__facts {
  background-color: #ffffff;
  padding: 0 30px 30px 30px;
  border: 1px solid #e5e3e0;
  border-radius: 10px;
}

.wam-building-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.wam-building-facts-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #393939;
}
 
.wam-building-facts-list li i {
  color: #7A7A7A;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
 
 
/* ── BUILDING IMAGES ────────────────────────────────────────────────────── */
.wam-listing-building-gallery {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}
 
.wam-listing-building-gallery__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
 
.wam-link-subtle {
  font-size: 13px;
  color: #7A7A7A;
  text-decoration: none;
}
 
.wam-link-subtle:hover { color: #FF6E00; }
 
.wam-building-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
 
.wam-building-gallery-grid__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}
 
.wam-building-gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
 
/* ── NEIGHBORHOOD ───────────────────────────────────────────────────────── */
.wam-listing-neighborhood-section {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}
 
.wam-listing-neighborhood__content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
 
.wam-listing-neighborhood__info,
.wam-listing-neighborhood__map {
  border: 1px solid #e5e3e0;
  border-radius: 10px;
  padding: 28px;
  background: #ffffff;
}
 
.wam-listing-neighborhood__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #7A7A7A;
  margin: 0 0 12px;
}
 
.wam-neighborhood-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
 
.wam-neighborhood-col h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7A7A7A;
  margin-bottom: 8px;
}
 
.wam-neighborhood-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
 
.wam-neighborhood-links a {
  font-size: 16px;
  color: #1B1C39;
  text-decoration: none;
  font-family: 'Bitter', serif;
}
 
.wam-neighborhood-links a:hover { color: #FF6E00; }
 
.wam-neighborhood-contact {
  font-size: 13px;
  color: #7A7A7A;
  margin-top: 20px;
}
 
.wam-neighborhood-contact a { color: #1B1C39; font-weight: 600; }
.wam-neighborhood-contact a:hover { color: #FF6E00; }
 
.wam-map-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1B1C39;
  text-decoration: none;
  margin-bottom: 12px;
}
 
.wam-map-link:hover { color: #FF6E00; }
 
.wam-acf-map {
  width: 100%;
  height: 240px;
  background: #f4f2f0;
  border-radius: 4px;
}
 
 
/* ── SIMILAR LISTINGS — 3-col fixed grid ────────────────────────────────── */
.wam-listing-similar {
  padding: 48px 8rem;;
  border-top: 1px solid #f0f0f0;
}
 
.wam-listings-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
 
.wam-listing-similar__cta {
  margin-top: 28px;
  text-align: center;
}
 
 
/* ── CONTACT THE LISTING AGENT ──────────────────────────────────────────── */
.wam-listing-contact-section {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}
.wam-listing-contact-section h2 {
  align-items: center;
  text-align: center;
}
 
.wam-listing-contact {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 28px;
}

/* When no agent: center the form at a readable width */
.wam-listing-contact--no-agent {
    display: flex;
    justify-content: center;
}

.wam-listing-contact--no-agent .wam-listing-contact__form {
    width: 100%;
    max-width: 600px;
}
 
.wam-agent-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
 
.wam-agent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.wam-agent-card__photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
 
.wam-agent-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.wam-agent-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #1B1C39;
  margin: 0;
}
 
.wam-agent-card__title {
  font-size: 13px;
  color: #7A7A7A;
  margin: 0;
}
 
.wam-agent-card__phone,
.wam-agent-card__cell,
.wam-agent-card__email {
  font-size: 13px;
  color: #393939;
  margin: 0;
}
 
.wam-agent-card__phone a,
.wam-agent-card__cell a,
.wam-agent-card__email a {
  color: #1B1C39;
  text-decoration: none;
}
 
.wam-agent-card__phone a:hover,
.wam-agent-card__cell a:hover,
.wam-agent-card__email a:hover {
  color: #FF6E00;
}
 
 
/* ── OTHER BUILDINGS ────────────────────────────────────────────────────── */
.wam-listing-other-buildings {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}
 
.wam-buildings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.wam-building-card__header {
  padding: 1rem;
}
h3.wam-building-card__name {
  font-size: 1.5rem;
  padding: 0;
  margin: 0;
}
p.wam-building-card__address {
  font-size: 0.75rem;
  padding: 0;
  margin: 0;
  color: #393939;
}
a.wam-building-card__cta.wam-button.wam-button--outline {
    font-size: 13px;
}
.wam-building-card__body {
  padding: 1rem;
  margin: 0 auto;
}
.wam-building-card__body p {
  font-size: 13px;
  color: #7A7A7A;
  line-height: 1.3rem;
}
.wam-building-card__image img {
  width: 100%;
  object-fit: cover;
  display: block;
}
a.wam-building-card__read-more {
  color: #393939;
}


/* ── 5. LISTINGS + FILTER SIDEBAR ───────────────────────────────────────── */
.wam-building-listings { border-top: 1px solid #f0f0f0; }
 
.wam-building-listings__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  /* max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px; */
}
 
/* Filter sidebar — sticky */
.wam-building-listings__filter {
  position: sticky;
  top: var(--wam-header-height);
}
 
.wam-filter-sidebar__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1B1C39;
  margin: 0 0 20px;
  font-family: "Rokkitt", serif;
}
 
/* Filter accordion groups */
.wam-filter-sidebar__group {
  border-bottom: 1px solid #e8e5e2;
}
 
.wam-filter-sidebar__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1B1C39;
  text-align: left;
  font-family: inherit;
}
 
.wam-filter-sidebar__toggle > i:first-child {
  color: #7A7A7A;
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
 
.wam-filter-sidebar__toggle > span:first-of-type { flex: 1; }
 
.wam-filter-sidebar__active-val {
  font-size: 11px;
  color: #FF6E00;
  font-weight: 500;
}
 
.wam-filter-toggle-icon {
  font-size: 10px;
  color: #7A7A7A;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
 
.wam-filter-sidebar__panel {
  padding: 0 0 14px;
}
 
.wam-filter-sidebar__panel[hidden] { display: none; }
 
.wam-filter-date {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d6d3d0;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  color: #393939;
}
 
/* Radio / checkbox options */
.wam-filter-sidebar__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
 
.wam-filter-sidebar__checks--stacked {
  flex-direction: column;
  gap: 7px;
}
 
.wam-filter-sidebar__check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #393939;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid #e8e5e2;
  white-space: nowrap;
  transition: background 0.1s ease, border-color 0.1s ease;
}
 
.wam-filter-sidebar__check-label:hover,
.wam-filter-sidebar__check-label.is-selected {
  background: #f0f0f0;
  border-color: #1B1C39;
}
 
.wam-filter-sidebar__check-label input[type="radio"],
.wam-filter-sidebar__check-label input[type="checkbox"] {
  accent-color: #1B1C39;
  width: 14px;
  height: 14px;
  cursor: pointer;
}
 
/* Price slider (inherits from listings.css, just layout here) */
.wam-price-slider__instruction {
  font-size: 12px;
  color: #7A7A7A;
  margin: 0 0 16px;
  line-height: 1.4;
}
 
/* Filter actions */
.wam-filter-sidebar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 0;
}
 
.wam-filter-submit {
  padding: 10px 20px;
  background: #1B1C39;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s;
}
 
.wam-filter-submit:hover { background: #313266; }
 
.wam-filter-reset {
  font-size: 12px;
  color: #7A7A7A;
  text-decoration: none;
}
 
.wam-filter-reset:hover { color: #FF6E00; }
 
/* Results header */
.wam-building-results-count {
  font-size: 14px;
  color: #7A7A7A;
  margin: 0 0 20px;
}
 
.wam-building-results-count strong {
  color: #FF6E00;
  font-size: 15px;
}
 
.wam-results-label {
  font-weight: 600;
  color: #1B1C39;
}
 
/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.wam-listing-cta { margin: 4px 0; }
 
.wam-button {
  display: inline-block;
  padding: 13px 28px;
  background: #393939;
  color: #ffffff;
  font-family: "Rokkitt", serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s ease;
  border: 2px solid #393939;
}
 
.wam-button:hover {
  background: #FF6E00;
  border: #FF6E00;
  color: #ffffff;
}
 
.wam-button--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  background: transparent;
  color: #393939;
  border: 1px solid #393939;
  transition: background 0.15s ease;
}
 
.wam-button--outline:hover {
  background: transparent;
  color: #FF6E00;
  border: 1px solid #FF6E00;
}

 
/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .wam-listing-hero {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
 
  .wam-listing-building-info__body {
    grid-template-columns: 1fr 180px;
  }
 
  .wam-listings-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
@media (max-width: 900px) {
  .wam-listing-neighborhood__content {
    grid-template-columns: 1fr;
  }
 
  .wam-listing-contact {
    grid-template-columns: 1fr;
  }
 
  .wam-building-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
@media (max-width: 767px) {
  .wam-single-listing {
    padding: 0 20px 60px;
  }
 
  /* Hero: stack gallery above details on mobile */
  .wam-listing-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
 
  /* Unstick the gallery on mobile — no room for sticky */
  .wam-listing-hero__media {
    position: static;
  }
 
  .wam-listing-building-info__body {
    grid-template-columns: 1fr;
  }
 
  .wam-listings-grid--3col {
    grid-template-columns: 1fr;
  }
 
  .wam-neighborhood-columns {
    grid-template-columns: 1fr;
  }
 
  .wam-building-gallery-grid {
    grid-template-columns: 1fr;
  }
  .wam-single-listing {
    padding: 24px 16px 56px;
  }
  .wam-listing-grid,
  .wam-building-grid,
  .wam-agent-grid,
  .wam-building-gallery-grid,
  .wam-gallery-grid,
  .wam-listing-gallery__thumbs {
    grid-template-columns: 1fr;
  }
  .wam-listing-title {
    font-size: 2.25rem;
  }
  .wam-listing-card__image img,
  .wam-building-card__image img,
  .wam-building-gallery-grid__item img,
  .wam-gallery-grid__item img {
    height: auto;
  }
}


/* for listing cards in the 'show similar listings' section */

/* keep? */
/* .wam-listing-card,
.wam-building-card,
.wam-agent-card {
  border: 1px solid #d6d6d6;
  background: #fff;
  border-radius: 10px;
} */

.wam-listing-card__image img,
.wam-building-card__image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.wam-building-card__placeholder {
  width: 100%;
  height: 320px;
  background: #e5e5e5;
}

.wam-listing-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  font-size: 0.85rem;
  line-height: 1;
}

.wam-listing-card__body,
.wam-building-card__body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.wam-listing-card__hood,
.wam-listing-card__meta,
.wam-listing-card__price,
.wam-building-card__body p {
  margin: 0;
}

.wam-listing-card__title,
.wam-building-card__body h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.1;
}

.wam-agent-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.wam-agent-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.wam-agent-card__media {
  border-bottom: 1px solid #d6d6d6;
}

.wam-agent-card__image,
.wam-agent-card__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  height: auto;
  object-position: bottom center;
  display: block;
  background: #f2f2f2;
}

.wam-agent-card__content {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.wam-agent-card__name,
.wam-agent-card__title,
.wam-agent-card__email,
.wam-agent-card__office,
.wam-agent-card__cell {
  margin: 0;
}

.wam-richtext > *:first-child {
  margin-top: 0;
}

.wam-richtext > *:last-child {
  margin-bottom: 0;
}
