.area-card {
    position: relative;
    padding: 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: .35s;
    overflow: hidden;
}

.area-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, .14);
}

/* red accent glow line */
.area-bar {
    height: 4px;
    width: 0%;
    margin-top: 20px;
    border-radius: 6px;
    background: linear-gradient(to right, #ef4444, #f87171);
    transition: .35s;
}

.area-card:hover .area-bar {
    width: 100%;
}

.area-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;

    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 10px 30px rgba(37, 99, 235, .35);
}

.area-title {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.area-text {
    color: #dbeafe;
    line-height: 1.7;
}

.route-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .45;
}

.route-svg {
    width: 100%;
    height: 100%;
}

/* ให้เส้นค่อยๆขยับ dash */
#routePath {
    animation: routeMove 18s linear infinite;
}

@keyframes routeMove {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 400;
    }
}



/* ===== MAP NETWORK ===== */

.map-network {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .55;
}

.map-svg {
    width: 100%;
    height: 100%;
}

/* route line style */
.route-line {
    fill: none;
    stroke: rgba(255, 255, 255, .55);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 6 10;
    animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: 500;
    }
}

/* moving dot */
.route-dot {
    fill: #60a5fa;
    filter: drop-shadow(0 0 6px #60a5fa);
}

.route-dot.red {
    fill: #f87171;
    filter: drop-shadow(0 0 6px #f87171);
}

/* ===== MAP PIN ===== */

.pin {
    position: absolute;
    transform: translate(-50%, -100%);
    text-align: center;
    color: #fff;
    font-size: 26px;
    animation: pinFloat 3s ease-in-out infinite;
}

.pin i {
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, .7));
}

/* pulse ring */
.pin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 60%;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .6);
    transform: translate(-50%, -50%);
    animation: pulse 2.2s infinite;
}

.pin span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #e0f2fe;
}

/* animations */

@keyframes pulse {
    0% {
        opacity: .9;
        transform: translate(-50%, -50%) scale(.6);
    }

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

@keyframes pinFloat {

    0%,
    100% {
        transform: translate(-50%, -100%) translateY(0);
    }

    50% {
        transform: translate(-50%, -100%) translateY(-6px);
    }
}


.tag {
    @apply px-4 py-2 rounded-full font-semibold bg-white/10 text-white border border-white/20 hover:bg-white/20 transition;
}