/* Location Section - Premium Futuristic Overhaul */
#section-location {
    position: relative;
    padding: 5rem 0;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    /* Optional: Add a subtle grid pattern background */
    background-image:
        linear-gradient(rgba(226, 232, 240, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Wrapper for Grid Layout */
.location-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    width: 100%;
}

@media (min-width: 900px) {
    .location-layout-wrapper {
        grid-template-columns: 1fr 1.2fr;
        gap: 5rem;
    }
}

/* Text Box - Lower Layer */
.location-text-box {
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: white;
}

/* Map Frame - Higher Layer - STICKY */
.map-outer-frame {
    position: relative;
    z-index: 10;
    height: auto;
}

/* Inner Padding for Text Box */
.inner-padding {
    padding: 2.5rem;
}

@media (min-width: 900px) {
    .inner-padding {
        padding: 4rem;
    }
}

/* Text Styling */
.location-text-box .title-section {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.location-text-box .text-lead {
    color: #cbd5e1;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.location-text-box strong {
    color: #fff;
    font-weight: 800;
}

/* Badge */
.inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.inline-badge i {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Buttons */
.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.location-actions .btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 100%);
    border: none;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.location-actions .btn-white {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(4px);
}

.location-actions .btn-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Map Visuals */
.map-wrapper {
    position: relative;
    width: 100%;
}

.map-wrapper::before,
.map-wrapper::after {
    content: '';
    position: absolute;
    width: 2rem;
    height: 2rem;
    border: 2px solid #60a5fa;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.map-wrapper::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.map-wrapper::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.map-frame-box {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    background: #0f172a;
}

.map-frame-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) contrast(90%) grayscale(20%);
    transition: filter 0.5s ease;
}

.map-wrapper:hover .map-frame-box iframe {
    filter: invert(0%) hue-rotate(0deg) contrast(100%) grayscale(0%);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .location-actions {
        flex-direction: column;
    }

    .location-actions .btn {
        width: 100%;
    }
}