/* Neighbr Map — civic object pin/card visual language.
   Shared CSS for the marker shapes produced by civic-markers.js.
   --civic-color is set per-marker via inline style. */

.civic-marker-host {
    background: transparent !important;
    border: 0 !important;
}

.civic-marker {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(7, 27, 77, 0.18),
                0 0 0 2px #fff,
                0 0 0 3px rgba(0, 0, 0, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.civic-marker:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(7, 27, 77, 0.26),
                0 0 0 2px #fff,
                0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Pill (icon-only round chip) — for poll/alert/issue/event/business/notice */
.civic-marker--pill {
    color: #fff;
    width: 40px;
    height: 40px;
}

.civic-marker--pill i {
    font-size: 16px;
}

/* Avatar (circular, image or initial) — for post/group */
.civic-marker--avatar {
    background: var(--civic-color, #0B5FFF);
    color: #fff;
    width: 48px;
    height: 48px;
    padding: 3px;
}

.civic-marker__avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.15);
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.civic-marker__avatar--placeholder {
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

/* Logo (square card with logo) — for institution */
.civic-marker--logo {
    background: var(--civic-color, #16A34A);
    color: #fff;
    width: 48px;
    height: 48px;
    padding: 3px;
    border-radius: 14px;
}

.civic-marker__logo {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--civic-color, #16A34A);
}

.civic-marker__logo--placeholder {
    font-size: 18px;
}

/* Cluster marker — same visual language as the type it aggregates */
.civic-marker--cluster {
    width: 52px;
    height: 52px;
    color: #fff;
    position: relative;
    font-weight: 700;
}

.civic-marker--cluster i {
    font-size: 16px;
}

.civic-marker__count {
    position: absolute;
    bottom: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--civic-color, #071B4D);
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(7, 27, 77, 0.18);
    border: 2px solid var(--civic-color, #071B4D);
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .civic-marker, .civic-marker:hover {
        transition: none;
        transform: none;
    }
}
