.bizmap-map {
    --bizmap-surface: var(--kj-surface, var(--dk-surface, #fff));
    --bizmap-surface-soft: var(--kj-bg-soft, var(--dk-bg-soft, #f6f7f9));
    --bizmap-text: var(--kj-text, var(--dk-text, #14181f));
    --bizmap-text-soft: var(--kj-text-soft, var(--dk-text-soft, #5a6472));
    --bizmap-border: var(--kj-border, var(--dk-border, #e2e5ea));
    --bizmap-brand: var(--kj-brand, var(--dk-brand, #168463));
    --bizmap-brand-ink: var(--kj-brand-ink, var(--dk-brand-ink, #245c49));
    --bizmap-text-on-brand: var(--kj-text-on-brand, var(--dk-text-on-brand, #fff));
    min-height: 22rem;
    width: 100%;
    overflow: hidden;
    color: var(--bizmap-text);
    background: var(--bizmap-surface-soft);
    border-radius: 1rem;
    isolation: isolate;
}

.bizmap-map .leaflet-popup-content-wrapper,
.bizmap-map .leaflet-popup-tip,
.bizmap-map .leaflet-bar,
.bizmap-map .leaflet-bar a,
.bizmap-map .leaflet-bar a:hover {
    color: var(--bizmap-text);
    background: var(--bizmap-surface);
    border-color: var(--bizmap-border);
}

.bizmap-map .leaflet-control-attribution {
    color: var(--bizmap-text-soft);
    background: var(--bizmap-surface);
}

.bizmap-map .leaflet-control-attribution {
    font-size: 10px;
}

.bizmap-map .leaflet-control-attribution a {
    color: var(--bizmap-brand-ink);
}

.bizmap-pin-icon,
.bizmap-cluster-icon {
    background: transparent;
    border: 0;
}

.bizmap-pin {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #fff;
    background: #168463;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 7px rgb(15 40 30 / 28%);
    font: 700 12px/1 system-ui, sans-serif;
    transform: rotate(-45deg);
}

.bizmap-pin__glyph {
    display: block;
    transform: rotate(45deg);
}

.bizmap-pin.is-approx {
    background: #64756d;
    border-style: dashed;
}

.bizmap-pin.is-featured {
    background: #b26c12;
}

.bizmap-pin.is-business {
    background: #3958a6;
}

.bizmap-pin.is-prd { background: #8b5aa6; }
.bizmap-pin.is-prp { background: #9b5549; }
.bizmap-pin.is-srv { background: #087f8c; }
.bizmap-pin.is-evt { background: #a04f86; }
.bizmap-pin.is-com { background: #536f9e; }
.bizmap-pin.is-veh { background: #566c3d; }
.bizmap-pin.is-pet { background: #b3643d; }

.bizmap-cluster {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    color: #fff;
    background: #155b49;
    border: 3px solid rgb(255 255 255 / 88%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgb(15 40 30 / 28%);
    font: 700 12px/1 system-ui, sans-serif;
}

/* ------------------------------------------------------------ the popup card (BizMap\Card, 2026-10-27)
   Photo banner when there is one; the logo or the name's initials beside the name; phone and address with
   icons; then View, Directions and Call. Colours come from the --bizmap-* tokens each theme sets. */
.bizmap-map .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 30px rgb(15 20 30 / 22%); }
.bizmap-map .leaflet-popup-content { margin: 0; }
.bizmap-map .leaflet-popup-close-button { z-index: 2; top: 6px !important; right: 6px !important; width: 26px !important; height: 26px !important; border-radius: 50%; line-height: 24px !important; background: var(--bizmap-surface); color: var(--bizmap-text-soft) !important; box-shadow: 0 1px 4px rgb(15 20 30 / 18%); }

.bizmap-card {
    width: min(17.5rem, 74vw);
    color: var(--bizmap-text);
    font: 14px/1.45 system-ui, sans-serif;
}

.bizmap-card__photo { display: block; width: 100%; height: 8.5rem; object-fit: cover; }

.bizmap-card__head { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 2.4rem .35rem .9rem; }
.bizmap-card__avatar {
    position: relative; flex: 0 0 2.75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; overflow: hidden;
    border-radius: .7rem; background: var(--bizmap-brand); color: var(--bizmap-text-on-brand); font-weight: 800; font-size: .95rem;
}
.bizmap-card__logo { position: absolute; inset: 0; width: 100%; height: 100%; padding: 3px; object-fit: contain; background: var(--bizmap-surface); border: 1px solid var(--bizmap-border); border-radius: .7rem; }
.bizmap-card__name { flex: 1; min-width: 0; }
.bizmap-card__title { margin: 0; color: var(--bizmap-text); font-size: 1rem; line-height: 1.3; }
.bizmap-card p.bizmap-card__sub { margin: .15rem 0 0; color: var(--bizmap-text-soft); font-size: .82rem; }

.bizmap-card__rows { padding: .15rem .9rem .3rem; }
.bizmap-card p.bizmap-card__row { display: flex; align-items: flex-start; gap: .5rem; margin: .3rem 0; color: var(--bizmap-text); font-size: .85rem; line-height: 1.4; }
.bizmap-card__row a { color: var(--bizmap-brand-ink); font-weight: 600; text-decoration: none; }
.bizmap-card__icon { flex: 0 0 1rem; width: 1rem; height: 1rem; margin-top: .12rem; color: var(--bizmap-brand-ink); }
.bizmap-card p.bizmap-card__details { margin: .2rem 0; color: var(--bizmap-text-soft); font-size: .82rem; }

.bizmap-card__actions { display: flex; flex-wrap: wrap; gap: .4rem; padding: .45rem .9rem .9rem; }
.bizmap-card__link,
.bizmap-card__ghost { display: inline-flex; align-items: center; padding: .42rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; }
.bizmap-card__link { color: var(--bizmap-text-on-brand) !important; background: var(--bizmap-brand); }
.bizmap-card__ghost { color: var(--bizmap-text) !important; background: var(--bizmap-surface); border: 1px solid var(--bizmap-border); }
.bizmap-card__ghost:hover { border-color: var(--bizmap-brand); }
.bizmap-card__link:focus-visible,
.bizmap-card__ghost:focus-visible { outline: 2px solid var(--bizmap-brand-ink); outline-offset: 2px; }

.bizmap-card__favorite {
    position: absolute; top: .8rem; right: 2.45rem; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem;
    color: var(--bizmap-brand-ink); background: var(--bizmap-surface); border: 1px solid var(--bizmap-border); border-radius: 50%; cursor: pointer;
}
.bizmap-card--rich { position: relative; }
.bizmap-card--rich:has(.bizmap-card__favorite) .bizmap-card__head { padding-right: 4.6rem; }
.bizmap-card__photo ~ .bizmap-card__head .bizmap-card__favorite { top: 9.3rem; }
.bizmap-card__favorite svg { width: 1rem; height: 1rem; }
.bizmap-card__favorite[aria-pressed="true"] path { fill: currentColor; }

.bizmap-map__data-attribution {
    margin: .35rem 0 .75rem;
    color: var(--bizmap-text-soft);
    font-size: .75rem;
}

@media (max-width: 640px) {
    .bizmap-map {
        min-height: 18rem;
        border-radius: .7rem;
    }
}
