/* ==========================================================================
   Granwood Gate — "Homes for Sale" MLS-style cards + listing detail pages
   Cards live on /communities/granwood-gate/ (section id="homes").
   Detail pages live at /communities/granwood-gate/homes/<slug>/.
   Loaded after wrighthaven-custom.css. Everything is scoped under
   .wh-mls-grid / .wh-listing so nothing leaks into Elementor soup.
   NOTE: new <button>s must out-specific Elementor's global button reset
   (see DESIGN.md "known gotchas") — hence the doubled-class selectors and
   !important on background/padding/font-size/text-transform.
   ========================================================================== */

:root {
  --gwm-surface: #ffffff;
  --gwm-ink: #141414;
  --gwm-muted: #6c675d;
  --gwm-line: #e7e3da;
  --gwm-gold: #9a8c57;
  --gwm-tan: #c0b59b;
  --gwm-green: #167f67;
  --gwm-radius: 10px;
  --gwm-shadow: 0 1px 2px rgba(20, 20, 20, 0.08), 0 10px 28px rgba(20, 20, 20, 0.14);
  --gwm-shadow-lift: 0 2px 4px rgba(20, 20, 20, 0.1), 0 18px 44px rgba(20, 20, 20, 0.22);
}

/* --------------------------------------------------------------------------
   0. Hero (Granwood Gate c8f3dfe, Pasture Edge 5666ea35, Cherrywood 1a5e4754)
   Bottom-left editorial layout over the Elementor slideshow background.
   -------------------------------------------------------------------------- */

.elementor-element.elementor-element-c8f3dfe,
.elementor-element.elementor-element-5666ea35,
.elementor-element.elementor-element-1a5e4754 {
  --content-width: 1280px;
  --min-height: 94vh;
  --overlay-opacity: 0;
}

/* replace the flat 0.7 black overlay (a ::before on the slideshow) with a
   cinematic bottom-weighted gradient */
.elementor-element.elementor-element-c8f3dfe::before,
.elementor-element.elementor-element-c8f3dfe > .elementor-background-slideshow::before,
.elementor-element.elementor-element-c8f3dfe > .e-con-inner > .elementor-background-slideshow::before,
.elementor-element.elementor-element-5666ea35::before,
.elementor-element.elementor-element-5666ea35 > .elementor-background-slideshow::before,
.elementor-element.elementor-element-5666ea35 > .e-con-inner > .elementor-background-slideshow::before,
.elementor-element.elementor-element-1a5e4754::before,
.elementor-element.elementor-element-1a5e4754 > .elementor-background-slideshow::before,
.elementor-element.elementor-element-1a5e4754 > .e-con-inner > .elementor-background-slideshow::before {
  background: linear-gradient(
      to top,
      rgba(10, 10, 10, 0.88) 0%,
      rgba(10, 10, 10, 0.55) 32%,
      rgba(10, 10, 10, 0.28) 60%,
      rgba(10, 10, 10, 0.38) 100%
    ) !important;
  opacity: 1 !important;
}

.elementor-element.elementor-element-c8f3dfe > .e-con-inner,
.elementor-element.elementor-element-5666ea35 > .e-con-inner,
.elementor-element.elementor-element-1a5e4754 > .e-con-inner {
  width: 100%;
  max-width: 1280px;
  align-items: flex-end !important;
  justify-content: flex-start !important;
}

.wh-hero {
  /* must create a stacking context above the absolutely-positioned
     background slideshow, or the static content paints behind it */
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 40px 0 24px;
}

.wh-hero-main { max-width: 640px; }

.wh-hero-badge {
  width: 84px;
  height: 84px;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.wh-hero-kicker {
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gwm-tan);
  margin: 0 0 14px;
}

.wh-hero-title {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.98;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.wh-hero-title span {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.14em;
  color: var(--gwm-tan);
  margin-top: 12px;
}

.wh-hero-sub {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 26px;
  max-width: 560px;
}

.wh-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.wh-hero-ctas .wh-btn { padding: 15px 26px; font-size: 13.5px; }

.wh-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
}

.wh-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); color: #fff; }

