/* Properties for sale (/properties, /properties/<slug>), Hebrew. Prefix .pr- keeps it apart from webflow.css. RTL.
   Direction: restrained editorial. Ink + greys on white, hairline rules, small radii, ERRA blue as the single accent. */
.pr-page {
  --pr-ink: #111; --pr-blue: #0050c9; --pr-muted: #6b6b6b; --pr-line: #e6e6e6; --pr-soft: #f6f6f6; --pr-nav: 82px;
  --pr-pad: 40px; --pr-max: 1640px; --pr-r: 6px;
  direction: rtl; text-align: right; color: var(--pr-ink); background: #fff;
  font-family: var(--font-sans); padding: calc(var(--pr-nav) + 8px) 0 96px; min-height: 70vh;
}
.pr-page *, .pr-page *::before, .pr-page *::after { box-sizing: border-box; }
.pr-page :where(h1, h2, h3, p, li, a, span, button, dt, dd, label, input, select) { font-family: inherit; }
.pr-page :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.pr-page :where(ul, ol) { list-style: none; }
.pr-page :where(a) { color: inherit; text-decoration: none; }
.pr-page img { display: block; max-width: 100%; }
.pr-shell { max-width: var(--pr-max); margin-inline: auto; padding-inline: var(--pr-pad); }
.pr-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.pr-page :where(.pr-num, .pr-num *) { font-family: var(--font-num); }
.pr-page a:focus-visible, .pr-page button:focus-visible, .pr-page select:focus-visible, .pr-page input:focus-visible { outline: 2px solid var(--pr-blue); outline-offset: 3px; }

/* ---------- Hero ---------- */
.pr-hero, .pr-top { padding-top: 40px; }
.pr-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; letter-spacing: .02em; color: var(--pr-muted); margin-bottom: 22px; }
.pr-crumbs a:hover { color: var(--pr-ink); }
.pr-crumbs [aria-current] { color: var(--pr-ink); }
.pr-crumbs__sep { display: inline-block; transform: scaleX(-1); opacity: .5; }
.pr-h1 { font-size: clamp(36px, 5.2vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; max-width: 20ch; text-wrap: balance; }
.pr-h1--detail { font-size: clamp(28px, 3.6vw, 52px); max-width: 28ch; line-height: 1.1; }
.pr-lead { margin-top: 16px; max-width: 58ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--pr-muted); }
.pr-h2 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 18px; }

/* ---------- Buttons / links ---------- */
.pr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 1px solid var(--pr-ink); border-radius: var(--pr-r);
  background: transparent; color: var(--pr-ink); font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.pr-btn:hover { background: var(--pr-ink); color: #fff; }
.pr-btn--solid { background: var(--pr-ink); color: #fff; }
.pr-btn--solid:hover { background: var(--pr-blue); border-color: var(--pr-blue); }
.pr-link { color: var(--pr-blue); font-weight: 600; font-size: 14px; border-bottom: 1px solid transparent; }
.pr-link:hover { border-bottom-color: currentColor; }

/* ---------- Filters ---------- */
.pr-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px 24px; align-items: end; margin-top: 40px; padding: 20px 0; border-block: 1px solid var(--pr-line); }
.pr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-field span { font-size: 12.5px; letter-spacing: .03em; color: var(--pr-muted); font-weight: 500; }
.pr-field select, .pr-field input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #cfcfcf; border-radius: var(--pr-r); background: #fff; color: var(--pr-ink); font-size: 15px; }
.pr-field select:hover, .pr-field input:hover { border-color: var(--pr-ink); }
.pr-filters__actions { display: flex; align-items: center; gap: 20px; }
.pr-count { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 15px; color: var(--pr-muted); }
.pr-count .pr-num { color: var(--pr-ink); font-weight: 700; }

/* ---------- Grid + cards ---------- */
.pr-list { padding-top: 32px; }
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
.pr-card { min-width: 0; }
.pr-card__link { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.pr-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--pr-r); background: #efefef; }
.pr-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .8, .2, 1); }
.pr-card__link:hover .pr-img { transform: scale(1.02); }
.pr-tag { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 3px; background: var(--pr-ink); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.pr-card__body { display: flex; flex-direction: column; gap: 10px; }
.pr-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--pr-muted); }
.pr-meta__type { color: var(--pr-blue); font-weight: 700; }
.pr-meta__type + .pr-meta__city::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-inline-end: 12px; vertical-align: middle; background: currentColor; border-radius: 50%; }
.pr-status { padding-inline-start: 12px; border-inline-start: 1px solid var(--pr-line); color: var(--pr-ink); font-weight: 700; }
.pr-card__title { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-card__link:hover .pr-card__title { color: var(--pr-blue); }
.pr-nums { display: flex; flex-wrap: wrap; row-gap: 6px; font-size: 14px; color: var(--pr-muted); padding-top: 12px; border-top: 1px solid var(--pr-line); }
.pr-nums li { padding-inline: 12px; border-inline-start: 1px solid var(--pr-line); line-height: 1.3; }
.pr-nums li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.pr-nums li:last-child { padding-inline-end: 0; }
.pr-nums__price { color: var(--pr-ink); font-weight: 700; font-size: 16px; }
.pr-card.is-sold .pr-img { filter: grayscale(1); opacity: .75; }
.pr-empty { padding: 56px 0; font-size: 17px; color: var(--pr-muted); max-width: 52ch; }
.pr-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--pr-line); }
.pr-pager__info { color: var(--pr-muted); font-size: 14px; letter-spacing: .06em; }
.pr-legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--pr-line); max-width: 80ch; font-size: 13px; line-height: 1.7; color: var(--pr-muted); }

