.globe-wrapper { position: relative; width: 100%; height: 700px; border-radius: 20px; overflow: hidden; font-family: "Segoe UI", sans-serif; background: #000; }
#map-en { width: 100%; height: 100%; }
#globe-loader-en { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; z-index: 5; font-weight: 600; background: rgba(0,0,0,0.7); padding: 10px 20px; border-radius: 8px; }

/* HUD Styles */
.globe-hud { 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    z-index: 10; 
    width: auto;            
    max-width: 480px;      
    min-width: 320px;
}

.globe-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); text-transform: uppercase; letter-spacing: 1px; }

.globe-filters { 
    display: flex; 
    gap: 8px;              
    flex-wrap: nowrap;      
    overflow-x: auto;      
    margin-bottom: 15px; 
    padding-bottom: 5px;   
    scrollbar-width: none; 
}
.globe-filters::-webkit-scrollbar { display: none; }

.g-filter { 
    background: rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: #ccc; 
    padding: 8px 14px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 11px; 
    font-weight: 700;
    display: flex; 
    align-items: center; 
    gap: 6px; 
    backdrop-filter: blur(5px); 
    transition: 0.2s; 
    white-space: nowrap; 
}
.g-filter.active, .g-filter:hover { background: #fff; color: #000; border-color: #fff; }

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.blue { background: #3b82f6; } .dot.green { background: #10b981; } .dot.orange { background: #f59e0b; }

#globe-search-en { width: 100%; background: rgba(0,0,0,0.7); border: 1px solid #555; color: #fff; padding: 12px; border-radius: 8px; outline: none; backdrop-filter: blur(5px); transition: 0.3s; box-sizing: border-box; }
#globe-search-en:focus { border-color: #3b82f6; background: rgba(0,0,0,0.9); }

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(15, 15, 20, 0.97);
    border: 1px solid #555;
    border-top: none;
    border-radius: 0 0 8px 8px;
    backdrop-filter: blur(10px);
    z-index: 30;
    display: none;
}
.search-dropdown.open { display: block; }
.search-dropdown::-webkit-scrollbar { width: 6px; }
.search-dropdown::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

.search-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.15s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover, .search-item.highlighted { background: rgba(59,130,246,0.2); }
.search-item-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.search-item-sub { font-size: 11px; color: #888; }

.search-wrapper { position: relative; }

/* Card Styles */
.globe-card { position: absolute; top: 20px; right: 20px; width: 320px; background: rgba(20, 20, 25, 0.95); border: 1px solid #333; border-radius: 12px; padding: 20px; transform: translateX(360px); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); color: #fff; z-index: 20; box-shadow: -10px 10px 30px rgba(0,0,0,0.5); }
.globe-card.active { transform: translateX(0); }
.g-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #999; font-size: 24px; cursor: pointer; line-height: 1; }
.g-close:hover { color: #fff; }
.gc-img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; background: #222; }
.gc-title { font-size: 18px; margin: 0 0 5px 0; font-weight: 700; line-height: 1.2; }
.gc-btn { display: block; text-align: center; background: #3b82f6; color: #fff; padding: 12px; border-radius: 8px; text-decoration: none; margin-top: 15px; font-weight: 600; transition: 0.2s; }
.gc-btn:hover { background: #2563eb; transform: translateY(-2px); }
.gc-directions { background: #10b981; margin-top: 10px; }
.gc-directions:hover { background: #059669; }

/* Table Styles */
.dealer-table-wrapper {
    margin-top: 20px;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
}

.dealer-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(30, 30, 35, 0.9);
    border-bottom: 1px solid #333;
}

.dealer-table-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#dealer-table-search-en {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #555;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    transition: 0.3s;
    width: 250px;
}

#dealer-table-search-en:focus {
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.8);
}

.dealer-table-scroll {
    max-height: 320px;
    overflow-y: auto;
}

.dealer-table-scroll::-webkit-scrollbar {
    width: 8px;
}

.dealer-table-scroll::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.dealer-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.dealer-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(30, 30, 35, 0.98);
}

.dealer-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid #444;
    transition: color 0.2s;
    white-space: nowrap;
}

.dealer-table th:hover {
    color: #fff;
}

.dealer-table th.sorted {
    color: #3b82f6;
}

.sort-arrow::after {
    content: "↕";
    margin-left: 4px;
    opacity: 0.4;
    font-size: 11px;
}

.dealer-table th.sorted.asc .sort-arrow::after {
    content: "↑";
    opacity: 1;
}

.dealer-table th.sorted.desc .sort-arrow::after {
    content: "↓";
    opacity: 1;
}

.dealer-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}

.dealer-table tbody tr {
    cursor: pointer;
}

.dealer-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.dealer-table tbody tr.active {
    background: rgba(59, 130, 246, 0.2);
}

.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.type-badge.bayi { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.type-badge.satis_noktasi { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.type-badge.satis_yetkilisi { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.type-badge.distributor { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.table-empty {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 14px;
}
