/* ===== Motori i hartës ===== */
.bm { position: relative; overflow: hidden; touch-action: none; background: #e8eaed; cursor: grab; user-select: none; -webkit-user-select: none; isolation: isolate; }
.bm.bm-touch-scroll { touch-action: pan-y; }
.bm.is-dragging { cursor: grabbing; }
.bm-pane { position: absolute; inset: 0; }
.bm-tiles, .bm-markers { position: absolute; inset: 0; }
.bm-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none !important; opacity: 0; transition: opacity .2s; pointer-events: none; }
.bm-tile.is-in { opacity: 1; }
.bm-gray .bm-tiles { filter: grayscale(1) contrast(.92) brightness(1.06); }
/* ngjyra të buta: ruhen ngjyrat, por të zbehura dhe pa kontrast të fortë */
.bm-soft .bm-tiles { filter: saturate(.45) brightness(1.06) contrast(.9) sepia(.08); }
.bm-marker { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; }
.bm-zoom { position: absolute; right: 12px; top: 12px; z-index: 5; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.bm-zoom button { width: 36px; height: 36px; border: 0; border-bottom: 1px solid #e3e5ea; background: #fff; color: #1b1f3b; font: 500 20px/1 system-ui, sans-serif; cursor: pointer; padding: 0; }
.bm-zoom button:last-child { border-bottom: 0; }
.bm-zoom button:hover { background: #f3f4f6; }
.bm-attr { position: absolute; right: 0; bottom: 0; z-index: 5; padding: 2px 6px; background: rgba(255,255,255,.8); font: 11px/1.4 system-ui, sans-serif; color: #555; border-top-left-radius: 4px; }
.bm-attr a { color: inherit; }
.bm-hint { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; font: 600 16px/1.3 system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .25s; text-align: center; padding: 20px; }
.bm-hint.is-on { opacity: 1; }

/* ===== [banesat_harta] ===== */
.banesat-pmap, .banesat-ploc { --bpm-ink: #1b1f3b; --bpm-muted: #6b7080; --bpm-line: #e3e5ea; --bpm-red: #e2231a; --bpm-green: #2e9e4f; color: var(--bpm-ink); font-size: 15px; line-height: 1.45; margin: 0 0 1.5em; }
.banesat-pmap *, .banesat-ploc * { box-sizing: border-box; }
.bpm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bpm-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bpm-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--bpm-line); border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.bpm-chip:hover { border-color: #b5b9be; }
.bpm-chip[aria-pressed="true"] { background: var(--bpm-ink); border-color: var(--bpm-ink); color: #fff; }
.bpm-chip b { font-weight: 600; }
.bpm-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bpm-area-sel { min-height: 38px; padding: 6px 30px 6px 14px; border: 1px solid var(--bpm-line); border-radius: 999px; background-color: #fff; font: inherit; font-size: 14px; color: inherit; }
.bpm-seg { display: none; }
.bpm-body { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bpm-mapwrap { position: relative; }
.bpm-map { height: var(--bpm-h, 640px); border-radius: 14px; border: 1px solid var(--bpm-line); }
.banesat-pmap.is-wide .bpm-body { grid-template-columns: 380px minmax(0, 1fr); }
.bpm-list { display: none; flex-direction: column; gap: 10px; }
.banesat-pmap.is-wide .bpm-list { display: flex; max-height: var(--bpm-h, 640px); overflow-y: auto; padding-right: 4px; }

/* kartelat e listës */
.bpm-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 9px; border: 1px solid var(--bpm-line); border-radius: 12px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bpm-card[hidden] { display: none; }
.bpm-card img, .bpm-noimg { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; display: block; }
.bpm-noimg { display: grid; place-items: center; background: #eef0f3; }
.bpm-card.is-hl, .bpm-card:focus-visible { border-color: #b5b9be; outline: none; }
.bpm-card.is-sel { border-color: var(--bpm-ink); box-shadow: 0 0 0 3px rgba(27,31,59,.12); }
.bpm-card-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bpm-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bpm-card-h strong { font-size: 16px; line-height: 1.25; font-weight: 600; }
.bpm-st { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #4a5065; background: #eef0f4; white-space: nowrap; }
.bpm-st.is-soon { color: #fff; background: #1a1a1a; }
.bpm-area { color: var(--bpm-muted); font-size: 13px; }
.bpm-free { font-size: 13px; }
.bpm-free b { color: var(--bpm-green); font-size: 15px; }
.bpm-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #e6e8ec; margin-top: 5px; }
.bpm-bar .is-free { background: var(--bpm-green); border-radius: 3px; min-width: 6px; }
.bpm-bar .is-sold { background: transparent; }
.bpm-meta { font-size: 13px; color: var(--bpm-muted); }

/* pikat */
.bpm-pin { position: absolute; left: -17px; top: -44px; cursor: pointer; transition: transform .15s; transform-origin: 17px 44px; outline: none; }
.bpm-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.bpm-pin.is-hl, .bpm-pin:focus-visible { transform: scale(1.15); }
.bpm-pin.is-sel { transform: scale(1.25); }
.bpm-pin-label { position: absolute; left: 30px; top: 6px; padding: 3px 10px; border: 1px solid var(--bpm-line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.1); opacity: 0; pointer-events: none; transition: opacity .15s; }
.bpm-pin-label.is-always, .bpm-pin.is-hl .bpm-pin-label, .bpm-pin:focus-visible .bpm-pin-label { opacity: 1; }
.bpm-pin.is-sel .bpm-pin-label { opacity: 0; }

/* kartela mbi hartë */
.bpm-pop { position: absolute; z-index: 4; width: 320px; max-width: calc(100% - 20px); background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(20,25,50,.25); overflow: hidden; cursor: default; }
.bpm-pop[hidden] { display: none; }
.bpm-pop-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.bpm-pop-b { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.bpm-pop-t { font-size: 18px !important; }
.bpm-x { position: absolute; right: 8px; top: 8px; z-index: 1; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--bpm-ink); font: 22px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); padding: 0; }
.bpm-btn { display: block; margin-top: 6px; padding: 11px 14px; border-radius: 10px; background: var(--bpm-green); color: #fff !important; font-weight: 600; font-size: 14px; text-align: center; text-decoration: none !important; }
.bpm-btn:hover { filter: brightness(.94); }
.bpm-dir { display: flex; justify-content: center; gap: 16px; font-size: 13px; }
.bpm-dir a { color: var(--bpm-muted) !important; text-decoration: underline; }
.bpm-pop.is-sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
.bpm-pop.is-sheet .bpm-pop-img { height: 120px; }

/* telefon / ekran i ngushtë */
.banesat-pmap:not(.is-wide) .bpm-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 3px; border-radius: 10px; background: #e8e9ee; }
.bpm-seg button { padding: 9px; border: 0; border-radius: 8px; background: none; color: var(--bpm-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bpm-seg button[aria-selected="true"] { background: #fff; color: var(--bpm-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.banesat-pmap:not(.is-wide) .bpm-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.banesat-pmap:not(.is-wide) .bpm-chip, .banesat-pmap:not(.is-wide) .bpm-area-sel { flex: none; }
.banesat-pmap:not(.is-wide) .bpm-map { height: min(var(--bpm-h, 640px), 72vh); min-height: 420px; }
.banesat-pmap.is-list .bpm-list { display: flex; }
.banesat-pmap.is-list .bpm-mapwrap { display: none; }

/* ===== Lokacioni ===== */
.bpl-h { margin: 1.4em 0 .6em; font-size: 1.5em; }
.bpl-box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; padding: 20px; border: 1px solid var(--bpm-line); border-radius: 16px; background: #fff; }
.bpl-map { height: 400px; border-radius: 12px; }
.bpl-place { font-size: 20px; font-weight: 600; }
.bpl-addr { color: var(--bpm-muted); margin-top: 2px; }
.bpl-btns { display: flex; gap: 10px; margin-top: 14px; }
.bpl-btns a { flex: 1; padding: 12px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.bpl-gm { background: var(--bpm-ink); color: #fff !important; }
.bpl-wz { border: 1.5px solid var(--bpm-ink); color: var(--bpm-ink) !important; }
.bpl-near-h { margin-top: 20px; font-weight: 600; }
.bpl-near { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.bpl-near-i { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--bpm-line); border-radius: 10px; font-size: 14px; line-height: 1.3; }
.bpl-near-i small { display: block; color: var(--bpm-muted); font-size: 12px; }
.bpl-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #f3f4f7; display: grid; place-items: center; font-size: 17px; }
.bpl-ring { position: absolute; left: 50%; top: 100%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; background: color-mix(in srgb, var(--bpm-red) 8%, transparent); border: 1.5px dashed color-mix(in srgb, var(--bpm-red) 60%, transparent); pointer-events: none; }
.banesat-ploc .bpm-pin { left: -21px; top: -57px; transform: none; cursor: default; }
/* sipas gjerësisë së vendit ku është vendosur (jo të ekranit) */
.banesat-ploc.is-narrow .bpl-box { grid-template-columns: 1fr; padding: 12px; gap: 16px; }
.banesat-ploc.is-narrow .bpl-map { height: 300px; }
@media (max-width: 480px) { .bpl-near { grid-template-columns: 1fr; } }

.bpm-pop.no-img .bpm-pop-b { padding-top: 14px; }
.bpm-pop.no-img .bpm-card-h { padding-right: 34px; }
.banesat-pmap:not(.is-wide) .bpm-pin-label.is-always { opacity: 0; }
.banesat-pmap:not(.is-wide) .bpm-card .bpm-card-h { flex-direction: column; gap: 3px; }
.bpm-pop.is-sheet .bpm-pop-b { padding-bottom: 24px; }

.bpm-free.is-on { color: var(--bpm-green); font-weight: 600; }
.bpm-free.is-soon { color: #1a1a1a; font-weight: 600; }
.bpm-btn.is-soon { background: #25d366; }
.bpm-legend { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 140px); padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.12); font-size: 12px; cursor: default; }
.bpm-legend span { display: inline-flex; align-items: center; gap: 6px; }