/* ---------- Detail ---------- */
.pr-top .pr-meta { margin-bottom: 14px; font-size: 13.5px; }
.pr-gallery { padding-top: 32px; }
.pr-gallery__main { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--pr-r); background: #efefef; }
.pr-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pr-gallery__main--ph img { object-fit: cover; }
.pr-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.pr-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; border: 2px solid transparent; background: #efefef; opacity: .72; transition: opacity .2s, border-color .2s; }
.pr-thumb:hover, .pr-thumb.is-current { opacity: 1; }
.pr-thumb.is-current { border-color: var(--pr-blue); }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 3D tour: lazy iframe (no allow-same-origin), placeholder underneath until the engine paints */
.pr-tour3d { padding-top: 40px; }
.pr-tour3d__head { margin-bottom: 18px; }
.pr-tour3d__head .pr-h2 { margin-bottom: 6px; }
.pr-tour3d__sub { margin: 0; max-width: 80ch; font-size: 14.5px; line-height: 1.6; color: var(--pr-muted); }
.pr-tour3d__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--pr-r); border: 1px solid var(--pr-line); background: repeating-linear-gradient(45deg, #f1f1f1 0 8px, #e9e9e9 8px 10px); }
.pr-tour3d__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--pr-muted); }
.pr-tour3d__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.pr-tour3d__foot { margin: 12px 0 0; font-size: 14px; }
.pr-tour3d__foot a { color: var(--pr-blue); text-decoration: none; border-bottom: 1px solid currentColor; }
.pr-tour3d__foot a:hover { color: var(--pr-ink); }
.pr-tour3d__fine { margin: 10px 0 0; max-width: 100ch; font-size: 12.5px; line-height: 1.65; color: var(--pr-muted); }

.pr-keys { padding-top: 32px; }
.pr-keys__list { display: flex; flex-wrap: wrap; border-block: 1px solid var(--pr-line); }
.pr-keys__list > div { flex: 1 1 140px; padding: 20px 24px; border-inline-start: 1px solid var(--pr-line); }
.pr-keys__list > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.pr-keys dt { font-size: 12.5px; letter-spacing: .04em; color: var(--pr-muted); margin-bottom: 6px; }
.pr-keys dd { font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }

.pr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: start; padding-top: 48px; }
.pr-content { min-width: 0; }
.pr-block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--pr-line); }
.pr-block:last-of-type { border-bottom: 0; }
.pr-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.pr-highlights li { position: relative; padding-inline-start: 18px; font-size: 16px; line-height: 1.55; }
.pr-highlights li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 1px; background: var(--pr-blue); }
.pr-rich { font-size: 16.5px; line-height: 1.8; max-width: 70ch; }
.pr-rich p + p { margin-top: 1em; }
.pr-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; align-items: start; }
.pr-spec__title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 10px; }
.pr-specs .pr-dl > div { grid-template-columns: minmax(96px, 45%) minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 15px; }
.pr-keys__parcel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }
.pr-keys__parcel > span { white-space: nowrap; }
.pr-keys__parcel .pr-num { unicode-bidi: isolate; }
.pr-dl > div { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--pr-line); font-size: 15.5px; line-height: 1.5; }
.pr-dl > div:first-child { border-top: 1px solid var(--pr-line); }
.pr-dl dt { color: var(--pr-muted); }
.pr-dl dd { font-weight: 500; overflow-wrap: anywhere; }
.pr-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pr-content .pr-legal { margin-top: 0; }