.wh-hero-note {
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 18px 0 0;
}

/* property thumbnails, bottom-right (Pasture Edge hero; Granwood no longer uses these) */
.wh-hero-thumbs { display: flex; gap: 12px; flex: 0 0 auto; }

.wh-hero-thumbs a {
  position: relative;
  display: block;
  width: 118px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.wh-hero-thumbs a:hover { transform: translateY(-4px); border-color: var(--gwm-tan); }

@media (prefers-reduced-motion: reduce) {
  .wh-hero-thumbs a, .wh-hero-thumbs a:hover { transform: none; transition: none; }
}

.wh-hero-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wh-hero-thumbs span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 14px 4px 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  letter-spacing: 0.04em;
}

@media (max-width: 1080px) {
  .wh-hero { flex-direction: column; align-items: flex-start; }
  .wh-hero-thumbs { width: 100%; }
  .wh-hero-thumbs a { flex: 1 1 0; width: auto; max-width: 150px; }
}

@media (max-width: 700px) {
  .elementor-element.elementor-element-c8f3dfe,
  .elementor-element.elementor-element-5666ea35,
  .elementor-element.elementor-element-1a5e4754 { --min-height: 100svh; }
  .wh-hero { padding-bottom: 8px; }
  .wh-hero-badge { width: 64px; height: 64px; }
  .wh-hero-sub { font-size: 14.5px; }
  .wh-hero-ctas .wh-btn { padding: 13px 20px; font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   1. MLS card grid (community page)
   -------------------------------------------------------------------------- */

/* The homes section (673e2da3) was a side-by-side row (intro 42% | carousel).
   Stack it: intro on top, card grid full width below. The layout lives on the
   boxed container's .e-con-inner, whose --flex-direction comes from a
   higher-specificity Elementor rule — override the property directly. */
.elementor-element-673e2da3 > .e-con-inner {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 44px !important;
}

.elementor-element.elementor-element-673e2da3 .elementor-element-7c5aace5 {
  --width: 100%;
  width: 100% !important;
  max-width: 100% !important;
}

.wh-mls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  width: 100%;
  margin: 8px 0 4px;
}

@media (max-width: 1080px) {
  .wh-mls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wh-mls-grid { grid-template-columns: 1fr; gap: 24px; }
}

.wh-mls-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gwm-surface);
  border-radius: var(--gwm-radius);
  overflow: hidden;
  box-shadow: var(--gwm-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wh-mls-card:hover { transform: translateY(-4px); box-shadow: var(--gwm-shadow-lift); }

@media (prefers-reduced-motion: reduce) {
  .wh-mls-card, .wh-mls-card:hover { transform: none; transition: none; }
}

/* media / carousel */
.wh-mls-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #22211f;
}

.wh-mls-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) { .wh-mls-track { transition: none; } }

.wh-mls-track img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  display: block;
}

.wh-mls-chiprow {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}

.wh-mls-chip {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.wh-mls-chip--gold { background: var(--gwm-gold); border-color: var(--gwm-gold); }

.wh-mls-photocount {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  color: #fff;
  background: rgba(20, 20, 20, 0.7);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.wh-mls-photocount svg { width: 14px; height: 14px; fill: currentColor; }

/* carousel arrows — double class beats Elementor's global button reset */
button.wh-mls-nav.wh-mls-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  border: none;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--gwm-ink) !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  text-transform: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.wh-mls-media:hover button.wh-mls-nav,
button.wh-mls-nav.wh-mls-nav:focus-visible { opacity: 1; }

@media (hover: none) { button.wh-mls-nav.wh-mls-nav { opacity: 1; } }

button.wh-mls-nav.wh-mls-nav:hover { background: #fff !important; }
button.wh-mls-nav.wh-mls-nav svg { width: 16px; height: 16px; fill: currentColor; }
.wh-mls-nav--prev { left: 12px; }
.wh-mls-nav--next { right: 12px; }

.wh-mls-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.wh-mls-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease;
}

.wh-mls-dots span.is-active { background: #fff; }

/* card body */
.wh-mls-body {
  display: block;
  padding: 20px 22px 22px;
  text-decoration: none;
  color: var(--gwm-ink);
}

.wh-mls-price {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--gwm-ink);
  line-height: 1.15;
}

.wh-mls-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--gwm-muted);
  margin-left: 6px;
  letter-spacing: 0.02em;
}

