/* ------------
   Kapsayıcı – yan yana layout
   ------------ */
.dg-konumlar-wrap {
    display: flex;
    width: 2000px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 40px;
    font-family: inherit;
    position: relative;
}

/* ------------
   SOL SIDEBAR
   ------------ */
.dg-konumlar-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 41%;
    height: 100%;
    padding: 40px;
    background: #ffffff;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
}

.dg-sidebar-baslik {
    padding: 18px 20px 14px;
    font-size: 18px;
    font-weight: 700;
    color: #3c3c3c;
    border-bottom: 1px solid #e8eaed;
    background: #f8f9fa;
    letter-spacing: -.3px;
}

/* ------------
   ARAMA FORMU
   ------------ */

/* Yakınlık butonları */
.dg-yakinlik-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.dg-yakinlik-btn {
    padding: 5px 10px;
    border: 1px solid #707070;
    border-radius: 50px;
    font-family: 'Gilroy Light';
    font-size: 13px;
    color: #3c3c3c;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
}

.dg-yakinlik-btn:hover {
    border-color: var(--wd-primary-color);
    color: var(--wd-primary-color);
}

.dg-yakinlik-btn.aktif {
    background: var(--wd-primary-color);
    border-color: var(--wd-primary-color);
    color: #fff;
}

.dg-konum-izin-mesaj,
.dg-konum-hata {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 6px;
}

.dg-konum-izin-mesaj { color: #1a73e8; background: #e8f0fe; }
.dg-konum-hata       { color: #c5221f; background: #fce8e6; }

.dg-mesafe-badge {
    background: #e6f4ea;
    color: #188038;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 11px;
}

.dg-arama-form {
    flex-shrink: 0;
}

.dg-form-row {
    margin-bottom: 10px;
    position: relative;
}

.dg-form-row:last-child {
    margin-bottom: 0;
}

.dg-form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 80%;
    margin: 0 auto;
}

.dg-arama-input {
    width: 100%;
    padding: 15px 25px !important;
    height: unset !important;
    border: 1px solid #707070 !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    color: #3c3c3c;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.dg-arama-input::placeholder {
    color: #a7a7a7;
}
.dg-arama-input:focus {
    border-color: var(--wd-primary-color);
    box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}

.dg-ara-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: ease all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------
   SONUÇ ALANI
   ------------ */
.dg-sonuc-alani {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dadce0 transparent;
}

.dg-sonuc-alani::-webkit-scrollbar       { width: 5px; }
.dg-sonuc-alani::-webkit-scrollbar-track { background: transparent; }
.dg-sonuc-alani::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 3px; }

.dg-varsayilan-metin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px 18px;
    color: #3c3c3c;
}
.dg-varsayilan-metin h4 {
    font-size: 28px;
    font-family: 'Gilroy Semi-Bold';
    line-height: 1.2;
    margin-bottom: 15px;
}
.dg-varsayilan-metin p {
    width: 90%;
    font-family: 'Gilroy Medium';
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 0;
}


/* Yükleniyor */
.dg-yukleniyor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: #3c3c3c;
    font-size: 13px;
}

.dg-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e8eaed;
    border-top-color: var(--wd-primary-color);
    border-radius: 50%;
    animation: dg-spin .7s linear infinite;
}

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

/* Sonuç sayısı */
.dg-sonuc-sayisi {
    padding: 10px 18px 6px;
    font-size: 12px;
    color: #80868b;
    font-weight: 500;
}

/* Sonuç yok */
.dg-sonuc-yok {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #80868b;
    text-align: center;
    gap: 8px;
}

.dg-sonuc-yok-ikon { font-size: 36px; opacity: .5; }
.dg-sonuc-yok p    { font-size: 13px; margin: 0; }

/* ------------
   KONUM KARTI
   ------------ */
.dg-konum-item {
    padding: 13px 16px 13px 20px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background .15s, border-left-color .15s;
    border-left: 3px solid transparent;
    position: relative;
}

.dg-konum-item:hover {
    background: #f7f7f7;
    border-left-color: var(--wd-primary-color);
}

.dg-konum-item.aktif {
    background: rgba(26,115,232,.06);
    border-left-color: var(--wd-primary-color);
}

.dg-konum-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.dg-konum-item-baslik {
    font-size: 14px;
    font-weight: 600;
    color: #3c3c3c;
    margin-bottom: 3px;
    line-height: 1.3;
}

.dg-konum-item-meta {
    font-size: 12px;
    color: #80868b;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.dg-konum-item-meta .dg-badge,
.dg-popup-konum-adi {
    background: #e8f0fe;
    color: var(--wd-primary-color);
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 11px;
}

.dg-konum-item-adres {
    font-size: 12px;
    color: #3c3c3c;
    margin-top: 4px;
}

/* ------------
   HARİTA
   ------------ */
.dg-konumlar-harita {
    width: calc(59% + 50px);
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

/* Leaflet popup override */
.dg-popup {
    min-width: 200px;
    font-family: inherit;
}

.dg-popup-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #3c3c3c;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8eaed;
}

.dg-popup-detay {
    font-size: 12.5px;
    color: #3c4043;
    line-height: 1.5;
    margin-bottom: 6px;
}

.dg-popup-meta {
    font-size: 12px;
    color: #3c3c3c;
}

.dg-popup-meta span {
    display: block;
    margin-bottom: 2px;
}

.dg-popup-meta .dg-popup-tel  { color: var(--wd-primary-color); font-weight: 500; }

/* Leaflet popup temizliği */
.leaflet-popup-content-wrapper {
    font-family: 'Gilroy Regular';
    font-weight: 500;
}

.leaflet-popup-content {
    margin: 14px 16px !important;
    line-height: unset;
}

.leaflet-popup-tip-container { margin-top: -1px; }

.leaflet-container a.leaflet-popup-close-button {
    font-size: 22px;
    top: -10px;
    right: -10px;
    background: var(--wd-alternative-color);
    color: #fff;
    border-radius: 50%;
}
.leaflet-container a.leaflet-popup-close-button:hover {
    background: #000;
    color: #fff;
}

/* ------------
   RESPONSIVE
   ------------ */
@media (max-width: 768px) {
    .dg-konumlar-wrap {
        flex-direction: column;
        height: auto !important;
        border-radius: 8px;
    }
    .dg-konumlar-sidebar {
        width: 100%;
        max-width: 100%;
        max-height: 50vh;
        margin: 15px;
        padding: 15px;
        border-bottom: 1px solid #e8eaed;
        position: unset;
    }
    .dg-yakinlik-row {
        gap: 4px;
    }
    
    .dg-konumlar-harita {
        margin: 0 15px;
        width: 100%;
        height: 350px !important;
        flex: none;
        position: unset;
    }
}
