/* ==========================================================================
   WAM Listings Archive + Card Styles
   File: assets/css/listings.css
   ========================================================================== */
 
/* ── ARCHIVE PAGE ───────────────────────────────────────────────────────── */
.wam-archive-listings,
.wam-archive-buildings {
  padding: 40px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.wam-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}
.wam-archive-header {
  margin-bottom: 32px;
}
.wam-archive-header h1 {
  margin-bottom: 8px;
}
.wam-archive-intro {
  font-size: 16px;
  color: #7A7A7A;
  max-width: 640px;
  margin: 0;
}
.wam-results-count {
  font-size: 13px;
  color: #7A7A7A;
  margin-bottom: 20px;
}

/* ── Type nav quicklinks (View All page) ─────────────────────────────────── */
.wam-archive-type-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e5e2;
}

.wam-type-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #1B1C39;
    color: #1B1C39;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.wam-type-nav-link:hover,
.wam-type-nav-link.is-active {
    background: #1B1C39;
    color: #ffffff;
}
 
/* ── LISTINGS GRID ──────────────────────────────────────────────────────── */
.wam-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
/* 3-column fixed (used on similar listings section) */
.wam-listings-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
/* Buildings grid */
.wam-buildings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ── LISTING CARD ───────────────────────────────────────────────────────── */
.wam-listing-card {
  border: 1px solid #e8e5e2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.wam-listing-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
} 
.wam-listing-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Image */
.wam-listing-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f2f0;
  flex-shrink: 0;
}
.wam-listing-card__image img,
.wam-listing-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
} 
.wam-listing-card:hover .wam-listing-card__image img {
  transform: scale(1.03);
}

/* Free month badge on image */
.wam-listing-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1B1C39;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.wam-listing-card__badge--no-image {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}
 
/* Card body */
.wam-listing-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.wam-listing-card__hood,
.wam-listing-card__meta,
.wam-listing-card__price,
.wam-listing-card__specs,
.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;
}

 
/* Location line: neighborhood · building */
.wam-listing-card__location {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7A7A7A;
  margin: 0;
  line-height: 1.4;
}
 
/* Title — the apartment number/name */
.wam-listing-card__title {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 2px 0 0;
  line-height: 1.2;
  color: #1B1C39;
}
/* Specs: 1 BD · 1 BA · 321 SF */
.wam-listing-card__meta {
  font-size: 13px;
  color: #7A7A7A;
  margin: 4px 0 0;
}

/* ── LISTING CARD ICON SPECS ────────────────────────────────────────────────
   Used when the card renders bed/bath/sqft with Font Awesome icons.
   Class names: wam-listing-card__specs (ul), wam-card-spec-item (li)
   These are separate from .wam-listing-specs which is used on the single page.
   ─────────────────────────────────────────────────────────────────────────── */
.wam-listing-card__specs {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
 
.wam-card-spec-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7A7A7A;
  white-space: nowrap;
}
 
.wam-card-spec-item i {
  font-size: 11px;
  color: #B9B9B9;
  flex-shrink: 0;
  width: 13px;
  text-align: center;
}

/* Pricing block */
.wam-listing-card__pricing {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
/* Standard price */
.wam-listing-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B1C39;
  margin: 0;
}
.wam-price-unit {
  font-size: 0.8rem;
  font-weight: 400;
  color: #7A7A7A;
}
/* Net effective — original struck through */
.wam-listing-card__price--original .wam-price-original {
  font-size: 0.9rem;
  font-weight: 400;
  color: #9A9A9A;
  text-decoration: line-through;
}
.wam-listing-card__price--net {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.wam-price-net {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B1C39;
}
.wam-price-net-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7A7A7A;
  font-weight: 500;
}

/* CTA text */
.wam-listing-card__cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1B1C39;
  letter-spacing: 0.04em;
  text-transform: uppercase;
} 
.wam-listing-card:hover .wam-listing-card__cta {
  color: #FF6E00;
}

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

.wam-richtext > *:last-child {
  margin-bottom: 0;
}
 
/* ── BUILDING CARD ──────────────────────────────────────────────────────── */
.wam-building-card {
  border: 1px solid #e8e5e2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wam-building-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.wam-building-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.wam-building-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f2f0;
}
 
.wam-building-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
 
.wam-building-card:hover .wam-building-card__image img {
  transform: scale(1.03);
}
 
.wam-building-card__placeholder {
  width: 100%;
  height: 100%;
  background: #f4f2f0;
}
 
