/* ------------------------------------------------------------------
:root { --r0: 3px; }
   מלאי דירות — page styles + JetVaults real-estate widget re-skin.
   The widget injects Bootstrap + Font Awesome AFTER this file, so the
   site chrome is guarded with body.page-inventory specificity.
   ------------------------------------------------------------------ */
html body.page-inventory { font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); margin: 0; }
body.page-inventory a { color: inherit; text-decoration: none; }
body.page-inventory .wrap { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }
body.page-inventory h1, body.page-inventory h2, body.page-inventory h3, body.page-inventory p, body.page-inventory ul { margin: 0; }
body.page-inventory ul { padding: 0; list-style: none; }
body.page-inventory .header .btn, body.page-inventory .menu__panel .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r0); font-weight: 500; line-height: 1; border: 1.5px solid var(--forest); background: var(--forest); color: #fff; box-shadow: none; }
body.page-inventory .header .btn { min-height: 2.75rem; padding-inline: 1.3rem; font-size: 0.98rem; }
body.page-inventory .menu__panel .btn { min-height: 3.2rem; padding-inline: 1.7rem; margin-top: 22px; }
body.page-inventory .header .btn:hover, body.page-inventory .menu__panel .btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
body.page-inventory .brand img { height: 46px; width: auto; }
body.page-inventory .footer__logo { width: 220px; }
body.page-inventory .footer__company img { height: 52px; width: auto; }
body.page-inventory .footer__bottom { margin-top: clamp(2rem, 4vw, 3rem); }

.inv-hero { display: grid; grid-template-columns: clamp(320px, 33vw, 480px) 1fr; min-height: clamp(18rem, 40vh, 25rem); background: var(--forest); color: #fff; }
.inv-hero__panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; padding: clamp(2rem, 4vw, 3rem) clamp(1.6rem, 3.5vw, 3.2rem); }
.inv-hero__panel h1 { position: relative; font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.05; }
.inv-hero__rule { position: relative; display: block; width: 64px; height: 2px; background: #fff; }
.inv-hero__building { position: relative; display: flex; align-items: baseline; gap: .4em; margin-top: .3rem; line-height: 1; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.inv-hero__building[hidden] { display: none; }
.inv-hero__building.is-swap { opacity: 0; transform: translateY(8px); }
.inv-hero__building-word { font-size: clamp(1.3rem, 1.8vw, 1.8rem); font-weight: 400; color: rgba(255,255,255,.85); }
.inv-hero__building-letter { font-size: clamp(4.5rem, 8vw, 7.5rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) { .inv-hero__building { transition: none; } }
.inv-hero__leaves { position: absolute; width: 180px; bottom: -34px; left: -30px; opacity: .95; pointer-events: none; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.inv-hero__media { position: relative; min-height: 260px; }
.inv-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 900px) {
  .inv-hero { grid-template-columns: 1fr; }
  .inv-hero__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .inv-hero__leaves { display: none; }
  .inv-hero__building-letter { font-size: 4rem; }
}

.inventory { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.inventory__empty { padding: 2rem; border-radius: var(--r0); background: #fff; border: 1px dashed var(--stone-2); color: var(--ink-2); text-align: center; }
html.no-js .inventory__empty { display: block; }

/* ---- widget re-skin (light touch: fonts, colours, radius) ---- */
body.page-inventory #inventory { font-family: var(--font); }
body.page-inventory #inventory .btn-primary, body.page-inventory #inventory .btn-outline-primary:hover, body.page-inventory #inventory .page-item.active .page-link { background-color: var(--forest) !important; border-color: var(--forest) !important; color: #fff !important; }
body.page-inventory #inventory .btn-outline-primary, body.page-inventory #inventory .page-link { color: var(--forest) !important; border-color: var(--stone-2) !important; }
body.page-inventory #inventory .btn, body.page-inventory #inventory .form-select, body.page-inventory #inventory .form-control { border-radius: 10px; }
body.page-inventory #inventory .card { border-radius: var(--r0); border: 1px solid var(--line); box-shadow: none; overflow: hidden; }
body.page-inventory #inventory .card:hover { box-shadow: var(--r0); }
body.page-inventory #inventory .badge { border-radius: var(--r0); }
body.page-inventory #inventory a { color: var(--forest); }
body.page-inventory #inventory .text-primary { color: var(--forest) !important; }
body.page-inventory #inventory .bg-primary { background-color: var(--forest) !important; color: #fff !important; }

/* Project colours from the Manager default to blue; pin the widget to the site palette.
   The widget sets --main-color etc. inline on its root, so redefine them on its children. */
body.page-inventory .jv-realestate-root > * {
  --main-color: #2a432d;
  --secondary-color: #65705a;
  --light-color: #f9faf9;
}
body.page-inventory .jv-realestate-root .floor-section,
body.page-inventory .jv-realestate-root [style*="border"] { border-radius: 3px; }

/* Bootstrap (loaded by the widget) defines .nav { display:flex } which beats our mobile rule */
@media (max-width: 1023px) {
  body.page-inventory .header .nav { display: none !important; }
  body.page-inventory .header__end .btn { display: none; }
}
body.page-inventory .header .nav { padding: 0; margin: 0; flex-wrap: nowrap; }
