/* ============================================================================
   "Z Property" real-estate theme (revertible). Scoped to body.zproperty, which
   the layout adds only on Property category pages. Toggle: SiteSettings
   zproperty_theme = "true". Removing the class restores the normal design.
   ============================================================================ */
body.zproperty { background: #f3f5f8; }

/* Hide the original site chrome + the standard search sidebar/breadcrumb. */
body.zproperty .sp-crumb,
body.zproperty .td-cathead { display: none; }
body.zproperty .sp-side { display: none; }
body.zproperty .sp-grid { display: block; }
body.zproperty .sp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px 40px; }

/* ---- Header ---- */
body.zproperty .zp-header { background: #fff; border-bottom: 1px solid #e6e9ef; }
.zp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.zp-header-row { display: flex; align-items: center; gap: 34px; height: 66px; }
.zp-logo { display: flex; align-items: center; gap: 3px; font-size: 21px; font-weight: 800; color: #0f172a; text-decoration: none; letter-spacing: -.3px; }
.zp-logo span:last-child { color: #2563eb; }
.zp-logo .zp-dot { width: 9px; height: 9px; border-radius: 50%; background: #2563eb; margin-right: 6px; }
.zp-nav { display: flex; gap: 26px; }
.zp-nav a { color: #334155; font-size: 15px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.zp-nav a:hover { color: #2563eb; }
.zp-nav a.zp-active { background: #eff4ff; color: #2563eb; }
.zp-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.zp-signin { color: #0f172a; font-weight: 600; font-size: 15px; text-decoration: none; }
.zp-list-btn { background: #2563eb; color: #fff; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 10px; text-decoration: none; }
.zp-list-btn:hover { background: #1d4ed8; }

/* ---- Search hero card ---- */
.zp-hero-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.zp-hero { background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(15,23,42,.18); padding: 14px 22px 16px; }
.zp-tabs { display: flex; justify-content: center; gap: 26px; margin-bottom: 9px; }
.zp-tab { font-size: 15px; font-weight: 600; color: #64748b; text-decoration: none; padding: 6px 4px; border-bottom: 2px solid transparent; }
.zp-tab.on { color: #2563eb; border-bottom-color: #2563eb; }
.zp-pills { display: flex; gap: 10px; margin-bottom: 11px; }
.zp-pill { font-size: 13px; font-weight: 700; color: #475569; background: #f1f5f9; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.zp-pill.on { background: #2563eb; color: #fff; }
.zp-filters { display: flex; flex-direction: column; gap: 10px; }
.zp-row { display: grid; gap: 10px 14px; }
.zp-row1 { grid-template-columns: 1.3fr 2fr 1.1fr; }
.zp-row2 { grid-template-columns: 1fr 1fr 1fr 1.6fr 0.95fr; align-items: end; }
.zp-fld { display: flex; flex-direction: column; }
.zp-fld-loc { grid-row: span 1; }
.zp-fld label { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #94a3b8; margin-bottom: 3px; }
.zp-inp, .zp-sel { height: 42px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0 14px; font-size: 14px; color: #0f172a; background: #f8fafc; box-sizing: border-box; width: 100%; }
.zp-inp:focus, .zp-sel:focus { outline: none; border-color: #2563eb; background: #fff; }
.zp-search-btn { height: 42px; border: none; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; }
.zp-search-btn:hover { background: #1d4ed8; }
@media (max-width: 900px) { .zp-row1, .zp-row2 { grid-template-columns: 1fr 1fr; } }

/* ---- Results header ---- */
.zp-results-head { max-width: 1280px; margin: 24px auto 6px; padding: 0 20px; display: flex; align-items: flex-end; justify-content: space-between; }
.zp-rh-title { font-size: 24px; font-weight: 800; color: #0f172a; margin: 0; }
.zp-rh-sub { font-size: 13px; color: #64748b; margin-top: 2px; }
.zp-rh-sort { display: flex; align-items: center; gap: 8px; }
.zp-view { font-size: 14px; font-weight: 600; color: #475569; background: #fff; border: 1px solid #e2e8f0; padding: 8px 16px; border-radius: 8px; }
.zp-view.on { color: #2563eb; border-color: #2563eb; }
.zp-sortsel { height: 38px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0 14px; font-size: 14px; background: #fff; color: #0f172a; }

/* ---- Property cards ---- */
/* max-width none: the grid is nested in .sp-wrap (1280px + 20px padding) - its own
   max-width would double-indent the cards 20px vs the hero card. */
body.zproperty .zp-grid { max-width: none; padding: 8px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 950px) { body.zproperty .zp-grid { grid-template-columns: repeat(2, 1fr); } }
.zp-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 4px 16px rgba(15,23,42,.06); transition: box-shadow .15s; }
.zp-card:hover { box-shadow: 0 14px 34px rgba(15,23,42,.14); }
/* 3/2 matches the car card image height (user request 2026-08-11) */
.zp-card-img { position: relative; aspect-ratio: 3 / 2; background: #e2e8f0; overflow: hidden; }
.zp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.zp-card-ph { position: absolute; inset: 0; background: linear-gradient(135deg,#cbd5e1,#e2e8f0); }
.zp-b-feat { position: absolute; top: 12px; left: 12px; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.zp-b-ver { position: absolute; top: 12px; right: 12px; background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.zp-card-body { padding: 16px 16px 18px; }
.zp-card-price { font-size: 21px; font-weight: 800; color: #0f172a; }
.zp-card-title { font-size: 15px; font-weight: 600; color: #1e293b; margin-top: 6px; line-height: 1.35; }
.zp-card-loc { font-size: 13px; color: #64748b; margin-top: 6px; }
.zp-card-loc::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; background-color: #64748b; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center/contain no-repeat; }


/* Hide the standard search toolbar under the Z Property theme (the hero replaces it). */
body.zproperty .sp-results-head { display: none; }
/* Pills are now links */
a.zp-pill { text-decoration: none; }
a.zp-pill.on { background: #2563eb; color: #fff; }
a.zp-tab { cursor: pointer; }
/* Beds / baths on cards */
.zp-card-feat { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: #475569; font-weight: 600; }
/* crisp inline-SVG bed/bath (the old emoji glyphs rasterized blurry - 5.png) */
.zp-card-feat span::before { content: ""; display: inline-block; width: 17px; height: 14px; margin-right: 6px; vertical-align: -2px; background-color: #475569; -webkit-mask: var(--zpi) center / contain no-repeat; mask: var(--zpi) center / contain no-repeat; }
.zp-f-bed::before { --zpi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M32 32c17.7 0 32 14.3 32 32V320H288V160c0-17.7 14.3-32 32-32H544c53 0 96 43 96 96V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V416H64v32c0 17.7-14.3 32-32 32S0 465.7 0 448V64C0 46.3 14.3 32 32 32zm144 96a80 80 0 1 1 0 160 80 80 0 1 1 0-160z'/%3E%3C/svg%3E"); }
.zp-f-bath::before { --zpi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M96 77.3c0-7.3 5.9-13.3 13.3-13.3c3.5 0 6.9 1.4 9.4 3.9l14.9 14.9C130 91.8 128 101.7 128 112c0 19.9 7.2 38 19.2 52c-5.3 9.2-4 21.1 3.8 29c9.4 9.4 24.6 9.4 33.9 0L289 89c9.4-9.4 9.4-24.6 0-33.9c-7.9-7.9-19.8-9.1-29-3.8C246 39.2 227.9 32 208 32c-10.3 0-20.2 2-29.2 5.5L163.9 22.6C149.4 8.1 129.7 0 109.3 0C66.6 0 32 34.6 32 77.3V256c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H96V77.3zM32 352v16c0 28.4 12.4 54 32 71.6V480c0 17.7 14.3 32 32 32s32-14.3 32-32V464H384v16c0 17.7 14.3 32 32 32s32-14.3 32-32V439.6c19.6-17.6 32-43.2 32-71.6V352H32z'/%3E%3C/svg%3E"); }
.zp-f-bed::after { content: " bd"; font-weight: 400; color: #94a3b8; }
.zp-f-bath::after { content: " ba"; font-weight: 400; color: #94a3b8; }


/* property Filters button + reveal the standard filter sidebar */
.zp-filters-btn { height: 42px; border: 1px solid #d5dbe6; border-radius: 10px; background: #fff; color: #334155; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; white-space: nowrap; }
.zp-filters-btn:hover { background: #f8fafc; }
.zp-filters-btn.on { border-color: #2563eb; color: #2563eb; background: #eff4ff; }
body.zproperty.zp-showfilters .sp-side { display: block; }
body.zproperty.zp-showfilters .sp-grid { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
body.zproperty.zp-showfilters .zp-grid { grid-template-columns: repeat(2, 1fr); }


/* daytime property hero background band */
/* Day photo painted on a FIXED-height layer: opening the Filters panel makes the hero
   taller, which simply reveals more of the image below - the visible part never moves
   or rescales (the layer box is constant, so cover-scale is constant too). */
.zp-herobg { position: relative; overflow: hidden; padding: 30px 0 40px; background: #dff0fa; }
.zp-herobg::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 460px;
  background-image: linear-gradient(rgba(255,255,255,.10), rgba(248,250,252,.40)), url('/uploads/zp-hero-day.jpg');
  background-size: cover; background-position: center bottom; z-index: 0; }
.zp-herobg > * { position: relative; z-index: 1; }


/* expandable "more filters" panel (context-aware attributes) */
.zp-morefilters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef1f6; }
.zp-morefilters[hidden] { display: none; }
@media (max-width: 900px) { .zp-morefilters { grid-template-columns: 1fr 1fr; } }
