﻿
/* Harita için sadece karanlık tema engelleme */
.map-container, .map-content {
    color-scheme: light;
}

/* SABİT RESİM STİLLERİ - Resimler harita SVG'si içinde sabit kalır ve sayfa kaydırma ile hareket etmez */
.map-image-fixed {
    pointer-events: none; /* Resimlere tıklanamaz */
    user-select: none; /* Resimler seçilemez */
    cursor: default; /* Varsayılan cursor */
    /* HARİTA SVG'Sİ İÇİNDE SABİT KALMA İÇİN */
    position: relative; /* SVG içinde relative pozisyon */
    transform-origin: 0 0; /* Dönüş merkezi sol üst köşe */
    will-change: transform; /* Transform optimizasyonu */
    /* SAYFA KAYDIRMA İLE HAREKET ETMEMESİ İÇİN */
    transform: translateZ(0); /* GPU katmanı oluştur */
    backface-visibility: hidden; /* Arka yüzü gizle */
    perspective: 1000px; /* 3D perspektif */
}

.map-image-fixed image {
    pointer-events: none; /* Resim elementlerine tıklanamaz */
    user-select: none; /* Resim elementleri seçilemez */
    cursor: default; /* Varsayılan cursor */
    /* HARİTA SVG'Sİ İÇİNDE SABİT KALMA İÇİN */
    position: relative; /* SVG içinde relative pozisyon */
    transform-origin: 0 0; /* Dönüş merkezi sol üst köşe */
    /* SAYFA KAYDIRMA İLE HAREKET ETMEMESİ İÇİN */
    transform: translateZ(0); /* GPU katmanı oluştur */
    backface-visibility: hidden; /* Arka yüzü gizle */
}

.map-image-fixed text {
    pointer-events: none; /* Resim etiketlerine tıklanamaz */
    user-select: none; /* Resim etiketleri seçilemez */
    cursor: default; /* Varsayılan cursor */
    /* HARİTA SVG'Sİ İÇİNDE SABİT KALMA İÇİN */
    position: relative; /* SVG içinde relative pozisyon */
    transform-origin: 0 0; /* Dönüş merkezi sol üst köşe */
    /* SAYFA KAYDIRMA İLE HAREKET ETMEMESİ İÇİN */
    transform: translateZ(0); /* GPU katmanı oluştur */
    backface-visibility: hidden; /* Arka yüzü gizle */
}

/* Eski resim stilleri kaldırıldı - artık sabit resimler kullanılıyor */
.map-image {
    cursor: default; /* Varsayılan cursor */
    transition: none; /* Geçiş efekti yok */
}

/* ===== PROFESYONEL CUSTOM POPUP STİLLERİ ===== */
.professional-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.professional-popup.active {
    opacity: 1;
    visibility: visible;
}

.professional-popup-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.professional-popup.active .professional-popup-content {
    transform: scale(1);
}

.professional-popup-header {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.professional-popup-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.professional-popup-icon {
    font-size: 24px;
}

.professional-popup-body {
    padding: 30px;
    text-align: center;
}

.professional-popup-message {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.professional-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.professional-popup-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.professional-popup-btn.primary {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
}

.professional-popup-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.professional-popup-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.professional-popup-btn.secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.professional-popup-btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.professional-popup-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .professional-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .professional-popup-header {
        padding: 20px;
    }
    
    .professional-popup-title {
        font-size: 18px;
    }
    
    .professional-popup-body {
        padding: 20px;
    }
    
    .professional-popup-message {
        font-size: 14px;
    }
    
    .professional-popup-buttons {
        flex-direction: column;
    }
    
    .professional-popup-btn {
        width: 100%;
    }
}

/* ===== RESİM LİSTESİ PANELİ STİLLERİ ===== */
.image-list-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-list-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-list-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    max-height: 700px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-list-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.image-list-header {
    position: relative;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.image-list-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.image-list-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.image-list-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.image-list-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.image-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
    position: relative;
}

.image-item:hover {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.15);
}

.image-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.image-item-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.image-item-actions {
    display: flex;
    gap: 8px;
}

.image-item-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.image-item-btn.visibility {
    background: #ed1c24;
    color: white;
}

.image-item-btn.visibility:hover {
    background: #c41e3a;
    transform: scale(1.1);
}

.image-item-btn.delete {
    background: #dc3545;
    color: white;
}

.image-item-btn.delete:hover {
    background: #c82333;
    transform: scale(1.1);
}

.image-item-preview {
    width: 100%;
    height: 150px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.image-item-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-item-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.image-item-info-item {
    display: flex;
    justify-content: space-between;
}

.image-item-info-label {
    font-weight: 500;
}

.image-item-info-value {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .image-list-panel {
        width: 95%;
        height: 90vh;
        max-height: none;
    }
    
    .image-list-header {
        padding: 20px;
    }
    
    .image-list-title {
        font-size: 16px;
    }
    
    .image-list-content {
        padding: 20px;
    }
    
    .image-list-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== RESİM YÖNETİM PANELİ STİLLERİ - KALDIRILDI ===== */
/* Eski resim yönetim paneli kaldırıldı - artık sadece resim listesi paneli kullanılıyor */

/* ===== RESİM YÖNETİM PANELİ STİLLERİ - KALDIRILDI ===== */
/* Eski resim yönetim paneli kaldırıldı - artık sadece resim listesi paneli kullanılıyor */

/* ===== MAP IMAGE STYLES ===== */
.map-image:hover {
    opacity: 1.0; /* Hover efekti yok */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Mobile search bar under header ===== */
body[data-ui="mobile"] .search-bar {
    position: fixed;
    top: 65px;
    left: 12px;
    right: 12px;
    z-index: 2002;
    display: block;
}

body[data-ui="mobile"] .search-bar input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 15px;
    background: #fff;
}

/* ===== UI mode scoped layouts (mobile/tablet/web) ===== */
/* Mobile */
body[data-ui="mobile"] {
    height: 100%;
    overflow: hidden;
    background: #f7f8fa;
    font-family: "Inter", sans-serif;
}

body[data-ui="mobile"] .professional-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg,#ed1c24,#c41e3a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-weight: 600;
    z-index: 2000;
}

body[data-ui="mobile"] #mapContainer {
    position: absolute;
    top: 60px;
    bottom: 90px;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    touch-action: none;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
}

body[data-ui="mobile"] #mapSvg {
    width: 100% !important;
    height: 100% !important;
}

/* Floating Bottom Bar */
body[data-ui="mobile"] .bottom-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 2001;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

body[data-ui="mobile"] .bottom-toolbar button {
    flex: 1;
    margin: 0 8px;
    height: 48px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: #ed1c24;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body[data-ui="mobile"] .bottom-toolbar button:active {
    transform: scale(0.98);
    background: #8b1520;
}

body[data-ui="mobile"] .toolbar {
    display: none !important; /* üstteki küçük buton setini gizle */
}

/* Tablet */
body[data-ui="tablet"] {
    height: 100%;
    overflow: hidden;
    background: #f5f6f8;
}

