/* ============================================================
   Akıllı Harita — Türkiye il choropleth + kurum paneli
   ============================================================ */
.akilli-harita-section {
    --ah-yesil: #125b3f;
    --ah-yesil-koyu: #0d3f2c;
    --ah-kirmizi: #c0272d;
    --ah-cizgi: #e8ece9;
    --ah-zemin: #f6f8f7;
    --ah-metin: #1c2722;
    --ah-soluk: #6b7770;
    --ah-golge: 0 18px 50px -28px rgba(18, 91, 63, .35);
    --ah-h: 600px;
    padding: 64px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7f4 100%);
    overflow: hidden;
}

/* ---------- Başlık ---------- */
.ah-header {
    margin-bottom: 30px;
}

.ah-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ah-yesil);
    background: #e7f1ec;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.akilli-harita-section .ah-header .title {
    margin: 0 0 12px;
    font-weight: 800;
    color: var(--ah-metin);
    position: relative;
}

.ah-aciklama {
    color: var(--ah-soluk);
    max-width: 620px;
    margin: 0 auto;
    font-size: 15.5px;
    line-height: 1.6;
}

/* ---------- Araç çubuğu ---------- */
.ah-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--ah-cizgi);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .35);
    margin-bottom: 20px;
    position: relative;
    z-index: 10; /* Chosen açılır menüsü haritanın üzerinde kalsın */
}

/* Segmentli tür seçici */
.ah-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--ah-zemin);
    border: 1px solid var(--ah-cizgi);
    border-radius: 12px;
    padding: 4px;
}

.ah-chip {
    border: 0;
    background: transparent;
    color: var(--ah-soluk);
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.ah-chip:hover {
    color: var(--ah-yesil);
}

.ah-chip.is-active {
    background: var(--ah-yesil);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(18, 91, 63, .9);
}

/* İl seçici (Chosen) */
.ah-tools {
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
    flex: 0 1 500px;
}

.ah-select-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.ah-isaret-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    box-sizing: border-box;
    height: 44px;
    min-width: 188px;
    padding: 0 18px;
    border: 1px solid var(--ah-cizgi);
    background: #fff;
    color: var(--ah-metin);
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.ah-isaret-btn i {
    font-size: 15px;
    color: var(--ah-kirmizi);
    transition: color .18s ease;
}

.ah-isaret-btn:hover {
    border-color: var(--ah-yesil);
    color: var(--ah-yesil);
    box-shadow: 0 6px 16px -10px rgba(18, 91, 63, .6);
}

.ah-isaret-btn:hover i {
    color: var(--ah-yesil);
}

.ah-isaret-btn.is-active {
    background: var(--ah-yesil);
    border-color: var(--ah-yesil);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(18, 91, 63, .9);
}

.ah-isaret-btn.is-active i,
.ah-isaret-btn.is-active:hover i {
    color: #fff;
}

.ah-isaret-btn.is-active:hover {
    color: #fff;
    border-color: var(--ah-yesil);
}

/* Chosen yoksa görünen yalın select */
.ah-il-select {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    height: 44px;
    border: 1px solid var(--ah-cizgi);
    background: #fff;
    border-radius: 11px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ah-metin);
    width: 100%;
    cursor: pointer;
}

/* ---------- Chosen görünüm uyarlaması (yalnızca bu bölüm) ---------- */
.akilli-harita-section .chosen-container {
    width: 100% !important;
    font-size: 14px;
    position: relative;
    z-index: 12;
}

.akilli-harita-section .chosen-container .chosen-drop {
    z-index: 1050;
    border-color: var(--ah-cizgi);
    border-radius: 0 0 11px 11px;
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .35);
    margin-top: 2px;
}

.akilli-harita-section .chosen-container-single .chosen-single {
    box-sizing: border-box;
    height: 44px !important;
    line-height: 2 !important;
    padding: 0 0 0 14px;
    border: 1px solid var(--ah-cizgi);
    border-radius: 11px !important;
    background: #fff;
    box-shadow: none;
    color: var(--ah-metin);
    font-weight: 600;
}

