/* ------------------------------------------------------------------
   Çapar Makina - siteye özel ek stiller
   Tema dosyalarına (static/theme1) dokunmamak için burada toplanıyor.
   ------------------------------------------------------------------ */


/* ==================================================================
   1) BAYİLERİMİZ TABLOSU
   Sayfa içeriğine gömülü <table class="tablom"> için.
   Masaüstünde okunaklı bir tablo, mobil/tablette kart görünümü.
   ================================================================== */

.tablom {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

.tablom td {
    border: 1px solid #e5e5e5;
    padding: 10px 12px;
    vertical-align: top;
    word-break: break-word;
}

/* Başlık satırı */
.tablom tr:first-child td {
    background-color: #232323;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.tablom tr:first-child td strong {
    color: #fff;
}

/* Zebra + hover */
.tablom tr:nth-child(even) td {
    background-color: #fafafa;
}

.tablom tr:not(:first-child):hover td {
    background-color: #f2f7f5;
}

/* E-posta ve adres sütunları uzun; taşmasınlar */
.tablom td:nth-child(2),
.tablom td:nth-child(3) {
    word-break: break-word;
}

/* Bayi arama kutusu (assets/js/custom.js ekliyor) */
.bayi-arama {
    position: relative;
    margin-bottom: 6px;
}

.bayi-arama input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #232323;
    background-color: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bayi-arama input:focus {
    border-color: #232323;
    box-shadow: 0 0 0 3px rgba(35, 35, 35, .07);
}

.bayi-arama svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    fill: #9a9a9a;
    pointer-events: none;
}

.bayi-arama-sonuc {
    margin-bottom: 18px;
    font-size: 13px;
    color: #777;
}

.bayi-bulunamadi {
    padding: 30px 20px;
    text-align: center;
    color: #777;
    border: 1px dashed #dcdcdc;
    border-radius: 6px;
}


/* ---------- Mobil / tablet: tabloyu karta çevir ---------- */

