* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #050507;
    color: #fff;
    overflow: hidden;
    font-family: "Barlow", sans-serif;
}

.map-app {
    width: 100vw;
    height: 100vh;
     margin-top: 80px; /* Höhe deiner Navbar */
    display: grid;
    grid-template-columns: 360px 1fr;
}


.map-app {
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: hidden;
}

.map-sidebar {
    height: calc(100vh - 80px);
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.map-search {
    flex: 0 0 auto;
}

.map-categories {
    flex: 0 0 auto;
    max-height: 390px;
    overflow-y: auto;
    padding-right: 6px;
}

.map-location-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    padding-bottom: 30px;
}

/* Scrollbar Style */
.map-categories::-webkit-scrollbar,
.map-location-list::-webkit-scrollbar {
    width: 6px;
}

.map-categories::-webkit-scrollbar-track,
.map-location-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
    border-radius: 999px;
}

.map-categories::-webkit-scrollbar-thumb,
.map-location-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #ff2bd6);
    border-radius: 999px;
}

/* SIDEBAR */

.map-sidebar {
    position: relative;
    z-index: 20;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 10%, rgba(0,212,255,.14), transparent 35%),
        linear-gradient(180deg, #080913, #050507);
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 20px 0 60px rgba(0,0,0,.65);
    overflow-y: auto;
}

.map-logo {
    font-family: "Oswald", sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.map-logo span {
    color: #fff;
    text-shadow: 0 0 18px rgba(0,212,255,.55);
}

.map-logo b {
    color: #ff2bd6;
    text-shadow: 0 0 18px rgba(255,43,214,.75);
}

.map-logo small {
    display: block;
    margin-top: 4px;
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    color: #00d4ff;
    letter-spacing: 2px;
}

.map-search input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    color: #fff;
    outline: none;
    font-family: "Share Tech Mono", monospace;
}

.map-search input:focus {
    border-color: rgba(0,212,255,.55);
    box-shadow: 0 0 22px rgba(0,212,255,.16);
}

.map-categories {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.cat-btn {
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.68);
    cursor: pointer;
    text-align: left;
    font-family: "Share Tech Mono", monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: .25s;
}

.cat-btn:hover,
.cat-btn.active {
    color: #fff;
    border-color: rgba(0,212,255,.55);
    background: linear-gradient(90deg, rgba(0,212,255,.16), rgba(255,43,214,.09));
    transform: translateX(5px);
}

.map-location-list {
    display: grid;
    gap: 10px;
}

.location-item {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: .25s;
}

.location-item:hover {
    transform: translateX(5px);
    border-color: rgba(255,43,214,.45);
    background: rgba(255,255,255,.06);
}

.location-item strong {
    display: block;
    font-size: 15px;
}

.location-item span {
    display: block;
    margin-top: 5px;
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

/* MAP */

.map-stage {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 20%, rgba(255,43,214,.14), transparent 34%),
        #085098;
}

.map-topbar {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 30;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 18px;
    border-radius: 18px;

    background: rgba(5,5,10,.78);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(14px);
}

.map-topbar span {
    font-family: "Share Tech Mono", monospace;
    color: #00d4ff;
    font-size: 11px;
    letter-spacing: 2px;
}

/* =========================
   ADMIN TOOL
========================= */

