/* Bayiler ve Yetkili Servisler rehber sayfaları (/tr/motosiklet-bayileri, /tr/motosiklet-servisleri) */

.rehber-sayfa {
    --rehber-sari: #f8b133;
    --rehber-sari-koyu: #8a5500;
    --rehber-koyu: #141414;
    --rehber-metin: #2b2f36;
    --rehber-soluk: #555c66;
    --rehber-kenar: #e4e6eb;
    --rehber-zemin: #f7f8fa;
    box-sizing: border-box;
    padding-bottom: 24px;
    color: var(--rehber-metin);
    overflow-x: clip;
}

.rehber-sayfa *,
.rehber-sayfa *::before,
.rehber-sayfa *::after {
    box-sizing: border-box;
}

/* ---------------- Üst başlık ve bölüm sekmeleri ---------------- */
.rehber-ust {
    background: #fff;
    border: 1px solid var(--rehber-kenar);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(20, 20, 20, .04);
}

.rehber-sekmeler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f3;
}

.rehber-sekme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid #d9dde4;
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--rehber-metin);
    font-family: 'Ubuntu', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.rehber-sekme:hover,
.rehber-sekme:focus-visible {
    border-color: var(--rehber-sari);
    background: #fffaf0;
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-sekme.etkin {
    background: var(--rehber-koyu);
    border-color: var(--rehber-koyu);
    color: var(--rehber-sari);
    box-shadow: 0 2px 6px rgba(20, 20, 20, .14);
}

.rehber-sekme.etkin:hover,
.rehber-sekme.etkin:focus-visible {
    background: #222;
    border-color: var(--rehber-sari);
    color: var(--rehber-sari);
}

.rehber-sekme:focus-visible,
.rehber-filtre__sec:focus-visible,
.rehber-btn:focus-visible,
.rehber-eylem:focus-visible,
.rehber-sayfalama__bag:focus-visible,
.rehber-il-etiket:focus-visible,
.rehber-cip-temizle:focus-visible,
.rehber-son-arama-cip:focus-visible,
.rehber-son-aramalar__temizle:focus-visible,
.rehber-il-oneri__kapat:focus-visible,
.rehber-il-oneri__konum:focus-visible {
    outline: 2px solid var(--rehber-sari);
    outline-offset: 2px;
}

.rehber-baslik-satir {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
}

.rehber-baslik {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rehber-koyu);
    min-width: 0;
    overflow-wrap: break-word;
}

.rehber-baslik::before {
    content: "";
    flex: none;
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: var(--rehber-sari);
}

.rehber-ozet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #f0dfb8;
    border-radius: 20px;
    background: #fff9ec;
    color: #5c3a00;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.rehber-aciklama {
    margin: 10px 0 0;
    color: var(--rehber-soluk);
    font-size: 14px;
    line-height: 1.55;
}

/* ---------------- Reklam alanları ---------------- */
.rehber-sayfa > .reklam-alan,
.rehber-izgara > .reklam-alan {
    margin: 0 0 14px;
}

.rehber-izgara > .reklam-alan {
    grid-column: 1 / -1;
    margin: 4px 0;
}

/* ---------------- Filtre formu ---------------- */
.rehber-filtre-kutu {
    background: #fff;
    border: 1px solid var(--rehber-kenar);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(20, 20, 20, .04);
}

