/* ============================================================
   Blimade Property — Shared design tokens & components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --primary: #E8826E;
  --primary-dark: #C45D48;
  --primary-soft: #FBE5DD;
  --ink: #2A1F18;
  --ink-soft: #5C4A3D;
  --muted: #8A7A6B;
  --line: #E8DDD2;
  --line-soft: #F2EBE3;
  --bg: #FFF8F0;
  --bg-soft: #FAF1E6;
  --bg-card: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(42,31,24,.06);
  --shadow-md: 0 4px 16px rgba(42,31,24,.08);
  --shadow-lg: 0 12px 40px rgba(42,31,24,.10);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --property-nav-sticky-offset: 65px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "opsz" 36, "SOFT" 0, "WONK" 0;
  font-feature-settings: "ss01" off, "ss02" off, "ss03" off, "ss04" off;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: 56px; line-height: 1.05; }
h2 { font-size: 36px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
}
.muted { color: var(--muted); }

/* ===== Site header (utility strip + main nav) ===== */
.property-site-head {
  position: sticky;
  top: 0;
  z-index: 100;
}
.dnav-utility {
  background: rgba(250, 243, 235, 0.97);
  border-bottom: 1px solid rgba(220, 208, 194, 0.75);
}
.dnav-utility-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.dnav-utility-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dnav-utility-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dnav-lang--utility {
  display: inline-flex;
  gap: 0;
  align-items: center;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(232, 221, 210, 0.95);
}
.dnav-lang--utility a {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.dnav-lang--utility a:hover {
  color: var(--ink);
  background: rgba(251, 229, 221, 0.5);
}
.dnav-lang--utility a.on {
  background: var(--primary-soft);
  color: var(--primary);
}
.dnav-utility-right {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dnav-utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(232, 221, 210, 0.9);
  transition: background 0.15s, color 0.15s;
}
.dnav-utility-icon:hover {
  background: var(--bg-soft);
  color: var(--primary);
}
.dnav-utility-icon-svg {
  display: flex;
  line-height: 0;
}
.dnav-utility-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.dnav-utility-link:hover {
  color: var(--primary);
}
.dnav-utility-link--text {
  display: none;
}
.dnav-utility-link--muted {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
@media (min-width: 640px) {
  .dnav-utility-link--text {
    display: inline;
  }
}

/* ===== Top nav ===== */
.dnav {
  position: relative;
  background: rgba(255, 248, 240, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(232, 221, 210, 0.65);
}
.dnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.dnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.dnav-logo-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(42, 31, 24, 0.08);
  border: 1px solid rgba(232, 221, 210, 0.95);
  overflow: hidden;
}
.dnav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.dnav-logo-name {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
  font-feature-settings: "ss01" off, "ss02" off, "ss03" off, "ss04" off;
  letter-spacing: 0.02em;
  color: var(--primary);
  line-height: 1;
}
.dnav-logo-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 2px;
}
.dnav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}
.dnav-link {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: all .15s;
}
.dnav-link:hover { color: var(--ink); background: var(--bg-soft); }
.dnav-link.on { color: var(--primary); font-weight: 600; }
.dnav-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 8px;
}
.dnav-actions { display: flex; gap: 8px; align-items: center; }
.dnav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
  box-shadow: 0 1px 4px rgba(232, 130, 110, 0.35);
}
.dnav-cta:hover { background: var(--primary-dark); color: #fff; }
.dnav-cta:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

.dnav-mobile-toggle {
  display: none;
  padding: 8px 12px;
  border-radius: 8px;
  margin-left: auto;
}

/* ===== Footer ===== */
.dfoot {
  background: #1F1611;
  color: #C9B9A8;
  padding: 60px 0 30px;
  margin-top: 80px;
}
section.cta-strip + footer.dfoot,
body[data-page="home"] main.property-layout-main + footer.dfoot {
  margin-top: 0;
}
.dfoot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
.dfoot-brand h4 {
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 12px;
}
.dfoot-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.dfoot-col h5 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
}
.dfoot-col a {
  display: block;
  padding: 5px 0;
  color: #C9B9A8;
  font-size: 14px;
}
.dfoot-col a:hover { color: var(--primary); }
.dfoot-base {
  max-width: 1280px;
  margin: 50px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid #3A2D24;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8A7A6B;
}

