﻿    @media (max-width: 767px) {
        * {
            max-width: 100% !important;
            box-sizing: border-box !important;
        }
        
        #bayiHaritaContainer,
        #bayiHarita,
        #bayiHaritaContainer,
        #bayiHarita,
        .mapBox,
        #bayiHaritaContainer *,
        #bayiHarita *,
        #bayiHaritaContainer *,
        #bayiHarita * {
            max-width: none !important;
            box-sizing: border-box !important;
        }
        
        #bayiHarita > div,
        #bayiHarita > div,
        .mapBox > div {
            max-width: none !important;
            width: 100% !important;
        }
    }
    .bayiListItem.position-relative,
    .s5-detailBox.bayiListItemRow {
        position: relative;
    }

    .bayi-card-stretched-link {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .bayiListItem .rs1-butonLine a,
    .bayiListItem .rs1-contact-actions a {
        position: relative;
        z-index: 2;
    }

    .s5-detailRight .icon-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    }

    .s5-detailRight .icon-link i {
    font-size: inherit;
    line-height: inherit;
    vertical-align: middle;
    }

    .mapBox {
    border-radius: 15px;
    overflow: hidden;
    }

    .s5-citySelectBox {
    color: #000;
    background-color: #fff;
    transition: all 0.3s ease;
    }

    .s5-citySelectBox.active {
    color: #000;
    background-color: #000;
    color: #fff;
    }

    .city-map-seo-text {
        margin-top: 16px;
        padding: 14px 16px;
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        background: #fff;
        color: #3c3c3c;
        font-size: 16px;
        line-height: 1.6;
    }

    .city-map-seo-text b,
    .city-map-seo-text strong {
        font-weight: 700;
    }

    @media (max-width: 767px) {
        .city-map-seo-text {
            margin-top: 12px;
            padding: 12px;
            font-size: 15px;
            line-height: 1.55;
            border-radius: 10px;
        }
    }