.rehber-filtre {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.rehber-filtre__alan {
    min-width: 0;
}

.rehber-filtre__etiket {
    display: block;
    margin: 0 0 6px;
    color: var(--rehber-koyu);
    font-family: 'Ubuntu', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.rehber-filtre__sec {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background-color: #fff;
    color: var(--rehber-koyu);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.rehber-filtre__sec:hover:not(:disabled) {
    border-color: #aeb6c4;
}

.rehber-filtre__sec:focus {
    border-color: var(--rehber-sari);
    box-shadow: 0 0 0 3px rgba(248, 177, 51, .22);
    outline: none;
}

.rehber-filtre__sec:disabled {
    background-color: #f3f4f6;
    color: #6c737f;
    cursor: not-allowed;
}

.rehber-filtre__dugmeler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rehber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: 'Ubuntu', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.rehber-btn--birincil {
    flex: 1 1 auto;
    background: var(--rehber-sari);
    border-color: #e29d1e;
    color: var(--rehber-koyu);
}

.rehber-btn--birincil:hover,
.rehber-btn--birincil:focus-visible {
    background: #e9a223;
    border-color: #c9840a;
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-btn--temizle {
    background: #f4f5f7;
    border-color: #d5dae2;
    color: var(--rehber-metin);
}

.rehber-btn--temizle:hover,
.rehber-btn--temizle:focus-visible {
    background: #e9ecf1;
    border-color: #bcc3cf;
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-secili-filtreler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef0f3;
}

.rehber-cip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid #e6e8ec;
    border-radius: 16px;
    background: #f8f9fb;
    color: var(--rehber-metin);
    font-size: 12.5px;
    font-weight: 600;
}

.rehber-cip strong {
    color: var(--rehber-koyu);
}

.rehber-cip-temizle {
    margin-left: auto;
    color: var(--rehber-sari-koyu);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.rehber-cip-temizle:hover,
.rehber-cip-temizle:focus-visible {
    color: var(--rehber-koyu);
    text-decoration: underline;
}

/* ---------------- İşletme kartları ızgarası ---------------- */
.rehber-izgara {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.rehber-kart {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--rehber-kenar);
    border-top: 3px solid var(--rehber-sari);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(20, 20, 20, .05);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.rehber-kart:hover {
    border-color: #d8dce4;
    border-top-color: var(--rehber-sari);
    box-shadow: 0 6px 18px rgba(20, 20, 20, .09);
}

.rehber-kart__ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rehber-kart__baslik-grup {
    flex: 1 1 auto;
    min-width: 0;
}

.rehber-kart__etiketler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.rehber-kart__marka {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--rehber-koyu);
    color: var(--rehber-sari);
    font-family: 'Ubuntu', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
}

.rehber-kart__konum {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid #f0dfb8;
    border-radius: 6px;
    background: #fff9ec;
    color: #5c3a00;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.rehber-kart__konum .fa {
    color: var(--rehber-sari-koyu);
}

.rehber-kart__baslik {
    margin: 0;
    font-family: 'Ubuntu', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rehber-koyu);
    overflow-wrap: break-word;
}

.rehber-kart__logo-kutu {
    flex: none;
    width: 56px;
    height: 56px;
    padding: 4px;
    border: 1px solid #eceef2;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rehber-kart__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rehber-kart__govde {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    margin-bottom: 14px;
}

.rehber-kart__satir {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rehber-metin);
    min-width: 0;
    overflow-wrap: anywhere;
}

.rehber-kart__ikon {
    flex: none;
    width: 18px;
    margin-top: 2px;
    color: var(--rehber-sari-koyu);
    text-align: center;
}

.rehber-kart__bolge {
    color: var(--rehber-soluk);
    font-weight: 600;
}

.rehber-kart__etiket {
    color: var(--rehber-koyu);
    font-weight: 700;
}

/* ---------------- Kart eylem düğmeleri ---------------- */
.rehber-kart__eylemler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef0f3;
}

.rehber-eylem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid #d7dce4;
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--rehber-koyu);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    max-width: 100%;
    min-width: 0;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.rehber-eylem--tel {
    background: var(--rehber-sari);
    border-color: #e29d1e;
    color: var(--rehber-koyu);
}

