/* ==========================================================================
   WAM Single Building Page Styles
   File: assets/css/single-buildings.css
 
   Section order (matches design comp):
   1. Hero: breadcrumb + title + facts + links + CTA + filter sidebar
   2. Photo gallery/slider
   3. Building amenities
   4. Description
   5. Apply Now + copy
   6. Available Listings grid
   7. Other Buildings (compact 4-col)
   8. Contact / form
   ========================================================================== */
 
 
/* ── PAGE WRAPPER ───────────────────────────────────────────────────────── */
.wam-building-page {
  width: 100%;
}

/* Shared inner max-width */
.wam-building-hero,
.wam-building-about,
.wam-building-commercial-cta,
.wam-building-search-bar,
.wam-building-listings,
.wam-building-footer-row,
.wam-building-contact {
  padding: 40px 10rem;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HERO SECTION ────────────────────────────────────────────────────────── */
.wam-building-hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 0;
}
 
/* ── BREADCRUMB ─────────────────────────────────────────────────────────── */
.wam-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: #7A7A7A;
}
 
.wam-breadcrumbs a { color: #7A7A7A; text-decoration: none; }
.wam-breadcrumbs a:hover { color: #FF6E00; }
.wam-breadcrumbs span[aria-hidden] { color: #B9B9B9; }
.wam-breadcrumbs__current { font-size: 13px; color: #1B1C39; font-weight: 500; }
 
/* Title row: name+facts LEFT | links+CTA RIGHT */
.wam-building-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
 
.wam-building-title-row__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
 
.wam-building-title {
  margin: 0;
  line-height: 1.1;
  font-size: 2.4rem;
}
 
.wam-building-address {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: #7A7A7A;
  margin-top: 5px;
}
 
.wam-building-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
 
.wam-fact {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #393939;
}
 
.wam-fact i {
  font-size: 13px;
  color: #7A7A7A;
  width: 15px;
  text-align: center;
  flex-shrink: 0;
}
 
.wam-building-title-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}
 
.wam-building-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: flex-end;
}
 
.wam-building-links a {
  font-size: 15px;
  font-weight: 600;
  color: #1B1C39;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
 
.wam-building-links a:hover { color: #FF6E00; }
 
/* Media row: gallery LEFT | amenities RIGHT */
.wam-building-media-row {
  display: grid !important;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
  width: 100%;
} 
.wam-building-gallery-wrap { 
  min-width: 0; 
}
.wam-building-gallery { 
  width: 100%; 
}
 
.wam-building-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 6px;
}
 
.wam-building-gallery__slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
 
.wam-building-gallery__slide.is-active { display: block; }
 
.wam-building-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.9);
  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: 14px; }
.wam-gallery-btn--next { right: 14px; }
 
/* Amenities sidebar — single column */
.wam-building-amenities-sidebar {
  background-color: #F1EDEA;
  border-radius: 10px;
  padding: 3rem;
}

.wam-building-amenities-sidebar h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
}
 
.wam-amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
 
.wam-amenity {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #393939;
  line-height: 1.4;
}
 
.wam-amenity i {
  font-size: 13px;
  margin-top: 1px;
  color: #7A7A7A;
  width: 15px;
  flex-shrink: 0;
  text-align: center;
}

/* ── 2. ABOUT THE BUILDING ──────────────────────────────────────────────── */
.wam-building-about {
  border-top: 1px solid #f0f0f0;
}
 
.wam-building-about h2 { margin-bottom: 18px; }
 
.wam-building-about .wam-richtext p {
  line-height: 1.75;
  color: #393939;
}
 
 
/* ── 3. COMMERCIAL CTA BAR ──────────────────────────────────────────────── */
.wam-building-commercial-cta {
  max-width: 100%;
}

