:root {
  color-scheme: light;
  --bg: #fffdf8;
  --surface: #fff;
  --soft: #fff4d1;
  --ink: #211d15;
  --muted: #716959;
  --line: #eee2bd;
  --accent: #ffc107;
  --accent-soft: rgba(255, 193, 7, .14);
  --shadow: 0 16px 38px rgba(44, 35, 12, .08);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0b09;
  --surface: #15130f;
  --soft: #211c0e;
  --ink: #f7f1df;
  --muted: #b7ad94;
  --line: #3a3320;
  --accent-soft: rgba(255, 193, 7, .12);
  --shadow: 0 16px 38px rgba(0, 0, 0, .24);
}
body[data-kind="rent"] {
  --accent: #32aa91;
  --accent-soft: rgba(50, 170, 145, .14);
}
body[data-kind="buy"] {
  --accent: #e7a23b;
  --accent-soft: rgba(231, 162, 59, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.container { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px 12px 12px 4px; background: var(--accent); color: #211d15; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links a, .theme-toggle {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 7px 12px;
  color: var(--muted);
}
.nav-links a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.theme-toggle { background: var(--surface); cursor: pointer; font-size: 1rem; }
.hero { position: relative; overflow: hidden; padding: 68px 0 54px; background: linear-gradient(140deg, var(--soft), transparent 68%); }
.hero::after { content: ""; position: absolute; width: 270px; height: 270px; inset: auto -80px -180px auto; border: 38px solid var(--accent-soft); border-radius: 50%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--accent-soft); font-weight: 700; }
.hero h1 { margin: 14px 0 10px; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.3; }
.hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: #211d15; font-weight: 700; }
.button.outline { background: var(--surface); color: var(--ink); }
.listings { padding: 48px 0 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.empty-hint { padding: 9px 13px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); }
.photo-slot {
  display: grid;
  min-height: 205px;
  place-items: center;
  border-bottom: 1px dashed var(--line);
  background: linear-gradient(145deg, var(--accent-soft), var(--soft));
  color: var(--muted);
  text-align: center;
}
.photo-slot span { display: grid; gap: 4px; padding: 16px; }
.photo-slot strong { color: var(--ink); font-size: 1.1rem; }
.card-content { padding: 18px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title h3 { margin: 0; font-size: 1.25rem; }
.number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); font-size: .88rem; font-weight: 700; }
.fields { display: grid; gap: 0; margin: 15px 0 0; }
.fields div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; font-weight: 700; }
.notes { min-height: 58px; margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); }
.site-footer { padding: 24px 0; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer-inner p { margin: 0; }
@media (max-width: 820px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 52px 0 42px; }
}
@media (max-width: 580px) {
  .container { width: min(100% - 24px, 1120px); }
  .nav { flex-wrap: wrap; padding: 10px 0; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; }
  .nav-links a { flex: 1; text-align: center; padding-inline: 5px; font-size: .9rem; }
  .cards { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .photo-slot { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
