/* ===== ÜRÜN MARKER STİLLERİ ===== */
.custom-product-icon {
    background: transparent !important;
    border: none !important;
}

.product-marker {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #E30613;
    background: white;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: markerAppear 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0);
}

.product-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.5);
    border-width: 4px;
    z-index: 1000 !important;
}

.product-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-marker-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFCCCC 100%);
}

@keyframes markerAppear {
    0% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
    60% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== PRODUCT POPUP STİLLERİ ===== */
.product-popup {
    padding: 0;
    text-align: center;
    min-width: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.product-popup strong {
    color: #B30510;
    font-size: 0.95em;
    font-weight: 600;
    display: block;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 3px #fff;
    margin: 0;
    padding: 0;
}

.product-popup .badge {
    display: none;
}

/* ===== CITY TOOLTIP STİLLERİ ===== */
.city-tooltip {
    background: rgba(227, 6, 19, 0.95) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.city-tooltip::before {
    border-top-color: rgba(227, 6, 19, 0.95) !important;
}

/* ===== LEAFLET POPUP ÖZELLEŞTİRMESİ ===== */
.leaflet-popup-content-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    display: none !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== MADDE 1: Mavi dikdörtgeni kaldır ===== */
.leaflet-interactive:focus {
    outline: none !important;
}

.leaflet-container {
    outline: none !important;
}

.leaflet-zoom-box {
    display: none !important;
}

/* ===== FİLTRE ALANLARI (MADDE 7 & 8) ===== */
.search-wrapper {
    position: relative;
    width: 100%;
    grid-column: 1 / 2;
    min-width: 0;
}

.filters-wrapper {
    display: flex;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #E30613;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.clear-search-btn:hover {
    background: #B30510;
    transform: translateY(-50%) scale(1.1);
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: 0.9em;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.filter-select:hover {
    border-color: #E30613;
}

.apply-filter-btn,
.reset-filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.apply-filter-btn {
    background: #E30613;
    color: white;
}

.apply-filter-btn:hover {
    background: #B30510;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.reset-filter-btn {
    background: #f5f5f5;
    color: #666;
}

.reset-filter-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.apply-filter-btn:active,
.reset-filter-btn:active {
    transform: translateY(0);
}

/* ===== KOMPAKT BADGE'LER (MADDE 2) ===== */
.product-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.badge {
    background: var(--light-gray);
    color: var(--text-gray);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
}

.badge.city {
    background: var(--primary-red);
    color: white;
}

.badge.type {
    background: var(--dark-gray);
    color: white;
}

/* ===== ZOOM KONTROL STİLLERİ ===== */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-control-zoom a {
    border-radius: 8px !important;
    border: none !important;
    color: #E30613 !important;
    font-weight: bold !important;
}

.leaflet-control-zoom a:hover {
    background: #FFE5E5 !important;
    color: #E30613 !important;
}

/* ===== HARITA KONTEYNERİ GELİŞTİRMELERİ ===== */
#map {
    cursor: default;
}

.leaflet-interactive {
    cursor: pointer !important;
}

.leaflet-interactive:hover {
    stroke-width: 2;
}

/* ===== RESPONSİVE İYİLEŞTİRMELER ===== */
@media (max-width: 968px) {
    .search-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .filters-wrapper {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
        min-width: 0;
    }
    
    .action-buttons {
        width: 100%;
    }
    
    .apply-filter-btn,
    .reset-filter-btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .product-marker {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }
    
    .product-marker:hover {
        transform: scale(1.1);
    }
    
    .custom-product-icon {
        width: 52px !important;
        height: 52px !important;
    }
}

/* ===== LOADING OVERLAY ===== */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.map-loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #FFE5E5;
    border-top-color: #E30613;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== POPUP Z-INDEX FIX ===== */
.leaflet-popup {
    z-index: 1001 !important;
}

.leaflet-popup-pane {
    z-index: 1001 !important;
}

/* ===== MARKER HOVER Z-INDEX ===== */
.leaflet-marker-icon:hover {
    z-index: 1000 !important;
}