/* ===== Buttons ===== */
.btn {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-accent { background: #fff; color: var(--primary); padding: 12px 24px; border-radius: 8px; font-weight: 600; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Property card ===== */
.dcard {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  text-align: left;
  display: block;
  width: 100%;
  cursor: pointer;
}
.dcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); }
.dcard-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.dcard-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: rgba(232, 130, 110, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.dcard-area {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}
.dcard-body { padding: 18px 18px 20px; }
.dcard-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}
.dcard-addr { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.dcard-price {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.dcard-specs {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ===== Crumb ===== */
.dcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.dcrumb a, .dcrumb button { color: var(--muted); padding: 0; }
.dcrumb a:hover, .dcrumb button:hover { color: var(--ink); }
.dcrumb .sep { margin: 0 8px; opacity: 0.5; }
.dcrumb strong { color: var(--ink); font-weight: 600; }
.dcrumb.light { color: rgba(255,255,255,.85); }
.dcrumb.light a, .dcrumb.light button { color: rgba(255,255,255,.85); }
.dcrumb.light strong { color: #fff; }

/* ===== Section ===== */
.section { max-width: 1280px; margin: 0 auto; padding: 80px 32px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}
.section-head h2 { margin-top: 8px; }
.section.darker { background: var(--bg-soft); max-width: none; padding-left: 0; padding-right: 0; }
.section.darker > .inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.dlink {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dlink:hover { gap: 8px; }

/* ===== CTA strip ===== */
.cta-strip {
  background: var(--primary);
  color: #fff;
}
.cta-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta-strip h3 { color: #fff; font-size: 32px; margin-bottom: 6px; }
.cta-strip p { margin: 0; opacity: 0.9; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  :root {
    --property-nav-sticky-offset: 60px;
  }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .dnav-utility-inner { padding: 8px 16px; }
  .dnav-utility-link--muted { display: none; }
  .dnav-inner { padding: 12px 20px; gap: 12px; }
  .dnav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255, 248, 240, 0.92); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); flex-direction: column; padding: 12px; gap: 0; border-bottom: 1px solid var(--line); }
  .dnav-links.open { display: flex; }
  .dnav-links .dnav-link { width: 100%; padding: 12px 16px; }
  .dnav-sep { display: none; }
  .dnav-actions { margin-left: auto; }
  .dnav-mobile-toggle { display: inline-flex; }
  .section { padding: 56px 20px; }
  .section.darker > .inner { padding: 0 20px; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; padding: 40px 20px; }
  .dfoot-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 20px; }
  .dfoot-brand { grid-column: 1 / -1; }
  .dfoot-base { flex-direction: column; gap: 6px; padding: 24px 20px 0; }
}
@media (max-width: 600px) {
  .dfoot-inner { grid-template-columns: 1fr; }
}

/* ===== Lazy image skeleton ===== */
.lz-img,
.lz-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #e8d6c0 !important;
}
.lz-img > img {
  opacity: 0;
  transition: opacity .45s ease;
  position: relative;
  z-index: 1;
}
.lz-img.is-loaded > img { opacity: 1; }
.lz-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--lz-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 0;
}
.lz-bg.is-loaded::before { opacity: 1; }
.lz-bg > *:not(.lz-shimmer) { transition: opacity .35s ease .1s; }
.lz-bg:not(.is-loaded) > *:not(.lz-shimmer) { opacity: 0; }
.lz-shimmer {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 99 !important;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  background-color: transparent !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
  transform: translate3d(-100%, 0, 0);
  animation: lz-shimmer-sweep 1.3s linear infinite !important;
  will-change: transform;
}
.is-loaded > .lz-shimmer { display: none !important; }
@keyframes lz-shimmer-sweep {
  0%   { transform: translate3d(-100%, 0, 0); }
  100% { transform: translate3d(100%, 0, 0); }
}
@keyframes lz-pulse-fallback {
  0%, 100% { background-color: #e8d6c0; }
  50%      { background-color: #f5e2cc; }
}
@media (prefers-reduced-motion: reduce) {
  .lz-shimmer { display: none !important; }
  .lz-img:not(.is-loaded),
  .lz-bg:not(.is-loaded) {
    animation: lz-pulse-fallback 1.6s ease-in-out infinite !important;
  }
}