.akilli-harita-section .chosen-container-active.chosen-with-drop .chosen-single,
.akilli-harita-section .chosen-container-active .chosen-single {
    border-color: var(--ah-yesil);
    box-shadow: 0 0 0 3px rgba(18, 91, 63, .12);
}

.akilli-harita-section .chosen-container-single .chosen-single div b {
    background-position: 0 12px;
}

.akilli-harita-section .chosen-container-single .chosen-search input[type=text] {
    border-radius: 8px;
    border: 1px solid var(--ah-cizgi);
    padding: 7px 10px;
}

.akilli-harita-section .chosen-container .chosen-results li.highlighted {
    background: var(--ah-yesil);
}

.akilli-harita-section .chosen-container .chosen-results li {
    padding: 8px 12px;
}

/* ---------- Yerleşim ---------- */
.ah-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

.ah-map-wrap {
    position: relative;
    z-index: 1;
    min-width: 0;
    height: var(--ah-h);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--ah-cizgi);
    background: #eef3f0;
    box-shadow: var(--ah-golge);
}

.ah-map {
    width: 100%;
    height: 100%;
}

/* Üzerine gelme ipucu */
.ah-hint {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(18, 91, 63, .96);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.ah-hint.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Lejant */
.ah-legend {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 5;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--ah-cizgi);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 11px;
    color: var(--ah-soluk);
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .3);
    backdrop-filter: blur(2px);
}

.ah-legend-baslik {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ah-metin);
}

.ah-legend-skala {
    display: flex;
    gap: 3px;
}

.ah-legend-skala i {
    width: 24px;
    height: 10px;
    display: block;
    background: var(--ah-yesil);
    opacity: var(--o, 1);
    border-radius: 2px;
}

.ah-legend-uc {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.ah-yukleniyor {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #eef3f0;
    color: var(--ah-soluk);
    z-index: 6;
    font-size: 14px;
}

.ah-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #cdd6d1;
    border-top-color: var(--ah-yesil);
    border-radius: 50%;
    animation: ah-spin .8s linear infinite;
}

@keyframes ah-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Panel ---------- */
.ah-panel {
    border: 1px solid var(--ah-cizgi);
    border-radius: 18px;
    background: #fff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--ah-h);
    box-shadow: var(--ah-golge);
}

.ah-panel-ozet:not([hidden]),
.ah-panel-il:not([hidden]) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.ah-ozet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.ah-ozet-kart {
    position: relative;
    background: linear-gradient(135deg, #f3f8f5, #eaf2ed);
    border: 1px solid #e3ece7;
    border-radius: 14px;
    padding: 16px 16px 14px;
}

.ah-ozet-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ah-yesil);
    color: #fff;
    font-size: 15px;
    margin-bottom: 10px;
}

.ah-ozet-kart .ah-ozet-sayi {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--ah-yesil);
    line-height: 1;
}

.ah-ozet-etiket {
    font-size: 13px;
    color: var(--ah-soluk);
    font-weight: 600;
}

/* En çok kuruma sahip iller */
.ah-ozet-baslik {
    font-size: 13px;
    font-weight: 700;
    color: var(--ah-metin);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ah-top {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.ah-top li {
    display: grid;
    grid-template-columns: 92px 1fr 34px;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
}

.ah-top-ad {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ah-metin);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ah-top li:hover .ah-top-ad {
    color: var(--ah-yesil);
}

.ah-top-bar {
    height: 8px;
    background: #eef2ef;
    border-radius: 999px;
    overflow: hidden;
}

.ah-top-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2f8a63, var(--ah-yesil));
    border-radius: 999px;
    transition: width .5s ease;
}

.ah-top-sayi {
    text-align: right;
    font-size: 13px;
    font-weight: 800;
    color: var(--ah-yesil);
}

