/* City Tech Map Styles */
.city-tech-map-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.city-tech-map {
    width: 100%;
    z-index: 1;
}

.city-tech-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    padding: 2rem;
    text-align: center;
}

.city-tech-map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Custom marker styles */
.custom-city-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.marker-pin::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #764ba2;
}

.marker-number {
    color: white;
    font-weight: bold;
    font-size: 16px;
    z-index: 2;
}

.marker-label {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    color: #333;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: inherit;
}

/* Loading state */
.city-tech-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .city-tech-map-container {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .marker-pin {
        width: 30px;
        height: 30px;
    }

    .marker-number {
        font-size: 14px;
    }

    .marker-label {
        font-size: 10px;
        padding: 2px 6px;
        top: 35px;
    }

    .leaflet-control-zoom {
        margin-top: 10px !important;
        margin-right: 10px !important;
    }

    .leaflet-control-zoom a {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        font-size: 18px !important;
    }
}

/* Touch-friendly popup */
@media (hover: none) and (pointer: coarse) {
    .leaflet-popup-content-wrapper {
        min-width: 200px;
    }

    .leaflet-popup-close-button {
        padding: 8px !important;
        font-size: 24px !important;
        width: 40px !important;
        height: 40px !important;
    }
}
