/* =========================================================
   RADAR LOCATION GRAPHIC
   ========================================================= */

.gs-radar {
    --radar-green: #69df98;
    --radar-green-light: #a4f3c1;

    position: relative;
    width: min(520px, 90vw);
    aspect-ratio: 1;
    margin: auto;

    color: var(--radar-green);
    isolation: isolate;
}

/* =========================================================
   AMBIENT GLOW
   ========================================================= */

.gs-radar-glow {
    position: absolute;
    inset: 15%;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(105, 223, 152, 0.17) 0%,
        rgba(105, 223, 152, 0.07) 35%,
        rgba(105, 223, 152, 0.015) 60%,
        transparent 74%
    );

    filter: blur(16px);
}

/* =========================================================
   RADAR RINGS
   ========================================================= */

.gs-radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;

    border: 1px solid rgba(105, 223, 152, 0.18);
    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.gs-radar-ring-outer {
    width: 88%;
    height: 88%;

    border-style: dashed;
    border-color: rgba(105, 223, 152, 0.16);
}

.gs-radar-ring-middle {
    width: 66%;
    height: 66%;

    border-color: rgba(105, 223, 152, 0.23);
}

.gs-radar-ring-inner {
    width: 43%;
    height: 43%;

    border-color: rgba(105, 223, 152, 0.28);
}

/* =========================================================
   RADAR COORDINATE GRID
   ========================================================= */

.gs-radar-axis {
    position: absolute;
    pointer-events: none;
}

.gs-radar-axis-v {
    top: 6%;
    bottom: 6%;
    left: 50%;
    width: 1px;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(105, 223, 152, 0.2) 20%,
        rgba(105, 223, 152, 0.2) 80%,
        transparent
    );
}

.gs-radar-axis-h {
    top: 50%;
    right: 6%;
    left: 6%;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(105, 223, 152, 0.2) 20%,
        rgba(105, 223, 152, 0.2) 80%,
        transparent
    );
}

/* =========================================================
   RADAR SWEEP
   ========================================================= */

.gs-radar-sweep {
    position: absolute;
    inset: 12%;

    overflow: hidden;
    border-radius: 50%;

    animation: gs-radar-rotate 12s linear infinite;
}

/* Rotating detection cone */

.gs-radar-sweep-cone {
    position: absolute;
    inset: 0;

    border-radius: 50%;

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 285deg,
        rgba(105, 223, 152, 0.015) 310deg,
        rgba(105, 223, 152, 0.045) 335deg,
        rgba(105, 223, 152, 0.15) 359deg,
        transparent 360deg
    );
}

/* Bright leading edge */

.gs-radar-sweep-line {
    position: absolute;
    top: 0;
    left: 50%;

    width: 1px;
    height: 50%;

    transform-origin: bottom center;

    background: linear-gradient(
        to top,
        rgba(105, 223, 152, 0.75),
        rgba(105, 223, 152, 0.08),
        transparent
    );

    box-shadow: 0 0 8px rgba(105, 223, 152, 0.22);
}

/* Sweep boundary */

.gs-radar-sweep-outline {
    position: absolute;
    inset: 12%;

    border: 1px solid rgba(105, 223, 152, 0.1);
    border-radius: 50%;

    pointer-events: none;
}

/* =========================================================
   RADAR BLIPS
   ========================================================= */

.gs-radar-blip {
    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--radar-green-light);

    box-shadow:
        0 0 0 3px rgba(105, 223, 152, 0.08),
        0 0 12px rgba(105, 223, 152, 0.65);

    animation: gs-radar-pulse 3s ease-in-out infinite;
}

.gs-radar-blip-a {
    top: 25%;
    left: 29%;

    animation-delay: -0.5s;
}

.gs-radar-blip-b {
    top: 31%;
    right: 24%;

    animation-delay: -1.8s;
}

.gs-radar-blip-c {
    bottom: 27%;
    left: 23%;

    animation-delay: -2.4s;
}

.gs-radar-blip-d {
    right: 29%;
    bottom: 22%;

    animation-delay: -1.2s;
}

.gs-radar-blip-e {
    top: 18%;
    right: 42%;

    width: 4px;
    height: 4px;

    animation-delay: -0.9s;
}

/* =========================================================
   CENTRAL LOCATION PIN
   ========================================================= */

.gs-radar-location {
    position: absolute;
    top: 50%;
    left: 50%;

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

    width: 132px;
    height: 132px;

    border: 1px solid rgba(105, 223, 152, 0.4);
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(105, 223, 152, 0.14),
        rgba(6, 17, 12, 0.72) 72%
    );

    box-shadow:
        0 0 50px rgba(105, 223, 152, 0.09),
        inset 0 0 30px rgba(105, 223, 152, 0.06);

    transform: translate(-50%, -50%);
}

.gs-radar-location svg {
    display: block;

    width: 66px;
    height: 80px;

    filter: drop-shadow(0 0 10px rgba(105, 223, 152, 0.4));
}

/* =========================================================
   RADAR REGISTRATION MARKS
   ========================================================= */

.gs-radar-tick {
    position: absolute;

    width: 12px;
    height: 12px;

    border-color: rgba(105, 223, 152, 0.45);
    border-style: solid;
}

.gs-radar-tick-1 {
    top: 5%;
    left: 5%;

    border-width: 1px 0 0 1px;
}

.gs-radar-tick-2 {
    top: 5%;
    right: 5%;

    border-width: 1px 1px 0 0;
}

.gs-radar-tick-3 {
    bottom: 5%;
    left: 5%;

    border-width: 0 0 1px 1px;
}

.gs-radar-tick-4 {
    right: 5%;
    bottom: 5%;

    border-width: 0 1px 1px 0;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes gs-radar-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes gs-radar-pulse {
    0%,
    100% {
        opacity: 0.65;

        box-shadow:
            0 0 0 3px rgba(105, 223, 152, 0.06),
            0 0 10px rgba(105, 223, 152, 0.4);
    }

    50% {
        opacity: 1;

        box-shadow:
            0 0 0 6px rgba(105, 223, 152, 0.1),
            0 0 18px rgba(105, 223, 152, 0.8);
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .gs-radar-sweep,
    .gs-radar-blip {
        animation: none;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .gs-radar {
        display: none;
    }
}