.pr-aside { position: sticky; top: calc(var(--pr-nav) + 16px); }
.pr-aside__box { border: 1px solid var(--pr-line); border-radius: var(--pr-r); padding: 28px; }
.pr-aside__label { font-size: 12.5px; letter-spacing: .04em; color: var(--pr-muted); }
.pr-aside__price { margin-top: 4px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.pr-aside__note { margin-top: 10px; font-size: 14px; font-weight: 700; }
.pr-cta { display: grid; gap: 10px; margin-top: 22px; }
.pr-aside__form-title { margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid var(--pr-line); font-size: 16px; font-weight: 700; line-height: 1.35; }

/* Lead form include (Webflow classes) restyled to the editorial look. */
.pr-form.w-form { margin: 0; }
.pr-form .form-horizontal { display: grid; gap: 10px; margin: 0; }
.pr-form .fileds-wrap { display: grid; gap: 10px; width: 100%; margin: 0; padding: 0; }
.pr-form .form-field { width: 100%; height: 46px; margin: 0; padding: 0 12px; border: 1px solid #cfcfcf; border-radius: var(--pr-r); background: #fff; color: var(--pr-ink); font-size: 15px; text-align: right; box-shadow: none; }
.pr-form .form-field:focus { border-color: var(--pr-blue); outline: 0; }
.pr-form .ghoust-button { width: 100%; height: 46px; margin: 0; border: 1px solid var(--pr-ink); border-radius: var(--pr-r); background: var(--pr-ink); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.pr-form .ghoust-button:hover { background: var(--pr-blue); border-color: var(--pr-blue); }
.pr-form .w-form-done, .pr-form .w-form-fail { margin-top: 10px; border-radius: var(--pr-r); font-size: 14px; }


/* ---------- ERRA Analytics blocks (map, deals, planning, area) ---------- */
.pr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pr-an { margin-top: 8px; }
.pr-an__sub { margin: 28px 0 8px; }
.pr-an__sec > .pr-an__sub:first-child, .pr-an__cols .pr-an__sub { margin-top: 0; }
.pr-an__note { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--pr-muted); }
.pr-an__note:empty { display: none; }
.pr-an__line { margin-top: 14px; font-size: 15.5px; line-height: 1.6; }
.pr-an__muted, .pr-an__dist { color: var(--pr-muted); }
.pr-an__dist { font-size: 14px; white-space: nowrap; }
.pr-an__near dd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pr-an__plans dd { line-height: 1.55; }
.pr-an__plans .pr-link { margin-inline-start: 10px; white-space: nowrap; }
.pr-an__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; align-items: start; }
.pr-an__near { margin-top: 20px; }
.pr-dl--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.pr-dl--cols > div:nth-child(2) { border-top: 1px solid var(--pr-line); }
.pr-an__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border: 1px solid var(--pr-line); border-radius: var(--pr-r); margin-bottom: 32px; }
.pr-an__cta-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.pr-an__cta p { margin-top: 4px; font-size: 14.5px; color: var(--pr-muted); }
.pr-an__cta .pr-btn { flex: none; border-color: var(--pr-blue); color: var(--pr-blue); }
.pr-an__cta .pr-btn:hover { background: var(--pr-blue); color: #fff; }
.pr-an__sources { font-size: 13px; line-height: 1.7; color: var(--pr-muted); max-width: 80ch; }

.pr-map { position: relative; direction: ltr; height: 400px; border-radius: var(--pr-r); border: 1px solid var(--pr-line); background: var(--pr-soft); overflow: hidden; }
.pr-map.is-failed::after { content: "המפה לא נטענה"; position: absolute; inset: 0; display: grid; place-items: center; direction: rtl; font-size: 14px; color: var(--pr-muted); }
.pr-map .maplibregl-ctrl-attrib.maplibregl-compact { margin: 6px; background: rgba(255, 255, 255, .85); border-radius: 4px; box-shadow: none; }
.pr-map .maplibregl-ctrl-attrib-button { opacity: .55; }
.pr-map .maplibregl-ctrl-attrib-button:hover { opacity: 1; }
.pr-map .maplibregl-ctrl-attrib-inner { font-size: 11px; color: var(--pr-muted); }
.pr-map__toggles { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.pr-map__toggles[hidden] { display: none; }
.pr-map__toggles button { padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--pr-muted); font: inherit; font-size: 14px; cursor: pointer; }
.pr-map__toggles button[aria-pressed="true"] { color: var(--pr-ink); border-bottom-color: var(--pr-blue); font-weight: 600; }
.pr-map__toggles button:hover { color: var(--pr-ink); }
.pr-map-popup .maplibregl-popup-content { padding: 8px 12px; border-radius: 4px; box-shadow: none; border: 1px solid var(--pr-line); font: 13px/1.5 var(--font-sans); color: var(--pr-ink); }

.pr-facts { display: flex; flex-wrap: wrap; border-block: 1px solid var(--pr-line); margin-bottom: 20px; }
.pr-facts > div { flex: 1 1 200px; padding: 16px 24px; border-inline-start: 1px solid var(--pr-line); }
.pr-facts > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.pr-facts dt { font-size: 12.5px; letter-spacing: .03em; color: var(--pr-muted); margin-bottom: 4px; }
.pr-facts dd { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }

.pr-tablewrap { overflow-x: auto; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pr-table th, .pr-table td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--pr-line); }
.pr-table th:first-child, .pr-table td:first-child { padding-inline-start: 0; }
.pr-table th { font-size: 12.5px; font-weight: 500; letter-spacing: .03em; color: var(--pr-muted); border-bottom-color: var(--pr-ink); }
.pr-table td:last-child { font-weight: 700; }

