/* ===== מתן שמיר · נדל״ן — "המותג האישי" בצבעי אור נכסים ===== */
:root {
  /* צבעי אור נכסים: כחול-לילה + זהב (גרדיאנט) + תכלת של הלוגו */
  --navy: #08162E;
  --navy-2: #152531;
  --navy-3: #223C50;
  --gold-dark: #9C6C34;
  --gold-light: #EDCE97;
  --gold-grad: linear-gradient(90deg, #9C6C34 0%, #EDCE97 50%, #9C6C34 100%);
  --sky: #0BB4F0;
  --accent: #8A5E2C;        /* זהב כהה – לטקסט על לבן (ניגודיות תקינה) */
  --accent-hover: #6E4A21;
  --accent-soft: #F6EEDF;
  --accent-on: #EDCE97;     /* זהב בהיר – לטקסט על כחול-לילה */
  --ink: #08162E;
  --text-2: #2E3B4E;
  --muted: #5B6676;
  --bg: #FFFFFF;
  --bg-2: #F4F5F8;
  --line: #E4E7EE;
  --wa: #1F8F4E;
  --radius-s: 14px;
  --radius-m: 24px;
  --radius-l: 32px;
  --shadow: 0 10px 30px rgba(11, 16, 32, 0.12);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.snap { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }

.container { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
.section { padding-block: 90px; }
.section-bottom { padding-bottom: 90px; }
.section-gray { background: var(--bg-2); }
.center { text-align: center; }
.mt-36 { margin-top: 36px; }
.mb-36 { margin-bottom: 36px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--accent); }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; border: 0; border-radius: 999px; padding: 13px 24px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .tab:focus-visible, .card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--gold-grad); background-size: 200% 100%; background-position: 0 0; color: var(--navy); }
.btn-primary:hover { background-position: 100% 0; color: var(--navy); box-shadow: 0 8px 22px rgba(156, 108, 52, 0.35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-3); color: #fff; }
.btn-soft { background: var(--accent-soft); color: var(--navy); }
.btn-soft:hover { color: var(--accent-hover); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--ink); box-shadow: var(--shadow); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #18773F; color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- כותרת עליונה ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 20px; }
.logo { font-weight: 900; font-size: 26px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo .dot { color: var(--accent); }
.main-nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); }