@media (max-width: 991px) {

    .tablom,
    .tablom tbody,
    .tablom tr,
    .tablom td {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* Başlık satırı kartlarda gereksiz; etiketler hücrelerin içinde */
    .tablom tr:first-child {
        display: none;
    }

    .tablom tr {
        margin-bottom: 16px;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        overflow: hidden;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    }

    .tablom tr:nth-child(even) td {
        background-color: transparent;
    }

    .tablom td {
        border: 0;
        border-bottom: 1px solid #f0f0f0;
        padding: 10px 14px;
        font-size: 14px;
    }

    .tablom td:last-child {
        border-bottom: 0;
    }

    /* İçi boş hücreler kartta yer kaplamasın */
    .tablom td:empty {
        display: none;
    }

    /* Etiketler: varsayılan olarak sütun sırasına göre,
       JS data-label ekleyince onlar geçerli olur (aşağıda) */
    .tablom td::before {
        display: block;
        margin-bottom: 2px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #8a8a8a;
    }

    .tablom td:nth-child(1)::before { content: "Bayi Adı"; }
    .tablom td:nth-child(2)::before { content: "E-Posta"; }
    .tablom td:nth-child(3)::before { content: "Adres"; }
    .tablom td:nth-child(4)::before { content: "İl"; }
    .tablom td:nth-child(5)::before { content: "Telefon"; }
    .tablom td:nth-child(6)::before { content: "Fax"; }
    .tablom td:nth-child(7)::before { content: "Kontakt Kişi"; }
    .tablom td:nth-child(8)::before { content: "Cep Telefonu"; }

    html[lang="en"] .tablom td:nth-child(1)::before { content: "Dealer"; }
    html[lang="en"] .tablom td:nth-child(2)::before { content: "E-Mail"; }
    html[lang="en"] .tablom td:nth-child(3)::before { content: "Address"; }
    html[lang="en"] .tablom td:nth-child(4)::before { content: "City"; }
    html[lang="en"] .tablom td:nth-child(5)::before { content: "Phone"; }
    html[lang="en"] .tablom td:nth-child(6)::before { content: "Fax"; }
    html[lang="en"] .tablom td:nth-child(7)::before { content: "Contact Person"; }
    html[lang="en"] .tablom td:nth-child(8)::before { content: "Mobile"; }

    /* JS başlık satırından okuyup data-label yazdıysa o kazansın */
    .tablom td[data-label]::before {
        content: attr(data-label);
    }

    /* İlk hücre kartın başlığı */
    .tablom td:nth-child(1) {
        background-color: #f7f9f8;
        border-bottom: 1px solid #e5e5e5;
        font-size: 15px;
        font-weight: 600;
        color: #232323;
    }

    .tablom td:nth-child(1)::before {
        color: #6f8f85;
    }

    /* Telefon / e-posta mobilde dokunulabilir olsun */
    .tablom td a {
        color: #232323;
        text-decoration: underline;
    }
}

@media (max-width: 575px) {
    .tablom td {
        padding: 9px 12px;
    }
}


/* ==================================================================
   2) POP-UP
   Görselsiz (sadece metin + link) pop-up için kart görünümü.
   Görselli/videolu pop-up assets/css/denizmedia.css'teki hâliyle kalır.
   ================================================================== */

.denizmedia-popup-link {
    display: block;
    text-decoration: none;
}

.denizmedia-popup-text .denizmedia-popup-image {
    padding: 20px;
}

.denizmedia-popup-text .denizmedia-popup-link {
    max-width: 520px;
    width: 100%;
}

.denizmedia-popup-text .denizmedia-popup-title {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 520px;
    padding: 40px 35px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    color: #232323;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

/* Link varsa altına bir çağrı-aksiyon oku koy */
.denizmedia-popup-text .denizmedia-popup-link .denizmedia-popup-title::after {
    content: "";
    display: block;
    width: 46px;
    height: 46px;
    margin: 22px auto 0;
    border-radius: 50%;
    background-color: #232323;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    transition: transform .25s ease;
}

.denizmedia-popup-text .denizmedia-popup-link:hover .denizmedia-popup-title::after {
    transform: translateX(6px);
}

@media (max-width: 575px) {
    .denizmedia-popup-text .denizmedia-popup-title {
        padding: 32px 24px;
        font-size: 17px;
    }
}


/* ==================================================================
   3) MOBİLDE DİL SEÇİCİ
   Masaüstünde dil seçici menünün içinde (langs_view). Mobilde menünün
   içindeki hover'a dayalı açılır liste dokunmatikte çalışmadığı için
   header'a, hamburgerin soluna taşındı ve düz linklere çevrildi.
   ================================================================== */

.mobil-dil {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobil-dil a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 4px;
    line-height: 1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #fff;
    text-decoration: none;
    background-color: rgba(0, 0, 0, .18);
    transition: background-color .2s ease, border-color .2s ease;
}

.mobil-dil a img {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

.mobil-dil a.aktif {
    background-color: #fff;
    border-color: #fff;
    color: #232323;
}

.mobil-dil a:not(.aktif):active {
    background-color: rgba(0, 0, 0, .35);
}

/* Header beyaza döndüğünde (sticky) yazı okunur kalsın */
.header-light .mobil-dil a,
.sticky .mobil-dil a,
header.sticky .mobil-dil a {
    border-color: rgba(35, 35, 35, .25);
    color: #232323;
    background-color: rgba(255, 255, 255, .6);
}

.header-light .mobil-dil a.aktif,
.sticky .mobil-dil a.aktif,
header.sticky .mobil-dil a.aktif {
    background-color: #232323;
    border-color: #232323;
    color: #fff;
}

/* Tek dil varsa gösterilecek alternatif de yoktur */
.mobil-dil:empty {
    display: none;
}

/* Logo + dil + hamburger asla alt satıra düşmesin */
@media (max-width: 991px) {
    .navbar > .container-fluid {
        flex-wrap: nowrap;
    }

    .navbar-brand {
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .navbar-brand .mobile-logo,
    .navbar-brand .default-logo,
    .navbar-brand .alt-logo {
        max-width: 170px;
        height: auto;
    }
}


/* ==================================================================
   4) MOBİLDE SLIDER
   Slider artık tam ekran değil (theme/theme1/index.php'deki revolution
   ayarında mobilde sliderLayout 'auto' + 16:9 gridheight). Tam ekranken
   sabit header görselin üstünde duruyordu; bu yükseklikte altına
   giremeyeceği için header kadar aşağıdan başlatıyoruz.
   ================================================================== */

@media (max-width: 991px) {
    .rev_slider_wrapper {
        margin-top: 99px;
    }
}