</style>
<style>
    .pageTitleSection{
        margin:0 !important;
    }

    .redBorder{
        margin:0 !important;
    }
    @media (max-width: 426px) {
        .contactBox{
            margin-top: 35%;
        }
    }
    @media (min-width: 426px) {
        .contactBox{
            margin-top: 20%;
        }
    }

    .s5-searchContainer {
        display: flex;
        align-items: center;
        /* Gerekirse öğeler arasına boşluk ekleyebilirsiniz */
        /* gap: 10px; */
    }

    .s5-searchContainer input[type="text"] {
        flex-grow: 1; /* Arama inputunun kalan alanı kaplamasını sağlar */
        /* Gerekirse inputun sağ tarafına padding ekleyin */
        /* padding-right: 30px; /* Arama simgesi ve buton için yer açar */ */
    }

    .s5-searchContainer .fa-magnifying-glass {
        /* Arama simgesini inputun içine konumlandırmak için gerekirse ayarlama yapın */
        /* position: absolute; right: 10px; */
    }

    .location-button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0 5px; /* Butonun etrafına biraz boşluk */
        color: inherit; /* Renk ayarı */
        font-size: 1em; /* İkon boyutu ayarı */
        /* Gerekirse butonu inputun içine konumlandırmak için ayarlama yapın */
        /* position: absolute; right: 35px; */
    }
    
    /* Sıralama butonu stilleri */
    .sort-button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0 5px;
        color: inherit;
        font-size: 1em;
        position: absolute;
        right: 70px;
        transition: color 0.2s;
    }
    
    .sort-button:hover {
        color: var(--primary-color);
    }
    
    .sort-button.active {
        color: var(--primary-color);
    }
    
    .sort-button .sort-icon {
        transition: transform 0.2s;
    }
    
    .sort-button.asc .sort-icon {
        transform: rotate(180deg);
    }
    
    .sort-button.desc .sort-icon {
        transform: rotate(0deg);
    }
    
    /* İlk 3 bayi için özel arka plan */
    .bayiListItemRow.top-3,
    .bayiListItem.top-3 {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-left: 4px solid #c62828;
        box-shadow: 0 2px 8px rgba(198, 40, 40, 0.1);
        position: relative;
    }
    
    .bayiListItemRow.top-3::before,
    .bayiListItem.top-3::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 0%, rgba(198, 40, 40, 0.02) 100%);
        pointer-events: none;
    }
    
    /* İlk 3 bayi için özel hover efekti */
    .bayiListItemRow.top-3:hover,
    .bayiListItem.top-3:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(198, 40, 40, 0.15);
        cursor: pointer;
    }
    
    /* Tüm bayi kartları için cursor pointer */
    .bayiListItemRow,
    .bayiListItem {
        cursor: pointer;
    }
    
    /* Bayi kartları hover efekti */
    .bayiListItemRow:hover,
    .bayiListItem:hover {
        cursor: pointer;
        transform: translateY(-1px);
        transition: transform 0.2s ease;
    }
    
    /* İlk 3 bayi için özel badge */
    .bayiListItemRow.top-3 .top-badge,
    .bayiListItem.top-3 .top-badge {
/*         position: absolute;
        top: 8px;
        right: 8px; */
        background: #c62828;
        color: white;
        font-size: 0.8rem;
        font-weight: bold;
        height:36px;
        padding: 6px 16px;
        border-radius: 4px;
        z-index: 1;
        min-width: 40px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 0.5px;
    }
    
    /* Mesafe bilgisi için özel stil */
    .distance-info {
        color: #c62828;
        font-size: 11px;
        font-weight: 600;
        margin-left: 5px;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }
    
    .distance-info i {
        font-size: 10px;
        color: #666;
    }
    
    /* WhatsApp ikon butonu stilleri */
    .whatsapp-icon-btn {
        background: #25d366;
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
        margin: 0 8px;
    }
    .whatsapp-icon-btn:hover {
        background: #128c7e;
        color: #fff;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    .whatsapp-icon-btn i {
        font-size: 18px;
    }
    .rs1-butonLine .whatsapp-icon-btn {
        width: 36px;
        height: 36px;
        margin: 0 6px;
    }
    .rs1-butonLine .whatsapp-icon-btn i {
        font-size: 16px;
    }
    
    @media (min-width: 992px) {
        .rs1-butonLine {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .rs1-butonLine .whiteButton {
            background-color: #fff;
            color: #c62828;
            font-weight: 600;
            padding: 10px 18px;
            border-radius: 8px;
            border: 1.5px solid #c62828;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            font-size: 11px;
            min-height: 40px;
            flex: 1;
            min-width: 140px;
            box-shadow: 0 2px 4px rgba(198, 40, 40, 0.1);
        }
        
        .rs1-butonLine .whiteButton:hover {
            background-color: #fff5f5;
            border-color: #b71c1c;
            color: #b71c1c;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(198, 40, 40, 0.15);
        }
        
        .rs1-butonLine .whiteButton i {
            font-size: 16px;
            color: #c62828;
            transition: transform 0.3s ease;
        }
        
        .rs1-butonLine .whiteButton:hover i {
            transform: scale(1.1);
        }
        
        .rs1-butonLine .whiteButton .phone-formatted {
            font-weight: 600;
            letter-spacing: 0.3px;
        }
        
        .rs1-butonLine .redButton2 {
            background-color: #c62828;
            color: #fff;
            border: 1.5px solid #c62828;
            padding: 10px 18px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            min-height: 40px;
            flex: 1;
            min-width: 140px;
            box-shadow: 0 2px 4px rgba(198, 40, 40, 0.2);
        }
        
        .rs1-butonLine .redButton2:hover {
            background-color: #b71c1c;
            border-color: #b71c1c;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
        }
        
        .rs1-butonLine .redButton2 i {
            font-size: 16px;
            transition: transform 0.3s ease;
        }
        
        .rs1-butonLine .redButton2:hover i {
            transform: scale(1.1);
        }
        
        .rs1-butonLine .top-badge {
            background: #c62828;
            color: white;
            font-size: 13px;
            font-weight: 700;
            height: 40px;
            padding: 8px 16px;
            border-radius: 8px;
            z-index: 1;
            min-width: 60px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(198, 40, 40, 0.2);
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            flex: 0 0 auto;
        }
        
        .rs1-butonLine .top-badge:hover {
            background: #b71c1c;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
        }
        
        .bayiListItem.top-3 .rs1-butonLine {
            flex-direction: row;
            gap: 10px;
        }
        
        .bayiListItem.top-3 .rs1-butonLine .whiteButton,
        .bayiListItem.top-3 .rs1-butonLine .redButton2 {
            flex: 1;
        }
        
        .bayiListItem.top-3 .rs1-butonLine .top-badge {
            flex: 0 0 auto;
            order: 0;
        }
    }
    
    .rs1-contact-actions {
        position: absolute;
        top: -12px;
        right: -12px;
        z-index: 10;
    }
    .rs1-contact-actions .whatsapp-icon-btn {
        width: 36px;
        height: 36px;
        margin: 0;
        box-shadow: 0 3px 8px rgba(37, 211, 102, 0.4);
    }
    .rs1-contact-actions .whatsapp-icon-btn i {
        font-size: 18px;
    }
    .rs1-line1 {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    .rs1-locationSide {
        flex: 1;
        min-width: 0;
    }
    .bayi-detay-panel-buttons .whatsapp-icon-btn {
        width: 44px;
        height: 44px;
        margin: 0 10px;
    }
    .bayi-detay-panel-buttons .whatsapp-icon-btn i {
        font-size: 20px;
    }

    @media (max-width: 475px) {
        .whiteButton {
            font-size:13px;
            padding: 6px;
        }
        .r-s1-swiper{
            padding: 16px 2.5px !important;
        }
        .redButton2 {
            font-size:13px;
            padding: 6px;
        }
        .top-badge{
            border-radius: 8px !important;
            font-size: 13px !important;
        }
    }
    /* Mobil görünümde WhatsApp ikonunu görselin altına taşı ve metni sağına yerleştir */
    @media (max-width: 475px) {
        .rs1-line1 {
            display: grid;
            grid-template-columns: auto 1fr;
            grid-template-rows: auto auto;
            gap: 8px 12px;
            align-items: start;
        }
        .rs1-line1 > img {
            grid-column: 1;
            grid-row: 1;
            align-self: start;
        }
        .rs1-contact-actions {
            position: static;
            grid-column: 1;
            grid-row: 2;
            margin: 0;
            display: flex;
            justify-content: flex-start;
        }
        .rs1-contact-actions .whatsapp-icon-btn {
            margin: 0;
        }
        .rs1-locationSide {
            grid-column: 2;
            grid-row: 1 / 3;
            min-width: 0;
            padding-right: 0;
            align-self: start;
        }
    }
</style>
<style>
    /* _Bayilerimiz.cshtml dosyasındaki .container'a, .row'un negatif marjinlerini dengelemek için padding ekle */
    /* Bu, yatay kaydırma çubuğu ve taşma sorununu çözmeye yardımcı olabilir */
    .s5 > .container {
        padding-right: var(--bs-gutter-x, 0.75rem);
        padding-left: var(--bs-gutter-x, 0.75rem);
    }

    /* İsteğe bağlı: Eğer yukarıdaki çözüm iç padding sorununa yol açarsa */
    /* İçindeki sütunlara (col) manuel padding eklemeyi düşünebilirsiniz */
    /* .s5 > .container > .row.reverseRow.customReverseRow > [class^="col-"] { */
    /*     padding-right: calc(var(--bs-gutter-x) * .5); */
    /*     padding-left: calc(var(--bs-gutter-x) * .5); */
    /* } */
</style>
<style>
    .bayi-detay-panel-icerik {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 4px 24px #0001;
        padding: 28px 24px 20px 24px;
        margin: 32px auto 0 auto;
        max-width: 700px;
        display: flex;
        flex-direction: column;
        gap: 22px;
        min-height: 420px;
        animation: fadeInBayiDetay 0.4s;
    }
    @keyframes fadeInBayiDetay {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: none; }
    }
    .bayi-detay-panel-header {
        display: flex;
        align-items: flex-start;
        gap: 18px;
        flex-wrap: wrap;
    }
    .bayi-detay-panel-img {
        width: 80px;
        height: auto;
        max-width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: 16px;
        box-shadow: 0 2px 8px #0001;
        background: #f7f7f7;
        border: 1.5px solid #eee;
        margin-top: 2px;
    }
    .bayi-detay-panel-title {
        font-size: 1.7rem;
        font-weight: 700;
        color: #c62828;
        margin-bottom: 8px;
        letter-spacing: -0.5px;
        line-height: 1.1;
        font-family: 'Segoe UI', 'Arial', sans-serif;
    }
    .bayi-detay-panel-info {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 1.01rem;
        font-weight: 400;
    }
    .bayi-detay-panel-info span {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #444;
        font-size: 1.01rem;
        font-weight: 400;
    }
    .bayi-detay-panel-info i {
        color: #bdbdbd;
        font-size: 1em;
        min-width: 16px;
        text-align: center;
        opacity: 0.8;
    }
    .bayi-detay-panel-box {
        background: #f6f7fa;
        border-radius: 10px;
        padding: 10px 14px 12px 14px;
        box-shadow: 0 1px 4px #0001;
        font-size: 0.98rem;
        color: #333;
        margin-top: 10px;
    }
    .bayi-detay-panel-box b {
        color: #c62828;
        font-weight: 600;
        font-size: 1.01rem;
    }
    .bayi-detay-panel-calisma {
        margin-top: 8px;
    }
    .bayi-detay-panel-buttons {
        display: flex;
        gap: 12px;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    .bayi-detay-panel-buttons a {
        padding: 10px 22px;
        border-radius: 7px;
        font-weight: 600;
        font-size: 1.01rem;
        transition: background 0.2s, color 0.2s, border 0.2s;
        text-decoration: none;
        display: inline-block;
        box-shadow: 0 1px 4px #0001;
        border: 1.2px solid #e0e0e0;
    }
    .bayi-detay-panel-buttons .whiteButton {
        color: #c62828;
        background: #fff;
        border: 1.2px solid #c62828;
    }
    .bayi-detay-panel-buttons .whiteButton:hover {
        background: #fbe9e7;
    }
    .bayi-detay-panel-buttons .redButton {
        background: #c62828;
        color: #fff;
        border: none;
    }
    .bayi-detay-panel-buttons .redButton:hover {
        background: #b71c1c;
    }
    
    .bayi-detay-panel-body {
        display: flex;
        gap: 28px;
        flex-wrap: wrap;
    }
    .bayi-detay-panel-body-left {
        flex: 2;
        min-width: 180px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .bayi-detay-panel-body-right {
        flex: 1;
        min-width: 260px;
        max-width: 400px;
        display: flex;
        align-items: flex-start;
    }
    .bayi-detay-panel-map {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px #0001;
        width: 100%;
        background: #f8f9fa;
        border: 1.5px solid #eee;
        min-width: 220px;
        min-height: 220px;
        height: 260px;
        max-height: 320px;
        transition: height 0.2s;
    }
    .bayi-detay-panel-map iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 16px;
    }
    @media (max-width: 900px) {
        .bayi-detay-panel-icerik { padding: 10px 2px 25px 2px; }
        .bayi-detay-panel-header { gap: 8px; }
        .bayi-detay-panel-title { font-size: 1.1rem; }
        .bayi-detay-panel-img { width: 56px; height: 56px; }
        .bayi-detay-panel-body { gap: 6px; flex-direction: column; }
        .bayi-detay-panel-body-right { max-width: 100%; }
        .bayi-detay-panel-map { min-width: 100%; min-height: 180px; height: 200px; }
    }

    .s5-pageTitle {
        font-size: 2rem;
        font-weight: 700;
        color: #333;
        margin: 0;
    }

    /* Mobile responsive styles */
    @media (max-width: 991px) {
        .s5-leftBox {
            margin-bottom: 20px;
        }
        
        .s5-subTitle {
            margin-bottom: 15px;
        }

        .s5-pageTitle {
            margin-bottom: 15px;
        }
        
        /* Mobile bayi listesi için özel stiller */
        #bayiListesi .s5-detailBox {
            margin-bottom: 10px;
        }
        
        /* Mobile harita container için özel stiller */
        #bayiHaritaContainer {
            border-radius: 10px;
            overflow: hidden;
            display: block !important;
        }
        
        /* Mobile detay panel için özel stiller */
        #bayiDetayPanel {
            border-radius: 10px;
            overflow: hidden;
            display: block !important;
        }
        
        /* Mobile harita container için özel stiller */
        #bayiHarita {
            display: block !important;
            min-height: 300px;
            width: 100%;
            height: 400px;
            background-color: #f0f0f0;
            border-radius: 10px;
            overflow: hidden;
        }
        
        #bayiHarita iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 10px;
        }
    }
