/* Map Preview Section Styles */
.map-preview-section {
    background: linear-gradient(to right, #f8f9fa, #f0f2f5);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    border-top: 1px solid rgba(94, 23, 235, 0.05);
    border-bottom: 1px solid rgba(94, 23, 235, 0.05);
}

.map-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(94, 23, 235, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(94, 23, 235, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.map-info-card {
    position: relative;
    z-index: 2;
    padding: 35px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(94, 23, 235, 0.1);
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.map-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--futuristic-gradient);
}

.map-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.map-info-content {
    flex: 1;
    overflow-y: auto;
}

.map-info-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(94, 23, 235, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-info-footer .btn-primary {
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.map-info-footer .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.map-info-footer .btn-primary:hover::before {
    left: 100%;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00b0ff;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background-color: rgba(0, 176, 255, 0.3);
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

.section-title {
    color: #212529;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    font-size: 2rem;
    letter-spacing: -0.5px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--futuristic-gradient);
    border-radius: 2px;
    opacity: 0.7;
}

.divider {
    height: 4px;
    width: 80px;
    background: var(--futuristic-gradient);
    margin-bottom: 25px;
    border-radius: 4px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite linear;
    border-radius: 4px;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.event-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
    background-color: rgba(248, 249, 250, 0.7);
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid rgba(94, 23, 235, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background-color: rgba(94, 23, 235, 0.05);
    transform: translateY(-2px);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.legend-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
}

/* Map Preview Card */
.map-preview-container {
    position: relative;
    z-index: 2;
}

/* Glow effect for markers */
.glow-marker {
    box-shadow: 0 0 15px var(--info-color);
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px var(--info-color);
    }
    100% {
        box-shadow: 0 0 20px var(--primary-color);
    }
}

/* Pulse Animation for Map Points */
.pulse-marker {
    position: relative;
}

.pulse-marker div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.pulse-marker::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background-color: rgba(94, 23, 235, 0.4);
    z-index: 1;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.1);
        opacity: 0.8;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.map-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(94, 23, 235, 0.2);
    height: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-preview-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.map-preview-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--futuristic-gradient);
    z-index: -1;
    border-radius: 18px;
    opacity: 0.3;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.map-preview-card:hover::before {
    opacity: 0.5;
}

.preview-map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.map-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
    pointer-events: none;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 3;
    backdrop-filter: blur(5px);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    margin: 0 15px;
    border-radius: 10px;
    height: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.pulse-icon {
    color: #00b0ff;
    animation: pulse-opacity 2s infinite;
}

@keyframes pulse-opacity {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.btn-view-map {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-view-map:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.map-overlay-top {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.map-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 23, 235, 0.2), rgba(0, 176, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .map-info-card {
        margin-bottom: 30px;
        height: auto;
        min-height: 400px;
    }

    .map-preview-card {
        height: 400px;
    }

    .preview-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .map-info-card {
        min-height: 350px;
    }

    .map-preview-card {
        height: 350px;
    }

    .preview-map {
        height: 350px;
    }

    .event-legend {
        gap: 10px;
    }

    .map-preview-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .stat-item {
        padding: 8px 12px;
        min-width: 70px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .map-stats {
        gap: 10px;
    }

    .stat-item {
        padding: 6px 10px;
        min-width: 60px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .map-title {
        font-size: 0.9rem;
    }

    .btn-view-map {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}
