/* =========================================
   DİSTRİBÜTÖRLERİMİZ BÖLÜMÜ CSS KODLARI
   ========================================= */

.bg-light {
    background-color: #fcfcfc;
}

/* Ana Kapsayıcı (Beyaz Kart Alanı) */
.distributor-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: #ffffff;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    margin: 0 auto;
}

/* Masaüstü Ekranlarda Yan Yana Dizilim */
@media (min-width: 850px) {
    .distributor-wrapper {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Sol Taraf: Bilgi Kutusu */
.distributor-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.distributor-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.distributor-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Adres Kısmı Tasarımı */
.distributor-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #fcf8f5;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 3px solid #f26522;
}

    .distributor-address .icon {
        font-size: 20px;
        margin-top: 2px;
    }

    .distributor-address p {
        font-size: 15px;
        color: #444;
        margin: 0;
        line-height: 1.6;
        font-weight: 500;
    }

/* Sağ Taraf: Harita Kutusu */
.distributor-map-box {
    flex: 1;
    min-height: 350px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e5e5e5;
}

    /* İMLEYİ BULANIKLAŞTIRAN HATALARI GİDEREN KISIM */
    .distributor-map-box iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }


/* =========================================
   YENİ EKLENEN ANİMASYON KODLARI 
   ========================================= */

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    opacity: 0; /* JS tetikleyene kadar görünmez tutar */
}

    /* Bu sınıf JS ile eklendiğinde animasyon başlayacak */
    .animate-fade-in-down.start-anim {
        animation: fadeInDown 0.8s ease-out forwards;
    }

/* --- YALNIZCA HARİTA & MODERN DETAY POPUP STİLLERİ --- */

#bayi-haritasi {
    background-color: #f8fafc;
}

/* Distribütör Turuncu Pin & Nabız Efekti */
.pin-marker-dist {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .pin-marker-dist .dot {
        width: 28px;
        height: 28px;
        background: #f26522;
        border: 2px solid #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(242, 101, 34, 0.45);
        position: relative;
        z-index: 2;
    }

    .pin-marker-dist .pulse {
        position: absolute;
        width: 44px;
        height: 44px;
        background: rgba(242, 101, 34, 0.35);
        border-radius: 50%;
        animation: distPulseAnim 2s infinite ease-out;
        z-index: 1;
    }

@keyframes distPulseAnim {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Bayi Minimal Siyah Pin */
.pin-marker-bayi {
    width: 20px;
    height: 20px;
    background: #1f2937;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

    .pin-marker-bayi .bayi-inner {
        width: 6px;
        height: 6px;
        background: #ffffff;
        border-radius: 50%;
    }

    .pin-marker-bayi:hover {
        transform: scale(1.3);
        background: #f26522;
    }

/* Leaflet Popup Sarmalayıcısı & Cool Animasyon */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #f3f4f6;
    animation: popupScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes popupScaleUp {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.leaflet-popup-content {
    margin: 0 !important;
    line-height: normal !important;
}

/* Popup Kart İçerik Tasarımı */
.bayi-detail-card {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding: 18px 20px;
    min-width: 260px;
    max-width: 310px;
}

    .bayi-detail-card .card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .bayi-detail-card .badge {
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 3px 8px;
        border-radius: 6px;
    }

.badge-dist {
    background: rgba(242, 101, 34, 0.12);
    color: #f26522;
}

.badge-bayi {
    background: #f3f4f6;
    color: #4b5563;
}

.bayi-detail-card .city {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.bayi-detail-card .title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}

.bayi-detail-card .address {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 14px 0;
}

    .bayi-detail-card .address svg {
        flex-shrink: 0;
        margin-top: 2px;
        color: #9ca3af;
    }

/* Butonlar: Telefon ve Web */
.bayi-detail-card .contact-links {
    display: flex;
    gap: 8px;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}

.contact-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.phone-btn {
    background: #f3f4f6;
    color: #1f2937;
}

    .phone-btn:hover {
        background: #e5e7eb;
    }

.web-btn {
    background: #f26522;
    color: #ffffff;
}

    .web-btn:hover {
        background: #d95316;
    }