.wam-building-card__body {
  padding: 16px 18px 18px;
}
 
.wam-building-card__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1B1C39;
}
 
.wam-building-card__body p {
  font-size: 13px;
  color: #7A7A7A;
  margin: 0;
}

/* ==========================================================================
   Commercial Listings — Type Sections + Image Carousels
   ========================================================================== */

.wam-commercial-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid #e8e5e2;
}

.wam-commercial-section__header {
    margin-bottom: 28px;
}

.wam-commercial-section__title {
    font-size: 2.75rem;
    margin: 0 0 8px 0;
    color: var(--wp--preset--color--contrast);
}

.wam-commercial-section__desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--contrast-two);
    margin: 0;
    max-width: 560px;
}

/* ── Carousel wrapper ─────────────────────────────────────────────────────── */
.wam-commercial-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wam-commercial-carousel__track-wrap {
    flex: 1;
    overflow: hidden;
    /* added 5-27 to test x axis scroll */
    width: 100%;
}

.wam-commercial-carousel__track {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

/* ── Each slide — 3 visible at once ──────────────────────────────────────── */
.wam-commercial-carousel__slide {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 0;
}

.wam-commercial-carousel__slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

/* ── Prev / Next buttons ──────────────────────────────────────────────────── */
.wam-commercial-carousel__btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #1B1C39;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.15s ease, opacity 0.15s ease;
    z-index: 1;
}

.wam-commercial-carousel__btn:hover {
    background: #313266;
}

.wam-commercial-carousel__btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── Dot indicators ───────────────────────────────────────────────────────── */
.wam-commercial-carousel__dots {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.wam-commercial-carousel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d0cdc9;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wam-commercial-carousel__dot.is-active {
    background: #1B1C39;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wam-commercial-carousel__slide {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .wam-commercial-carousel__slide {
        flex: 0 0 100%;
    }
}

 
 
/* ── FILTER AREA ────────────────────────────────────────────────────────── */
.wam-listing-filters {
  background: #F4F2F0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
 
.wam-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}
 
.wam-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
 
.wam-filter-group label,
.wam-filter-group legend {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7A7A7A;
}
 
.wam-filter-group select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid #d6d3d0;
  border-radius: 4px;
  background: #ffffff;
  font-size: 13px;
  font-family: inherit;
  color: #393939;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237A7A7A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 140px;
  cursor: pointer;
}
 
.wam-filter-group select:focus {
  outline: 2px solid #1B1C39;
  outline-offset: 1px;
}
 
/* Checkboxes */
.wam-filter-group--checks {
  margin-top: 4px;
}
 
.wam-filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
 
.wam-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #393939;
  cursor: pointer;
}
 
.wam-check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #1B1C39;
  cursor: pointer;
}
 
/* Active filter pills */
.wam-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 0;
}
 
.wam-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: #1B1C39;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
 
.wam-filter-pill__remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
 
.wam-filter-pill__remove:hover {
  color: #ffffff;
}
 
/* Filter actions */
.wam-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
 
.wam-filter-submit {
  padding: 10px 20px;
  background: #1B1C39;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease;
}
 
.wam-filter-submit:hover {
  background: #313266;
}
 
.wam-filter-reset {
  font-size: 13px;
  color: #7A7A7A;
  text-decoration: none;
  font-weight: 500;
}
 
.wam-filter-reset:hover {
  color: #FF6E00;
}


/* ── GRID + 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;
}
 
/* 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;
}
 
/* 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;
}


/* ── PAGINATION ─────────────────────────────────────────────────────────── */
.wam-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
 
.wam-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e8e5e2;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  color: #393939;
  transition: all 0.15s ease;
}
 
.wam-pagination .page-numbers:hover {
  background: #f4f2f0;
  border-color: #1B1C39;
}
 
.wam-pagination .page-numbers.current {
  background: #1B1C39;
  color: #ffffff;
  border-color: #1B1C39;
}
 
.wam-pagination .prev,
.wam-pagination .next {
  width: auto;
  padding: 0 14px;
  font-weight: 600;
}
 
/* ── NO RESULTS ─────────────────────────────────────────────────────────── */
.wam-no-results {
  padding: 60px 0;
  text-align: center;
  color: #7A7A7A;
}
 
.wam-no-results a {
  color: #1B1C39;
  font-weight: 600;
}

/* ==========================================================================
   Price Range Slider
   ========================================================================== */
 
.wam-filter-group--price {
  width: 100%;
  padding: 16px 0 8px;
}
 
