/* === IDX Broker Styles — Ian Greenen Site v3 === */
/* Post 39 showcase CSS removed — all showcase styles live here now */

/* === Omnibar Search Form === */
.idx-omnibar-form {
  max-width: 900px;
  margin: 0 auto;
}
.idx-omnibar-form .idx-omnibar-input,
.idx-omnibar-form .idx-omnibar-extra-input {
  background: #ffffff !important;
  color: #0A0719 !important;
  border: 1px solid #CFD2D8 !important;
  border-radius: 6px !important;
  padding: 14px 16px !important;
  font-size: 16px !important; /* >=16px prevents iOS zoom-on-focus */
  font-family: "Josefin Sans", sans-serif !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.idx-omnibar-form .idx-omnibar-input:focus,
.idx-omnibar-form input:focus {
  border-color: #100B28 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16,11,40,0.15) !important;
}
.idx-omnibar-form input[type="number"] {
  background: #ffffff !important;
  color: #0A0719 !important;
  border: 1px solid #CFD2D8 !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  font-size: 16px !important; /* >=16px prevents iOS zoom-on-focus */
  font-family: "Josefin Sans", sans-serif !important;
  box-sizing: border-box !important;
}
.idx-omnibar-form label {
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #656978 !important;
  margin-bottom: 6px !important;
  display: block !important;
  font-family: "Josefin Sans", sans-serif !important;
}
.idx-omnibar-form .idx-omnibar-extra {
  margin-top: 12px;
}
.idx-omnibar-form .idx-omnibar-extra-button {
  background: #100B28 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 14px 32px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
  width: 100% !important;
  margin-top: 12px !important;
  font-family: "Josefin Sans", sans-serif !important;
}
.idx-omnibar-form .idx-omnibar-extra-button:hover {
  background: #323744 !important;
}
.idx-omnibar-form .idx-omnibar-extra-button i {
  margin-right: 8px;
}

/* === IMPress Property Showcase — Uniform Grid v3 === */

/*
 * HTML structure from IMPress:
 * .impress-property-showcase.impress-row > .impress-showcase-property.columns
 *   > a.impress-showcase-photo
 *       > img, span.impress-price, span.impress-status, p.impress-address
 *   > p.impress-beds-baths-sqft
 *
 * Key problem: .impress-address is INSIDE the .impress-showcase-photo <a> tag.
 * We make the photo <a> a flex column so img + address both show naturally.
 */

/* Parent grid — override Foundation .row flex */
.shortcode.impress-property-showcase.impress-row,
.impress-property-showcase.impress-row,
.impress-property-showcase {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: unset !important;
}
.impress-property-showcase::before,
.impress-property-showcase::after {
  display: none !important;
  content: none !important;
}

/* Card — override Foundation .columns width/float */
.impress-showcase-property.columns,
.impress-showcase-property {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}
.impress-showcase-property:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/*
 * Photo container (<a> tag) — use flex column layout.
 * The img sits on top, then price/status overlay it,
 * then address flows naturally below the image.
 * overflow: hidden on the CARD clips everything neatly.
 */
a.impress-showcase-photo,
.impress-showcase-property .impress-showcase-photo {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  width: 100% !important;
  overflow: visible !important;
  text-decoration: none !important;
  height: auto !important;
  padding: 0 !important;
}

/* Image — self-constrains via aspect-ratio */
a.impress-showcase-photo > img,
.impress-showcase-property .impress-showcase-photo img {
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

/* Price badge — overlaid on the image */
a.impress-showcase-photo > .impress-price,
.impress-showcase-property .impress-price {
  position: absolute !important;
  bottom: auto !important;
  left: 12px !important;
  z-index: 2 !important;
  background: rgba(0,0,0,0.75) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-family: "Josefin Sans", sans-serif !important;
  /* Position relative to image bottom */
  top: calc(66.67% - 42px) !important;
}

/* Status badge */
a.impress-showcase-photo > .impress-status,
.impress-showcase-property .impress-status {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: #100B28 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 4px 10px !important;
  border-radius: 3px !important;
  z-index: 3 !important;
}

/* Address text — flows naturally below image inside the <a> */
a.impress-showcase-photo > .impress-address,
.impress-showcase-property .impress-address {
  padding: 12px 16px 4px !important;
  margin: 0 !important;
  font-size: 14px !important;
  color: #100B28 !important;
  line-height: 1.4 !important;
  display: block !important;
  position: relative !important;
  order: 10 !important;
}
.impress-showcase-property .impress-address .impress-street {
  display: block !important;
  font-weight: 600 !important;
  color: #0A0719 !important;
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 14px !important;
}
.impress-showcase-property .impress-address .impress-cityname,
.impress-showcase-property .impress-address .impress-state {
  font-weight: 400 !important;
  color: #656978 !important;
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 13px !important;
}

/* Beds/Baths/SqFt row — outside the <a>, at card bottom */
.impress-showcase-property .impress-beds-baths-sqft {
  padding: 8px 16px 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: #888 !important;
  border-top: 1px solid #f0f0f0 !important;
  margin-top: auto !important;
  display: flex !important;
  gap: 12px !important;
  font-family: "Josefin Sans", sans-serif !important;
}
.impress-showcase-property .impress-beds-baths-sqft span {
  white-space: nowrap;
}

/* Section heading for showcases */
.impress-property-showcase-page h2,
h2.impress-listing-header {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #100B28 !important;
}

/* === IDX Detail Page — Layout Fixes === */

/* Kill the white gap between header and IDX content */
.single-idx-wrapper .entry-content-wrap,
.single-idx-wrapper .content-area,
.single-idx-wrapper article,
.idx-wrapper .entry-content-wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.single-idx-wrapper .content-bg,
.idx-wrapper .content-bg,
.post-type-archive-idx-wrapper .content-bg {
  padding-top: 0 !important;
}

/* Hide agent home address on detail pages */
.IDX-detailsAddress,
.IDX-agentAddress,
.IDX-detailsAgentInfo .IDX-agentAddress,
.IDX-agentWidget .IDX-agentAddress {
  display: none !important;
}

/* Style the notification/exercise mode banner */
.IDX-notice,
.IDX-exerciseNotice {
  background: #F4F4F2 !important;
  border: 1px solid #CFD2D8 !important;
  color: #1C1A2B !important;
  border-radius: 4px !important;
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 13px !important;
}

/* Detail page — New Search button */
.IDX-detailsNewSearch a,
.IDX-newSearch a {
  background: linear-gradient(135deg, #100B28, #0A0719) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 24px !important;
  font-family: "Josefin Sans", sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}
.IDX-detailsNewSearch a:hover,
.IDX-newSearch a:hover {
  background: linear-gradient(135deg, #323744, #0A0719) !important;
}

/* Detail page — Add to Favorites / Print Flyer buttons */
.IDX-detailsFavorite,
.IDX-detailsPrint {
  background: #100B28 !important;
  border-color: #100B28 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  font-family: "Josefin Sans", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
}
.IDX-detailsFavorite:hover,
.IDX-detailsPrint:hover {
  background: #323744 !important;
  border-color: #323744 !important;
}

/* Detail page — property title & address styling */
.IDX-detailsAddress h2,
.IDX-detailsMainTitle {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #100B28 !important;
}

/* Detail page — agent info widget cleanup */
.IDX-agentWidget,
.IDX-detailsAgentInfo {
  font-family: "Josefin Sans", sans-serif !important;
}
.IDX-agentWidget .IDX-agentName {
  font-weight: 700 !important;
  color: #100B28 !important;
}

/* Detail page — contact form styling */
.IDX-agentWidget input[type="text"],
.IDX-agentWidget input[type="email"],
.IDX-agentWidget textarea,
.IDX-detailsForm input[type="text"],
.IDX-detailsForm input[type="email"],
.IDX-detailsForm textarea {
  background: #ffffff !important;
  border: 1px solid #CFD2D8 !important;
  border-radius: 4px !important;
  padding: 10px 12px !important;
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 14px !important;
}
.IDX-agentWidget input:focus,
.IDX-agentWidget textarea:focus,
.IDX-detailsForm input:focus,
.IDX-detailsForm textarea:focus {
  border-color: #100B28 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16,11,40,0.15) !important;
}

/* === IDX Wrapper Page — White Background Fix === */
/* The wrapper page and all IDX content must have white/light backgrounds */
body.page-template-default.page-id-578,
body.page-id-578,
.page-id-578 .site,
.page-id-578 .content-area,
.page-id-578 .entry-content-wrap,
.page-id-578 .content-bg {
  background-color: #ffffff !important;
}
/* IDX Broker hosted subdomain pages — override dark theme */
body,
#IDX-main,
.IDX-wrapper-content,
.IDX-main {
  background-color: #ffffff !important;
}
#idxStart,
#idxStop {
  background: #ffffff !important;
}
/* Force white on the wrapper content area between idxStart and idxStop */
#idxStart ~ *:not(#idxStop),
.IDX-wrapper,
.IDX-wrapperContent {
  background-color: #ffffff !important;
}

/* === IDX City Stats Widget — Layout Fix === */
.IDX-cityStats,
.IDX-marketStats,
.IDX-areaStats,
.city-stats-widget,
[class*="city-stats"],
[class*="market-stats"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  justify-content: center !important;
  background: #F4F4F2 !important;
  padding: 24px !important;
  border-radius: 8px !important;
}
.IDX-cityStats .stat-item,
.IDX-marketStats .stat-item,
[class*="city-stats"] > div,
[class*="market-stats"] > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 120px !important;
  text-align: center !important;
}
.IDX-cityStats .stat-number,
.IDX-marketStats .stat-number {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 36px !important;
  font-weight: 600 !important;
  color: #100B28 !important;
  line-height: 1 !important;
}
.IDX-cityStats .stat-label,
.IDX-marketStats .stat-label {
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #656978 !important;
  margin-top: 4px !important;
}

/* === IDXAddons City Page — Stats & Market Report Fix === */
/* Orange stat boxes — restyle to match palette */
.idxaddons-city-stats .stat-box,
.idxaddons-stat-box,
[class*="idxaddons"] .stat-box,
.city-page-stats .stat-box {
  background: linear-gradient(135deg, #100B28 0%, #535C70 50%, #100B28 100%) !important;
  border-radius: 8px !important;
}
/* Market report section */
.idxaddons-market-report,
[class*="market-report"] {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}
/* The stats numbers on right side of market report */
.market-report-stats,
.idxaddons-market-report .stats-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.market-report-stats .stat-row,
.idxaddons-market-report .stat-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* === IDX Broker Pages — Earth Tone Overrides === */
.IDX-main a,
.IDX-main a:visited {
  color: #535C70 !important;
}
.IDX-main .IDX-resultsRow:hover {
  background: #F4F4F2 !important;
}
.IDX-btn-default,
.IDX-main input[type="submit"],
.IDX-main button {
  background: #100B28 !important;
  border-color: #100B28 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  font-family: "Josefin Sans", sans-serif !important;
}
.IDX-btn-default:hover,
.IDX-main input[type="submit"]:hover,
.IDX-main button:hover {
  background: #323744 !important;
  border-color: #323744 !important;
}
.IDX-main h1,
.IDX-main h2,
.IDX-main h3 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: #100B28 !important;
}
.IDX-main .IDX-searchNav,
.IDX-main .IDX-resultsCellAction {
  background: #1C1A2B !important;
}
.IDX-main .IDX-searchNav a {
  color: #ffffff !important;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .shortcode.impress-property-showcase.impress-row,
  .impress-property-showcase.impress-row,
  .impress-property-showcase {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
/* Mobile: 1 column — selectors match base-rule specificity so they actually win */
@media (max-width: 600px) {
  .shortcode.impress-property-showcase.impress-row,
  .impress-property-showcase.impress-row,
  .impress-property-showcase {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* === IDXAddons searchtoolghl (GHL-safe search) — Center & polish v1 (2026-07-02) === */
/* Replaced the old [idx-omnibar] with the searchtoolghl widget (.idxaddons--search). */
/* Center the widget block, its field grid, and make the Search button a full-width centered CTA. */
.idxaddons--search {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* === IDX Detail Page — Space between header and breadcrumbs (2026-07-03) === */
/* The breadcrumb row (#IDX-detailsTopNav) sat flush against the Kadence header. */
#IDX-detailsTopNav {
  padding-top: 24px !important;
}
@media (max-width: 600px) {
  #IDX-detailsTopNav {
    padding-top: 16px !important;
  }
}

/* === Featured Properties (IMPress) — match Ocean detail cards (2026-07-04) === */
/* Pull the price OFF the photo; serif Elliman-blue street; gold city line; blue price; gold hairline.
   Selectors mirror the base rules above so these later rules win at equal specificity. */

/* Price — off the photo, in-flow below the address, Elliman blue */
a.impress-showcase-photo > .impress-price,
.impress-showcase-property .impress-price {
  position: static !important;
  top: auto !important;
  left: auto !important;
  order: 11 !important;
  background: transparent !important;
  color: #100B28 !important;
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  padding: 8px 16px 16px !important;
  border-radius: 0 !important;
}

/* Status pill — stays on the photo, Elliman blue. Also un-hide it: the IMPress plugin
   (impress-showcase.min.css) sets `span.impress-status{display:none}` by default (2026-07-06). */
a.impress-showcase-photo > .impress-status,
.impress-property-showcase .impress-showcase-property span.impress-status,
.impress-showcase-property .impress-status {
  background: #100B28 !important;
  display: inline-block !important;
}

/* Address — base line is the gold city/state (comma inherits gold) */
a.impress-showcase-photo > .impress-address,
.impress-showcase-property .impress-address {
  order: 10 !important;
  padding: 14px 16px 0 !important;
  color: #100B28 !important;
  font-family: "Josefin Sans", sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
}

/* Street — serif Elliman blue, own line above the city */
.impress-showcase-property .impress-address .impress-street {
  display: block !important;
  color: #100B28 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 21px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
}

/* Beds/Baths/SqFt — gold hairline, warm charcoal text */
.impress-showcase-property .impress-beds-baths-sqft {
  border-top: 1px solid rgba(16,11,40,0.5) !important;
  color: #100B28 !important;
  padding: 12px 16px 6px !important;
}

/* Social IDX detail-card overrides reverted 2026-07-04 — they collided with the native Ocean theme and mangled the Similar Listings cards. Detail cards left to render natively. */

/* === IDX Detail — Prev / Currently-viewing / Next nav: mobile stack fix (2026-07-04) === */
/* Bug: on phones #IDX-nextLastButtons stayed a nowrap flex row, so the
   "Currently viewing X of Y" element (#IDX-nextLastPosition) was starved of
   width and wrapped ONE CHARACTER PER LINE. That blew up the row height and
   the Prev/Next buttons stretched to match, reading as tall tan blocks.
   Fix: let the row wrap, give the position its own full-width line on top,
   then split Prev/Next 50/50 on the row below. */
@media (max-width: 767px) {
  #IDX-detailsTopNav #IDX-nextLastButtons {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  #IDX-detailsTopNav #IDX-nextLastButtons #IDX-nextLastPosition {
    flex: 1 1 100% !important;
    order: -1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    margin: 0 0 4px !important;
    padding: 10px 8px !important;
  }
  #IDX-detailsTopNav #IDX-nextLastButtons > a.IDX-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    margin: 0 !important;
  }
}

/* Card bed/bath/sqft icon overrides reverted 2026-07-04 — did not match the native Ocean card icons. */

/* === Card bed/bath/sqft icons — GOLD line icons (match the mockup), homepage + detail cards, icon-color ONLY (2026-07-04 v3) === */
/* Applies to homepage IMPress (.impress-*) AND detail Social IDX (.IDX-social-*). Only the ::before icon — NO layout/reorder (that's what broke the detail cards before). */
.impress-showcase-property .impress-beds::before,
.impress-showcase-property .impress-baths::before,
.impress-showcase-property .impress-sqft::before,
.IDX-similar-listings--bed-bath-sqft-acre .IDX-social-bd::before,
.IDX-similar-listings--bed-bath-sqft-acre .IDX-social-bths::before {
  content: "" !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 5px !important;
  vertical-align: -3px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}
/* bed (gold line) */
.impress-showcase-property .impress-beds::before,
.IDX-similar-listings--bed-bath-sqft-acre .IDX-social-bd::before {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23100B28' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4v16'/><path d='M2 8h18a2 2 0 0 1 2 2v10'/><path d='M2 17h20'/><path d='M6 8v9'/></svg>") !important;
}
/* bath (gold line) */
.impress-showcase-property .impress-baths::before,
.IDX-similar-listings--bed-bath-sqft-acre .IDX-social-bths::before {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23100B28' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6 6.5 3.5a1.5 1.5 0 0 0-1-.5C4.7 3 4 3.7 4 4.5V17a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/><path d='M10 5 8 7'/><path d='M2 12h20'/><path d='M7 19v2'/><path d='M17 19v2'/></svg>") !important;
}
/* ruler / sqft (gold line) — homepage only (detail cards don't display sqft) */
.impress-showcase-property .impress-sqft::before {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23100B28' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0Z'/><path d='m14.5 12.5 2-2'/><path d='m11.5 9.5 2-2'/><path d='m8.5 6.5 2-2'/><path d='m17.5 15.5 2-2'/></svg>") !important;
}

/* === Community-hub IMPress cards — defined border + align street/city to master (2026-07-06) === */
/* Community hub pages (Jupiter page-id-620, etc.) ship an inline <style> with page-scoped
   `.page-id-NNN ...` overrides (charcoal street, gray city, no border) that pre-date the master
   card spec and out-rank the global rules by source order (inline <style> in <body> beats <head>
   sheets at equal specificity). These rules add the gold hairline border for card separation and
   out-specify the page overrides (`html body ...` = one higher specificity) so the street reads
   Elliman blue and the city reads gold — everywhere, in one place. Homepage already matches the
   master, so these are a no-op there. */

/* Gold hairline border + blue-tinted lift so each card edge reads clearly */
.impress-property-showcase .impress-showcase-property {
  border: 1px solid rgba(16,11,40,0.55) !important;
  box-shadow: 0 4px 16px rgba(16,11,40,0.10) !important;
}
.impress-property-showcase .impress-showcase-property:hover {
  box-shadow: 0 10px 28px rgba(16,11,40,0.16) !important;
}

/* Street — Elliman blue serif (beats .page-id-NNN charcoal overrides) */
html body .impress-showcase-property .impress-address .impress-street {
  color: #100B28 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 500 !important;
}

/* City / state — gold uppercase (beats .page-id-NNN gray overrides) */
html body .impress-showcase-property .impress-address .impress-cityname,
html body .impress-showcase-property .impress-address .impress-state {
  color: #100B28 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/* === Census widget "Jupiter by the Numbers" — factory orange (#C77B30/#E8A96D) → brand blue/gold (2026-07-06) === */
/* The IDX Broker Census demographics block shipped in orange, clashing with the gold "Market at a
   Glance" stats right above it. Recolor: primary data → Elliman blue, accents/hairlines → gold. */
.IDX-census-wrapper .IDX-census-hero-value {
  color: #100B28 !important;
}
.IDX-census-wrapper .IDX-census-hero-card,
.IDX-census-wrapper .IDX-census-hero-value {
  border-top-color: #100B28 !important;
}
.IDX-census-wrapper .IDX-census-mini-bar-fill {
  background-color: #100B28 !important;
}
.IDX-census-wrapper .IDX-census-panel-stat {
  color: #100B28 !important;
}
.IDX-census-wrapper a {
  color: #100B28 !important;
}
/* Gender donut + legend: primary segment → blue, secondary → gold */
.IDX-census-wrapper svg circle:nth-of-type(1) { stroke: #100B28 !important; }
.IDX-census-wrapper svg circle:nth-of-type(2) { stroke: #100B28 !important; }
.IDX-census-wrapper .IDX-census-donut-legend-item:nth-of-type(1) .IDX-census-donut-legend-dot { background-color: #100B28 !important; }
.IDX-census-wrapper .IDX-census-donut-legend-item:nth-of-type(2) .IDX-census-donut-legend-dot { background-color: #100B28 !important; }
/* Age histogram + horizontal bars → blue; section underlines + % labels → gold accent */
.IDX-census-wrapper .IDX-census-vbar-col,
.IDX-census-wrapper .IDX-census-hbar-fill {
  background-color: #100B28 !important;
}
.IDX-census-wrapper .IDX-census-panel-header {
  border-bottom-color: #100B28 !important;
}
.IDX-census-wrapper .IDX-census-vbar-pct {
  color: #100B28 !important;
}

/* === Detail-page Similar / Recently / Popular cards — street→Elliman blue, city→gold (color-only, safe) (2026-07-06) === */
/* Ocean theme renders the street in grey #353742; recolor to match the featured cards.
   COLOR ONLY — no layout/reorder (reordering these mangled Recently/Popular before). */
.IDX-similar-listings--address-street {
  color: #100B28 !important;
}
.IDX-similar-listings--address-city,
.IDX-similar-listings--address-state {
  color: #100B28 !important;
}
/* Street ABOVE city on detail cards to match featured cards (Ian 2026-07-06).
   Order-swap ONLY (no hide/reorder of other fields) — verified safe across Similar,
   Recently Viewed, and Popular, which share these classes. */
.IDX-similar-listings--address-street { order: 1 !important; }
.IDX-similar-listings--address-city { order: 2 !important; }

/* === IDX search RESULTS grid (.IDX-resultsCell) — brand to the master (2026-07-06) === */
/* The native IDX Broker search results were flat black text with no card edges — the last
   unbranded listing surface. Give each cell a white card + gold hairline border, Elliman-blue
   serif address, and a blue price so search results match the featured/community cards. */
#IDX-main .IDX-resultsCell,
.IDX-main .IDX-resultsCell {
  background: #ffffff !important;
  border: 1px solid rgba(16,11,40,0.45) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 14px rgba(16,11,40,0.08) !important;
}
#IDX-main .IDX-resultsCell .IDX-cellInnerWrapper,
.IDX-main .IDX-resultsCell .IDX-cellInnerWrapper {
  padding-bottom: 6px !important;
}
#IDX-main .IDX-resultsCell .IDX-field-listingPrice,
#IDX-main .IDX-resultsCell .IDX-field-price,
.IDX-main .IDX-resultsCell .IDX-field-price {
  color: #100B28 !important;
  font-weight: 700 !important;
}
#IDX-main .IDX-resultsCell .IDX-resultsAddress,
#IDX-main .IDX-resultsCell .IDX-resultsAddressName,
.IDX-main .IDX-resultsCell .IDX-resultsAddress {
  color: #100B28 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
}
#IDX-main .IDX-resultsCell .IDX-field-bedrooms,
#IDX-main .IDX-resultsCell .IDX-field-totalBaths,
#IDX-main .IDX-resultsCell .IDX-field-sqFt {
  color: #100B28 !important;
}

/* === Status badge color-coding (IMPress cards) — a wp_footer script tags .impress-status
   with an igs-* class by its status word (IMPress outputs status text only, no class). (2026-07-06) === */
.impress-property-showcase .impress-showcase-property span.impress-status.igs-active  { background: #2F6B4A !important; } /* Active / For Sale — green */
.impress-property-showcase .impress-showcase-property span.impress-status.igs-pending { background: #100B28 !important; } /* Under Contract / Pending — gold */
.impress-property-showcase .impress-showcase-property span.impress-status.igs-sold    { background: #100B28 !important; } /* Sold / Closed — warm charcoal */
.impress-property-showcase .impress-showcase-property span.impress-status.igs-coming  { background: #100B28 !important; } /* Coming Soon — Elliman blue */

/* === Card bands WHITE across the board to match the homepage (Ian 2026-07-06) === */
/* Community pages' inline `.page-id-NNN` styles put a beige #EEEEEC band behind the address and
   beds/baths rows. The homepage cards are white, which matches the search-results + detail widgets,
   so force white everywhere. `html body …` out-ranks the page-scoped beige rules. */
html body .impress-property-showcase .impress-showcase-property .impress-address,
html body .impress-property-showcase .impress-showcase-property .impress-beds-baths-sqft {
  background: #ffffff !important;
}

/* === More vertical space between detail-card rows (Similar/Recently/Popular) — Ian 2026-07-06 === */
/* Ocean grid ships gap:20px both ways, so rows read cramped. Bump the ROW gap only. */
.IDX-similar-listings.socialListings-ocean,
.IDX-similar-listings {
  row-gap: 34px !important;
}

