/* OpenStreetMap Harita Stilleri */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#osm-map {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

/* Emoji marker stilleri (Laboratuvar için) */
.custom-marker {
    background: #ff6600;
    border: 3px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* SVG marker stilleri - sadece ikon, arka plan yok */
.svg-marker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.svg-marker::after {
    display: none !important;
}

/* SVG ikonları yansıt (çevir) ve kırmızı yap */
.svg-marker img {
    transform: scaleX(-1);
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    -webkit-filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

/* Popup stilleri */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: 'Poppins', sans-serif;
}

.leaflet-popup-content h3 {
    color: #0066cc;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.leaflet-popup-content p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.leaflet-popup-content .contact-info {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* Harita kontrolleri */
.leaflet-control-zoom {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.leaflet-control-zoom a {
    background: #ffffff;
    color: #0066cc;
    border: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.leaflet-control-zoom a:hover {
    background: #0066cc;
    color: #ffffff;
}

/* Marker etiketleri (isimler) */
.marker-label {
    background: none !important;
    border: none !important;
}

.marker-label-text {
    background: transparent;
    color: #000000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    text-align: left;
    min-width: 100px;
    /* max-width kaldırıldı - tam adı göster */
    /* overflow: hidden; kaldırıldı - tam adı göster */
    /* text-overflow: ellipsis; kaldırıldı - tam adı göster */
    margin-left: 15px; /* Marker'dan daha fazla mesafe */
    margin-top: -18px; /* Yukarıya çek */
}

/* Marker etiketleri için hover efekti */
.marker-label:hover .marker-label-text {
    background: transparent;
    color: #000000;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 1);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Harita yükleme animasyonu */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #0066cc;
    font-size: 16px;
    font-weight: 500;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.map-loading.hidden {
    display: none;
}

.map-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #0066cc;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Attribution yazısını gizle */
.leaflet-control-attribution {
    display: none !important;
}

/* Marker boyutları için responsive tasarım */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
        margin-top: 15px;
    }
    
    .leaflet-popup-content h3 {
        font-size: 16px;
    }
    
    .leaflet-popup-content p {
        font-size: 13px;
    }
    
    /* Küçük ekranlarda marker'ları küçült */
    .custom-marker {
        width: 30px !important;
        height: 30px !important;
    }
    
    .svg-marker img {
        width: 30px !important;
        height: 30px !important;
    }
    
    .marker-label-text {
        font-size: 11px !important;
        padding: 4px 8px !important;
        margin-left: 10px !important;
        margin-top: -12px !important;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 576px) {
    .map-container {
        height: 350px;
    }
    
    .custom-marker {
        width: 25px !important;
        height: 25px !important;
    }
    
    .svg-marker img {
        width: 25px !important;
        height: 25px !important;
    }
    
    .marker-label-text {
        font-size: 10px !important;
        padding: 3px 6px !important;
        margin-left: 8px !important;
        margin-top: -10px !important;
        min-width: 80px !important;
    }
}

/* Büyük ekranlar için marker'ları büyüt */
@media (min-width: 1200px) {
    .custom-marker {
        width: 50px !important;
        height: 50px !important;
    }
    
    .svg-marker img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .marker-label-text {
        font-size: 15px !important;
        padding: 8px 12px !important;
        margin-left: 20px !important;
        margin-top: -20px !important;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 350px;
    }
}