.wam-building-commercial-cta__inner {
  max-width: 1340px;
  background: #F4F2F0;
  border: 1px solid #e8e5e2;
  border-radius: 10px;
  padding: 28px 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
 
.wam-building-commercial-cta__text { flex: 1; }
 
.wam-building-commercial-cta__heading {
  font-size: 15px;
  font-weight: 700;
  color: #1B1C39;
  margin: 0 0 6px;
}
 
.wam-building-commercial-cta__text p:last-child {
  font-size: 13px;
  color: #7A7A7A;
  margin: 0;
  max-width: 540px;
  line-height: 1.55;
}
 
 
/* ── 4. SEARCH BAR ──────────────────────────────────────────────────────── */
.wam-building-search-bar {
  background: #F1EDEA;
  border-bottom: 1px solid #e8e5e2;
  max-width: 100%;
  padding: 20px 40px;
}
 
.wam-building-search-bar__inner {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 1px solid #d6d3d0;
  border-radius: 4px;
  overflow: hidden;
}
 
.wam-building-search-bar__inner > i {
  padding: 0 12px;
  color: #7A7A7A;
  font-size: 15px;
  flex-shrink: 0;
}
 
.wam-building-search-bar__input {
  flex: 1;
  height: 46px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: #393939;
  background: transparent;
  padding: 0 8px;
}
 
.wam-building-search-bar__input::placeholder { color: #B9B9B9; }
 
.wam-building-search-bar__inner .wam-button {
  border-radius: 0;
  height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  white-space: nowrap;
  font-size: 12px;
  border: none;
  border-left: 1px solid #d6d3d0;
  background: #1B1C39;
}
 
.wam-building-search-bar__inner .wam-button:hover {
  background: #313266;
}
 
 
/* ── 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: 140px;
}
 
.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;
}
 
/* Explore All CTA below filter */
.wam-building-filter-cta { margin-top: 20px; }
 
.wam-building-filter-cta .wam-button {
  width: 100%;
  text-align: center;
  justify-content: center;
  background: #FF6E00;
  border-color: #FF6E00;
  font-size: 11px;
  padding: 10px 12px;
}
 
.wam-building-filter-cta .wam-button:hover {
  background: #e05c00;
  border-color: #e05c00;
}
 
.wam-no-results { padding: 32px 0; color: #7A7A7A; font-size: 15px; }
.wam-no-results a { color: #1B1C39; font-weight: 600; }
 
/* ── 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;
}

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


/* ── 6. OTHER BUILDINGS + AGENT/SOCIAL ──────────────────────────────────── */
.wam-building-footer-row {
  border-top: 1px solid #f0f0f0;
  max-width: 100%;
  padding: 48px 40px;
}
 
.wam-building-footer-row__inner {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}
 
.wam-building-footer-row__buildings h2 { margin-bottom: 24px; }
 
/* Compact building cards grid */
.wam-other-buildings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18vw, 1fr));
  gap: 16px;
}
 
.wam-other-buildings-grid .wam-building-card {
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
.wam-other-buildings-grid .wam-building-card__image-link { display: block; }
 
.wam-other-buildings-grid .wam-building-card__image {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e8e5e2;
}
 
.wam-other-buildings-grid .wam-building-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
 
.wam-other-buildings-grid .wam-building-card:hover .wam-building-card__image img {
  transform: scale(1.04);
}
 
.wam-other-buildings-grid .wam-building-card__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
 
.wam-other-buildings-grid .wam-building-card__name {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #393939;
  margin: 0;
  line-height: 1.3;
}
 
.wam-other-buildings-grid .wam-building-card__address {
  font-size: 10px;
  color: #B9B9B9;
  margin: 0;
  line-height: 1.3;
}
 
.wam-other-buildings-grid .wam-building-card__cta,
.wam-other-buildings-grid .wam-building-card__body { 
  display: none; 
}

 
/* Agent + social aside */
.wam-building-footer-row__agent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}
 
.wam-building-footer-row__agent-note {
  font-size: 13px;
  color: #7A7A7A;
  line-height: 1.6;
  margin: 0;
}
 
.wam-building-footer-row__agent-note a {
  color: #1B1C39;
  font-weight: 600;
}
 
.wam-building-footer-row__agent-note a:hover { color: #FF6E00; }
 
.wam-social-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7A7A7A;
  margin: 0;
}
 
.wam-social-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
 
.wam-social-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #393939;
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease;
}
 
.wam-social-nav a:hover { background: #FF6E00; }

/* ── Building listings grid — 3-col constrained layout ───────────────────── */
.wam-building-listings__results {
    min-width: 0; /* critical — prevents grid blowout in a CSS grid parent */
    width: 100%;
}

.wam-building-listings .wam-listings-grid,
.wam-building-listings .wam-listings-grid--3col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important; /* remove any horizontal scroll */
}

/* Cards must not exceed their column */
.wam-building-listings .wam-listing-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.wam-building-listings .wam-listing-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
 
/* ── 7. CONTACT ─────────────────────────────────────────────────────────── */
.wam-building-contact {
  border-top: 1px solid #f0f0f0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
 
.wam-building-contact__intro h2 { margin-bottom: 12px; }
 
.wam-building-contact__intro p {
  font-size: 14px;
  color: #7A7A7A;
  line-height: 1.65;
}
 
 
/* ── SHARED BUTTONS ─────────────────────────────────────────────────────── */
.wam-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  background: #393939;
  color: #ffffff;
  font-family: "Rokkitt", serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid #393939;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
 
.wam-button:hover {
  background: #FF6E00;
  border-color: #FF6E00;
  color: #ffffff;
}
 
.wam-button--outline {
  background: transparent;
  color: #393939;
}
 
.wam-button--outline:hover {
  background: transparent;
  color: #FF6E00;
  border-color: #FF6E00;
}


/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .wam-building-media-row { grid-template-columns: 1fr 240px; }
  .wam-building-listings__layout { grid-template-columns: 220px 1fr; }
  .wam-listings-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: 2 columns building listings grid */
@media (max-width: 1024px) {
    .wam-building-listings .wam-listings-grid--3col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
 
@media (max-width: 900px) {
  .wam-building-hero,
  .wam-building-about,
  .wam-building-listings,
  .wam-building-footer-row__inner,
  .wam-building-contact { padding-left: 24px; padding-right: 24px; }
 
  .wam-building-media-row { grid-template-columns: 1fr; gap: 24px; }
  .wam-building-title-row { flex-direction: column; gap: 20px; }
  .wam-building-title-row__right { align-items: flex-start; }
 
  .wam-building-listings__layout { grid-template-columns: 1fr; }
  .wam-building-listings__filter { position: static; }
 
  .wam-building-footer-row__inner { grid-template-columns: 1fr; }
  .wam-building-contact { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .wam-building-hero,
  .wam-building-about,
  .wam-building-commercial-cta,
  .wam-building-search-bar,
  .wam-building-listings,
  .wam-building-footer-row,
  .wam-building-contact { padding-left: 16px; padding-right: 16px; }
  .wam-building-commercial-cta__inner { flex-direction: column; align-items: flex-start; }
  .wam-other-buildings-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 column building listings grid */
@media (max-width: 640px) {
    .wam-building-listings__layout {
        grid-template-columns: 1fr !important;
    }

    .wam-building-listings .wam-listings-grid--3col {
        grid-template-columns: 1fr !important;
    }
}