body[data-ui="tablet"] .professional-header {
    height: 70px;
    background: linear-gradient(90deg,#a01a2e,#ed1c24);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body[data-ui="tablet"] #mapContainer {
    position: fixed;
    top: 70px;
    bottom: 80px;
    left: 12px;
    right: 12px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}

body[data-ui="tablet"] .bottom-toolbar {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    height: 70px;
    background: white;
    border-radius: 16px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

body[data-ui="tablet"] .bottom-toolbar button {
    background: #ed1c24;
    color: white;
    padding: 0 18px;
    height: 42px;
    border-radius: 12px;
    border: none;
    font-weight: 500;
}

/* Web resets */
body[data-ui="web"] .bottom-toolbar {
    display: none;
}
body[data-ui="web"] .toolbar {
    display: flex;
}

.map-container {
    position: fixed;
    inset: 0; /* Tam ekran */
    background: #f8f9fa;
    overflow: hidden; /* Transform için hidden */
    cursor: grab; /* Drag cursor */
    width: 100vw; /* Viewport genişlik */
    height: 100vh; /* Viewport yükseklik */
    /* SAYFA KAYDIRMA İLE HAREKET ETMEMESİ İÇİN */
    transform: translateZ(0); /* GPU katmanı oluştur */
    backface-visibility: hidden; /* Arka yüzü gizle */
    perspective: 1000px; /* 3D perspektif */
    will-change: transform; /* Transform optimizasyonu */
}

.map-container:active {
    cursor: grabbing; /* Dragging cursor */
}

/* SVG için kalite iyileştirmeleri */
.map-container svg {
    width: 100%;
    height: 100%;
    display: block;
    /* Kalite iyileştirmeleri */
    image-rendering: auto;
    image-rendering: pixelated;
    shape-rendering: geometricPrecision;
    text-rendering: optimizeLegibility;
    /* Anti-aliasing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* SVG kalite iyileştirmeleri */
    /* vector-effect: non-scaling-stroke; - SVG özelliği, CSS'de geçerli değil */
    /* Grid görünürlüğü */
    background-color: #f8f9fa;
    /* Tam ekran boyutlandırma */
    min-width: 100%;
    min-height: 100%;
    /* SAYFA KAYDIRMA İLE HAREKET ETMEMESİ İÇİN */
    transform: translateZ(0); /* GPU katmanı oluştur */
    backface-visibility: hidden; /* Arka yüzü gizle */
    perspective: 1000px; /* 3D perspektif */
    will-change: transform; /* Transform optimizasyonu */
}

/* ===== PROFESYONEL HEADER TASARIMI ===== */
.professional-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1e3c72 0%, #ed1c24 50%, #ed1c24 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    height: 60px;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.professional-header:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

/* Logo Bölümü */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-logo:hover {
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.header-logo i {
    font-size: 28px;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-image {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.3)); }
    100% { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 16px rgba(255, 215, 0, 0.6)); }
}

/* Arama Bölümü - Kompakt Tasarım */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
    position: relative;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 400;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.search-input:focus + .search-icon {
    color: #ffd700;
}

.search-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Arama Sonuçları - İyileştirilmiş Tasarım */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    padding: 8px;
}

.search-result-item {
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.5);
}

