/* BuyNadlan projects map on Mapbox GL JS (navy drops with the house logo). Used with /assets/map-mapbox.js.
   All classes are prefixed bnm-; tokens are scoped to .bnm so they never clash with page CSS. */
.bnm{
  --bnm-navy:#1d2a3c;
  --bnm-navy-2:#2b3b52;
  --bnm-muted:#55616f;
  --bnm-line:#dde2e8;
  --bnm-soft:#c9d1da;
  --bnm-cream:#f4f1ec;
  --bnm-green:#2f7d5b;
  --bnm-green-2:#276a4d;
  --bnm-green-soft:#e6f1eb;
  --bnm-font:"Heebo","Assistant","Rubik",Arial,"Segoe UI",sans-serif;
  display:flex;flex-direction:column;min-width:0;
  font-family:var(--bnm-font);color:var(--bnm-navy);direction:rtl;
}
.bnm :focus-visible{outline:3px solid #5b7bb0;outline-offset:2px}
.bnm-num{unicode-bidi:isolate;direction:ltr;display:inline-block}

/* ---------- "מה חשוב לכם?" bar ---------- */
.bnm-bar{flex:none;background:#fff;border-bottom:1px solid var(--bnm-line);padding:10px 16px 8px}
.bnm-ask{display:flex;align-items:center;gap:12px;min-width:0}
.bnm-q{flex:none;margin:0;font-size:15.5px;font-weight:800}
.bnm-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.bnm-chip{
  display:inline-flex;align-items:center;gap:6px;min-height:36px;flex:none;
  border:1.5px solid var(--bnm-soft);border-radius:999px;background:#fff;padding:5px 13px;
  font:inherit;font-size:14px;font-weight:600;line-height:1.2;color:var(--bnm-navy);cursor:pointer;
  transition:background-color .15s,border-color .15s,color .15s;
}
.bnm-chip:hover{border-color:var(--bnm-navy)}
.bnm-chip[aria-pressed="true"]{background:var(--bnm-navy);border-color:var(--bnm-navy);color:#fff}
.bnm-res{display:flex;align-items:center;gap:8px;margin:6px 0 0;font-size:13.5px;color:var(--bnm-muted);min-height:1.6em}
.bnm-res b{color:var(--bnm-navy)}
.bnm-dot{width:8px;height:8px;border-radius:50%;background:var(--bnm-green);flex:none}
.bnm-res.is-none .bnm-dot{background:#b5523b}
.bnm-clear{border:0;background:none;padding:0 4px;font:inherit;font-size:13.5px;font-weight:600;color:var(--bnm-navy);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media (max-width:640px){
  .bnm-ask{flex-direction:column;align-items:stretch;gap:6px}
  /* one swipeable row instead of three wrapped rows; scrolls inside the bar, never the page */
  .bnm-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px}
  .bnm-chips::-webkit-scrollbar{display:none}
}

/* ---------- map stage ---------- */
.bnm-stage{position:relative;flex:1 1 auto;min-height:260px;overflow:hidden;background:var(--bnm-cream)}
.bnm-canvas{position:absolute;inset:0;z-index:0;direction:ltr} /* own stacking context: drops stay under the card */
.bnm .mapboxgl-ctrl-attrib{font-family:var(--bnm-font);font-size:11px}
.bnm .mapboxgl-ctrl-group{border-radius:12px;box-shadow:0 2px 10px rgba(29,42,60,.18)}
.bnm .mapboxgl-ctrl-group button{width:34px;height:34px}

/* drops: Mapbox positions the marker element (.bnm-drop, anchor bottom), so only the inner svg scales */
.bnm .mapboxgl-popup{z-index:9000}
.bnm-drop{
  display:block;width:34px;height:44px;padding:0;border:0;background:none;cursor:pointer;
  z-index:var(--bnm-z,1);line-height:0;-webkit-tap-highlight-color:transparent;
}
.bnm-drop.is-group{width:42px;height:54px}
.bnm-drop > svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 100%;
  filter:drop-shadow(0 3px 3px rgba(29,42,60,.32));transition:transform .15s ease-out}
.bnm-drop-shape{fill:var(--bnm-navy);stroke:#fff;stroke-width:2;stroke-linejoin:round;transition:fill .15s}
.bnm-drop-logo path{fill:none;stroke:#fff;stroke-width:3.6}
.bnm-drop:hover,.bnm-drop:focus-visible,.bnm-drop.is-active{z-index:8000}
.bnm-drop:hover > svg,.bnm-drop.is-active > svg{transform:scale(1.14)}
.bnm-drop.is-one:hover .bnm-drop-shape,.bnm-drop.is-active .bnm-drop-shape{fill:var(--bnm-green)}
.bnm-drop.is-group:hover .bnm-drop-shape{fill:var(--bnm-navy-2)}
.bnm-drop:focus-visible{outline:none}
.bnm-drop:focus-visible .bnm-drop-shape{stroke:#5b7bb0;stroke-width:3}
.bnm-count{
  position:absolute;top:-5px;right:-7px;min-width:22px;height:22px;padding:0 5px;box-sizing:border-box;
  display:grid;place-items:center;border-radius:999px;background:var(--bnm-green);color:#fff;
  border:2px solid #fff;box-shadow:0 1px 3px rgba(29,42,60,.3);
  font:800 12px/1 var(--bnm-font);direction:ltr;unicode-bidi:isolate;transition:transform .15s ease-out;
}
.bnm-drop.is-group:hover .bnm-count{transform:translate(2px,-3px)}

/* back to the full view */
.bnm-reset{
  position:absolute;top:10px;right:10px;z-index:2;min-height:34px;padding:0 14px;border:0;border-radius:999px;
  background:#fff;color:var(--bnm-navy);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;
  box-shadow:0 2px 10px rgba(29,42,60,.18);
}
.bnm-reset:hover{background:var(--bnm-cream)}

/* ---------- project card (desktop popup + mobile card) ---------- */
.bnm-card{direction:rtl;text-align:right;font-family:var(--bnm-font);color:var(--bnm-navy);display:flex;flex-direction:column;gap:8px}
.bnm-area{align-self:flex-start;font-size:12px;font-weight:600;color:var(--bnm-green-2);background:var(--bnm-green-soft);border-radius:999px;padding:2px 9px}
.bnm-name{margin:0;font-size:16px;font-weight:800;line-height:1.25;padding-inline-end:22px}
.bnm-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border-block:1px solid var(--bnm-line);padding:8px 0}
.bnm-facts div{padding-inline:10px;border-inline-start:1px solid var(--bnm-line)}
.bnm-facts div:first-child{padding-inline-start:0;border-inline-start:0}
.bnm-facts dt{font-size:12px;color:var(--bnm-muted)}
.bnm-facts dd{margin:0;font-size:15px;font-weight:700}
.bnm-price{margin:0;font-size:13.5px;color:var(--bnm-muted)}
.bnm-price b{color:var(--bnm-navy);font-weight:700}
.bnm-cta{display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:999px;background:var(--bnm-green);
  color:#fff;font-weight:700;font-size:14.5px;text-decoration:none}
.bnm-cta:hover{background:var(--bnm-green-2)}
.bnm-pop{font-family:var(--bnm-font)}
.bnm-pop .mapboxgl-popup-content{border-radius:14px;padding:14px 16px;width:260px;box-shadow:0 18px 40px -12px rgba(29,42,60,.45),0 0 0 1px rgba(29,42,60,.06)}
.bnm-pop .mapboxgl-popup-close-button{left:6px;right:auto;top:6px;width:28px;height:28px;border-radius:50%;font-size:20px;line-height:1;color:var(--bnm-muted)}
.bnm-pop .mapboxgl-popup-close-button:hover{background:var(--bnm-cream)}

/* phones: the card floats above the bottom edge so the Mapbox logo and attribution stay visible */
.bnm-sheet{position:absolute;z-index:3;left:8px;right:8px;bottom:34px;background:#fff;border-radius:16px;padding:14px 16px;
  box-shadow:0 14px 34px -10px rgba(29,42,60,.5),0 0 0 1px rgba(29,42,60,.06);animation:bnm-up .2s ease-out}
.bnm-sheet-x{position:absolute;top:8px;left:8px;width:32px;height:32px;border:0;border-radius:50%;background:var(--bnm-cream);
  color:var(--bnm-navy);font:inherit;font-size:20px;line-height:1;cursor:pointer}
@keyframes bnm-up{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}

.bnm-msg{position:absolute;inset:0;z-index:4;display:grid;place-items:center;padding:24px;text-align:center;
  background:var(--bnm-cream);color:var(--bnm-muted);font-size:15px;line-height:1.5}

@media (prefers-reduced-motion:reduce){
  .bnm-chip,.bnm-drop > svg,.bnm-drop-shape,.bnm-count{transition:none}
  .bnm-sheet{animation:none}
}