</style>
<style>
    .bayi-detay-panel-address-map-row {
        display: flex;
        gap: 16px;
        margin-top: 12px;
    }
    .bayi-detay-panel-address-box {
        flex: 1 1 0;
        background: #f6f7fa;
        border-radius: 10px;
        padding: 10px 14px 12px 14px;
        box-shadow: 0 1px 4px #0001;
        font-size: 0.98rem;
        color: #333;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
    }
    .bayi-detay-panel-address-box b {
        color: #c62828;
        font-weight: 600;
        font-size: 1.01rem;
    }
    .bayi-detay-panel-address-box a {
        margin-top: 8px;
        min-width: 90px;
        display: inline-block;
        font-size: 0.98rem;
    }
    .bayi-detay-panel-map {
        flex: 1 1 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px #0001;
        background: #f8f9fa;
        border: 1.5px solid #eee;
        min-width: 0;
        min-height: 180px;
        height: 340px;
        max-height: 340px;
        transition: height 0.2s;
        display: flex;
        align-items: stretch;
    }
    .bayi-detay-panel-map iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 16px;
        min-height: 180px;
    }
    @media (max-width: 900px) {
        .bayi-detay-panel-address-map-row {
            flex-direction: column;
            gap: 8px;
        }
        .bayi-detay-panel-map, .bayi-detay-panel-address-box {
            max-width: 100%;
            min-width: 0;
            height: auto;
        }
        .bayi-detay-panel-map iframe {
            min-height: 120px;
            height: 180px;
        }
    }
