/* LOCATION SECTION STYLES */

#location {
    position: relative;
    overflow: hidden;
    background: #0c0f14;
    color: white;
    padding-block: clamp(3.5rem, 7vw, 7rem);
    padding-inline: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#location .location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
}

#location .location-left {
    flex: 1;
    min-width: 0;
}

#location .location-right {
    flex: 1;
    min-width: 0;
}

#location .location-eyebrow {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: #f64900;
    margin-bottom: 1.5rem;
}

#location .location-title {
    font-size: clamp(2.2rem, 3.5vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

#location .location-copy {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* 3D Map Scene */
.map-scene {
    perspective: 1600px;
    width: 100%;
    height: clamp(280px, 38vw, 420px);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-8%, -5%);
}

.map-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right,
            #0c0f14 0%,
            transparent 20%,
            transparent 80%,
            #0c0f14 100%
        ),
        linear-gradient(to bottom,
            #0c0f14 0%,
            transparent 15%,
            transparent 85%,
            #0c0f14 100%
        );
}

.map-3d {
    width: 120%;
    aspect-ratio: 5 / 3;
    min-height: 250px;
    will-change: transform;
    backface-visibility: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    transform:
        translate(-50%, -50%)
        rotateX(60deg)
        scale(1.2);
    animation: rotateMap 30s linear infinite;
    filter: none;
}

.map-3d svg {
    width: 100%;
    height: 100%;
    display: block;
}

.map-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.02);
    transform: translateZ(-25px);
    filter: blur(25px);
}

.map-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: 0 80px 100px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

@keyframes rotateMap {
    from {
        transform:
            translate(-50%, -50%)
            rotateX(60deg)
            rotateZ(0deg);
    }
    to {
        transform:
            translate(-50%, -50%)
            rotateX(60deg)
            rotateZ(360deg);
    }
}

/* Map pin */
.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    background: #f64900;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -100%) rotate(-45deg);
    animation: pulsePin 2s ease-in-out infinite;
}

.map-pin::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
}

@keyframes pulsePin {
    0%, 100% {
        transform: translate(-50%, -100%) rotate(-45deg) scale(1);
    }
    50% {
        transform: translate(-50%, -100%) rotate(-45deg) scale(1.1);
    }
}

/* Location info cards */
#location .location-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

#location .info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#location .info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #f64900;
    transform: translateY(-5px);
}

#location .info-card h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #f64900;
}

#location .info-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
}

@media (max-width: 768px), (orientation: portrait) and (max-width: 1024px) {
    #location {
        padding-block: 3.5rem;
        padding-inline: var(--hero-align-x, clamp(0.9rem, 3.4vw, 4.5rem));
    }

    #location > div {
        gap: 1.25rem;
    }

    #location > div > div:first-child h2 {
        margin-bottom: 1.25rem;
        letter-spacing: 0.35em;
    }

    #location > div > div:first-child h3 {
        font-size: clamp(2rem, 12vw, 2.8rem);
        line-height: 0.95;
        margin-bottom: 1.5rem;
    }

    #location > div > div:first-child .space-y-6 {
        gap: 1rem;
        padding-left: 0.9rem;
    }

    #location > div > div:first-child .space-y-6 p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    #location > div > div:first-child .space-y-6 a {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .map-scene {
        height: 260px;
        transform: translate(0, 0);
    }

    .map-3d {
        width: 108%;
        min-height: 200px;
        transform: translate(-50%, -50%) rotateX(56deg) scale(1);
    }

    .map-pin {
        display: none;
    }
}

@media (max-width: 480px) {
    .map-scene {
        height: 220px;
    }

    .map-3d {
        width: 104%;
        animation-duration: 44s;
    }
}