/* Lot / inventory without a published price (e.g. Cherrywood Lot 3) */
.wh-mls-price--request {
  font-size: 22px;
  font-weight: 600;
  color: var(--gwm-gold);
}

.wh-mls-price--request small {
  display: block;
  margin-left: 0;
  margin-top: 4px;
  color: var(--gwm-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11.5px;
}

.wh-mls-name {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gwm-ink);
  margin-top: 6px;
}

.wh-mls-loc {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: var(--gwm-muted);
  margin-top: 2px;
}

.wh-mls-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--gwm-line);
}

.wh-mls-stats li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  color: #3d3a34;
}

.wh-mls-stats svg { width: 17px; height: 17px; fill: var(--gwm-gold); flex: 0 0 auto; }
.wh-mls-stats b { font-weight: 600; }

.wh-mls-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gwm-gold);
}

.wh-mls-cta svg { width: 14px; height: 14px; fill: currentColor; transition: transform 0.2s ease; }
.wh-mls-card:hover .wh-mls-cta svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   2. Listing detail page
   -------------------------------------------------------------------------- */

.wh-listing {
  background: #f6f4f0;
  font-family: "Poppins", sans-serif;
  color: var(--gwm-ink);
  padding: 34px 0 70px;
}

.wh-listing * { box-sizing: border-box; }

.wh-listing-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* top bar / breadcrumb */
.wh-listing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.wh-listing-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gwm-ink);
  text-decoration: none;
}

.wh-listing-back svg { width: 15px; height: 15px; fill: var(--gwm-gold); }
.wh-listing-back:hover { color: var(--gwm-gold); }

.wh-listing-crumbs { font-size: 12.5px; color: var(--gwm-muted); }
.wh-listing-crumbs a { color: var(--gwm-muted); text-decoration: none; }
.wh-listing-crumbs a:hover { color: var(--gwm-gold); }

@media (max-width: 700px) { .wh-listing-crumbs { display: none; } }

/* hero photo grid: 1 large + 4 tiles */
.wh-lh-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 21 / 9;
  background: #22211f;
}

.wh-lh-grid a { position: relative; display: block; overflow: hidden; }
.wh-lh-grid a:first-child { grid-row: span 2; }

.wh-lh-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.wh-lh-grid a:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) { .wh-lh-grid img, .wh-lh-grid a:hover img { transform: none; transition: none; } }

.wh-lh-grid.wh-lh-grid--few { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 8; }
.wh-lh-grid.wh-lh-grid--five-wide { }

@media (max-width: 820px) {
  .wh-lh-grid { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 3 / 2; }
  .wh-lh-grid a { display: none; }
  .wh-lh-grid a:first-child { display: block; grid-row: auto; }
}

button.wh-lh-all.wh-lh-all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--gwm-ink) !important;
  border: none;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px !important;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

button.wh-lh-all.wh-lh-all:hover { background: #fff !important; }
button.wh-lh-all.wh-lh-all svg { width: 16px; height: 16px; fill: var(--gwm-gold); }

/* header block: price / address / ctas */
.wh-listing-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--gwm-surface);
  border: 1px solid var(--gwm-line);
  border-radius: 14px;
  box-shadow: var(--gwm-shadow);
  padding: 28px 30px;
  margin-top: 18px;
}

.wh-lhead-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.wh-lhead-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gwm-gold);
  padding: 5px 11px;
  border-radius: 999px;
}

.wh-lhead-chip--dark { background: var(--gwm-ink); }
.wh-lhead-chip--green { background: var(--gwm-green); }

.wh-lhead-price {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--gwm-ink);
}

.wh-lhead-price small { font-size: 15px; font-weight: 500; color: var(--gwm-muted); margin-left: 8px; }

.wh-lhead-name {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
  color: var(--gwm-ink);
}

.wh-lhead-loc { font-size: 14px; color: var(--gwm-muted); margin-top: 4px; }