.admin-panel {
    position: absolute;
    right: 28px;
    top: 110px;
    z-index: 80;

    width: 360px;
    padding: 22px;

    border-radius: 22px;

    background:
        radial-gradient(circle at 100% 0%, rgba(255,43,214,.18), transparent 40%),
        rgba(8, 9, 18, .96);

    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
        0 24px 70px rgba(0,0,0,.72),
        0 0 36px rgba(0,212,255,.14);

    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.admin-head span {
    font-family: "Share Tech Mono", monospace;
    color: #00d4ff;
    font-size: 12px;
    letter-spacing: 2px;
}

.admin-head button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.admin-panel label {
    display: block;
    margin: 14px 0 7px;

    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    color: rgba(255,255,255,.72);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea {
    width: 100%;
    padding: 12px 13px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;

    background: rgba(255,255,255,.055);
    color: #fff;

    outline: none;
    font-family: "Barlow", sans-serif;
}

.admin-panel textarea {
    min-height: 85px;
    resize: vertical;
}

.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus {
    border-color: rgba(0,212,255,.55);
    box-shadow: 0 0 20px rgba(0,212,255,.16);
}

.admin-pos {
    display: flex;
    gap: 12px;
    margin-top: 14px;

    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    color: #00d4ff;
}

.admin-save {
    width: 100%;
    margin-top: 18px;
    padding: 14px;

    border: 0;
    border-radius: 14px;

    color: #fff;
    font-weight: 800;
    text-transform: uppercase;

    cursor: pointer;

    background: linear-gradient(135deg, #00d4ff, #ff2bd6);

    box-shadow:
        0 0 28px rgba(0,212,255,.22),
        0 0 28px rgba(255,43,214,.18);
}

.admin-save:hover {
    transform: translateY(-2px);
}

.map-topbar strong {
    display: block;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-controls {
    display: flex;
    gap: 8px;
}

.map-controls button {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #00d4ff, #ff2bd6);
    cursor: pointer;
    font-weight: 800;
    transition: .2s;
}

.map-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(0,212,255,.25);
}

.map-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

.map-viewport.dragging {
    cursor: grabbing;
}

.map-canvas {
    position: absolute;
    left: 50%;
    top: 50%;
	background: #1862ad;
    transform-origin: center center;
    user-select: none;
}

#mapImage {
    display: block;
    width: 1600px;
    max-width: none;
    pointer-events: none;
    filter: contrast(1.08) saturate(1.08) brightness(.82);
}

#markerLayer {
    position: absolute;
    inset: 0;
}

/* MARKER */

.marker {
    position: absolute;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10;

    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    filter:
        drop-shadow(0 0 10px rgba(0, 212, 255, .85))
        drop-shadow(0 0 22px rgba(255, 43, 214, .35));

    transition: .2s ease;
}

.marker-legal {
    background-image: url("assets/blips/police.png");
}

.marker-job {
    background-image: url("assets/blips/job.png");
}

.marker-shop {
    background-image: url("https://bilderupload.org/image/a72936687-shopping-store-3d-icon-pn.png");
}

.marker-garage {
    background-image: url("assets/blips/garage.png");
}

.marker-illegal {
    background-image: url("assets/blips/illegal.png");
}

.blip-preview {
    margin-top: 12px;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}

.blip-preview img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 10px rgba(0,212,255,.7))
        drop-shadow(0 0 18px rgba(255,43,214,.35));
}

#adminBtn.active {
    background: linear-gradient(135deg, #ff2bd6, #7a3cff);
}

.marker::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 22px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(0, 212, 255, .35);
    filter: blur(6px);
    animation: markerGlowPulse 2.4s infinite;
}

.marker:hover {
    transform: translate(-50%, -100%) scale(1.22);
}

.marker-pop {
    opacity: 0;
    animation: markerPop 1.15s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes markerPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(.15) rotate(-12deg);
        filter: blur(8px);
    }

    55% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1.28) rotate(4deg);
        filter:
            blur(0)
            drop-shadow(0 0 18px rgba(0, 212, 255, .95))
            drop-shadow(0 0 28px rgba(255, 43, 214, .45));
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1) rotate(0deg);
        filter:
            blur(0)
            drop-shadow(0 0 10px rgba(0, 212, 255, .85))
            drop-shadow(0 0 22px rgba(255, 43, 214, .35));
    }
}

@keyframes markerGlowPulse {
    0% {
        opacity: .35;
        transform: translateX(-50%) scale(.8);
    }

    50% {
        opacity: .9;
        transform: translateX(-50%) scale(1.3);
    }

    100% {
        opacity: .35;
        transform: translateX(-50%) scale(.8);
    }
}

/* POPUP */

.map-popup {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 40;

    width: 340px;
    padding: 24px;
    border-radius: 24px;

    background:
        radial-gradient(circle at 100% 0%, rgba(255,43,214,.16), transparent 40%),
        rgba(8,9,18,.94);

    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 24px 70px rgba(0,0,0,.65),
        0 0 36px rgba(0,212,255,.13);

    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: .25s;
}

.map-popup.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.map-popup button {
    position: absolute;
    right: 16px;
    top: 14px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.map-popup span {
    font-family: "Share Tech Mono", monospace;
    color: #00d4ff;
    font-size: 11px;
    letter-spacing: 2px;
}

.map-popup h3 {
    margin-top: 10px;
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    text-transform: uppercase;
}

.map-popup p {
    margin-top: 10px;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .map-app {
        grid-template-columns: 1fr;
    }

    .map-sidebar {
        position: absolute;
        left: 14px;
        top: 14px;
        bottom: 14px;
        width: 310px;
        border-radius: 22px;
        z-index: 50;
    }

    .map-topbar {
        left: 340px;
    }
}

/* =========================
   MARKER SPAWN ANIMATION
========================= */

.marker-pop {
    opacity: 0;
    animation: markerPop .55s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes markerPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.2);
        filter: blur(6px);
    }

    65% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.35);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

/* Admin Button aktiv */
#adminBtn.active {
    background: linear-gradient(135deg, #ff2bd6, #7a3cff);
    box-shadow:
        0 0 26px rgba(255,43,214,.45),
        0 0 36px rgba(122,60,255,.22);
}