/* Global styles for Leaflet-created DOM (map pins live outside Blazor scoped CSS). */

.mm-pin-wrap { background: transparent; border: none; }

.mm-pin {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
}

.mm-pin-dot {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--pin-color, #5BC0BE);
    border: 2px solid rgba(11, 13, 16, 0.9);
    box-shadow: 0 0 8px color-mix(in srgb, var(--pin-color, #5BC0BE) 70%, transparent);
    transition: transform 0.15s ease;
}

.mm-pin-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--pin-color, #f7a24f);
    animation: mm-pin-pulse 1.6s ease-out infinite;
}

.mm-pin-active .mm-pin-dot {
    transform: scale(1.5);
    z-index: 10;
}

@keyframes mm-pin-pulse {
    0% { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ---------------- hover card on a pin ---------------- */

.mm-tip-wrap.leaflet-tooltip {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.mm-tip-wrap.leaflet-tooltip::before { display: none; }   /* kill the default arrow */

.mm-tip {
    min-width: 210px;
    max-width: 280px;
    background: #12151A;
    border: 1px solid #252A33;
    border-left: 3px solid var(--fmt-color, #5BC0BE);
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    white-space: normal;
}

.mm-tip-when {
    color: #5BC0BE;
    font-weight: 700;
    font-size: 0.74rem;
    margin-bottom: 0.15rem;
}

.mm-tip-title {
    color: #EAEAEA;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.mm-tip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.mm-tip-meta > span {
    font-size: 0.68rem;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    background: #1A1E25;
    color: #9CA3AF;
}

.mm-tip-format {
    color: var(--fmt-color, #5BC0BE) !important;
    background: color-mix(in srgb, var(--fmt-color, #5BC0BE) 15%, transparent) !important;
    font-weight: 700;
}

.mm-tip-type { color: #EAEAEA !important; font-weight: 600; }

.mm-tip-store {
    color: #9CA3AF;
    font-size: 0.76rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.mm-tip-dist {
    margin-left: auto;
    color: #5BC0BE;
    font-weight: 700;
}

.mm-tip-cta {
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid #252A33;
    color: #6B7280;
    font-size: 0.68rem;
    font-weight: 600;
}

/* The chip Leaflet owns (JS-created, so it can't use scoped CSS) */
.leaflet-container .ev-search-area {
    position: absolute;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: none;
    background: #5BC0BE;
    color: #0B0D10;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.leaflet-container .ev-search-area:hover { background: #4DB6AC; }

.leaflet-container { font-family: Inter, system-ui, sans-serif; background: #e8e6e1; }

/* ---------------- hero geocode typeahead (JS-created, so global not scoped) ---------------- */

.ev-geo-hits {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 420px;
    margin: 0.5rem auto 0;
    background: #12151A;
    border: 1px solid #252A33;
    border-radius: 0.75rem;
    overflow: hidden;
}

.ev-geo-hits:empty { display: none; }

.ev-geo-hit {
    padding: 0.65rem 1rem;
    background: transparent;
    border: none;
    color: #EAEAEA;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
}

.ev-geo-hit:hover { background: rgba(91, 192, 190, 0.12); }

/* NO filter on the tile pane. A brightness/contrast filter there repaints every tile on
   every zoom frame — that was the real cause of the sluggish, stuttery zoom. The basemap
   is now legible on its own (CARTO Voyager) instead of being a black map we tried to
   brighten in the compositor. */

/* Chrome sits on a light basemap now — dark-on-light, like Google's. */
.leaflet-control-zoom a {
    background: #ffffff !important;
    color: #1a1f27 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    font-weight: 700;
}

.leaflet-control-zoom a:hover { background: #f2f4f7 !important; }

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #5b6472 !important;
    font-size: 0.62rem !important;
}

.leaflet-control-attribution a { color: #3a424e !important; }

/* Pins need a light-map outline to stay punchy. */
.mm-pin-dot { border-color: rgba(255, 255, 255, 0.95) !important; }
.mm-cluster { border-color: rgba(255, 255, 255, 0.95) !important; }

/* ---------------- clusters ---------------- */

.mm-cluster-wrap { background: transparent; border: none; }

.mm-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(91, 192, 190, 0.92);
    color: #0B0D10;
    font-weight: 800;
    font-size: 0.78rem;
    border: 2px solid rgba(11, 13, 16, 0.85);
    box-shadow: 0 0 12px rgba(91, 192, 190, 0.5);
}

/* Kill the plugin's default light-theme bubbles */
.marker-cluster, .marker-cluster div { background: transparent !important; }