.wh-lhead-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--gwm-line);
}

.wh-lhead-stats li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: #3d3a34; }
.wh-lhead-stats svg { width: 20px; height: 20px; fill: var(--gwm-gold); }
.wh-lhead-stats b { font-weight: 600; }
.wh-lhead-stats small { color: var(--gwm-muted); font-size: 12px; display: block; }

.wh-lhead-ctas { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }

.wh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  padding: 14px 22px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  cursor: pointer;
}

.wh-btn svg { width: 15px; height: 15px; fill: currentColor; }
.wh-btn--gold { background: var(--gwm-gold); color: #fff; }
.wh-btn--gold:hover { background: #857949; color: #fff; }
.wh-btn--outline { background: transparent; color: var(--gwm-ink); border: 1px solid #b7b0a2; }
.wh-btn--outline:hover { border-color: var(--gwm-gold); color: var(--gwm-gold); }
.wh-btn--dark { background: var(--gwm-ink); color: #fff; }
.wh-btn--dark:hover { background: #000; color: #fff; }

@media (max-width: 820px) {
  .wh-listing-head { padding: 22px 20px; }
  .wh-lhead-price { font-size: 30px; }
  .wh-lhead-ctas { width: 100%; min-width: 0; }
}

/* two-column body */
.wh-listing-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
  margin-top: 26px;
}

@media (max-width: 980px) { .wh-listing-cols { grid-template-columns: 1fr; } }

.wh-lcard {
  background: var(--gwm-surface);
  border: 1px solid var(--gwm-line);
  border-radius: 14px;
  box-shadow: var(--gwm-shadow);
  padding: 28px 30px;
}

.wh-lcard + .wh-lcard { margin-top: 26px; }

.wh-lcard h2 {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gwm-ink);
  margin: 0 0 6px;
}

.wh-lcard .wh-lcard-rule {
  width: 54px;
  height: 2px;
  background: var(--gwm-gold);
  border: none;
  margin: 0 0 18px;
}

.wh-lcard p { font-size: 14.5px; line-height: 1.75; color: #43403a; margin: 0 0 14px; }
.wh-lcard p:last-child { margin-bottom: 0; }

/* spec grid (property summary + feature groups) */
.wh-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 0;
}

@media (max-width: 640px) { .wh-spec-grid { grid-template-columns: 1fr; } }

.wh-spec-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--gwm-line);
  font-size: 13.5px;
}

.wh-spec-grid dt { color: var(--gwm-muted); font-weight: 400; margin: 0; }
.wh-spec-grid dd { color: var(--gwm-ink); font-weight: 500; margin: 0; text-align: right; }

/* feature checklists */
.wh-feat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 34px;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) { .wh-feat-list { grid-template-columns: 1fr; } }

.wh-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #3d3a34;
}

.wh-feat-list svg { width: 16px; height: 16px; fill: var(--gwm-gold); flex: 0 0 auto; margin-top: 2px; }