</style>
<style>
    .bayi-contact-block {
        margin-bottom: 0.5rem;
    }
    .bayi-contact-title {
        font-size: 1.35rem;
        font-weight: 700;
        color: #c62828;
        margin-bottom: 0.3rem;
        letter-spacing: -0.5px;
        font-family: 'Segoe UI', 'Arial', sans-serif;
    }
    .bayi-contact-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 0.99rem;
        color: #333;
    }
    .bayi-contact-list span {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #444;
        font-size: 0.99rem;
        font-weight: 400;
        line-height: 1.3;
    }
    .bayi-contact-list i {
        color: #bdbdbd;
        font-size: 1em;
        min-width: 16px;
        text-align: center;
        opacity: 0.8;
    }
    .bayi-contact-list a {
        color: #1976d2;
        text-decoration: underline;
        transition: color 0.2s;
    }
    .bayi-contact-list a:hover {
        color: #0d47a1;
    }
    .bayi-contact-yetkili {
        color: #888;
        font-size: 0.97rem;
        font-style: italic;
        margin-top: 1px;
    }
</style>
<style>
    /* Mobilde scroll aktifken özel stil */
    #bayiListesi.scrollable {
        max-height: 350px;
        overflow-y: auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px #0001;
        background: #fff;
    }
    
    /* Mobilde konum izni açıkken buton düzeni */
    @media (max-width: 991px) {
        .bayiListItem.top-3 .rs1-butonLine {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .bayiListItem.top-3 .rs1-butonLine .whiteButton {
            width: 100%;
            text-align: center;
            order: 1; /* En üstte */
        }
        
        .bayiListItem.top-3 .rs1-butonLine .redButton2 {
            width: 100%;
            text-align: center;
            order: 3; /* En altta */
        }
        
        .bayiListItem.top-3 .rs1-butonLine .top-badge {
            order: 2; /* Ortada */
            width: 100%;
            justify-content: center;
            margin: 0;
            height: 32px;
            padding: 4px 12px;
        }
        
        /* Konum izni kapalıyken normal düzen */
        .bayiListItem:not(.top-3) .rs1-butonLine {
            display: flex;
            flex-direction: row;
            gap: 8px;
        }
        
        .bayiListItem:not(.top-3) .rs1-butonLine .whiteButton,
        .bayiListItem:not(.top-3) .rs1-butonLine .redButton2 {
            flex: 1;
            text-align: center;
        }
    }

@media (max-width: 991px) {
    .bayilerimiz-detail-panel {
        min-height: 400px !important;
        margin-top: 20px;
    }

    #bayiHarita {
        min-height: 400px;
    }

    #bayiListesi.scrollable {
        max-height: 420px;
        overflow-y: auto;
    }
}
