/* BITZO Map page (public). Uses the site's variables (--bz-*); nothing here touches other pages. */
.bzm-page { padding-bottom: 36px; }
.bzm-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bzm-search { position: relative; display: flex; align-items: center; min-width: 260px; }
.bzm-search i { position: absolute; left: 13px; color: var(--bz-muted); font-size: 13px; pointer-events: none; }
.bzm-search input { width: 100%; min-height: 40px; padding: 0 14px 0 36px; border: 1px solid var(--bz-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--bz-ink); }
.bzm-search input:focus { outline: none; border-color: var(--bz-primary); box-shadow: 0 0 0 3px var(--bz-primary-50); }
#bzmLocate.busy { opacity: .7; }

.bzm-filters { display: flex; gap: 12px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 4px 0 10px; }
.bzm-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; max-width: 100%; scrollbar-width: thin; }
.bzm-chips .bz-chip { flex: 0 0 auto; cursor: pointer; font-family: inherit; }
.bzm-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bzm-tools .bz-chip { cursor: pointer; font-family: inherit; }
.bzm-radius { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px 0 13px; border: 1px solid var(--bz-line); border-radius: 999px; background: #fff; color: var(--bz-primary); font-size: 13px; }
.bzm-radius select { border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--bz-ink); cursor: pointer; padding: 6px 2px; }
.bzm-radius select:focus { outline: none; }
.bzm-status { min-height: 22px; margin: 2px 2px 10px; font-size: 13.5px; color: var(--bz-muted); }
.bzm-status.bad { color: #B45309; }

.bzm-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.bzm-mapcol { position: relative; min-width: 0; border: 1px solid var(--bz-line); border-radius: var(--bitzo-radius, 14px); overflow: hidden; background: #E9E6EF; box-shadow: var(--bitzo-shadow); }
.bzm-map { width: 100%; height: clamp(420px, 70vh, 740px); }
.bzm-mapmsg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: #F6F5F9; color: var(--bz-muted); font-size: 14px; line-height: 1.6; }
.bzm-mapmsg[hidden], .bzm-card[hidden] { display: none; }

.bzm-list { display: flex; flex-direction: column; gap: 10px; max-height: clamp(420px, 70vh, 740px); overflow-y: auto; padding-right: 2px; }
.bzm-item { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--bz-line); border-radius: var(--bitzo-radius-sm, 10px); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bzm-item:hover, .bzm-item:focus-visible { border-color: var(--bz-primary); box-shadow: var(--bitzo-shadow); outline: none; }
.bzm-item.sel { border-color: var(--bz-primary); background: var(--bz-primary-50); }
.bzm-logo { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--bz-primary-50); color: var(--bz-primary); font-weight: 600; font-size: 17px; border: 1px solid var(--bz-primary-100); }
.bzm-logo.lg { width: 54px; height: 54px; font-size: 20px; }
.bzm-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bzm-body { min-width: 0; flex: 1; }
.bzm-name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--bz-ink); overflow-wrap: anywhere; }
.bzm-blue { margin-left: 6px; color: #1D7BEA; font-size: 13px; }
.bzm-sub { margin-top: 2px; font-size: 12.5px; color: var(--bz-muted); }
.bzm-rate i { color: #F5A524; font-size: 11px; }
.bzm-facts { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 7px; font-size: 12.5px; color: var(--bz-ink); }
.bzm-fact i { color: var(--bz-primary); font-size: 11px; }
.bzm-pill { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.bzm-pill.ok { background: #E8F6EC; color: #16803C; }
.bzm-pill.bad { background: #FDECEC; color: #B42318; }
.bzm-acts { display: flex; gap: 14px; margin-top: 8px; }
.bzm-link { font-size: 13px; font-weight: 500; color: var(--bz-primary); text-decoration: none; }
.bzm-link:hover { text-decoration: underline; }

/* the selected-business card over the map */
.bzm-card { position: absolute; left: 14px; top: 14px; width: min(350px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow-y: auto; z-index: 10; background: #fff; border-radius: 14px; box-shadow: 0 12px 34px rgba(27, 23, 33, .22); }
.bzm-cardin { position: relative; padding: 16px; }
.bzm-x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F1EFF5; color: var(--bz-ink); cursor: pointer; }
.bzm-x:hover { background: var(--bz-primary-100); }
.bzm-hd { display: flex; gap: 12px; align-items: center; padding-right: 30px; }
.bzm-hdt { min-width: 0; }
.bzm-addr { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--bz-ink); }
.bzm-addr i { color: var(--bz-primary); margin-right: 3px; }
.bzm-feat { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bz-primary-50); color: var(--bz-primary); font-size: 13px; font-weight: 500; }
.bzm-cta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.bzm-cta .bz-btn { flex: 1 1 140px; justify-content: center; text-align: center; }

/* markers (custom overlays: round seller logo, cluster bubble, simple pin) */
.bzm-mk { position: absolute; transform: translate(-50%, -100%); padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.bzm-mk .face { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #fff; color: var(--mk, #5B0C9A); font-weight: 700; font-size: 17px; border: 3px solid var(--mk, #5B0C9A); box-shadow: 0 3px 10px rgba(27, 23, 33, .35); transition: transform .12s; }
.bzm-mk .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bzm-mk::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg); background: var(--mk, #5B0C9A); border-radius: 0 0 3px 0; z-index: -1; }
.bzm-mk:hover .face, .bzm-mk:focus-visible .face { transform: scale(1.1); }
.bzm-mk.sel .face { transform: scale(1.22); box-shadow: 0 0 0 4px rgba(91, 12, 154, .25), 0 6px 16px rgba(27, 23, 33, .4); }
.bzm-mk.cl { transform: translate(-50%, -50%); }
.bzm-mk.cl::after { display: none; }
.bzm-mk.cl .face { background: var(--mk, #5B0C9A); color: #fff; width: 42px; height: 42px; border-color: #fff; font-size: 15px; }
.bzm-mk.pin .face { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--mk, #5B0C9A); border-color: #fff; }
.bzm-mk.pin::after { display: none; }
.bzm-mk.pin.sel .face { transform: rotate(-45deg) scale(1.25); }
.bzm-me { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1D7BEA; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(29, 123, 234, .25); pointer-events: none; }

/* Google could not load: the list becomes the whole page */
.bzm-nomap .bzm-wrap { grid-template-columns: minmax(0, 1fr); }
.bzm-nomap .bzm-mapcol { min-height: 0; }
.bzm-nomap .bzm-map { display: none; }
.bzm-nomap .bzm-mapmsg { position: static; padding: 14px 18px; }
.bzm-nomap .bzm-list { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

@media (max-width: 900px) {
	.bzm-wrap { grid-template-columns: minmax(0, 1fr); }
	.bzm-map { height: 58vh; min-height: 340px; }
	.bzm-list { max-height: none; }
	.bzm-card { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 62%; }
	.bzm-search { min-width: 0; flex: 1 1 200px; }
	.bzm-top { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bzm-mk .face, .bzm-item { transition: none; } }