/* rooms table */
.wh-rooms { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wh-rooms th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gwm-muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--gwm-line);
}
.wh-rooms td { padding: 10px; border-bottom: 1px solid var(--gwm-line); color: #3d3a34; }
.wh-rooms tr:nth-child(even) td { background: #faf9f6; }
.wh-rooms td:first-child { font-weight: 500; color: var(--gwm-ink); }

/* sidebar */
.wh-lside { position: relative; }

/* Desktop: pin the "Interested in this home" card so it rides down the page
   with the reader and releases at the bottom of .wh-listing-cols (i.e. just
   before the photo gallery, which lives outside this grid). Sticky is enabled
   here because these listing pages switch html/body to overflow-x: clip (not
   hidden), which — unlike the sitewide overflow-x: hidden — does not create a
   scroll container that would kill position: sticky. top clears the Elementor
   header once it re-parents to fixed on scroll. Scoped above the 980px
   breakpoint where .wh-listing-cols collapses to a single stacked column. */
@media (min-width: 981px) {
  .wh-lside {
    position: sticky;
    top: 156px; /* clears the fixed site header (102-140px tall by width) + a gap */
    align-self: start;
  }
}

.wh-lside .wh-lcard { padding: 26px; }

.wh-lside-title {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
}

.wh-lside-sub { font-size: 13px; color: var(--gwm-muted); margin: 0 0 18px; line-height: 1.6; }
.wh-lside .wh-btn { width: 100%; margin-bottom: 10px; }

.wh-lside-contact { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--gwm-line); font-size: 13.5px; color: #3d3a34; line-height: 1.9; }
.wh-lside-contact a { color: var(--gwm-ink); font-weight: 500; text-decoration: none; }
.wh-lside-contact a:hover { color: var(--gwm-gold); }
.wh-lside-contact b { display: block; font-weight: 600; color: var(--gwm-ink); }

.wh-lside-note { font-size: 11.5px; color: #97917f; margin-top: 14px; line-height: 1.6; }

/* virtual tour (iGuide embed) */
.wh-ltour { margin-top: 26px; }

.wh-ltour-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 360px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1917;
  border: 1px solid var(--gwm-line);
}

.wh-ltour-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.wh-ltour-open {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
}

.wh-ltour-open a {
  color: var(--gwm-ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--gwm-gold);
}

.wh-ltour-open a:hover { color: var(--gwm-gold); }

@media (max-width: 700px) {
  .wh-ltour-embed { aspect-ratio: 4 / 3; min-height: 280px; }
}

/* full gallery */
.wh-lgallery { margin-top: 26px; }

.wh-lgallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.wh-lgallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #22211f;
}

.wh-lgallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.wh-lgallery-grid a:hover img { transform: scale(1.04); }

button.wh-lgallery-more.wh-lgallery-more {
  display: block;
  margin: 22px auto 0 !important;
  background: transparent !important;
  color: var(--gwm-ink) !important;
  border: 1px solid #b7b0a2;
  border-radius: 5px !important;
  padding: 13px 30px !important;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase !important;
  cursor: pointer;
}

button.wh-lgallery-more.wh-lgallery-more:hover { border-color: var(--gwm-gold); color: var(--gwm-gold) !important; }
.wh-lgallery-grid a.is-hidden { display: none; }

/* other homes strip */
.wh-lother { margin-top: 40px; }

.wh-lother h2 {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
  color: var(--gwm-ink);
}

.wh-lother .wh-mls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }

@media (max-width: 760px) { .wh-lother .wh-mls-grid { grid-template-columns: 1fr; } }

.wh-lother .wh-mls-price { font-size: 21px; }
.wh-lother .wh-mls-name { font-size: 15px; }

/* --------------------------------------------------------------------------
   3. Lightbox (shared)
   -------------------------------------------------------------------------- */

.wh-lbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(12, 12, 12, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}

.wh-lbox.is-open { display: flex; }

