/*!
 * Haven Homes — Bootstrap 6 real estate template
 *
 * Design language: split hero (copy left, full-bleed image right), with the
 * search panel straddling the seam between hero and page. Header is transparent
 * over the hero and turns solid on scroll. Property cards lead with specs.
 */

:root {
  --brand: oklch(48% 0.09 155);
  --kit-section-y: 4.5rem;
}

@media (width >= 768px) { :root { --kit-section-y: 6rem; } }

/* --------------------------------------------------------------- Header */

.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}

.site-header.is-stuck {
  position: fixed;
  background: color-mix(in oklab, var(--bs-bg-body), transparent 6%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bs-border-color);
}

/* --------------------------------------------------------------- Split hero */

.split {
  display: grid;
  align-items: stretch;
  min-height: 40rem;
}

@media (width >= 992px) {
  .split { grid-template-columns: 1.05fr 1fr; }
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(1.25rem, 5vw, 5rem) 4rem;
}

.split-media { position: relative; min-height: 22rem; }
.split-media .ph { position: absolute; inset: 0; height: 100%; }

.split-title {
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

/* Search panel straddles the hero seam */
.search-panel {
  position: relative;
  z-index: 3;
  margin-top: -3.25rem;
  border-radius: var(--bs-radius-7);
  border: 1px solid var(--bs-border-color);
  background: var(--bs-bg-body);
  box-shadow: 0 2rem 3.5rem -2rem rgb(0 0 0 / 30%);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

@media (width >= 992px) {
  .search-panel { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: center; }
}

/* --------------------------------------------------------------- Property cards */

.property { height: 100%; display: flex; flex-direction: column; overflow: hidden; }

.property-media { position: relative; }
.property-media .ph { transition: transform 0.45s ease; }
.property:hover .property-media .ph { transform: scale(1.04); }

.property-tag { position: absolute; top: 0.75rem; inset-inline-start: 0.75rem; z-index: 2; }
.property-fav { position: absolute; top: 0.6rem; inset-inline-end: 0.6rem; z-index: 2;
  background: color-mix(in oklab, var(--bs-bg-body), transparent 8%); backdrop-filter: blur(6px); }

.property-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }

.property-price { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }

.property-address { font-size: 0.875rem; color: var(--bs-fg-3); }

/* Specs strip, the thing buyers actually scan */
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.8125rem;
  color: var(--bs-fg-2);
}

.specs span { display: inline-flex; align-items: center; gap: 0.375rem; }
.specs svg { width: 0.9375rem; height: 0.9375rem; color: var(--bs-fg-3); }

/* --------------------------------------------------------------- Agents */

.agent { display: flex; gap: 1rem; align-items: center; }
.agent .ph { width: 4.5rem; border-radius: var(--bs-radius-5); flex: none; }

/* --------------------------------------------------------------- Valuation band */

.valuation {
  border-radius: var(--bs-radius-7);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--brand), transparent 86%),
    color-mix(in oklab, var(--brand), transparent 96%));
  border: 1px solid color-mix(in oklab, var(--brand), transparent 78%);
}

@media (prefers-reduced-motion: reduce) {
  .property-media .ph { transition: none; }
  .property:hover .property-media .ph { transform: none; }
}