.rehber-eylem--tel:hover,
.rehber-eylem--tel:focus-visible {
    background: #e9a223;
    border-color: #c9840a;
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-eylem--harita {
    background: #fff;
    border-color: #cfd5df;
    color: var(--rehber-koyu);
}

.rehber-eylem--harita:hover,
.rehber-eylem--harita:focus-visible {
    background: #fff9ec;
    border-color: var(--rehber-sari);
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-eylem--web {
    background: #f8f9fb;
    border-color: #d7dce4;
    color: var(--rehber-metin);
}

.rehber-eylem--web:hover,
.rehber-eylem--web:focus-visible {
    background: #eef1f5;
    border-color: #aeb6c4;
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-eylem__web-metin {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* ---------------- Uyarı ve boş durum ---------------- */
.rehber-uyari,
.rehber-bos {
    background: #fff;
    border: 1px solid var(--rehber-kenar);
    border-left: 4px solid var(--rehber-sari);
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 2px 8px rgba(20, 20, 20, .04);
}

.rehber-uyari__baslik,
.rehber-bos__baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-family: 'Ubuntu', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--rehber-koyu);
}

.rehber-uyari__baslik .fa,
.rehber-bos__baslik .fa {
    color: var(--rehber-sari-koyu);
}

.rehber-uyari__metin,
.rehber-bos__metin {
    margin: 0 0 16px;
    color: var(--rehber-soluk);
    font-size: 14px;
    line-height: 1.55;
}

.rehber-il-etiketler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rehber-il-etiket {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid #d5dae2;
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--rehber-koyu);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.rehber-il-etiket:hover,
.rehber-il-etiket:focus-visible {
    border-color: var(--rehber-sari);
    background: #fff9ec;
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-bos__eylemler {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------------- Sayfalama ---------------- */
.rehber-sayfalama {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.rehber-sayfalama__liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rehber-sayfalama__bag,
.rehber-sayfalama__durum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #d5dae2;
    border-radius: 8px;
    background: #fff;
    color: var(--rehber-koyu);
    font-family: 'Ubuntu', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.rehber-sayfalama__bag:hover,
.rehber-sayfalama__bag:focus-visible {
    border-color: var(--rehber-sari);
    background: #fff9ec;
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-sayfalama__durum--etkin {
    background: var(--rehber-koyu);
    border-color: var(--rehber-koyu);
    color: var(--rehber-sari);
}

.rehber-sayfalama__durum--bos {
    border-color: transparent;
    background: transparent;
    color: var(--rehber-soluk);
}

/* ---------------- Son aramalar ve il önerisi ---------------- */
.rehber-son-aramalar[hidden],
.rehber-il-oneri[hidden] {
    display: none;
}

.rehber-son-aramalar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f3;
}

.rehber-son-aramalar__baslik {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rehber-soluk);
    font-size: 13px;
    font-weight: 700;
}

.rehber-son-aramalar__baslik .fa {
    color: var(--rehber-sari-koyu);
}

.rehber-son-aramalar__liste {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.rehber-son-arama-cip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid #f0dfb8;
    border-radius: 18px;
    background: #fff9ec;
    color: #5c3a00;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.rehber-son-arama-cip:hover,
.rehber-son-arama-cip:focus-visible {
    background: var(--rehber-sari);
    border-color: #e29d1e;
    color: var(--rehber-koyu);
    text-decoration: none;
}

.rehber-son-aramalar__temizle {
    margin-left: auto;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--rehber-soluk);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.rehber-son-aramalar__temizle:hover,
.rehber-son-aramalar__temizle:focus-visible {
    color: var(--rehber-koyu);
}

.rehber-il-oneri {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1040;
    width: min(380px, calc(100vw - 40px));
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--rehber-kenar);
    border-left: 4px solid var(--rehber-sari);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(20, 20, 20, .16);
}

.rehber-il-oneri__ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.rehber-il-oneri__metin {
    margin: 0;
    color: var(--rehber-koyu);
    font-size: 13.5px;
    line-height: 1.45;
}

.rehber-il-oneri__kapat {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -4px -4px 0 0;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--rehber-soluk);
    cursor: pointer;
}

.rehber-il-oneri__kapat:hover,
.rehber-il-oneri__kapat:focus-visible {
    background: #eef1f5;
    color: var(--rehber-koyu);
}

.rehber-il-oneri__eylemler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rehber-il-oneri__goster,
.rehber-il-oneri__vazgec {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 13px;
}

.rehber-il-oneri__konum {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: var(--rehber-sari-koyu);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.rehber-il-oneri__konum:hover,
.rehber-il-oneri__konum:focus-visible {
    color: var(--rehber-koyu);
}

/* ---------------- Tablet / Masaüstü düzeni ---------------- */
@media (min-width: 768px) {
    .rehber-ust {
        padding: 22px 24px;
    }

    .rehber-baslik {
        font-size: 27px;
    }

    .rehber-filtre {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
        gap: 12px;
    }

    .rehber-btn--birincil {
        flex: 0 0 auto;
    }

    .rehber-izgara {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .rehber-kart {
        padding: 18px 20px;
    }
}

@media (max-width: 479px) {
    .rehber-ust,
    .rehber-filtre-kutu,
    .rehber-kart {
        padding: 14px;
    }

    .rehber-sekmeler {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rehber-sekme {
        padding: 9px 10px;
        font-size: 13px;
        text-align: center;
    }

    .rehber-baslik {
        font-size: 21px;
    }

    .rehber-kart__eylemler {
        flex-direction: column;
    }

    .rehber-eylem {
        width: 100%;
    }

    .rehber-eylem__web-metin {
        max-width: 240px;
    }

    .rehber-son-aramalar__temizle {
        margin-left: 0;
    }

    .rehber-il-oneri {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 12px 14px;
    }

    .rehber-il-oneri__konum {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rehber-sekme,
    .rehber-filtre__sec,
    .rehber-btn,
    .rehber-kart,
    .rehber-eylem,
    .rehber-il-etiket,
    .rehber-sayfalama__bag,
    .rehber-son-arama-cip {
        transition: none;
    }
}