.wh-lbox img {
  max-width: min(94vw, 1500px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

.wh-lbox img.wh-lbox-img--plan { background: #fff; }

button.wh-lbox-btn.wh-lbox-btn {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 18px !important;
  text-transform: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.wh-lbox-btn.wh-lbox-btn:hover { background: rgba(255, 255, 255, 0.2) !important; }
button.wh-lbox-btn.wh-lbox-btn svg { width: 20px; height: 20px; fill: currentColor; }

.wh-lbox-close { top: 22px; right: 22px; }
.wh-lbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.wh-lbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

.wh-lbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.06em;
}

@media (max-width: 700px) {
  .wh-lbox-prev { left: 8px; }
  .wh-lbox-next { right: 8px; }
  .wh-lbox img { max-width: 100vw; }
}


/* --------------------------------------------------------------------------
   Cherrywood Estates — Homes For Sale section
   Elementor still styles #2bd1aa3 as a dark row layout with white text
   (from the old available-homes block). Force a light stacked MLS layout.
   -------------------------------------------------------------------------- */
.elementor-271 .elementor-element.elementor-element-2bd1aa3.homes,
.elementor-element.elementor-element-2bd1aa3.homes {
  --display: flex !important;
  --flex-direction: column !important;
  --align-items: stretch !important;
  --justify-content: flex-start !important;
  --gap: 0px !important;
  --row-gap: 0px !important;
  --column-gap: 0px !important;
  --container-widget-width: 100% !important;
  --container-widget-flex-grow: 0 !important;
  --container-widget-align-self: stretch !important;
  --content-width: 1200px !important;
  background: #f7f5f0 !important;
  background-color: #f7f5f0 !important;
  background-image: none !important;
  color: #141414 !important;
  padding: 56px 0 64px !important;
  overflow: hidden;
}

.elementor-271 .elementor-element.elementor-element-2bd1aa3.homes:not(.elementor-motion-effects-element-type-background),
.elementor-271 .elementor-element.elementor-element-2bd1aa3.homes > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: #f7f5f0 !important;
  background-image: none !important;
}

.elementor-271 .elementor-element.elementor-element-2bd1aa3.homes > .e-con-inner,
.elementor-element.elementor-element-2bd1aa3.homes > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  /* stretch so .wh-mls-grid can be full width; flex-start shrink-wrapped
     the grid to one card (~420px) and forced the second card underneath */
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
  box-sizing: border-box !important;
}

/* Heading was white (global --e-global-color-text) on our light bg */
.elementor-271 .elementor-element.elementor-element-2bd1aa3.homes .elementor-heading-title,
.elementor-element.elementor-element-2bd1aa3.homes .elementor-heading-title {
  color: #141414 !important;
  font-family: "Lato", sans-serif !important;
  font-weight: 300 !important;
  font-size: clamp(28px, 3.6vw, 40px) !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin: 0 0 6px !important;
}

.elementor-element.elementor-element-2bd1aa3.homes .elementor-widget-divider {
  width: 100%;
  max-width: 70px;
  margin: 0 0 18px !important;
}

.elementor-element.elementor-element-2bd1aa3.homes .elementor-divider-separator {
  width: 70px !important;
  margin: 0 !important;
  border-top: 2px solid var(--gwm-gold, #9a8c57) !important;
  background: none !important;
}

.wh-cw-homes-intro,
.elementor-element.elementor-element-2bd1aa3.homes .elementor-widget-text-editor,
.elementor-element.elementor-element-2bd1aa3.homes .elementor-widget-text-editor p {
  max-width: 640px;
  margin: 0 0 8px !important;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #5a564e !important;
}

.wh-cw-homes-note {
  margin: 22px 0 0 !important;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #7a756c !important;
}

.wh-cw-homes-note a {
  color: var(--gwm-gold, #9a8c57) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cherrywood Homes for Sale — two cards side-by-side (model home + Lot 3). */
.elementor-271 .elementor-element.elementor-element-2bd1aa3.homes .wh-mls-grid,
.elementor-element.elementor-element-2bd1aa3.homes .wh-mls-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 26px !important;
  width: 100% !important;
  max-width: 920px !important;
  margin: 12px 0 0 !important;
  min-width: 0 !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
}

.elementor-271 .elementor-element.elementor-element-2bd1aa3.homes .wh-mls-card,
.elementor-element.elementor-element-2bd1aa3.homes .wh-mls-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.elementor-element.elementor-element-2bd1aa3.homes .wh-mls-media {
  overflow: hidden !important;
}

.elementor-element.elementor-element-2bd1aa3.homes .wh-mls-track {
  width: 100%;
}

/* Keep heading/intro left-aligned even though the inner row stretches */
.elementor-element.elementor-element-2bd1aa3.homes .elementor-element-cw-headwrap {
  width: 100%;
  max-width: 920px;
}

@media (max-width: 760px) {
  .elementor-element.elementor-element-2bd1aa3.homes > .e-con-inner {
    padding: 0 18px !important;
  }
  .elementor-271 .elementor-element.elementor-element-2bd1aa3.homes .wh-mls-grid,
  .elementor-element.elementor-element-2bd1aa3.homes .wh-mls-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
}


/* Static single image on MLS cards (no carousel) */
.wh-mls-media > img.wh-mls-static-img,
.wh-mls-static-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.wh-mls-media:has(> img.wh-mls-static-img) {
  /* keep aspect-ratio box; image fills via absolute */
}
