/* ==========================================================================
   BANGERCITY RP – Live-Karte
   Eigenständig, ergänzt home.css. Übernommen aus site.css, damit die
   Startseite ohne das alte Stylesheet auskommt.
   ========================================================================== */

.livemap {
    position: relative;
    height: 560px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(240, 91, 208, .5);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, .22) inset, 0 0 40px rgba(240, 91, 208, .24), 0 0 90px rgba(34, 211, 238, .1), var(--shadow);
    background: #080822;
}
#livemap { position: absolute; inset: 0; background: #080822; }
#livemap .leaflet-tile-pane,
#livemap .neon-tiles { filter: none; }

/* ------------------------------------------------------------------- HUD */
.lm-hud {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(9, 5, 22, .85);
    border: 1px solid var(--line-2);
    font-size: 13px;
    color: var(--muted);
}
.lm-hud b { color: var(--text); font-family: 'Outfit', sans-serif; font-size: 15px; }
.lm-hud i { color: var(--cyan); }
.lm-sep { width: 1px; height: 16px; background: var(--line-2); }

.lm-note {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 500;
    display: none;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(9, 5, 22, .88);
    border: 1px solid var(--line-2);
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}
.lm-note.show { display: block; }

/* ---------------------------------------------------------------- Filter */
.lm-filter {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(9, 5, 22, .78);
    border: 1px solid rgba(139, 92, 246, .35);
}
.lm-filter button {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 12px 6px 6px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, .3);
    background: rgba(23, 14, 44, .85);
    color: var(--muted);
    font: 600 13px 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: .15s;
}
.lm-filter button i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
    color: var(--c);
    font-size: 13px;
}
.lm-filter button.on { color: var(--text); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 16px -6px var(--c); }
.lm-filter button.on i { color: #fff; background: var(--c); box-shadow: 0 0 12px -2px var(--c); }

/* --------------------------------------------------------------- Marker */
.lm-pl {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1.5px solid rgba(255, 255, 255, .85);
    box-shadow: 0 0 12px -1px var(--pc, rgba(0, 0, 0, .5)), 0 3px 8px rgba(0, 0, 0, .55);
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: transform .15s;
}
.lm-pl:hover { transform: scale(1.18); }
.lm-pl.sale { box-shadow: 0 0 0 3px #ffc83d, 0 0 16px #ffc83d; }

.c-shop    { background: #2ee59d; --pc: #2ee59d; color: #04140c; }
.c-fuel    { background: #ff3d6e; --pc: #ff3d6e; }
.c-gov     { background: #3d8bff; --pc: #3d8bff; }
.c-job     { background: #a26bff; --pc: #a26bff; }
.c-service { background: #ff4fd8; --pc: #ff4fd8; }
.c-traffic { background: #ffc83d; --pc: #ffc83d; color: #2a1d00; }
.c-immo    { background: #ff8a3d; --pc: #ff8a3d; }
.c-roads   { background: #ffa53d; --pc: #ffa53d; color: #2a1400; }
.c-roads.full { background: #ff3d6e; --pc: #ff3d6e; color: #fff; }

.lm-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--cyan);
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .25), 0 0 16px var(--cyan);
    animation: lmpulse 2.4s infinite;
}
.lm-dot.veh { background: var(--pink); box-shadow: 0 0 0 4px rgba(240, 91, 208, .25), 0 0 16px var(--pink); }
@keyframes lmpulse { 50% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0), 0 0 16px currentColor; } }

.lm-bus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: var(--c, #3ecf8e);
    color: #07060f;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 0 0 2px rgba(9, 5, 22, .85), 0 0 12px var(--c, #3ecf8e);
}
.lm-bus i { font-size: 11px; }

.lm-postal {
    font: 800 10.5px/14px 'Inter', sans-serif;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 4px #07031a, 0 0 6px #07031a;
    letter-spacing: .3px;
    pointer-events: none;
}

#livemap .lm-zone.war { animation: zonewar 1.2s ease-in-out infinite; }
@keyframes zonewar { 50% { stroke-opacity: .25; } }

.leaflet-interactive.wx-area { animation: wxarea 3s ease-in-out infinite; }
@keyframes wxarea { 50% { fill-opacity: .06; } }
.leaflet-interactive.wx-neon { filter: drop-shadow(0 0 6px currentColor); }
.leaflet-tooltip.wx-ev-tip { background: rgba(15, 10, 34, .92); color: #fff; border: 1px solid rgba(255, 61, 110, .6); border-radius: 8px; font-size: 12px; box-shadow: none; }

/* ------------------------------------------------------------- Infofenster */
.leaflet-popup-content-wrapper { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--panel-2); border: 1px solid var(--line-2); }
.leaflet-popup-content { margin: 14px 16px; font: 13px/1.5 'Inter', sans-serif; min-width: 210px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-container .leaflet-control-zoom a { background: rgba(9, 5, 22, .9); color: var(--text); border-color: var(--line-2); }

.pp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pp-h .lm-pl { width: 34px; height: 34px; flex-shrink: 0; cursor: default; }
.pp-h b { display: block; font-family: 'Outfit', sans-serif; font-size: 15.5px; line-height: 1.2; }
.pp-h span { font-size: 12px; color: var(--muted); }
.pp-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-top: 1px solid var(--line); color: var(--muted); }
.pp-row b { color: var(--text); text-align: right; }
.pp-badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.pp-badge.sale { background: rgba(245, 196, 81, .14); color: var(--yellow); }
.pp-badge.ok   { background: rgba(46, 229, 157, .12); color: var(--green); }
.pp-badge.off  { background: rgba(255, 61, 110, .12); color: var(--red); }

.lm-foot { text-align: center; font-size: 13px; margin-top: 14px; }
.lm-foot a { color: var(--cyan); }

@media (max-width: 820px) {
    .livemap { height: 460px; }
    .lm-filter { right: 10px; top: 10px; max-height: calc(100% - 20px); overflow: auto; padding: 8px; }
    .lm-filter button span { display: none; }
    .lm-hud { left: 10px; top: 10px; padding: 8px 12px; font-size: 12px; }
}