.wam-price-slider__heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7A7A7A;
  margin: 0 0 4px;
}
 
.wam-price-slider__instruction {
  font-size: 12px;
  color: #7A7A7A;
  margin: 0 0 20px;
  line-height: 1.4;
}
 
/* Slider container */
.wam-price-slider {
  position: relative;
  width: 100%;
  user-select: none;
}
 
/* Track — the full bar */
.wam-price-slider__track {
  position: relative;
  height: 4px;
  background: #e0ddd9;
  border-radius: 2px;
  cursor: pointer;
  margin: 14px 0; /* room for handles to extend above/below */
}
 
/* Colored fill between the two handles */
.wam-price-slider__range {
  position: absolute;
  top: 0;
  height: 100%;
  background: #FF6E00;
  border-radius: 2px;
  pointer-events: none;
}
 
/* Handles */
.wam-price-slider__handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid #1B1C39;
  border-radius: 50%;
  cursor: grab;
  padding: 0;
  z-index: 2;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: none; /* prevent scroll interference on mobile */
}
 
.wam-price-slider__handle:active {
  cursor: grabbing;
  border-color: #FF6E00;
  box-shadow: 0 0 0 4px rgba(255, 110, 0, 0.15);
}
 
.wam-price-slider__handle:focus-visible {
  outline: none;
  border-color: #FF6E00;
  box-shadow: 0 0 0 3px rgba(255, 110, 0, 0.25);
}
 
/* Labels row below track */
.wam-price-slider__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
 
.wam-price-slider__label {
  font-size: 13px;
  font-weight: 600;
  color: #1B1C39;
  min-width: 60px;
}
 
.wam-price-slider__label[data-label="max"] {
  text-align: right;
}

/* ==========================================================================
   Archive Listing Pages — View All / Residential / Commercial
   ========================================================================== */
.wam-archive-all-listings,
.wam-archive-residential,
.wam-archive-commercial {
  box-sizing: border-box;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
 
/* Archive header: title left, cross-link right */
.wam-archive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 10px;
  flex-wrap: wrap;
}
 
.wam-archive-header h1 { margin: 0; }
 
.wam-archive-header__right {
  text-align: right;
  flex-shrink: 0;
}
 
.wam-archive-header__right p {
  font-size: 13px;
  color: #7A7A7A;
  margin: 0;
  line-height: 1.5;
}
 
.wam-archive-header__right a {
  color: #1B1C39;
  font-weight: 600;
  text-decoration: none;
}
 
.wam-archive-header__right a:hover { color: #FF6E00; }
 
.wam-archive-header__description {
  padding-bottom: 3rem;
}

/* Two-column layout: filter left, results right */
.wam-archive-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
 
/* Filter sidebar — sticky */
.wam-archive-filter-sidebar {
  position: sticky;
  top: 120px;
}
 
.wam-results-count {
  font-size: 14px;
  color: #7A7A7A;
  margin: 0 0 20px;
}
 
.wam-results-count strong {
  color: #FF6E00;
  font-size: 16px;
}
 
/* Results grid */
.wam-archive-results .wam-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
 
/* Building dropdown in residential sidebar */
.wam-filter-sidebar__group--open .wam-filter-sidebar__panel {
  display: block;
}
 
.wam-filter-sidebar__group select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d6d3d0;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  color: #393939;
  background: #ffffff;
  cursor: pointer;
}

/* ==========================================================================
   Filter Sidebar — Polished UI (matches single-buildings appearance)
   Applies to all archive pages: residential, commercial, view-all
   ========================================================================== */

.wam-archive-filter-sidebar .wam-listing-filters,
.wam-archive-filter-sidebar form.wam-filter-sidebar {
    background: #F4F2F0;
    border-radius: 8px;
    padding: 20px 24px 28px;
    margin-bottom: 28px;
}

.wam-filter-sidebar__group {
    border-bottom: 1px solid #E5E3E0;
    padding: 0;
}

.wam-filter-sidebar__group:last-of-type {
    border-bottom: none;
}

.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;
    flex-shrink: 0;
}

.wam-filter-sidebar__toggle .wam-filter-toggle-icon {
    margin-left: auto;
    font-size: 11px;
    color: #7A7A7A;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.wam-filter-sidebar__active-val {
    font-size: 11px;
    color: #FF6E00;
    font-weight: 700;
}

.wam-filter-sidebar__panel {
    padding-bottom: 14px;
}