.pr-chart { margin: 0; }
.pr-chart svg { display: block; width: 100%; max-width: 440px; height: auto; overflow: visible; }
.pr-chart__axis { stroke: #cfcfcf; stroke-width: 1; }
.pr-chart__bar { fill: var(--pr-blue); }
.pr-chart__bar--partial { fill: #fff; stroke: var(--pr-blue); stroke-width: 1; stroke-dasharray: 3 2; }
.pr-chart text { font-family: var(--font-num); font-size: 12.5px; fill: var(--pr-ink); }
.pr-chart__year { fill: var(--pr-muted); }
.pr-chart__n { fill: var(--pr-muted); font-size: 11.5px; }

.pr-related { padding-top: 24px; }

@media (max-width: 1099px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) and (min-width: 901px) {
  .pr-specs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pr-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pr-an__cols { grid-template-columns: minmax(0, 1fr); }
  .pr-aside { position: static; }
}
@media (max-width: 639px) {
  .pr-page { --pr-pad: 20px; padding-bottom: 64px; }
  .pr-hero, .pr-top { padding-top: 24px; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pr-filters { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .pr-filters__actions { justify-content: space-between; }
  .pr-filters__actions .pr-btn { flex: 1; }
  .pr-highlights { grid-template-columns: minmax(0, 1fr); }
  .pr-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pr-keys__list > div { flex-basis: 45%; padding: 16px 16px; border-bottom: 1px solid var(--pr-line); }
  .pr-keys__list > div:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .pr-keys__list > div:last-child { border-bottom: 0; }
  .pr-keys__list { border-bottom: 0; }
  .pr-aside__box { padding: 20px; }
  .pr-pager .pr-btn { padding: 0 18px; }
  .pr-specs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pr-specs .pr-dl > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pr-thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pr-pad) * -1); padding-inline: var(--pr-pad); }
  .pr-thumbs::-webkit-scrollbar { display: none; }
  .pr-thumb { flex: 0 0 23%; scroll-snap-align: start; }
  .pr-map { height: 320px; }
  .pr-tour3d { padding-top: 32px; }
  /* The engine stacks its 3D view above its settings panel on narrow screens: give it real height. */
  .pr-tour3d__frame { aspect-ratio: auto; height: min(82vh, 680px); min-height: 520px; }
  .pr-dl--cols { grid-template-columns: minmax(0, 1fr); }
  .pr-dl--cols > div:nth-child(2) { border-top: 0; }
  .pr-facts > div { flex-basis: 100%; padding: 14px 0; border-inline-start: 0; border-bottom: 1px solid var(--pr-line); }
  .pr-facts > div:last-child { border-bottom: 0; }
  .pr-an__cta { flex-direction: column; align-items: stretch; padding: 20px; }
  .pr-table { font-size: 12.5px; }
  .pr-table th, .pr-table td { padding: 9px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-img, .pr-btn, .pr-thumb { transition: none; }
  .pr-card__link:hover .pr-img { transform: none; }
}

/* 3D tour touch guard (created by property-tour.js on coarse pointers only) */
.pr-tour3d__guard { position: absolute; inset: 0; z-index: 2; touch-action: pan-y; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 14px; -webkit-tap-highlight-color: transparent; }
.pr-tour3d__guard[hidden] { display: none; }
.pr-tour3d__guard-hint { font-size: 12.5px; line-height: 1.4; color: var(--pr-muted); background: #fff; border: 1px solid var(--pr-line); padding: 4px 10px; border-radius: var(--pr-r); pointer-events: none; }
