/* Sabzio public property website — Ivory companion theme */
:root {
  --ink: #252923;
  --muted: #62685f;
  --canvas: #f7f6f2;
  --surface: #ffffff;
  --raised: #f1f0eb;
  --line: #e2e1da;
  --control: #b9bcb3;
  --navy: #354238;
  --link: #405c47;
  --gold: #e9eee6;
  --on-gold: #354238;
  --danger: #9b4138;
  --focus: #66856b;
  --placeholder: #6c7269;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #f0f1eb;
  --muted: #b9beb4;
  --canvas: #191c18;
  --surface: #222620;
  --raised: #2b3029;
  --line: #3b4138;
  --control: #697165;
  --navy: #dce6d8;
  --link: #c4d9c3;
  --gold: #394438;
  --on-gold: #eef3eb;
  --danger: #f1b9b1;
  --focus: #a8c9a7;
  --placeholder: #aeb5a9;
  color-scheme: dark;
}
body.public-site { background: var(--canvas) !important; color: var(--ink) !important; font-size: 15px; line-height: 1.95; }
body.public-site :is(h1,h2,h3,h4,p,small,label,button,input,select,textarea) { font-family: Vazirmatn, sans-serif; }
body.public-site h1 { color: var(--ink) !important; font-size: clamp(28px, 3vw, 42px); line-height: 1.65; }
body.public-site h2 { color: var(--ink) !important; font-size: 23px; }
body.public-site h3 { color: var(--ink) !important; font-size: 18px; }
body.public-site a { color: var(--link); }
.site-header { background: var(--surface) !important; color: var(--ink) !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
.header-row { min-height: 78px; }
.site-brand, .site-brand:hover, body.public-site .site-brand { color: var(--ink) !important; font-size: 18px; }
.site-brand img { background: var(--raised) !important; border: 1px solid var(--line); box-shadow: none !important; }
.site-brand small { color: var(--muted) !important; font-size: 12px; }
.desktop-links { gap: 22px; }
.desktop-links a, body.public-site .desktop-links a { color: var(--muted) !important; font-size: 13px; font-weight: 650; }
.desktop-links a:hover { color: var(--ink) !important; text-decoration: none; }
.button, body.public-site .button { min-height: 46px; border-radius: 10px; background: #354238 !important; color: #fff !important; border-color: #354238 !important; font-size: 14px; font-weight: 750; }
.button:hover { background: #263229; color: #fff; text-decoration: none; }
.button-gold, body.public-site .button-gold { background: #e9eee6 !important; border-color: #dce5d8 !important; color: #354238 !important; }
.button-gold:hover, body.public-site .button-gold:hover { background: #dce6d8 !important; color: #263229 !important; }
.button-outline, body.public-site .button-outline { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--control) !important; }
.button-outline:hover, body.public-site .button-outline:hover { background: var(--raised) !important; }
.theme-toggle { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 10px; }
.site-hero { background: var(--raised) !important; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
.hero-main { gap: 48px; }
.hero-copy h1 { color: var(--ink) !important; }
.hero-copy > p { color: var(--muted) !important; font-size: 15px; }
.hero-link { color: var(--link) !important; font-weight: 750; }
.hero-image img { border-radius: 14px; }
.hero-image figcaption { color: var(--muted) !important; }
.hero-search { border-color: var(--line) !important; border-radius: 14px; box-shadow: 0 10px 28px rgba(35, 40, 32, .07); }
.hero-search label, .catalog-filters summary, .field > label { color: var(--ink) !important; font-size: 13.5px; font-weight: 750; }
.form-input { min-height: 48px; border-color: var(--control) !important; border-radius: 10px; background: var(--surface) !important; color: var(--ink) !important; font-size: 14px; }
.form-input:focus { border-color: var(--focus) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 16%, transparent) !important; }
.transaction-nav { border-color: var(--line); }
.transaction-nav a, body.public-site .transaction-nav a { border-color: var(--line); background: var(--surface); color: var(--ink) !important; border-radius: 9px; font-size: 13px; }
.transaction-nav a:hover { background: var(--raised); text-decoration: none; }
.property-section { margin-block: 46px 58px; }
.section-heading { margin-bottom: 20px; }
.section-heading p { color: var(--muted); font-size: 14px; }
.section-heading > a { color: var(--link); font-size: 14px; }
.estate-card, .catalog-filters, .property-summary, .contact-form-panel { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: none !important; }
.estate-copy { padding: 19px; }
.estate-location { color: var(--muted); font-size: 13px; }
.estate-copy h3 { min-height: 0; font-size: 18px; }
.estate-copy h3 a, body.public-site .estate-copy h3 a { color: var(--ink) !important; }
.estate-facts { color: var(--muted); font-size: 12.5px; }
.estate-price { border-color: var(--line); font-size: 13px; }
.estate-price p span, .detail-price p span { color: var(--muted); font-size: 12px; }
.estate-price strong, .detail-price strong { color: var(--ink); font-size: 18px; }
.transaction-label { background: rgba(255,255,255,.94); color: #273128; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; font-size: 12px; }
.save-property { border-color: var(--line); color: var(--ink); border-radius: 10px; }
.save-property[aria-pressed="true"] { background: var(--gold); border-color: var(--line); color: var(--ink); }
.estate-more { font-size: 13px; font-weight: 700; }
.empty-state { background: var(--surface); border-color: var(--control); border-radius: 14px; }
.empty-state p { color: var(--muted); font-size: 14px; }
.consultation-strip { background: var(--raised) !important; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 14px; }
.consultation-strip p { color: var(--muted) !important; font-size: 14px; }
.site-footer { background: #eeede7 !important; color: #30372f !important; border-top: 1px solid var(--line); }
.site-footer h2, .site-footer h3 { color: #252923 !important; }
.site-footer p, .site-footer a, body.public-site .site-footer a { color: #596157 !important; font-size: 13px; }
.site-footer .office-phone { color: #354238 !important; }
.footer-bottom { border-color: #d9d8d0 !important; color: #62685f !important; }
.public-page-head p, .breadcrumbs, .property-summary > p, .contact-office > p, .success-state p { color: var(--muted) !important; font-size: 14px; }
.catalog-filters { padding: 20px; }
.catalog-filters summary { font-size: 16px; }
.property-summary { padding: 24px; }
.property-summary h1 { color: var(--ink) !important; }
.detail-transaction { color: var(--link); font-size: 13px; }
.public-facts div { background: var(--raised); border: 1px solid var(--line); border-radius: 9px; }
.public-facts dt { color: var(--muted); font-size: 12px; }
.public-facts dd { color: var(--ink); font-size: 14px; }
.public-prose { color: var(--ink); font-size: 15px; }
.contact-form-panel { padding: 28px; }
.contact-office h2, .contact-office h3 { color: var(--ink) !important; }
.contact-office > p { color: var(--muted) !important; }
.office-phone { color: var(--ink); }
.save-feedback { background: #354238; color: #fff; border-color: #354238; border-radius: 10px; font-size: 13px; }
.public-bottom { background: var(--surface) !important; border-top: 1px solid var(--line) !important; }
.public-bottom a { color: var(--muted) !important; font-size: 12px; }
.public-bottom a:hover { color: var(--ink) !important; }

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-hero,
html[data-theme="dark"] .consultation-strip,
html[data-theme="dark"] .estate-card,
html[data-theme="dark"] .catalog-filters,
html[data-theme="dark"] .property-summary,
html[data-theme="dark"] .contact-form-panel,
html[data-theme="dark"] .hero-search,
html[data-theme="dark"] .empty-state { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .site-footer { background: #20241f !important; }
html[data-theme="dark"] .site-footer h2,
html[data-theme="dark"] .site-footer h3,
html[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .footer-bottom { color: var(--ink) !important; }
html[data-theme="dark"] .hero-copy > p,
html[data-theme="dark"] .hero-image figcaption,
html[data-theme="dark"] .consultation-strip p { color: var(--muted) !important; }
html[data-theme="dark"] .transaction-label { background: rgba(34,38,32,.92); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .public-facts div { background: var(--raised); }
html[data-theme="dark"] .button-gold, html[data-theme="dark"] body.public-site .button-gold { background: var(--raised) !important; color: var(--ink) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .button-gold:hover { background: #394438; }
html[data-theme="dark"] .public-bottom { background: var(--surface) !important; }
@media (max-width: 900px) {
  .hero-main { gap: 28px; }
  .site-container { width: min(100% - 36px, 1240px); }
}
@media (max-width: 680px) {
  .header-row { min-height: 68px; }
  .site-brand { font-size: 16px; }
  .site-brand small { font-size: 11px; }
  .hero-main { gap: 20px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-copy > p { font-size: 13px; }
  .hero-search { border-radius: 12px; }
  .estate-copy { padding: 16px; }
  .contact-form-panel { padding: 20px; }
}
html[data-theme="dark"] .theme-toggle { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
html[data-theme="dark"] body.public-site .site-brand { color: var(--ink) !important; }
html[data-theme="dark"] body.public-site .desktop-links a { color: var(--muted) !important; }