.wam-filter-sidebar__checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wam-filter-sidebar__check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #393939;
    cursor: pointer;
    padding: 4px 0;
    border-radius: 3px;
    transition: color 0.15s ease;
}

.wam-filter-sidebar__check-label:hover {
    color: #1B1C39;
}

.wam-filter-sidebar__check-label.is-selected {
    color: #1B1C39;
    font-weight: 600;
}

.wam-filter-sidebar__check-label input[type="radio"],
.wam-filter-sidebar__check-label input[type="checkbox"] {
    accent-color: #1B1C39;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wam-filter-sidebar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    margin-top: 4px;
}

.wam-filter-submit {
    background: #1B1C39;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s ease;
    font-family: inherit;
}

.wam-filter-submit:hover {
    background: #313266;
}

.wam-filter-reset {
    font-size: 12px;
    color: #7A7A7A;
    text-decoration: none;
    font-weight: 500;
}

.wam-filter-reset:hover {
    color: #FF6E00;
}

.wam-filter-date {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d9d5d1;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    color: #393939;
    background: #ffffff;
}

.wam-filter-sidebar__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7A7A7A;
    margin: 0 0 12px 0;
}

/* Building dropdown on residential page — styled to match filter aesthetic */
.wam-filter-sidebar__panel select,
#wam-building-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d5d1;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    color: #393939;
    background: #ffffff;
    cursor: pointer;
    appearance: auto;
}

/* View All Listings specific styling - that page only */
.wam-archive-all-listings .wam-listing-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #F4F2F0;
    border-radius: 8px;
    padding: 14px 20px;
}

.wam-archive-all-listings .wam-filter-sidebar__group {
    border-bottom: none;
    flex-shrink: 0;
}

.wam-archive-all-listings .wam-filter-sidebar__toggle {
    padding: 8px 12px;
    border: 1px solid #d9d5d1;
    border-radius: 20px;
    background: #ffffff;
    white-space: nowrap;
}

.wam-archive-all-listings .wam-filter-sidebar__panel {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e5e3e0;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 14px 16px;
    z-index: 100;
    min-width: 180px;
}

.wam-archive-all-listings .wam-filter-sidebar__actions {
  margin-left: auto;
  padding-top: 0;
  margin-top: 0;
}

form.wam-listing-filters.wam-listing-filters--all {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  padding: 1em 0;
}

form.wam-listing-filters.wam-listing-filters--all > .wam-filter-sidebar__group {
  max-width: 200px;
}

form.wam-listing-filters.wam-listing-filters--all > .wam-filter-sidebar__actions {
  padding-top: 0px !important;
  margin-top: 0px !important;
}
form.wam-listing-filters.wam-listing-filters--all > .wam-price-slider,
form.wam-listing-filters.wam-listing-filters--all > .wam-price-slider__instruction {
  position: relative;
  width: 100%;
  max-width: 200px;
  user-select: none;
}

/* ── Astor Furnished page intro ───────────────────────────────────────────── */
.wam-astor-intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
    padding: 32px 0 40px;
    border-bottom: 1px solid #e8e5e2;
    margin-bottom: 40px;
}

.wam-astor-intro__brand {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #C55A1E;
    margin: 0;
}

.wam-astor-intro__copy p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #393939;
}

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

.wam-astor-intro__highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #393939;
}

.wam-astor-intro__highlights li i {
    color: #C55A1E;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .wam-astor-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wam-archive-listings,
  .wam-archive-buildings {
    padding: 32px 24px 60px;
  }
 
  .wam-container {
    padding: 0 20px;
  }
 
  .wam-listings-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
 
  .wam-filter-row {
    gap: 10px;
  }
 
  .wam-filter-group select {
    min-width: 120px;
  }
}
 
@media (max-width: 600px) {
  .wam-listings-grid,
  .wam-buildings-grid {
    grid-template-columns: 1fr;
  }
 
  .wam-listings-grid--3col {
    grid-template-columns: 1fr;
  }
 
  .wam-archive-listings,
  .wam-archive-buildings {
    padding: 24px 16px 48px;
  }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wam-archive-layout {
    grid-template-columns: 1fr;
  }
 
  .wam-archive-filter-sidebar {
    position: static;
  }
}
 
@media (max-width: 640px) {
  .wam-archive-all-listings,
  .wam-archive-residential,
  .wam-archive-commercial {
    padding-left: 16px;
    padding-right: 16px;
  }
 
  .wam-archive-header {
    flex-direction: column;
  }
 
  .wam-archive-header__right {
    text-align: left;
  }
}