.ah-panel-ipucu {
    font-size: 13.5px;
    color: var(--ah-soluk);
    line-height: 1.55;
    margin: auto 0 0;
    background: var(--ah-zemin);
    border-radius: 12px;
    padding: 12px 14px;
}

.ah-panel-ipucu i {
    color: var(--ah-yesil);
    margin-right: 5px;
}

/* İl detayı */
.ah-panel-geri {
    border: none;
    background: none;
    color: var(--ah-yesil);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    padding: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ah-panel-geri:hover {
    color: var(--ah-yesil-koyu);
}

.ah-il-adi {
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--ah-metin);
}

.ah-il-sayilar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ah-cizgi);
}

.ah-il-rozet {
    background: #eef4f0;
    color: var(--ah-yesil);
    border-radius: 9px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

.ah-il-rozet b {
    font-weight: 800;
}

.ah-il-liste {
    overflow-y: auto;
    flex: 1;
    margin: 0 -6px;
    padding: 0 6px;
}

.ah-il-liste::-webkit-scrollbar {
    width: 6px;
}

.ah-il-liste::-webkit-scrollbar-thumb {
    background: #d6ded9;
    border-radius: 999px;
}

.ah-kurum {
    display: block;
    border: 1px solid var(--ah-cizgi);
    border-radius: 13px;
    padding: 13px 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--ah-metin);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ah-kurum:hover {
    border-color: var(--ah-yesil);
    box-shadow: 0 10px 22px -14px rgba(18, 91, 63, .6);
    transform: translateY(-1px);
}

.ah-kurum-tur {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--ah-yesil);
    border-radius: 7px;
    padding: 3px 9px;
    margin-bottom: 7px;
    letter-spacing: .02em;
}

.ah-tur-3 {
    background: #125b3f;
}

.ah-tur-4 {
    background: #1d6fa5;
}

.ah-tur-24 {
    background: #b5532a;
}

.ah-kurum-ad {
    display: block;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.ah-kurum-ilce {
    display: block;
    font-size: 13px;
    color: var(--ah-soluk);
    margin-top: 5px;
}

.ah-kurum-ilce i {
    color: var(--ah-kirmizi);
    margin-right: 4px;
}

.ah-bos {
    color: var(--ah-soluk);
    font-size: 14px;
    text-align: center;
    padding: 24px 0;
}

/* Yandex balon linkleri */
.ah-map-wrap .ymaps-2-1-79-balloon a,
.ah-map-wrap [class*="-balloon"] a {
    color: var(--ah-yesil);
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ah-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 18px;
    }
}

@media (max-width: 991px) {
    .akilli-harita-section {
        --ah-h: 460px;
    }

    .ah-layout {
        grid-template-columns: 1fr;
    }

    .ah-panel {
        height: auto;
        max-height: none;
    }

    .ah-il-liste {
        max-height: 460px;
    }

    .ah-ozet-top {
        margin-bottom: 6px;
    }
}

@media (max-width: 767px) {
    .akilli-harita-section {
        padding: 48px 0;
        --ah-h: 400px;
    }

    .ah-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ah-chips {
        justify-content: center;
        width: 100%;
    }

    .ah-chip {
        flex: 1 1 auto;
        text-align: center;
        padding: 9px 12px;
    }

    .ah-tools {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .akilli-harita-section {
        padding: 36px 0;
        --ah-h: 340px;
    }

    .akilli-harita-section .ah-header .title {
        font-size: 24px;
    }

    .ah-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .ah-map-wrap {
        border-radius: 16px;
    }

    .ah-il-adi {
        font-size: 20px;
    }

    .ah-chip {
        font-size: 13px;
    }

    .ah-tools {
        flex-wrap: wrap;
    }

    .ah-select-wrap {
        flex: 1 1 100%;
    }

    .ah-isaret-btn {
        flex: 1 1 100%;
        min-width: 0;
    }
}