/* ---------- הירו ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.hero-media { flex: 1 1 400px; min-width: 0; position: relative; }
.portrait { aspect-ratio: 1 / 1; background: transparent; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.portrait { position: relative; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.portrait img + .portrait-empty { display: none; }
.portrait-empty { width: 100%; height: 100%; border-radius: 999px; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 0 !important; }
.portrait-empty { color: var(--accent-on); font-weight: 500; font-size: 15px; padding-bottom: 40px; }
.rating-badge { position: absolute; top: 28px; left: -16px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.rating-value { font-size: 26px; font-weight: 900; color: var(--accent); }
.rating-text { font-size: 13px; line-height: 1.3; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.hero-title { margin-top: 20px; font-weight: 900; font-size: clamp(44px, 6.5vw, 84px); line-height: 0.98; letter-spacing: -2px; }
.hero-lead { margin: 26px 0 34px; font-size: 20px; color: var(--text-2); max-width: 520px; }

/* ---------- כותרות סקשן ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.section-title { font-weight: 900; font-size: clamp(34px, 4vw, 52px); letter-spacing: -1px; line-height: 1.1; }
.page-head { padding-top: 30px; padding-bottom: 32px; }
.page-title { font-weight: 900; font-size: clamp(40px, 5vw, 60px); letter-spacing: -1.5px; line-height: 1.05; }
.page-lead { margin: 10px 0 28px; color: var(--text-2); font-size: 19px; }
.h2 { font-size: 26px; font-weight: 700; margin: 0 0 12px; }

/* ---------- טאבים ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { background: #fff; color: var(--ink); border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 500; text-decoration: none; }
.page-head .tab { background: var(--bg-2); }
.tab:hover { color: var(--accent); }
.tab.is-active, .tab.is-active:hover { background: var(--ink); color: #fff; }

/* ---------- כרטיסי נכס ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { display: block; background: #fff; border-radius: var(--radius-m); overflow: hidden; color: var(--ink); text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease; }
.page-head + .section-bottom .card, .section-bottom > .cards-grid .card { border-color: var(--line); }
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11, 16, 32, 0.10); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #DDE2EF; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card.is-sold .card-media img { filter: saturate(0.6); }
.card-media-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #8A93AE; }
.badge { position: absolute; top: 14px; right: 14px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge--light { background: #fff; color: var(--ink); }
.badge--accent { background: var(--gold-grad); color: var(--navy); }
.badge--dark { background: var(--ink); color: #fff; }
.chip-exclusive { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #fff; color: var(--ink); }
.play-dot { position: absolute; bottom: 14px; left: 14px; width: 38px; height: 38px; border-radius: 999px; background: rgba(11, 16, 32, 0.7); display: flex; align-items: center; justify-content: center; }
.card-body { padding: 22px 22px 24px; }
.card-price { font-size: 26px; font-weight: 900; }
.card-title { color: var(--text-2); margin: 2px 0 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.chips span { background: var(--bg-2); border-radius: 10px; padding: 6px 12px; }
.empty-note { color: var(--muted); padding: 24px 0; }

/* ---------- המלצות ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { margin: 0; border: 2px solid var(--line); border-radius: var(--radius-m); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.stars { color: #C29A5B; letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.5; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; line-height: 1.3; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- רצועת קריאה לפעולה ---------- */
/* אותם גווני כחול כמו הרקע בתמונה של מתן */
.cta-band { background: #043E5E; background-image: radial-gradient(70% 160% at 62% 50%, #12679C 0%, #0B5181 38%, #054366 72%, #033A58 100%); color: #fff; border-radius: var(--radius-l); padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band--compact { padding: 44px 48px; }
.cta-text { flex: 1 1 380px; }
.cta-text h2 { font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin-bottom: 8px; }
.cta-band--compact .cta-text h2 { font-size: clamp(26px, 2.8vw, 36px); }
.cta-text p { margin: 0; color: var(--accent-on); }
.contact-buttons { flex: 1 1 420px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.contact-buttons .btn { flex: 1 1 190px; font-size: 18px; padding-block: 17px; }

/* ---------- פוטר ---------- */
.site-footer { background: var(--navy); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 22px; font-size: 14px; color: #A9B4C4; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 44px; width: auto; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #A9B4C4; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }

/* ---------- דף נכס ---------- */
.breadcrumbs { padding-block: 4px 18px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 230px 230px; gap: 10px; border-radius: 28px; overflow: hidden; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 470px; }
.gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 470px; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery--4 .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item { position: relative; border: 0; padding: 0; background: #DDE2EF; cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-main { grid-row: span 2; }
.gallery--5 .gallery-main { grid-column: span 2; }
.gallery-empty { display: flex; align-items: center; justify-content: center; color: #8A93AE; cursor: default; }
.gallery-more { position: absolute; inset: 0; background: rgba(11, 16, 32, 0.6); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(11, 16, 32, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 16px; object-fit: contain; }
.lightbox-close, .lightbox-nav { position: fixed; background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 999px; font-size: 26px; cursor: pointer; }
.lightbox-close { top: 20px; left: 20px; font-size: 20px; }
.lightbox-prev { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

.prop-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 36px; padding-bottom: 80px; }
.prop-main { flex: 999 1 560px; min-width: 0; }
.prop-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.prop-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.prop-title { font-weight: 900; font-size: clamp(32px, 3.8vw, 46px); letter-spacing: -1px; line-height: 1.1; margin-bottom: 6px; }
.prop-price { text-align: left; }
.prop-price .price { font-weight: 900; font-size: 40px; color: var(--navy); line-height: 1; }
.prop-price .small { margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 30px 0; }
.fact { background: var(--bg-2); border-radius: 18px; padding: 16px 18px; }
.fact-k { font-size: 13px; color: var(--muted); }
.fact-v { font-weight: 700; font-size: 20px; }
.prose { color: var(--text-2); margin-bottom: 30px; }
.prose p { margin: 0 0 14px; }
.features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.feature { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; }
.feature.is-yes { border-color: var(--accent-soft); background: #fff; }
.feature.is-yes svg { color: var(--accent); }
.feature.is-no { color: #6E7489; }
.media-row { display: flex; flex-wrap: wrap; gap: 24px; }
.media-video { flex: 1 1 100%; }
.media-video.is-vertical { flex: 0 1 300px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #1B2033; }
.media-video.is-vertical .video-frame { aspect-ratio: 9 / 16; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-side { flex: 1 1 300px; min-width: 0; }
.map { width: 100%; height: 320px; border: 0; border-radius: 22px; margin-bottom: 24px; background: var(--bg-2); }
.floor-plan { display: block; border: 2px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.floor-plan img { width: 100%; max-height: 360px; object-fit: contain; }

.agent-card { flex: 1 1 320px; min-width: 0; border: 2px solid var(--line); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 24px; }
.agent-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.agent-photo { width: 64px; height: 64px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; flex: none; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-name { font-weight: 700; font-size: 19px; }

/* התאמות בסיס למסכים צרים (התאמת מובייל מלאה – בשלב הבא) */
@media (max-width: 720px) {
  .container { padding-inline: 18px; }
  .section { padding-block: 60px; }
  .main-nav { order: 3; width: 100%; gap: 18px; }
  .rating-badge { left: 10px; }
  .cta-band { padding: 30px 24px; }

  .agent-card { position: static; }
}

/* ===== דף הבית: עמודים במסך מלא – כל גלילה = עמוד אחד =====
   טאצ'פד/מגע: גלילה טבעית של הדפדפן + scroll-snap (חלק, הדף זז עם האצבעות ונצמד לעמוד).
   גלגלת/מקלדת/קישורים: אנימציה ב-site.js; בזמן האנימציה (html.js-animating) ה-snap כבוי כדי שלא יתנגש. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-dots { display: none; }
.reviews-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 40px) / 3)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.reviews-row > .review { scroll-snap-align: start; }

/* באנר הערכת שווי בתחתית העמוד הראשון */
.hero-cta { padding-bottom: 32px; }
.cta-band--hero { padding: 26px 40px; gap: 24px; }
.cta-logo { height: 62px; width: auto; flex: none; padding-left: 28px; border-left: 1px solid rgba(237, 206, 151, 0.35); }
.cta-band--hero .cta-text { flex: 1 1 320px; }
.cta-band--hero .cta-text h2 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 4px; }
.cta-band--hero .contact-buttons { flex: 0 1 460px; }
.cta-band--hero .contact-buttons .btn { padding-block: 14px; font-size: 17px; }

/* נכסים: רשת שנכנסת במסך; עודפים עוברים ל"עמוד" הבא */
.cards-grid--paged { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.listings-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.listings-more-head h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; }
.listings-more-head span { color: var(--muted); font-size: 15px; }

@media (min-width: 1000px) and (min-height: 620px) {
  html.snap { scroll-snap-type: y mandatory; }
  html.snap.js-animating { scroll-snap-type: none; }
  html.snap .page { height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
  html.snap:not(.js-paging) .listings-page { height: auto; min-height: 100svh; overflow: visible; }
  html.snap .page-inner, html.snap .page > .container { width: 100%; }

  /* עמוד 1: כותרת + הירו + באנר */
  html.snap .page--hero { justify-content: flex-start; }
  html.snap .page--hero .hero { flex: 1; min-height: 0; padding-top: 0; padding-bottom: 20px; flex-wrap: nowrap; align-items: center; }
  html.snap .hero-media { flex: 0 1 auto; width: min(40%, calc(100svh - 390px)); }
  html.snap .hero-text { flex: 1 1 0; }
  html.snap .hero-title { font-size: clamp(40px, min(6vw, 8svh), 80px); }
  html.snap .hero-lead { margin: 18px 0 24px; }

  html.snap .page--last { justify-content: space-between; }
  html.snap .page--last > .page-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  html.snap .section-head { margin-bottom: 24px; }

  /* עמודי הנכסים מתחילים מלמעלה (לא ממורכזים) – כך החישוב של כמה שורות נכנסות יציב */
  html.snap .listings-page { justify-content: flex-start; padding-top: clamp(28px, 5svh, 70px); }
  /* כרטיסים קומפקטיים כדי שכמה שורות ייכנסו במסך */
  html.snap .cards-grid--paged .card-media { aspect-ratio: auto; height: clamp(110px, calc(22svh - 22px), 230px); }
  html.snap .cards-grid--paged .card-body { padding: 14px 18px 16px; }
  html.snap .cards-grid--paged .card-price { font-size: 22px; }
  html.snap .cards-grid--paged .card-title { margin: 0 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .page-dots { display: flex; flex-direction: column; gap: 12px; position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 20; }
  .page-dots a { width: 12px; height: 12px; border-radius: 999px; background: #C9D0E3; transition: background-color .2s ease, transform .2s ease; }
  .page-dots a:hover { background: var(--gold-dark); }
  .page-dots a.is-active { background: var(--gold-grad); transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== נגיעות מותג: זהב ===== */
.hero-title .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title::after { content: ''; display: block; width: 72px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--gold-grad); }
.eyebrow { color: var(--accent-hover); }
.rating-value { color: var(--gold-dark); }
.logo .dot { color: var(--sky); }
.tab.is-active, .tab.is-active:hover { background: var(--navy); }

/* כפתור הטלפון בבאנר: שקוף-עדין על הכחול במקום כחול-לילה */
.cta-band .contact-buttons .btn-dark { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.cta-band .contact-buttons .btn-dark:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.cta-band .cta-logo { border-left-color: rgba(255, 255, 255, 0.25); }

/* לוגו אור נכסים ליד השם (מימין לו) – קישור לאתר המשרד (הלוגו לבן+תכלת, לכן על רקע כחול-לילה) */
.brand { display: flex; align-items: center; gap: 14px; }
.agency-badge { display: flex; align-items: center; justify-content: center; height: 44px; padding: 6px 12px; border-radius: 14px; background: var(--navy); transition: transform .15s ease, box-shadow .15s ease; }
.agency-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(8, 22, 46, 0.25); }
.agency-badge img { height: 30px; width: auto; }

/* ===== דף צור קשר ===== */
.contact-body { background: var(--bg); }
.contact-hero { position: relative; overflow: hidden; min-height: calc(100svh - 160px); display: flex; align-items: center; padding-block: 40px 80px; background:
  radial-gradient(60% 80% at 15% 50%, rgba(18, 103, 156, 0.10) 0%, rgba(18, 103, 156, 0) 70%), var(--bg); }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; width: 100%; }
.contact-text { flex: 1 1 520px; min-width: 0; }
.contact-title { margin-top: 18px; font-weight: 900; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -2px; }
.contact-title .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-lead { margin: 20px 0 32px; font-size: 20px; color: var(--text-2); max-width: 520px; }

.contact-cards { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(8, 22, 46, 0.06); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.contact-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(8, 22, 46, 0.12); border-color: transparent; }
.contact-card:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.contact-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card--wa .contact-icon { background: var(--wa); }
.contact-icon--img { background: none !important; padding: 0; overflow: hidden; }
.contact-icon--img img { width: 100%; height: 100%; display: block; }
.contact-card--phone .contact-icon { background: radial-gradient(120% 120% at 30% 20%, #12679C 0%, #043E5E 100%); }
.contact-icon--logo { background: var(--navy); padding: 8px; }
.contact-icon--logo img { width: 100%; height: auto; }
.contact-card-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.contact-card-text strong { font-size: 19px; font-weight: 700; }
.contact-card-text span { color: var(--muted); font-size: 15px; }
.contact-card-text [dir='ltr'] { text-align: right; font-weight: 500; color: var(--text-2); }
.with-icon { display: inline-flex; align-items: center; gap: 6px; }
.contact-arrow { width: 38px; height: 38px; border-radius: 999px; background: var(--bg-2); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.contact-card:hover .contact-arrow { background: var(--navy); color: #fff; transform: translateX(-3px); }
.contact-socials { display: flex; gap: 16px; align-items: center; margin-top: 22px; font-size: 15px; }
.contact-socials a { color: var(--ink); font-weight: 500; }

.contact-visual { flex: 0 1 420px; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.contact-portrait { position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1; }
.contact-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.contact-portrait::before { content: ''; position: absolute; inset: -14px; border-radius: 999px; border: 2px solid transparent; background: var(--gold-grad) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.contact-name-card { margin-top: -34px; position: relative; background: #fff; border-radius: 18px; padding: 14px 22px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; line-height: 1.35; }
.contact-name-card strong { font-size: 20px; font-weight: 900; }
.contact-name-card span { color: var(--muted); font-size: 14px; }

@media (max-width: 720px) {
  .contact-inner { gap: 36px; }
  .contact-visual { order: -1; }
  .contact-portrait { width: 240px; }
}

/* צור קשר כעמוד אחרון בדף הבית */
.contact-page { background: radial-gradient(60% 80% at 15% 50%, rgba(18, 103, 156, 0.10) 0%, rgba(18, 103, 156, 0) 70%), var(--bg); }
.contact-page-inner { padding-block: 40px; }
@media (min-width: 1000px) and (min-height: 620px) {
  html.snap .contact-page-inner { padding-block: 24px; }
  html.snap .contact-page .contact-title { font-size: clamp(44px, 8svh, 80px); }
  html.snap .contact-page .contact-lead { margin: 14px 0 22px; }
  html.snap .contact-page .contact-cards { gap: 10px; }
  html.snap .contact-page .contact-card { padding: 14px 18px; }
  html.snap .contact-page .contact-portrait { width: min(100%, 380px, calc(100svh - 330px)); }
  html.snap .contact-page .contact-visual { flex-basis: 380px; }
}

/* צור קשר במצב עמודים: שני הטורים נכנסים גם במסך של 1000px */
@media (min-width: 1000px) and (min-height: 620px) {
  html.snap .contact-page .contact-text { flex-basis: 440px; }
  html.snap .contact-page .contact-inner { flex-wrap: nowrap; gap: 48px; }
}

/* =====================================================================
   טאבלט וטלפון: דף רגיל שגוללים (בלי עמודים במסך מלא)
   ===================================================================== */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-wa { display: none; }
.carousel-progress { display: none; }
@media (max-width: 999px), (max-height: 619px) {
  .listings-page, #reviews, .contact-page-inner { padding-block: 56px; }
  .hero-cta { padding-bottom: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }

  /* כותרת: לוגו + שם מימין, כפתור חיוג עגול משמאל; התפריט מוסתר (יש פס תחתון) */
  .site-header { flex-wrap: nowrap; padding-block: 12px; gap: 10px; }
  .main-nav { display: none; }
  .header-actions { gap: 8px; flex: none; }
  .header-call { width: 44px; height: 44px; padding: 0; }
  .header-call span { display: none; }
  .header-wa { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--wa); }
  .brand { gap: 10px; min-width: 0; }
  .agency-badge { height: 38px; padding: 5px 10px; border-radius: 12px; }
  .agency-badge img { height: 24px; }
  .logo { font-size: 21px; white-space: nowrap; }

  /* הירו */
  .hero { flex-direction: column; flex-wrap: nowrap; gap: 14px; padding-top: 4px; padding-bottom: 24px; }
  .hero-media { flex: none; width: 62%; max-width: 250px; margin-inline: auto; }
  .hero-text { flex: none; width: 100%; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .eyebrow { font-size: 13px; }
  .hero-title { margin-top: 12px; font-size: clamp(34px, 10.5vw, 44px); letter-spacing: -1px; line-height: 1.05; }
  .hero-lead { font-size: 17px; margin: 14px 0 20px; }
  .hero .btn-row { flex-wrap: nowrap; }
  .hero .btn-row .btn { flex: 1 1 0; padding: 14px 10px; font-size: 16px; }
  .rating-badge { left: -6px; top: 6px; padding: 8px 12px; }
  .rating-value { font-size: 20px; }

  /* באנר הערכת שווי */
  .hero-cta { padding-bottom: 28px; }
  .cta-band, .cta-band--hero { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 20px; border-radius: 24px; }
  .cta-band--hero .cta-text, .cta-text { flex: none; }
  .cta-band--hero .cta-text h2 { font-size: 24px; }
  .cta-band--hero { text-align: center; gap: 14px; }
  .cta-band--hero .cta-text p { font-size: 15px; }
  .contact-buttons, .cta-band--hero .contact-buttons { flex: none; flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .contact-buttons .btn, .cta-band--hero .contact-buttons .btn { flex: 1 1 0; min-width: 0; padding: 13px 8px; font-size: 15px; gap: 6px; }

  /* נכסים */
  .section-title { font-size: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 10px 18px; }
  /* נכסים והמלצות: קרוסלה שמחליקים לצדדים – הכרטיס הבא מציץ מהצד */
  [data-carousel] { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -18px; padding: 4px 18px 6px; scroll-padding-inline: 18px; }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { scroll-snap-align: start; }
  .cards-grid[data-carousel] { grid-template-columns: none; }
  .card { border-radius: 22px; box-shadow: 0 6px 18px rgba(8, 22, 46, 0.07); }
  .card:hover { transform: none; }
  .card-media { aspect-ratio: 4 / 3; }
  .card .badge { top: 12px; right: 12px; padding: 5px 12px; font-size: 12px; }
  .card .chip-exclusive { top: 12px; left: 12px; }
  .card-body { padding: 16px 18px 18px; }
  .card-price { font-size: 22px; line-height: 1.2; }
  .card-title { font-size: 15px; margin: 4px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chips { gap: 6px; font-size: 13px; }
  .chips span { padding: 4px 10px; border-radius: 8px; }
  .carousel-progress { display: block; position: relative; height: 4px; margin: 16px auto 0; width: 120px; border-radius: 4px; background: #DCE1EA; overflow: hidden; }
  .carousel-progress > span { position: absolute; top: 0; bottom: 0; right: 0; width: 30%; border-radius: 4px; background: var(--gold-grad); transition: right .12s linear; }
  .carousel-progress.is-static { display: none; }

  /* המלצות */
  .reviews-row { grid-auto-columns: 86%; }
  .review { padding: 22px; background: #fff; }
  #reviews .section-title.mb-36 { margin-bottom: 22px; }
  .review blockquote { font-size: 17px; }

  /* צור קשר */
  .contact-page-inner, .contact-hero { padding-block: 40px; }
  .listings-page, #reviews { padding-block: 44px; }
  h1, h2, .cta-text h2, .contact-lead, .hero-lead { text-wrap: balance; }
  .contact-hero { min-height: 0; }
  .contact-inner { flex-direction: column; flex-wrap: nowrap; gap: 26px; }
  .contact-page .contact-visual { display: none; }
  .contact-visual { order: -1; flex: none; }
  .contact-portrait { width: 200px; }
  .contact-portrait::before { inset: -10px; }
  .contact-name-card { margin-top: -24px; padding: 10px 16px; }
  .contact-text { flex: none; width: 100%; }
  .contact-title { font-size: 42px; margin-top: 12px; }
  .contact-lead { font-size: 17px; margin: 12px 0 22px; }
  .contact-card { padding: 14px; gap: 14px; border-radius: 18px; }
  .contact-icon { width: 48px; height: 48px; border-radius: 14px; }
  .contact-card-text strong { font-size: 17px; }
  .contact-arrow { width: 34px; height: 34px; }

  /* פוטר */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-block: 24px calc(24px + env(safe-area-inset-bottom)); }
  .footer-brand { flex-direction: column; gap: 8px; }
  .footer-links { justify-content: center; }

  /* דף נכס: גלריה שמחליקים לצדדים (לחיצה פותחת מסך מלא) */
  .gallery[data-carousel] { grid-template-columns: none; grid-template-rows: 280px; grid-auto-columns: 88%; gap: 8px; border-radius: 0; }
  .gallery.gallery--1[data-carousel] { grid-auto-columns: 100%; }
  .gallery .gallery-item, .gallery .gallery-main, .gallery--4 .gallery-item:nth-child(4), .gallery--5 .gallery-main { grid-column: auto; grid-row: auto; border-radius: 20px; }
  .gallery-item:hover img { transform: none; }
  .gallery + .carousel-progress { margin-top: 12px; }
  .feature.is-no { display: none; }
  .features-none { display: none; }
  .features { gap: 8px; }
  .feature { padding: 7px 14px; font-size: 14px; }
  .breadcrumbs { font-size: 13px; padding-bottom: 12px; }
  .prop-layout { padding-top: 22px; padding-bottom: 40px; gap: 24px; }
  .prop-head { flex-direction: column; gap: 8px; }
  .prop-head > div:first-child { flex: none; }
  .prop-title { font-size: 30px; }
  .prop-price { text-align: right; }
  .prop-price .price { font-size: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
  .fact { padding: 12px 14px; }
  .media-video.is-vertical { flex: 1 1 100%; max-width: 340px; margin-inline: auto; }
  .map { height: 240px; }
  .agent-card { position: static; padding: 20px; }
}
