/* --- LOCATION BAR (MODERN) --- */
.location-bar-wrapper {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 10px 0;
}

.loc-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sol Taraf */
.loc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loc-icon-box {
    width: 40px; height: 40px;
    background-color: #ECFDF5; /* Çok açık yeşil */
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.loc-text-group {
    display: flex; flex-direction: column;
    line-height: 1.2;
}

.loc-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.loc-current {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.loc-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    vertical-align: middle;
}
.badge-free { background: var(--primary); color: #fff; }
.badge-cost { background: var(--text-light); color: #fff; }

/* Sağ Taraf (Buton) */
.btn-loc-trigger {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex; align-items: center; gap: 8px;
}
.btn-loc-trigger:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- MODAL (POPUP) --- */
.loc-modal {
    display: none; /* JS ile açılacak */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(31, 41, 55, 0.6); /* Koyu perde */
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.loc-modal-content {
    background-color: var(--white);
    margin: 5vh auto;
    width: 95%;
    max-width: 480px; /* Mobil uyumlu genişlik */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    max-height: 90vh; /* Ekranın %90'ı kadar */
}

@keyframes slideInDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Header */
.loc-header {
    background: var(--bg-light);
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.loc-header h4 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-dark); }
.loc-desc { font-size: 0.8rem; color: var(--text-light); margin: 0; }

.btn-close-custom {
    background: none; border: none; font-size: 1.2rem; color: var(--text-light); cursor: pointer;
}
.btn-close-custom:hover { color: #ef4444; }

/* Breadcrumb (Geri Dön Çubuğu) */
.loc-breadcrumb {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex; align-items: center;
    color: var(--primary);
}
.bc-back-btn {
    cursor: pointer;
    font-weight: 600;
    display: flex; align-items: center; gap: 5px;
}
.bc-back-btn:hover { text-decoration: underline; }

/* Modal Body */
.loc-body {
    padding: 15px;
    overflow-y: hidden; /* Scroll içeride olacak */
    display: flex; flex-direction: column;
    flex: 1;
}

/* Input */
.loc-input-group {
    position: relative;
    margin-bottom: 15px;
    flex-shrink: 0;
}
.loc-input-group input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    background: var(--bg-light);
}
.loc-input-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.loc-input-group i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--text-light);
}

/* Sonuç Listesi */
.loc-results {
    flex-grow: 1;
    overflow-y: auto; /* Listeyi kaydır */
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
}

/* Liste Elemanları */
.loc-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.2s;
}
.loc-item:last-child { border-bottom: none; }
.loc-item:hover { background-color: #f9fafb; }

.loc-item-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px;
    font-size: 0.9rem;
}
.bg-light-primary { background: #E0F2FE; color: #0284c7; } /* Mavi ton (Üst bölge için) */
.bg-light-success { background: #ECFDF5; color: var(--primary); } /* Yeşil ton (Seçilebilir) */

/* Loading */
.loc-loading-state {
    padding: 30px; text-align: center; color: var(--text-light); font-size: 0.9rem;
}
/* --- Buton Grupları --- */
.loc-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* Butonlar arası boşluk */
}

/* --- Sıfırlama (Sil) Butonu --- */
.btn-loc-reset {
    width: 34px; 
    height: 34px;
    border-radius: 50%;
    background-color: #FEE2E2; /* Açık Kırmızı */
    border: 1px solid #FECACA;
    color: #EF4444; /* Kırmızı İkon */
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-loc-reset:hover {
    background-color: #EF4444;
    color: #fff;
    transform: scale(1.1);
    border-color: #EF4444;
}
/* Mobil Uyum */
@media (max-width: 576px) {
    .loc-modal-content {
        width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0;
    }
    .loc-bar-inner {
        flex-direction: row; /* Mobilde de yan yana kalsın */
    }
    .loc-label { display: none; } /* Yer kazanmak için üst yazıyı gizle */
}