:root {
  --gold: #b97a16;
  --gold-strong: #9d6309;
  --gold-light: #f1c66d;
  --black: #11110f;
  --ink: #292822;
  --muted: #6c685f;
  --line: #e4ded2;
  --paper: #fbfaf6;
  --white: #ffffff;
  --soft-gold: #f8f0df;
  --sage: #2f6f5e;
  --danger: #8e1f1f;
  --shadow: 0 16px 38px rgba(25, 22, 16, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  text-align: right;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
h1, h2, h3, p, dl, dd { margin-top: 0; }
h1, h2, h3 { color: var(--black); }
h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
h3 { line-height: 1.25; }

:focus-visible {
  outline: 3px solid rgba(185, 122, 22, .45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  right: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--gold);
  border-radius: 4px;
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 8px clamp(18px, 4vw, 60px);
  background: rgba(251, 250, 246, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.brand::after { content: "אמסלם נכסים"; white-space: nowrap; font-size: 18px; }
.brand img { display: block; width: 82px; height: 58px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); font-weight: 700; }
.main-nav a { position: relative; padding: 10px 0; }
.main-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-contact {
  padding: 10px 18px !important;
  color: var(--white);
  background: var(--black);
  border-radius: 6px;
}

.menu-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--black);
  font-size: 23px;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(64px, 8vw, 105px) clamp(18px, 6vw, 90px) 110px;
  background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  content: "";
  background: rgba(14, 14, 12, .66);
}

.hero-content { max-width: 690px; }
.hero-brand-lockup {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  grid-template-areas: "logo heading";
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
  direction: ltr;
}
.hero-logo {
  grid-area: logo;
  width: 145px;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(241, 198, 109, .78);
  border-radius: 6px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}
.hero-heading { grid-area: heading; direction: rtl; }
.hero .eyebrow { color: var(--gold-light); font-size: 18px; }
.eyebrow { margin-bottom: 10px; color: var(--gold-strong); font-weight: 800; }
.hero h1 {
  margin-bottom: 0;
  max-width: 680px;
  color: var(--white);
  font-size: clamp(50px, 5.6vw, 78px);
  line-height: 1;
}
.hero-text { max-width: 630px; margin-bottom: 0; color: #f5f2eb; font-size: clamp(20px, 1.8vw, 23px); line-height: 1.65; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.text-link { padding: 10px 2px; color: var(--white); border-bottom: 2px solid var(--gold-light); font-weight: 800; }
.hero .ghost-button { color: var(--white); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .72); }
.hero .ghost-button:hover { color: var(--black); background: var(--white); }

.primary-button,
.ghost-button,
.search-band button,
.lead-form button,
.admin-button,
.whatsapp-button,
.phone-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.primary-button, .admin-button { color: var(--black); background: var(--gold-light); border: 1px solid var(--gold); }
.primary-button:hover, .admin-button:hover { background: #eab84f; }
.ghost-button { color: var(--black); background: transparent; border: 1px solid #80796e; }
.ghost-button:hover { background: var(--white); border-color: var(--black); }
.whatsapp-button { color: var(--white); background: var(--sage); }
.phone-action { min-height: 42px; padding-inline: 14px; color: var(--black); background: transparent; border: 1px solid var(--line); }

.hero-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  color: var(--white);
  background: rgba(17, 17, 15, .92);
  border: 1px solid rgba(241, 198, 109, .55);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-panel div { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-panel div:last-child { border-bottom: 0; }
.hero-panel strong { color: var(--gold-light); font-size: 22px; }
.hero-panel span { color: #eeeae2; line-height: 1.5; }

.search-band {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, auto) auto;
  gap: 14px;
  align-items: end;
  margin: -45px auto 28px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17,17,15,.12);
}
.favorites-filter { min-height: 46px; display: flex; grid-auto-flow: column; justify-content: start; align-items: center; padding: 10px 12px; background: #f8f5ee; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.favorites-filter input { width: 20px; min-height: 20px; accent-color: var(--gold-strong); }

label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbc3b6;
  border-radius: 6px;
  direction: rtl;
  text-align: right;
}
textarea { min-height: 110px; line-height: 1.55; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 3px solid rgba(185,122,22,.12); }
input[type="number"], input[inputmode="tel"] { direction: ltr; text-align: right; }
button:disabled { cursor: wait; opacity: .62; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.section { padding: clamp(52px, 7vw, 88px) clamp(18px, 6vw, 90px); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 24px; }
.section-heading > p { max-width: 520px; margin-bottom: 3px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.results-summary { margin: 0 0 16px; color: var(--muted); font-weight: 700; }

.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.property-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.property-card:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(25,22,16,.12); }
.property-image-shell { position: relative; }
.property-image-link { position: relative; display: block; background: #f1ede4; }
.property-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.deal-badge, .image-count {
  position: absolute;
  top: 12px;
  z-index: 1;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
}
.deal-badge { right: 12px; color: var(--black); background: var(--gold-light); border: 1px solid var(--gold); }
.image-count { left: 12px; color: var(--white); background: rgba(17,17,15,.82); }
.featured-badge { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 5px 9px; color: var(--white); background: rgba(86, 102, 73, .94); border-radius: 4px; font-size: 13px; font-weight: 800; }
.static-featured { position: static; }
.favorite-button { position: absolute; z-index: 3; left: 12px; bottom: 12px; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; color: var(--black); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 50%; font-size: 25px; cursor: pointer; }
.favorite-button.active { color: #a12f2f; background: var(--white); }
.static-badge { position: static; width: max-content; }
.property-body { flex: 1; display: flex; flex-direction: column; padding: 20px; direction: rtl; text-align: right; }
.property-meta-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.property-meta-line .property-type { margin-bottom: 5px; }
.property-type { margin-bottom: 5px; color: var(--gold-strong); font-size: 14px; font-weight: 800; }
.property-body h3 { min-height: 56px; margin-bottom: 7px; font-size: 23px; }
.property-body h3 a:hover { text-decoration: underline; }
.property-location { margin-bottom: 8px; color: var(--muted); font-weight: 700; }
.price { margin: 8px 0 14px; color: var(--black); font-size: 26px; font-weight: 800; }
.property-facts, .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.property-facts div { padding: 9px 10px; border-block: 1px solid var(--line); border-left: 1px solid var(--line); }
.property-facts div:last-child { border-left: 0; }
.property-facts dt { color: var(--muted); font-size: 13px; }
.property-facts dd { margin: 2px 0 0; color: var(--black); font-weight: 800; }
.property-description { min-height: 52px; margin: 15px 0 0; color: var(--muted); line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-actions { display: flex; gap: 9px; margin-top: auto; padding-top: 18px; }
.card-actions .primary-button { flex: 1; }
.empty-state { grid-column: 1 / -1; padding: 34px; text-align: center; background: var(--white); border: 1px dashed #c9bda8; border-radius: 8px; }
.empty-state h3 { margin-bottom: 8px; font-size: 25px; }
.empty-state p { color: var(--muted); }
.empty-state .primary-button, .empty-state .ghost-button { margin: 5px; }
.loading-state { grid-column: 1 / -1; min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 18px; font-weight: 800; }

.dark-section { color: var(--white); background: var(--black); }
.dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section .eyebrow, .dark-section article span { color: var(--gold-light); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-grid article { padding-top: 18px; border-top: 2px solid var(--gold); }
.service-grid h3 { margin: 7px 0 9px; font-size: 23px; }
.service-grid p { color: #d8d1c5; line-height: 1.6; }

.audience-section { background: var(--white); }
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.audience-grid article { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.audience-grid h3 { margin-bottom: 10px; font-size: 28px; }
.audience-grid p { color: var(--muted); line-height: 1.65; }
.audience-grid ul { margin: 16px 0 0; padding: 0 22px 0 0; line-height: 1.9; font-weight: 700; }
.audience-grid li::marker { color: var(--gold); }
.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 20px 24px;
  color: var(--white);
  background: var(--black);
  border-radius: 8px;
}
.section-cta div { display: grid; gap: 4px; }
.section-cta strong { color: var(--gold-light); font-size: 20px; }
.section-cta span { color: #e7e1d7; }

.process-section { background: var(--soft-gold); }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.process-grid article { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.process-grid span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; color: var(--gold-light); background: var(--black); border-radius: 50%; font-weight: 800; }
.process-grid h3 { margin-bottom: 8px; }
.process-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }

.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items: start; }
.about-copy > p:first-child { font-size: 21px; line-height: 1.7; }
.license-line { display: inline-block; padding: 12px 15px; color: #4f4b42; background: var(--soft-gold); border-right: 3px solid var(--gold); font-weight: 700; }

.contact-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 42px; background: var(--soft-gold); }
.contact-section > div > p { color: #4d493f; font-size: 19px; line-height: 1.6; }
.contact-direct { display: grid; gap: 10px; margin-top: 24px; }
.contact-direct a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.contact-direct span { color: var(--muted); font-weight: 700; }
.lead-form { display: grid; gap: 14px; direction: rtl; text-align: right; }
.form-status { min-height: 24px; margin-bottom: 0; color: var(--sage); font-weight: 800; }
.form-status.error { color: var(--danger); }
.form-status.loading { color: var(--gold-strong); }
.privacy-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.privacy-note a { color: var(--black); font-weight: 800; text-decoration: underline; }
.form-privacy-disclosure { padding: 12px 14px; color: #49453d; background: #f7f4ed; border-right: 3px solid var(--gold); font-size: 14px; line-height: 1.55; }
.form-privacy-disclosure strong { display: block; margin-bottom: 4px; color: var(--black); }
.form-privacy-disclosure p { margin: 0; }
.form-privacy-disclosure p + p { margin-top: 7px; }
.form-privacy-disclosure a { color: var(--black); font-weight: 800; text-decoration: underline; }
.form-privacy-disclosure .demo-form-note { color: #735514; font-weight: 700; }
.compact-disclosure { font-size: 13px; }

.site-footer { display: grid; justify-items: center; gap: 8px; padding: 36px 18px; color: var(--white); background: var(--black); text-align: center; }
.site-footer img { width: 112px; padding: 7px; background: var(--white); border-radius: 6px; }
.site-footer p { margin-bottom: 2px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; font-weight: 700; }
.footer-links a { color: var(--gold-light); text-decoration: underline; }
.footer-cookie-button { padding: 0; color: var(--gold-light); background: transparent; border: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.footer-links .agent-login-link { margin-inline-start: 6px; padding-inline-start: 20px; color: #f5f2eb; border-inline-start: 1px solid rgba(255, 255, 255, .28); }
.mobile-contact-bar { display: none; }

/* Login */
.login-page-body { min-height: 100vh; background: var(--paper); }
.login-header { justify-content: space-between; }
.login-header .ghost-button { width: auto; min-width: 118px; }
.login-page { display: grid; min-height: calc(100vh - 84px); place-items: center; padding: 36px 18px 64px; }
.login-panel { width: min(100%, 500px); padding: clamp(24px, 5vw, 42px); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; box-shadow: var(--shadow); }
.login-logo { display: block; width: 138px; max-height: 112px; margin: 0 auto 18px; object-fit: contain; }
.login-panel .eyebrow { text-align: center; }
.login-panel h1 { margin-bottom: 12px; font-size: clamp(34px, 6vw, 50px); line-height: 1.08; text-align: center; }
.login-intro { margin: 0 auto 26px; color: var(--muted); font-size: 17px; line-height: 1.65; text-align: center; }
.login-form { display: grid; gap: 9px; }
.login-form label { margin-top: 7px; font-weight: 800; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 118px; }
.password-toggle { position: absolute; top: 50%; left: 7px; min-height: 36px; padding: 4px 10px; color: var(--black); background: #f4f1ea; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 13px; font-weight: 800; transform: translateY(-50%); cursor: pointer; }
.login-submit { width: 100%; margin-top: 16px; }
.demo-login-note { display: grid; gap: 5px; margin-top: 22px; padding: 14px 16px; color: #4f493f; background: #f7f4ed; border-right: 3px solid var(--gold); font-size: 14px; line-height: 1.55; }
.demo-login-note strong { color: var(--black); }
.demo-login-note p { margin: 4px 0 0; color: var(--muted); }
.not-found-page { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 40px 18px; background: var(--paper); text-align: center; }
.not-found-page img { width: 150px; max-height: 130px; object-fit: contain; }
.not-found-page h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); }
.not-found-page > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

/* Legal pages */
.legal-page { min-height: 65vh; padding: clamp(36px, 7vw, 76px) clamp(18px, 6vw, 90px); background: var(--paper); }
.legal-document { max-width: 980px; margin: 0 auto; padding: clamp(22px, 4vw, 42px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); direction: rtl; text-align: right; }
.legal-document h1 { margin-bottom: 18px; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; }
.legal-document h2 { margin-top: 30px; font-size: clamp(24px, 3vw, 32px); }
.legal-document p, .legal-document li { color: #444039; font-size: 18px; line-height: 1.75; }
.legal-document ul { padding: 0 22px 0 0; }
.legal-meta { display: inline-flex; margin-bottom: 18px; color: var(--muted); font-weight: 800; }
.legal-document a { color: #69470e; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-notice { margin: 26px 0; padding: 18px 20px; background: #fff8e8; border-right: 4px solid var(--gold); }
.legal-notice h2 { margin: 0 0 8px; font-size: 24px; }
.legal-notice p { margin: 0; }
.compact-footer { padding-block: 24px; }

/* Property detail */
.property-page { background: var(--paper); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px clamp(18px, 6vw, 90px) 0; color: var(--muted); font-size: 15px; }
.breadcrumbs a { text-decoration: underline; }
.property-detail-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 32px clamp(18px, 6vw, 90px) 28px; }
.property-detail-hero h1 { max-width: 900px; margin: 8px 0 8px; font-size: clamp(38px, 5vw, 68px); line-height: 1.05; }
.detail-location { margin-bottom: 6px; color: var(--muted); font-size: 20px; font-weight: 700; }
.property-detail-hero .price { margin-bottom: 18px; font-size: 32px; }
.hero-facts { grid-template-columns: repeat(4, minmax(0, 150px)); border-block: 1px solid var(--line); }
.hero-facts div { padding: 10px 12px; border-left: 1px solid var(--line); }
.hero-facts div:last-child { border-left: 0; }
.hero-facts dt { color: var(--muted); font-size: 14px; }
.hero-facts dd { margin-top: 2px; color: var(--black); font-size: 18px; font-weight: 800; }
.detail-hero-actions { min-width: 170px; display: grid; gap: 10px; }

.detail-gallery { padding: 0 clamp(18px, 6vw, 90px) 40px; }
.gallery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.gallery-heading h2 { margin-bottom: 0; font-size: 27px; }
.gallery-heading span { color: var(--muted); }
.gallery-main-wrap { position: relative; }
.gallery-main-button { width: 100%; padding: 0; background: #10100f; border: 0; border-radius: 8px; cursor: zoom-in; }
.gallery-main { width: 100%; max-height: 650px; aspect-ratio: 1.85; object-fit: contain; display: block; cursor: zoom-in; background: #10100f; border: 1px solid #2f2e2b; border-radius: 8px; }

.cookie-consent { position: fixed; z-index: 2500; right: 20px; bottom: 20px; left: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; max-width: 1080px; margin: auto; padding: 20px 22px; color: var(--ink); background: var(--white); border: 1px solid #ccb273; border-radius: 8px; box-shadow: 0 18px 55px rgba(0, 0, 0, .24); }
.cookie-consent h2 { margin-bottom: 6px; font-size: 22px; }
.cookie-consent p { margin: 0; line-height: 1.55; }
.cookie-consent a { color: var(--gold-strong); font-weight: 800; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; white-space: nowrap; }
.gallery-counter { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; color: var(--white); background: rgba(17,17,15,.8); border-radius: 5px; font-weight: 800; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.gallery-thumbs button { padding: 0; overflow: hidden; cursor: pointer; background: transparent; border: 2px solid transparent; border-radius: 6px; }
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1.45; object-fit: contain; display: block; background: #eeeae2; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 14px; padding: 24px; background: rgba(0,0,0,.94); }
.lightbox.open { display: grid; }
.lightbox img { width: 100%; height: calc(100vh - 100px); object-fit: contain; }
.lightbox button { min-height: 54px; color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(241,198,109,.55); border-radius: 6px; font-size: 30px; cursor: pointer; }
.lightbox-close { position: fixed; top: 18px; left: 18px; width: 52px; }
.lightbox-counter { position: fixed; right: 24px; bottom: 18px; color: var(--white); font-weight: 800; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 22px; align-items: start; padding: 0 clamp(18px, 6vw, 90px) 76px; }
.detail-content { display: grid; gap: 18px; }
.detail-card { padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; direction: rtl; text-align: right; }
.detail-card h2 { margin-bottom: 16px; font-size: 30px; }
.detail-description { margin-bottom: 0; color: #46423a; font-size: 19px; line-height: 1.8; white-space: pre-line; }
.details-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.details-list div { min-width: 0; padding: 14px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.details-list dt { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.details-list dd { overflow-wrap: anywhere; color: var(--black); font-size: 17px; font-weight: 800; }
.accuracy-note { padding: 18px 20px; background: var(--soft-gold); border-right: 4px solid var(--gold); }
.accuracy-note strong { color: var(--black); }
.accuracy-note p { margin: 4px 0 0; color: var(--muted); line-height: 1.6; }
.contact-card { position: sticky; top: 98px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.contact-card > p { color: var(--muted); line-height: 1.55; }
.property-lead-form { display: grid; gap: 12px; }
.contact-separator { position: relative; margin: 4px 0; text-align: center; }
.contact-separator::before { position: absolute; inset: 50% 0 auto; height: 1px; content: ""; background: var(--line); }
.contact-separator span { position: relative; padding: 0 10px; color: var(--muted); background: var(--white); }
.property-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 42px clamp(18px, 6vw, 90px); color: var(--white); background: var(--black); }
.property-bottom-cta h2 { margin-bottom: 0; color: var(--white); font-size: clamp(28px, 4vw, 44px); }
.property-bottom-cta .eyebrow { color: var(--gold-light); }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mini-status { min-height: 20px; grid-column: 1 / -1; color: var(--sage); font-size: 14px; font-weight: 800; text-align: center; }
.map-card iframe { width: 100%; height: 340px; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; }
.map-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.similar-properties { padding-top: 30px; background: #f7f4ed; border-top: 1px solid var(--line); }

@media (max-width: 1050px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .menu-button { display: inline-grid; }
  .main-nav {
    position: absolute;
    inset: 75px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 22px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(17,17,15,.08);
    text-align: right;
  }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 12px 0; }
  .nav-contact { margin-top: 8px; padding: 11px 16px !important; text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 56px; background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80") center/cover; }
  .hero::before { width: 100%; background: rgba(14, 14, 12, .72); }
  .hero-panel { max-width: 580px; }
  .search-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-band button { width: 100%; }
  .about-section, .contact-section { grid-template-columns: 1fr; }
  .property-detail-hero { display: grid; }
  .detail-hero-actions { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { padding-bottom: 62px; }
  body.login-page-body { padding-bottom: 0; }
  .site-header { min-height: 68px; }
  .brand { gap: 5px; }
  .brand::after { font-size: 16px; }
  .brand img { width: 66px; height: 50px; }
  .main-nav { inset-block-start: 67px; }
  .hero { gap: 16px; padding: 30px 18px 54px; }
  .hero-brand-lockup { grid-template-columns: 1fr; grid-template-areas: "logo" "heading"; justify-items: center; gap: 9px; margin-bottom: 14px; }
  .hero-logo { width: 116px; }
  .hero-heading { text-align: center; }
  .hero h1 { font-size: 44px; }
  .hero-text { font-size: 18px; line-height: 1.55; }
  .hero-actions { margin-top: 20px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .text-link { grid-column: 1 / -1; width: max-content; justify-self: center; }
  .hero-panel div { padding: 9px 12px; }
  .hero-panel span { font-size: 15px; line-height: 1.35; }
  .search-band { grid-template-columns: 1fr; margin-top: -55px; padding: 16px; }
  .section { padding: 48px 18px; }
  .section-heading { display: block; }
  .section-heading > p { font-size: 17px; }
  .property-grid, .service-grid, .audience-grid, .process-grid { grid-template-columns: 1fr; }
  .property-card:hover { transform: none; }
  .property-body h3 { min-height: 0; }
  .section-cta { display: grid; padding: 20px; }
  .section-cta .primary-button { width: 100%; }
  .about-section { gap: 14px; }
  .contact-direct a { align-items: flex-start; flex-direction: column; }
  .mobile-contact-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 62px;
    padding: 8px;
    background: var(--black);
    border-top: 1px solid #444;
  }
  .mobile-contact-bar a { display: grid; place-items: center; margin: 0 4px; color: var(--black); background: var(--gold-light); border-radius: 5px; font-weight: 800; }
  .mobile-contact-bar a:first-child { color: var(--white); background: #2f2e2a; border: 1px solid #777168; }
  .breadcrumbs { padding-top: 16px; }
  .property-detail-hero { padding-top: 24px; }
  .property-detail-hero h1 { font-size: 39px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts div { border-bottom: 1px solid var(--line); }
  .detail-hero-actions { grid-template-columns: 1fr 1fr; }
  .gallery-heading { display: block; }
  .gallery-heading span { font-size: 14px; }
  .gallery-main { aspect-ratio: 1.3; }
  .gallery-thumbs { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
  .gallery-thumbs button { min-width: 104px; scroll-snap-align: start; }
  .details-list { grid-template-columns: 1fr 1fr; }
  .detail-card { padding: 20px; }
  .lightbox { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 5px; padding: 8px; }
  .lightbox img { height: calc(100vh - 80px); }
  .property-bottom-cta { display: grid; padding: 36px 18px; }
  .property-bottom-cta .primary-button { width: 100%; }
  .footer-links .agent-login-link { width: 100%; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .28); border-inline-start: 0; }
  .cookie-consent { right: 10px; bottom: 10px; left: 10px; grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; white-space: normal; }
  .login-page { min-height: calc(100vh - 68px); padding: 22px 14px 42px; }
  .login-panel { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
