/* MAP CONTAINER */
#map-container {
    position: relative;
    width: 600px;
    margin: 30px auto;
}

#scotland-map {
    width: 100%;
    display: block;
}

/* PIN STYLE */
.pin {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ff0;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    animation: pinBounce 0.8s ease-out, neonPulse 2s infinite ease-in-out;
    box-shadow: 0 0 10px #ff0, 0 0 20px #ff0;
}

.pin:hover {
    animation: pinHoverBounce 0.45s ease-out;
	box-shadow: 0 0 14px #ff0, 0 0 28px #ff0;
}

/* PIN RIPPLE EFFECT */
.pin::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 0, 0.4);
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    animation: pinRipple 1.2s ease-out forwards;
}

/* GLOW TRAIL EFFECT */
.pin::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 0, 0.15);
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    filter: blur(8px);
    opacity: 0;
    animation: glowTrail 0.8s ease-out forwards;
}

.pin:hover {
    animation: pinHoverBounce 0.45s ease-out;
	box-shadow: 0 0 14px #ff0, 0 0 28px #ff0;
}

@keyframes pinHoverBounce {
    0%   { transform: translate(-50%, -50%) scale(1); }
    40%  { transform: translate(-50%, -60%) scale(1.15); }
    60%  { transform: translate(-50%, -48%) scale(0.95); }
    80%  { transform: translate(-50%, -54%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* PIN BOUNCE ANIMATION */
@keyframes pinBounce {
    0% { transform: translate(-50%, -200%); }
    60% { transform: translate(-50%, -40%); }
    80% { transform: translate(-50%, -60%); }
    100% { transform: translate(-50%, -50%); }
}

/* NEON PULSE EFFECT */
@keyframes neonPulse {
    0% { box-shadow: 0 0 6px #ff0, 0 0 12px #ff0; }
    50% { box-shadow: 0 0 14px #ff0, 0 0 28px #ff0; }
    100% { box-shadow: 0 0 6px #ff0, 0 0 12px #ff0; }
}

/* RIPPLE ANIMATION */
@keyframes pinRipple {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.3);
    }
    70% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(2.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3.2);
    }
}

/* GLOW TRAIL ANIMATION */
@keyframes glowTrail {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -200%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* POPUP (HIDDEN BY DEFAULT) */
.popup {
    position: absolute;
    top: -70px;
    left: -50px;
    width: 140px;
    background: #222;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 0 12px #0ff;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 10;
}

/* POPUP ARROW */
.popup::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

/* POPUP WHEN OPEN */
.popup.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* POPUP LINKS */
.popup a {
    color: #0ff;
    text-decoration: none;
    font-weight: bold;
}

.popup a:hover {
    text-shadow: 0 0 6px #0ff;
}
.pin {
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    background: #ff0 !important;
    border-radius: 50% !important;
    cursor: pointer;
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 0 10px #ff0, 0 0 20px #ff0 !important;
    z-index: 999 !important;
}

#map-container {
    margin: 0 auto;
}

.map-page-wrapper {
    margin-left: calc(260px + 20px);  /* left sidebar width + offset */
    margin-right: calc(200px + 20px); /* right sidebar width + offset */
    padding-top: 80px;                /* aligns with sidebar top */
}

.main-nav {
    margin-left: calc(260px + 20px);
    margin-right: calc(200px + 20px); /* match right sidebar */
}

.map-title {
    text-align: center;
    width: 100%;
    margin: 0 auto 20px auto;
}