.search-result-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.search-result-subtitle {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.search-result-number {
    color: #ed1c24;
    font-size: 12px;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

.search-result-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    flex-shrink: 0;
    min-width: 80px;
    justify-content: center;
}

/* Tümünü Gör Butonu */
.search-result-more {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.search-result-more:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.search-result-more .search-result-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.search-result-more .search-result-title {
    color: white;
    font-weight: 800;
}

.search-result-more .search-result-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.search-result-more .search-result-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Kapatma Butonu */
.search-result-close {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.search-result-close:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(220, 53, 69, 0.4);
}

.search-result-close .search-result-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.search-result-close .search-result-title {
    color: white;
    font-weight: 800;
}

.search-result-close .search-result-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.search-result-close .search-result-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Aksiyon Butonları */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.route-select-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.route-search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.route-search-icon {
    color: #ffd700;
    font-size: 14px;
}

.route-search-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 500;
    width: 100px;
    padding: 3px 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.route-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.route-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Header Butonları - Kompakt */
.header-actions .btn {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.header-actions .btn:active {
    transform: translateY(0);
}

.header-actions .btn i {
    margin-right: 6px;
    font-size: 14px;
}

/* Özel Buton Stilleri */
.btn-outline-primary {
    border-color: #ffd700 !important;
    color: #ffd700 !important;
}

.btn-outline-primary:hover {
    background: #ffd700 !important;
    color: #1e3c72 !important;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.btn-outline-info {
    border-color: #ed1c24 !important;
    color: #ed1c24 !important;
}

.btn-outline-info:hover {
    background: #ed1c24 !important;
    color: white !important;
}

    .header-search .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
        z-index: 1;
    }

    .header-search .search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 15px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        margin-top: 5px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 1001;
        display: none;
    }

        .header-search .search-results.show {
            display: block;
        }

    .header-search .search-result-item {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .header-search .search-result-item:hover {
            background: #f8f9fa;
            transform: translateX(5px);
        }

        .header-search .search-result-item:last-child {
            border-bottom: none;
        }

    .header-search .search-result-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ed1c24, #c41e3a);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 16px;
    }

    .header-search .search-result-info h6 {
        margin: 0;
        color: #333;
        font-weight: 600;
    }

    .header-search .search-result-info p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

    .header-actions .route-select-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid transparent;
        border-radius: 20px;
        padding: 8px 12px;
        transition: all 0.3s ease;
    }

        .header-actions .route-select-wrapper:hover {
            background: white;
            border-color: #ffd700;
            box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
        }

    .header-actions .route-select-icon {
        margin-right: 8px;
        color: #666;
        font-size: 14px;
    }

    .header-actions .route-search-container {
        position: relative;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        padding: 6px 12px;
        min-width: 150px;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

        .header-actions .route-search-container:hover {
            border-color: rgba(255, 255, 255, 0.6);
            background: rgba(255, 255, 255, 0.98);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .header-actions .route-search-container:focus-within {
            border-color: #ed1c24;
            background: white;
            box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
        }

    .header-actions .route-search-icon {
        color: #ed1c24;
        margin-right: 8px;
        font-size: 12px;
    }

    .header-actions .route-search-input {
        border: none;
        background: transparent;
        color: #333;
        font-size: 12px;
        outline: none;
        flex: 1;
        padding: 0;
    }

        .header-actions .route-search-input::placeholder {
            color: #999;
        }

    .header-actions .route-search-clear {
        color: #999;
        cursor: pointer;
        margin-left: 8px;
        padding: 2px;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

        .header-actions .route-search-clear:hover {
            color: #dc3545;
            background: rgba(220, 53, 69, 0.1);
        }

    .header-actions .route-search-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        max-height: 250px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
        margin-top: 5px;
    }

        .header-actions .route-search-dropdown.show {
            display: block;
        }

    .header-actions .route-search-dropdown-item {
        padding: 12px 15px;
        cursor: pointer;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .header-actions .route-search-dropdown-item:hover {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            transform: translateX(2px);
        }

        .header-actions .route-search-dropdown-item:last-child {
            border-bottom: none;
        }

        .header-actions .route-search-dropdown-item.selected {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            color: #1976d2;
            font-weight: 600;
        }

        .header-actions .route-search-dropdown-item .stand-icon {
            color: #ed1c24;
            font-size: 16px;
        }

    .header-actions .btn {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        transition: all 0.3s ease;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 12px;
    }

        .header-actions .btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

    .header-actions .btn-primary {
        background: linear-gradient(135deg, #ffd700, #ff6b6b);
        border: none;
        color: white;
        font-weight: 600;
    }

        .header-actions .btn-primary:hover {
            background: linear-gradient(135deg, #ffed4e, #ff5252);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
        }

    .header-actions .btn {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        transition: all 0.3s ease;
    }

        .header-actions .btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }

.floating-controls {
    position: fixed;
    top: 80px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: none;
}

.search-container {
    flex: 1;
    max-width: 400px;
    margin-right: 20px;
    position: relative;
}

/* Profesyonel Arama Stili */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .search-wrapper:focus-within {
        border-color: #ed1c24;
        box-shadow: 0 4px 20px rgba(237, 28, 36, 0.2);
        transform: translateY(-1px);
    }

.search-icon {
    color: #6c757d;
    margin-right: 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.search-wrapper:focus-within .search-icon {
    color: #ed1c24;
}

.search-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    flex: 1;
    font-size: 14px;
    color: #495057;
}

    .search-input::placeholder {
        color: #adb5bd;
        font-style: italic;
    }

/* Arama SonuÃ§larÄ± Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

    .search-results.show {
        display: block;
    }

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .search-result-item:hover {
        background: #f8f9fa;
        color: #ed1c24;
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

.search-result-icon {
    color: #6c757d;
    font-size: 16px;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 2px;
}

.search-result-subtitle {
    font-size: 12px;
    color: #6c757d;
}

.search-result-badge {
    background: #ed1c24;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.route-container {
    margin-right: 20px;
}

/* Profesyonel Yol Tarifi Stili */
.route-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .route-wrapper:hover {
        border-color: #ed1c24;
        box-shadow: 0 4px 20px rgba(237, 28, 36, 0.15);
    }

.route-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

    .route-select-wrapper:hover {
        background: #e9ecef;
    }

    .route-select-wrapper:focus-within {
        background: #e3f2fd;
        box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.2);
    }

.route-select-icon {
    color: #6c757d;
    margin-right: 8px;
    font-size: 12px;
    transition: color 0.3s ease;
}

.route-select-wrapper:focus-within .route-select-icon {
    color: #ed1c24;
}

.route-select {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    min-width: 140px;
    font-size: 13px;
    color: #495057;
    padding: 0;
}

    .route-select option {
        padding: 8px 12px;
    }

.route-arrow {
    color: #ed1c24;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.route-wrapper:hover .route-arrow {
    background: #e3f2fd;
    transform: scale(1.1);
}

.route-btn {
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-width: 100px;
}

    .route-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
    }

    .route-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.main-controls {
    display: flex;
    gap: 8px;
}

    .main-controls .btn {
        border-radius: 8px;
    }

.canvas {
    position: absolute;
    inset: 0;
    background: #ffffff;
    margin-top: 60px;
}

.map-svg {
    width: 100%;
    height: 100%;
    pointer-events: all;
    z-index: 1;
}

.stand, .road, .wall, .empty-area {
    pointer-events: all;
}

.stand-rect {
    /* Fill rengi SQL'den gelir - CSS'de override etme */
    stroke: #333;
    stroke-width: 2;
    cursor: pointer;
    transition: all .2s;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
    z-index: 10;
}

/* Harita sÄ±nÄ±rÄ± - beyaz arka planla uyumlu (stantlardan hariÃ§) */
.map-svg rect:not(.stand-rect) {
    fill: #ffffff !important;
}

.stand-rect:hover {
    stroke: #1e3a8a;
    stroke-width: 3;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Stant odaklama ve zoom için parlaması */
.route-highlight .stand-rect {
    stroke: #ff6b6b !important;
    stroke-width: 5 !important;
    filter: drop-shadow(0 0 12px #ff6b6b);
    animation: standFocusPulse 2s ease-in-out infinite;
}

.route-highlight .stand-text {
    font-weight: 900 !important;
    fill: #ff6b6b !important;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.8);
}

.route-highlight .stand-number {
    font-weight: 900 !important;
    fill: #ff6b6b !important;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.8);
}

@keyframes standFocusPulse {
    0% { 
        filter: drop-shadow(0 0 8px #ff6b6b);
        stroke-width: 5;
    }
    50% { 
        filter: drop-shadow(0 0 16px #ff6b6b);
        stroke-width: 6;
    }
    100% { 
        filter: drop-shadow(0 0 8px #ff6b6b);
        stroke-width: 5;
    }
}

@keyframes routePulse {
    0% {
        filter: drop-shadow(0 0 8px #ff6b6b);
    }

    100% {
        filter: drop-shadow(0 0 16px #ff6b6b);
    }
}

.stand.search-highlight {
    stroke: #ffd700 !important;
    stroke-width: 4px !important;
    animation: searchPulse 0.5s ease-in-out;
    filter: drop-shadow(0 0 10px #ffd700);
}

/* Stand rect fill rengi SQL'den gelir - CSS'de override etme */
.stand rect {
    /* fill: #4a90e2; - KALDIRILDI: SQL'den renk gelir */
    opacity: 0.9;
    /* rx: 6; ry: 6; - SVG özellikleri, CSS'de geçerli değil */
}

.handle {
    fill: #fff;
    stroke: #4a90e2;
    stroke-width: 1;
    cursor: nwse-resize;
}

.stand.dragging rect {
    opacity: 0.8;
}

.stand.resizing rect {
    opacity: 0.8;
}

.label-bg {
    fill: #111827;
    stroke: #4a5568;
    stroke-width: 1;
    /* rx: 6; ry: 6; - SVG özellikleri, CSS'de geçerli değil */
}

.label-txt {
    fill: #e5e7eb;
    font: 14px system-ui, -apple-system, Segoe UI, Arial;
}

@keyframes searchPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.stand-text {
    font-size: 13px;
    font-weight: 700;
    fill: #fff;
    text-anchor: middle;
    /* dominant-baseline: middle; - SVG özelliği, CSS'de geçerli değil */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    z-index: 11;
}

.stand-description {
    font-size: 10px;
    font-weight: 400;
    fill: #fff;
    text-anchor: middle;
    /* dominant-baseline: middle; - SVG özelliği, CSS'de geçerli değil */
    opacity: 0.8;
}

.stand-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Resim tıklanamaz */
    user-select: none; /* Resim seçilemez */
}

    .stand-image:hover {
        opacity: 0.9 !important;
    }

/* Resim yükleme butonu */
#tbLoadImages {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
    margin: 5px;
}

#tbLoadImages:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #a01a2e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

#tbLoadImages:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

#tbLoadImages i {
    margin-right: 8px;
    font-size: 16px;
}

.stand.selected .stand-rect {
    stroke-width: 5;
    stroke: #28a745;
    filter: drop-shadow(0 0 20px #28a745);
    animation: selectedStandPulse 2s ease-in-out infinite;
}

/* Seçili stantın border parlaması - SVG için */
.stand.selected {
    filter: drop-shadow(0 0 25px #28a745);
    animation: borderGlow 1.5s ease-in-out infinite alternate;
}

/* Border parlaması animasyonu - SVG için */
@keyframes borderGlow {
    0% {
        filter: drop-shadow(0 0 20px #28a745);
    }
    100% {
        filter: drop-shadow(0 0 30px #28a745);
    }
}

/* Köşe parlaması circle'ları kaldırıldı - sadece border parlaması */

/* Seçili stant pulse animasyonu */
@keyframes selectedStandPulse {
    0% {
        filter: drop-shadow(0 0 10px #28a745);
    }
    50% {
        filter: drop-shadow(0 0 20px #28a745);
    }
    100% {
        filter: drop-shadow(0 0 10px #28a745);
    }
}

.road {
    cursor: pointer;
    transition: all .2s;
}

    .road:hover {
        opacity: 1;
        stroke-width: 2;
    }

    .road.selected {
        stroke: #ff6b6b;
        stroke-width: 2;
    }

    .road.area {
        fill: #9ca3af;
        stroke: #6b7280;
    }

    .road.path {
        stroke-dasharray: 5,5;
    }

    .road.walkway {
        stroke-dasharray: 2,2;
    }

.wall {
    cursor: pointer;
    transition: all .2s;
}

    .wall:hover {
        stroke-width: 6;
        opacity: 0.8;
    }

    .wall.selected {
        stroke: #ff6b6b;
        stroke-width: 4;
    }

.empty-area {
    cursor: pointer;
    transition: all .2s;
}

    .empty-area:hover {
        opacity: 1;
        stroke-width: 2;
    }

    .empty-area.selected {
        stroke: #ff6b6b;
        stroke-width: 2;
    }

.road-drawing {
    stroke: #ff6b6b;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.tool-btn.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.panel {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1001;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    padding: 14px;
    width: 340px;
    display: none;
}

    .panel.show {
        display: block;
    }

    .panel .badge {
        text-transform: capitalize;
    }

/* Toolbar - solda dikey */
.toolbar {
    position: fixed;
    top: 85px;
    left: 15px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toolbar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 4px 0;
}

/* Ã‡etvel ve Izgara Stilleri */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.grid-line {
    stroke: #666666;
    stroke-width: 1;
    opacity: 0.7;
}

.ruler-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.ruler-line {
    stroke: #ff6b6b;
    stroke-width: 2;
    stroke-dasharray: 5,5;
}

.ruler-text {
    font-family: Arial, sans-serif;
    font-size: 12px;
    fill: #ff6b6b;
    font-weight: bold;
}

.measurement-line {
    stroke: #4ecdc4;
    stroke-width: 2;
    stroke-dasharray: 3,3;
}

.measurement-text {
    font-family: Arial, sans-serif;
    font-size: 11px;
    fill: #4ecdc4;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
}

.tool-btn.active {
    background: #ed1c24 !important;
    color: white !important;
    transform: scale(1.05);
}

/* SVG Ä°Ã§i Ã‡etvel Stilleri */
.svg-ruler-line {
    stroke: #6c757d;
    stroke-width: 1;
    opacity: 0.8;
}

    .svg-ruler-line.major {
        stroke: #212529;
        stroke-width: 2;
        opacity: 1;
    }

.svg-ruler-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    fill: #495057;
    font-weight: bold;
}

    .svg-ruler-text.major {
        font-size: 14px;
        fill: #212529;
        font-weight: bold;
    }

.svg-ruler-background {
    fill: rgba(248, 249, 250, 0.9);
    stroke: #dee2e6;
    stroke-width: 2;
}

.svg-ruler-corner {
    fill: #495057;
    stroke: #dee2e6;
    stroke-width: 2;
}

.svg-ruler-corner-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    fill: white;
    font-weight: bold;
}

.tool-btn {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

    .tool-btn::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: left 0.5s;
    }

    .tool-btn:hover::before {
        left: 100%;
    }

    .tool-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .tool-btn.active {
        background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
        transform: scale(1.05);
    }

    .tool-btn:active {
        transform: scale(0.95);
    }

.zoom-controls {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zoom-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #ed1c24;
    font-size: 1.2rem;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

    .zoom-btn:hover {
        background: #ed1c24;
        color: #fff;
    }

.zoom-fit {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

    .zoom-fit:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
        transform: scale(1.05);
    }

.edit-handle {
    fill: #fff;
    stroke: #ed1c24;
    stroke-width: 2;
    cursor: nwse-resize;
    display: none !important; /* Köşe handle'ları tamamen gizle */
}

/* Resize handle'ları için stil */
.resize-handle {
    cursor: pointer;
    transition: all 0.2s ease;
    fill: #ed1c24;
    stroke: #ffffff;
    stroke-width: 2;
    /* r: 6; - SVG özelliği, CSS'de geçerli değil */
    opacity: 0.9;
}

.resize-handle:hover {
    /* r: 8; - SVG özelliği, CSS'de geçerli değil */
    fill: #1e3a8a;
    stroke-width: 3;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Snap feedback için özel stil */
.resize-handle.snapping {
    fill: #28a745;
    stroke: #ffffff;
    stroke-width: 3;
    /* r: 8; - SVG özelliği, CSS'de geçerli değil */
    animation: snapPulse 0.3s ease-in-out;
}

@keyframes snapPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.stand.selected .edit-handle {
    display: none !important; /* Seçili stantlarda da gizle */
}

/* Stant Edit Tools */
.stand-edit-tools {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1003;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: none;
    display: none;
}

    .stand-edit-tools.show {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .stand-edit-tools .btn {
        border-radius: 8px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }

/* Yol Tarifi Stilleri */
.route-line {
    stroke: #ff6b6b;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 5,5;
    animation: dash 1s linear infinite;
}

.route-start {
    fill: #4ecdc4;
    stroke: #fff;
    stroke-width: 2;
}

.route-end {
    fill: #ff6b6b;
    stroke: #fff;
    stroke-width: 2;
}

.route-marker {
    fill: #ffd93d;
    stroke: #333;
    stroke-width: 1;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

/* Size-info-popup kaldırıldı - gereksiz */

.coordinate-display {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    color: #ed1c24;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(237, 28, 36, 0.2);
    display: none;
    z-index: 1500;
}

    .coordinate-display.show {
        display: block;
    }

/* Yol Tarifi Bilgi Ã‡ubuÄŸu */
.route-info {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ed1c24, #c41e3a);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
    z-index: 1001;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.route-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Yeni elementler iÃ§in CSS */
.wall {
    stroke: #8B4513;
    stroke-width: 4;
    stroke-linecap: round;
}

.marker {
    fill: #ff0000;
    stroke: #ffffff;
    stroke-width: 2;
}

.road-drawing {
    stroke: #ff6b6b;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-btn.active {
    background-color: #dc3545;
    color: white;
}

/* Stant Popup Stili */
.stand-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #ed1c24;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    padding: 20px;
    min-width: 300px;
    max-width: 500px;
    z-index: 2000;
    display: none;
}

    .stand-popup.show {
        display: block;
    }

.stand-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.stand-popup-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ed1c24;
}

.stand-popup-close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stand-popup-content {
    margin-bottom: 15px;
}

.stand-popup-info {
    margin-bottom: 10px;
}

.stand-popup-label {
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
}

.stand-popup-value {
    color: #333;
    margin-left: 10px;
}

/* Misafir Stant Bilgi Popup Stilleri */
.guest-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none; /* Başlangıçta gizli - sadece stant tıklayınca açılsın */
    justify-content: center;
    align-items: center;
}

.guest-popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.guest-popup-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ed1c24, #1e3a8a);
    color: white;
    border-radius: 12px 12px 0 0;
}

    .guest-popup-header h4 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .guest-popup-header .btn-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s;
    }

        .guest-popup-header .btn-close:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

.guest-popup-body {
    padding: 20px;
}

.stand-info-section {
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

    .info-row:last-child {
        border-bottom: none;
    }

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.info-value {
    color: #212529;
    text-align: right;
    flex: 1;
    margin-left: 15px;
}

.route-section {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

    .route-section h5 {
        color: #ed1c24;
        margin-bottom: 15px;
        font-weight: 600;
    }

.route-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

    .route-buttons .btn {
        flex: 1;
        min-width: 120px;
    }

.route-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #ed1c24;
}

.stand-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

    .stand-popup-overlay.show {
        display: block;
    }

@media (max-width: 768px) {
    /* Mobile iÃ§in sade tasarÄ±m */
    .floating-controls {
        display: none; /* Desktop kontrolleri gizle */
    }

    .toolbar {
        display: none; /* Desktop toolbar gizle */
    }

    #layersPanel {
        display: none; /* Desktop katmanlar paneli gizle */
    }

    .main-controls {
        display: none; /* Desktop ana kontrolleri gizle */
    }

    .route-container {
        display: none; /* Desktop yol tarifi gizle */
    }

    .panel {
        width: calc(100% - 20px);
        margin: 10px;
        font-size: 14px;
    }

    .stand-edit-tools {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 8px;
    }

        .stand-edit-tools .btn {
            flex: 1;
            min-width: 70px;
            font-size: 11px;
            padding: 6px 4px;
        }

    .map-container {
        padding-top: 0; /* Ãœst padding kaldÄ±r */
    }

    .canvas {
        top: 0; /* Canvas Ã¼stten baÅŸlasÄ±n */
    }
    /* Mobile iÃ§in sade yol tarifi butonu */
    .route-finder-btn {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1003;
        background: #ed1c24;
        color: white;
        border: none;
        border-radius: 50px;
        padding: 18px 30px;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        min-width: 200px;
        justify-content: center;
    }

        .route-finder-btn:hover {
            transform: translateX(-50%) translateY(-2px);
            box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
        }

        .route-finder-btn.active {
            background: #dc3545;
        }
    /* Mobile iÃ§in sade arama */
    .mobile-search {
        position: fixed;
        top: 20px;
        left: 20px;
        right: 20px;
        z-index: 1001;
        background: white;
        border-radius: 25px;
        padding: 12px 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .mobile-search input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 16px;
            background: transparent;
        }

    .mobile-search-icon {
        color: #6c757d;
        font-size: 18px;
    }
    /* Mobile Yol Tarifi Modal */
    .mobile-route-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .mobile-route-content {
        background: white;
        border-radius: 20px;
        width: 100%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .mobile-route-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 20px 0 20px;
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
    }

        .mobile-route-header h3 {
            margin: 0;
            color: #ed1c24;
            font-size: 20px;
            font-weight: 600;
        }

    .mobile-route-close {
        background: none;
        border: none;
        font-size: 20px;
        color: #6c757d;
        cursor: pointer;
        padding: 5px;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .mobile-route-close:hover {
            background: #f8f9fa;
            color: #dc3545;
        }

    .mobile-route-body {
        padding: 0 20px 20px 20px;
    }

    .mobile-route-step {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .step-icon {
        background: #ed1c24;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    .step-content {
        flex: 1;
    }

        .step-content h4 {
            margin: 0 0 15px 0;
            color: #333;
            font-size: 16px;
            font-weight: 600;
        }

    .stand-search {
        position: relative;
    }

        .stand-search input {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 16px;
            outline: none;
            transition: border-color 0.3s ease;
        }

            .stand-search input:focus {
                border-color: #ed1c24;
            }

    .stand-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 0 0 10px 10px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1001;
        display: none;
    }

        .stand-list.show {
            display: block;
        }

    .stand-item {
        padding: 12px 15px;
        border-bottom: 1px solid #f8f9fa;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .stand-item:hover {
            background: #f8f9fa;
        }

        .stand-item:last-child {
            border-bottom: none;
        }

    .stand-item-name {
        font-weight: 600;
        color: #333;
        margin-bottom: 2px;
    }

    .stand-item-desc {
        font-size: 12px;
        color: #6c757d;
    }

    .route-summary {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .route-from, .route-to {
        margin-bottom: 8px;
    }

        .route-from:last-child, .route-to:last-child {
            margin-bottom: 0;
        }

    .mobile-find-btn {
        width: 100%;
        background: #ed1c24;
        color: white;
        border: none;
        border-radius: 10px;
        padding: 15px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

        .mobile-find-btn:hover {
            background: #1e3a8a;
            transform: translateY(-1px);
        }

    .mobile-route-actions {
        margin-top: 15px;
    }

    .mobile-route-clear {
        margin-top: 15px;
        text-align: center;
    }

    .mobile-clear-btn {
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 10px;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
        width: 100%;
    }

        .mobile-clear-btn:hover {
            background: #c82333;
            transform: translateY(-1px);
        }
/* ===== MOBİL UYUMLU TASARIM ===== */
/* Mobil cihazlarda profesyonel kullanım için optimizasyonlar */

/* Mobil cihaz algılama */
@media (max-width: 768px) {
    /* Mobilde editörün açılmasını engelle */
    .mobile-mode .toolbar,
    .mobile-mode .bottom-toolbar,
    .mobile-mode .stand-edit-tools,
    .mobile-mode #layersPanel,
    .mobile-mode .main-controls {
        display: none !important;
    }
    
    /* Mobilde admin butonlarını gizle */
    .mobile-mode .btn[title*="Resim"],
    .mobile-mode .btn[title*="Toolbar"],
    .mobile-mode .btn[title*="Katman"],
    .mobile-mode #imageManagementBtn,
    .mobile-mode #layerToggleBtn,
    .mobile-mode #toolbarToggleBtn {
        display: none !important;
    }
    
    /* Mobilde header actions'ı tamamen gizle - sadece arama kalacak */
    .mobile-mode .header-actions {
        display: none !important;
    }
    
    /* Mobilde yol tarifi kontrollerini gizle */
    .mobile-mode .route-select-wrapper,
    .mobile-mode #findRouteBtn {
        display: none !important;
    }
    
    /* Mobilde header'ı düzenle - geri butonu ile */
    .mobile-mode .professional-header {
        height: auto;
        min-height: 70px;
        padding: 10px 0;
    }
    
    .mobile-mode .header-content {
        flex-direction: row;
        gap: 8px;
        padding: 10px 12px;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-mode .header-logo {
        font-size: 12px;
        flex-shrink: 0;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-mode .header-search {
        flex: 1;
        max-width: none;
        margin: 0 8px;
    }
    
    /* Mobilde geri butonu */
    .mobile-mode .mobile-back-btn {
        background: linear-gradient(135deg, #6c757d, #5a6268);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .mobile-mode .mobile-back-btn:hover {
        background: linear-gradient(135deg, #5a6268, #495057);
        transform: translateY(-1px);
    }
    
    /* Mobilde arama input'unu büyüt */
    .mobile-mode .search-input {
        font-size: 16px; /* iOS zoom önleme */
        padding: 12px 16px 12px 40px;
        border-radius: 25px;
    }
    
    /* Mobilde stant popup'ını optimize et */
    .mobile-mode .stand-popup,
    .mobile-mode .guest-popup {
        width: 95%;
        max-width: 400px;
        margin: 20px;
        border-radius: 15px;
    }
    
    .mobile-mode .stand-popup-header,
    .mobile-mode .guest-popup-header {
        padding: 15px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .mobile-mode .stand-popup-content,
    .mobile-mode .guest-popup-body {
        padding: 20px;
    }
    
    /* Mobilde zoom kontrollerini optimize et */
    .mobile-mode .zoom-controls {
        bottom: 20px;
        right: 20px;
        gap: 6px;
    }
    
    .mobile-mode .zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    /* Mobilde canvas'ı tam ekran yap */
    .mobile-mode .canvas {
        top: 0;
        margin-top: 0;
    }
    
    /* Mobilde map container'ı optimize et */
    .mobile-mode .map-container {
        padding-top: 0;
        overflow: hidden;
    }
    
    /* Mobilde stantlara dokunma optimizasyonu */
    .mobile-mode .stand-rect {
        stroke-width: 2;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-mode .stand-rect:hover {
        stroke-width: 3;
        filter: drop-shadow(0 0 8px rgba(42, 82, 152, 0.6));
    }
    
    /* Mobilde stant metinlerini büyüt */
    .mobile-mode .stand-text {
        font-size: 14px;
        font-weight: 700;
    }
    
    .mobile-mode .stand-number {
        font-size: 16px;
        font-weight: 800;
    }
    
    /* Mobilde performans optimizasyonları */
    .mobile-mode .map-svg {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Mobilde dokunma olaylarını optimize et */
    .mobile-mode .stand {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        pointer-events: all; /* Mobilde tıklanabilir olması için */
    }
    
    .mobile-mode .stand-rect {
        pointer-events: all; /* Mobilde rect'e tıklanabilir olması için */
        cursor: pointer;
    }
    
    /* Mobilde scroll performansını artır */
    .mobile-mode .map-container {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Mobilde sadece yol tarifi butonu - altta sabit */
    .mobile-mode .mobile-route-button {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1003;
        background: linear-gradient(135deg, #ed1c24, #1e3c72);
        color: white;
        border: none;
        border-radius: 50px;
        padding: 16px 32px;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
        min-width: 200px;
        justify-content: center;
        cursor: pointer;
    }
    
    .mobile-mode .mobile-route-button:hover {
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 8px 25px rgba(42, 82, 152, 0.5);
    }
    
    .mobile-mode .mobile-route-button.active {
        background: linear-gradient(135deg, #dc3545, #c82333);
    }
}

/* Küçük ekranlar için ek optimizasyonlar */
@media (max-width: 480px) {
    .mobile-mode .professional-header {
        min-height: 45px;
    }
    
    .mobile-mode .header-content {
        padding: 6px 12px;
        gap: 6px;
    }
    
    .mobile-mode .header-logo {
        font-size: 12px;
    }
    
    .mobile-mode .search-input {
        font-size: 16px;
        padding: 10px 14px 10px 36px;
    }
    
    .mobile-mode .header-actions .btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .mobile-mode .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Mobilde zoom geri butonu */
    .mobile-mode .mobile-zoom-back-btn {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        margin-bottom: 8px;
    }
    
    .mobile-mode .mobile-zoom-back-btn:hover {
        background: linear-gradient(135deg, #c82333, #a71e2a);
        transform: scale(1.1);
    }
    
    .mobile-mode .stand-text {
        font-size: 12px;
    }
    
    .mobile-mode .stand-number {
        font-size: 14px;
    }
}

/* ===== RESPONSIVE TASARIM ===== */
@media (max-width: 1200px) {
    .header-content {
        padding: 6px 16px;
    }
    
    .header-search {
        max-width: 350px;
        margin: 0 16px;
    }
    
    .route-search-input {
        width: 90px;
    }
}

@media (max-width: 768px) {
    .professional-header {
        height: auto;
        min-height: 60px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .header-logo {
        font-size: 16px;
    }
    
    .header-logo i {
        font-size: 20px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .header-search {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .search-input {
        font-size: 16px; /* iOS zoom önleme */
        padding: 10px 14px 10px 36px;
    }
    
    .search-results {
        margin-top: 8px;
        padding: 6px;
    }
    
    .search-result-item {
        padding: 12px;
        gap: 12px;
    }
    
    .search-result-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .search-result-title {
        font-size: 14px;
    }
    
    .search-result-subtitle {
        font-size: 12px;
    }
    
    .search-result-badge {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .route-select-wrapper {
        flex-direction: column;
        gap: 4px;
        padding: 4px 8px;
    }
    
    .route-search-input {
        width: 120px;
        text-align: center;
    }
    
    .header-actions .btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .professional-header {
        min-height: 50px;
    }
    
    .header-content {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .header-logo {
        font-size: 14px;
    }
    
    .header-logo i {
        font-size: 18px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .search-input {
        padding: 8px 12px 8px 32px;
        font-size: 16px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .header-actions .btn {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .route-select-wrapper {
        padding: 3px 6px;
    }
    
    .route-search-input {
        width: 100px;
        font-size: 11px;
    }
}

        .route-select-wrapper {
            min-width: 120px;
        }

        .route-input {
            min-width: 120px;
            font-size: 12px;
        }

        .toolbar {
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            flex-direction: column;
            gap: 8px;
        }

        .tool-btn {
            width: 40px;
            height: 40px;
            font-size: 14px;
        }

        .stand-edit-tools {
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            flex-direction: row;
            gap: 10px;
        }

        .layers-panel {
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 200px;
        }

        .mobile-route-modal .modal-dialog {
            margin: 10px;
            max-width: calc(100% - 20px);
        }

        .mobile-stand-popup {
            width: 90%;
            max-width: 400px;
        }
    }

    @media (max-width: 480px) {
        .professional-header {
            padding: 8px 10px;
        }

        .header-logo {
            font-size: 18px;
        }

        .search-input {
            font-size: 14px;
            padding: 8px 12px;
        }

        .route-input {
            min-width: 100px;
            font-size: 11px;
            padding: 6px 8px;
        }

        .toolbar {
            left: 5px;
            gap: 6px;
        }

        .tool-btn {
            width: 35px;
            height: 35px;
            font-size: 12px;
        }

        .layers-panel {
            width: 180px;
            left: 5px;
        }

        .mobile-route-modal .modal-dialog {
            margin: 5px;
            max-width: calc(100% - 10px);
        }

        .mobile-stand-popup {
            width: 95%;
            max-width: 350px;
        }
    }
    /* Mobile Stant Popup */
    .mobile-stand-popup {
        position: fixed;
        bottom: 100px;
        left: 20px;
        right: 20px;
        background: white;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        z-index: 1500;
        display: none;
        animation: slideUp 0.3s ease;
    }

        .mobile-stand-popup.show {
            display: block;
        }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .mobile-popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .mobile-popup-title {
        font-size: 18px;
        font-weight: 600;
        color: #ed1c24;
    }

    .mobile-popup-close {
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-popup-content {
        margin-bottom: 15px;
    }

    .mobile-popup-info {
        margin-bottom: 8px;
        display: flex;
        justify-content: space-between;
    }

    .mobile-popup-label {
        font-weight: 600;
        color: #666;
        font-size: 14px;
    }

    .mobile-popup-value {
        color: #333;
        font-size: 14px;
        text-align: right;
        flex: 1;
        margin-left: 10px;
    }

    .mobile-popup-actions {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }

    .mobile-popup-btn {
        flex: 1;
        padding: 10px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .mobile-popup-btn.primary {
            background: #ed1c24;
            color: white;
        }

        .mobile-popup-btn.secondary {
            background: #6c757d;
            color: white;
        }

        .mobile-popup-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }


@media (max-width: 480px) {
    .floating-controls {
        padding: 8px;
    }

    .search-wrapper {
        padding: 6px 12px;
    }

    .route-wrapper {
        padding: 8px;
    }

    .route-select {
        min-width: 100px;
        font-size: 12px;
    }

    .route-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .toolbar .btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .route-finder-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* Professional Bottom Toolbar */
.bottom-toolbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    background: linear-gradient(135deg, #1e3c72 0%, #ed1c24 100%);
    border-radius: 20px;
    padding: 0;
    display: none;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    z-index: 2000;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    min-width: 700px;
    max-width: 95vw;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.bottom-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.bottom-toolbar.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    animation: toolbarSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toolbarSlideUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.bt-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Bilgiler sol, butonlar sağ */
    padding: 20px 28px;
    width: 100%;
    position: relative;
}

.bt-info {
    display: flex !important; /* Genişlik ve pozisyon bilgileri için aktif */
    flex-direction: row;
    gap: 16px;
    flex: 1;
    align-items: center;
    margin-right: 20px;
}

.bt-dimensions {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bt-dim-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bt-dim-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    min-width: 40px;
    text-align: center;
}

.bt-dim-unit {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.bt-title {
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.bt-subtitle {
    font-weight: 400;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bt-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 110px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bt-btn::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: left 0.5s ease;
}

.bt-btn:hover::before {
    left: 100%;
}

.bt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.bt-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bt-btn i {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.bt-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bt-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.bt-btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    border: 1px solid rgba(107, 114, 128, 0.3);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.bt-btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.bt-btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.bt-btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.bt-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bt-btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.bt-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* İptal butonu için özel stil - her zaman aktif ve belirgin */
.bt-btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(108, 117, 125, 0.3) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
    opacity: 1 !important; /* Her zaman tam opak */
}

.bt-btn-cancel:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4) !important;
    transform: translateY(-2px) !important;
}

.bt-btn-cancel:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.bt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

/* Map Image Stilleri */
.map-image {
    pointer-events: all;
    z-index: 10;
}

.map-image image,
.map-image-element {
    pointer-events: all;
    cursor: pointer;
    display: block;
}

.map-image text {
    pointer-events: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    fill: #333;
    text-anchor: middle;
}

/* Koordinat Pointer Stilleri */
.coordinate-pointer {
    pointer-events: none;
    z-index: 1000;
}

.pointer-line {
    animation: pointerPulse 1.5s ease-in-out infinite;
}

.pointer-center {
    animation: centerPulse 1s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.8));
}

.coordinate-text {
    filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.6));
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes pointerPulse {
    0% { 
        opacity: 0.6; 
        stroke-width: 2;
    }
    50% { 
        opacity: 0.9; 
        stroke-width: 3;
    }
    100% { 
        opacity: 0.6; 
        stroke-width: 2;
    }
}

@keyframes centerPulse {
    0% { 
        /* r: 6; - SVG özelliği, CSS'de geçerli değil */ 
        opacity: 0.8;
    }
    100% { 
        /* r: 8; - SVG özelliği, CSS'de geçerli değil */ 
        opacity: 1;
    }
}

@keyframes textGlow {
    0% { 
        opacity: 0.8; 
        font-size: 12px;
    }
    100% { 
        opacity: 1; 
        font-size: 13px;
    }
}

.bt-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.bt-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 0 8px;
}

.bt-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
    transform: translateY(-2px) !important;
}

.bt-btn.active:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5) !important;
}

.bt-btn.active i {
    color: white !important;
}

/* Responsive Bottom Toolbar */
@media (max-width: 1200px) {
    .bottom-toolbar {
        min-width: 600px;
        bottom: 20px;
    }
    
    .bt-content {
        padding: 16px 20px;
    }
    
    .bt-btn {
        padding: 10px 16px;
        min-width: 90px;
        font-size: 13px;
    }
    
    .bt-btn i {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .bottom-toolbar {
        min-width: 90vw;
        bottom: 16px;
        border-radius: 16px;
    }
    
    .bt-content {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .bt-info {
        flex-direction: column;
        gap: 8px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .bt-dimensions {
        padding: 4px 8px;
        gap: 2px;
    }
    
    .bt-dim-label {
        font-size: 10px;
    }
    
    .bt-dim-value {
        font-size: 12px;
        min-width: 30px;
    }
    
    .bt-dim-unit {
        font-size: 9px;
    }
    
    .bt-actions {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bt-btn {
        padding: 8px 12px;
        min-width: 80px;
        font-size: 12px;
    }
    
    .bt-btn i {
        font-size: 12px;
    }
    
    .bt-divider {
        display: none;
    }
}

.bt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.bt-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.3);
    margin: 0 4px;
}

/* Mobile Responsive - Alternative approach */
@media (max-width: 768px) {
    .bottom-toolbar {
        left: 16px;
        right: 16px;
        transform: none;
        min-width: auto;
        max-width: none;
    }

    .bt-content {
        padding: 12px 16px;
    }

    .bt-title {
        font-size: 14px;
    }

    .bt-subtitle {
        font-size: 12px;
    }

    .bt-btn {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
    }

        .bt-btn span {
            display: none;
        }

        .bt-btn i {
            font-size: 16px;
        }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
}

.popup-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

    .popup-icon.success {
        background: linear-gradient(135deg, #28a745, #20c997);
    }

    .popup-icon.error {
        background: linear-gradient(135deg, #dc3545, #e74c3c);
    }

    .popup-icon.warning {
        background: linear-gradient(135deg, #ffc107, #f39c12);
    }

    .popup-icon.info {
        background: linear-gradient(135deg, #ed1c24, #ed1c24);
    }

.popup-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.popup-body {
    padding: 20px 30px;
}

.popup-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
}

.popup-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #dee2e6;
}

    .popup-details.error {
        border-left-color: #dc3545;
        background: #fff5f5;
    }

    .popup-details.success {
        border-left-color: #28a745;
        background: #f0fff4;
    }

    .popup-details.warning {
        border-left-color: #ffc107;
        background: #fffbf0;
    }

    .popup-details.info {
        border-left-color: #ed1c24;
        background: #f0f9ff;
    }

.popup-details-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.popup-details-content {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #6c757d;
    white-space: pre-wrap;
}

.popup-footer {
    padding: 15px 30px 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.popup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #ed1c24, #c41e3a);
    color: white;
}

    .popup-btn-primary:hover {
        background: linear-gradient(135deg, #c41e3a, #a01a2e);
        transform: translateY(-1px);
    }

.popup-btn-secondary {
    background: #6c757d;
    color: white;
}

    .popup-btn-secondary:hover {
        background: #5a6268;
        transform: translateY(-1px);
    }

.popup-btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

    .popup-btn-success:hover {
        background: linear-gradient(135deg, #1e7e34, #155724);
        transform: translateY(-1px);
    }

.popup-btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

    .popup-btn-danger:hover {
        background: linear-gradient(135deg, #c82333, #bd2130);
        transform: translateY(-1px);
    }

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .popup-close:hover {
        background: #f8f9fa;
        color: #495057;
    }

/* Progress Bar Stilleri */
.popup-progress-bar {
    height: 3px;
    background: #e9ecef;
    margin: 10px 30px 0;
    border-radius: 2px;
    overflow: hidden;
}

.popup-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ed1c24, #c41e3a);
    width: 0%;
    transition: width 0.3s ease;
}

.popup-overlay.success .popup-progress-fill {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.popup-overlay.error .popup-progress-fill {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.popup-overlay.warning .popup-progress-fill {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.popup-overlay.info .popup-progress-fill {
    background: linear-gradient(135deg, #ed1c24, #c41e3a);
}

/* ===== MİSAFİR TOOLBAR STİLLERİ ===== */
.guest-mode .toolbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guest-mode .toolbar .tool-btn {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.guest-mode .toolbar .tool-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.guest-mode .toolbar .tool-btn i {
    font-size: 16px;
}

/* Misafir modunda toolbar divider'ları gizle */
.guest-mode .toolbar-divider {
    display: none;
}

/* Misafir modunda katmanlar butonunu ve panelini gizle */
.guest-mode #layerToggleBtn {
    display: none !important;
}

.guest-mode #layersPanel {
    display: none !important;
}

/* Stant seçimi için yeşil border parlaması - sadece border */
.stand-selected .stand-rect {
    stroke: #28a745 !important;
    stroke-width: 5 !important;
    filter: drop-shadow(0 0 12px #28a745);
    animation: standSelectedPulse 2s ease-in-out infinite;
}

/* ✅ Kamera uçuşu sonrası highlight efekti */
.stand.highlight .stand-rect {
    stroke: #dc3545 !important;
    stroke-width: 8 !important;
    filter: drop-shadow(0 0 30px #dc3545);
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0% { 
        filter: drop-shadow(0 0 15px #dc3545);
        stroke-width: 6;
        transform: scale(1);
    }
    25% { 
        filter: drop-shadow(0 0 35px #dc3545);
        stroke-width: 12;
        transform: scale(1.05);
    }
    50% { 
        filter: drop-shadow(0 0 50px #dc3545);
        stroke-width: 15;
        transform: scale(1.1);
    }
    75% { 
        filter: drop-shadow(0 0 35px #dc3545);
        stroke-width: 12;
        transform: scale(1.05);
    }
    100% { 
        filter: drop-shadow(0 0 20px #dc3545);
        stroke-width: 8;
        transform: scale(1);
    }
}

/* Grid toggle butonu aktif durumu */
.zoom-btn.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transform: scale(1.05);
}

.zoom-btn.active:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: scale(1.1);
}

@keyframes standSelectedPulse {
    0% { 
        filter: drop-shadow(0 0 8px #28a745);
        stroke-width: 5;
    }
    50% { 
        filter: drop-shadow(0 0 16px #28a745);
        stroke-width: 6;
    }
    100% { 
        filter: drop-shadow(0 0 8px #28a745);
        stroke-width: 5;
    }
}

/* ===== MODERN MODAL STYLES ===== */
.modern-modal {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    max-width: 600px; /* Daha da küçük maksimum genişlik */
}

.modern-header {
    background: linear-gradient(135deg, #ed1c24 0%, #1e3c72 100%);
    border-radius: 12px 12px 0 0;
    padding: 12px 16px; /* Daha da küçük padding */
    border-bottom: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px; /* Daha da küçük gap */
}

.header-icon {
    width: 32px; /* Daha da küçük */
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Daha da küçük font */
    color: #ffffff;
}

.header-text {
    flex: 1;
}

.modern-header .modal-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px; /* Daha da küçük font */
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.modal-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 11px; /* Daha da küçük font */
    margin: 1px 0 0 0;
    font-weight: 400;
}

.modern-close {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 4px;
    width: 28px; /* Daha da küçük */
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px; /* Daha da küçük font */
    transition: all 0.3s ease;
}

.modern-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.modern-body {
    padding: 16px; /* Daha da küçük padding */
    background: #ffffff;
}

.section-card {
    background: #ffffff;
    border-radius: 8px; /* Daha da küçük border radius */
    padding: 12px; /* Daha da küçük padding */
    margin-bottom: 12px; /* Daha da küçük margin */
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 6px; /* Daha da küçük gap */
    margin-bottom: 8px; /* Daha da küçük margin */
    padding-bottom: 6px; /* Daha da küçük padding */
    border-bottom: 1px solid #e9ecef; /* Daha ince border */
}

.section-header i {
    color: #ed1c24;
    font-size: 12px; /* Daha da küçük font */
}

.section-header h6 {
    color: #ed1c24;
    font-weight: 700;
    font-size: 11px; /* Daha da küçük font */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.modern-label {
    font-weight: 600;
    color: #495057;
    font-size: 10px; /* Daha da küçük font */
    margin-bottom: 3px; /* Daha da küçük margin */
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.modern-input, .modern-select, .modern-textarea {
    border: 1px solid #e9ecef; /* Daha ince border */
    border-radius: 6px; /* Daha da küçük border radius */
    padding: 6px 10px; /* Daha da küçük padding */
    font-size: 12px; /* Daha da küçük font */
    transition: all 0.3s ease;
    background: #ffffff;
}

.modern-input:focus, .modern-select:focus, .modern-textarea:focus {
    border-color: #ed1c24;
    box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.1);
    outline: none;
}

.modern-input-group {
    margin-bottom: 6px; /* Daha da küçük margin */
}

.modern-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    font-weight: 600;
    font-size: 10px; /* Daha da küçük font */
    padding: 6px 10px; /* Daha da küçük padding */
    min-width: 35px; /* Daha da küçük min-width */
    text-align: center;
}

.modern-btn {
    border-radius: 4px; /* Daha da küçük border radius */
    padding: 4px 8px; /* Daha da küçük padding */
    font-size: 10px; /* Daha da küçük font */
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.modern-btn:hover {
    transform: translateY(-1px); /* Daha küçük transform */
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.modern-btn-primary {
    background: linear-gradient(135deg, #ed1c24 0%, #1e3c72 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 16px; /* Daha da küçük padding */
    border-radius: 6px; /* Daha da küçük border radius */
    transition: all 0.3s ease;
}

.modern-btn-primary:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #ed1c24 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(42, 82, 152, 0.4);
}

.position-controls, .size-controls {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Daha da küçük gap */
}

.aspect-ratio-controls {
    background: #f8f9fa;
    border-radius: 6px; /* Daha da küçük border radius */
    padding: 8px; /* Daha da küçük padding */
    border: 1px solid #e9ecef;
}

.modern-check {
    margin-bottom: 8px; /* Daha da küçük margin */
}

.modern-check .form-check-input {
    border-radius: 3px; /* Daha da küçük border radius */
    border: 1px solid #e9ecef;
    width: 14px; /* Daha da küçük */
    height: 14px;
}

.modern-check .form-check-input:checked {
    background-color: #ed1c24;
    border-color: #ed1c24;
}

.preset-sizes {
    margin-top: 8px; /* Daha da küçük margin */
}

.modern-btn-group {
    margin-top: 4px; /* Daha da küçük margin */
}

.modern-btn-group .btn {
    border-radius: 4px; /* Daha da küçük border radius */
    font-size: 9px; /* Daha da küçük font */
    padding: 3px 6px; /* Daha da küçük padding */
    margin-right: 4px; /* Daha da küçük margin */
    border: 1px solid #e9ecef;
}

.modern-btn-group .btn.active {
    background-color: #ed1c24;
    color: white;
    border-color: #ed1c24;
}

.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Daha da küçük gap */
}

.modern-color {
    width: 40px; /* Daha da küçük */
    height: 28px;
    border-radius: 4px; /* Daha da küçük border radius */
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.color-presets {
    display: flex;
    gap: 4px; /* Daha da küçük gap */
    flex-wrap: wrap;
}

.color-preset {
    width: 24px; /* Daha da küçük */
    height: 24px;
    border-radius: 4px; /* Daha da küçük border radius */
    cursor: pointer;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.color-preset:hover {
    transform: scale(1.05); /* Daha küçük transform */
    border-color: #ed1c24;
}

.color-preset.active {
    border-color: #ed1c24;
    border-width: 2px;
    transform: scale(1.1);
}

.modern-footer {
    background: #f8f9fa;
    border-radius: 0 0 12px 12px; /* Daha da küçük border radius */
    padding: 12px 16px; /* Daha da küçük padding */
    border-top: 1px solid #e9ecef;
}

.footer-actions {
    display: flex;
    gap: 8px; /* Daha da küçük gap */
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-modal {
        margin: 8px; /* Daha da küçük margin */
        border-radius: 8px; /* Daha da küçük border radius */
    }
    
    .modern-header {
        padding: 10px 14px; /* Daha da küçük padding */
        border-radius: 8px 8px 0 0;
    }
    
    .modern-body {
        padding: 12px; /* Daha da küçük padding */
    }
    
    .section-card {
        padding: 10px; /* Daha da küçük padding */
        margin-bottom: 10px; /* Daha da küçük margin */
    }
    
    .modern-footer {
        padding: 10px 14px; /* Daha da küçük padding */
        border-radius: 0 0 8px 8px;
    }
    
    .footer-actions {
        flex-direction: column;
    }
    
    .footer-actions .btn {
        width: 100%;
    }
}