/* ================================
   BELGE / GARANTİ SORGULAMA
================================ */

#belgeSorgu {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}


/* ================================
   ARAMA ALANI
================================ */

#bS_search_panel {
    width: 100%;
    box-sizing: border-box;
    background: #1e2224;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.bs-search-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.bs-search-subtitle {
    color: #aeb3b6;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
}

.bs-search-row {
    display: flex;
    width: 100%;
    gap: 12px;
    align-items: stretch;
}

.bs-search-select {
    flex: 0 0 30%;
}

.bs-search-input {
    flex: 1;
}

.bs-search-button {
    flex: 0 0 180px;
}


#bS_search_type,
#bS_search_key {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 54px;
    border: 1px solid #444a4e;
    border-radius: 6px;
    background: #ffffff;
    padding: 0 15px;
    margin: 0;
    float: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #17191a;
    outline: none;
}


#bS_search_type:focus,
#bS_search_key:focus {
    border-color: #e6cf13;
}


#bS_search_panel button {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 54px;
    border: 0;
    border-radius: 6px;
    background: #e6cf13;
    color: #151515;
    padding: 0 25px;
    margin: 0;
    float: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}


#bS_search_panel button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}



/* ================================
   SONUÇ KARTI
================================ */

.bs-result-card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    background: #1e2224;
    border: 1px solid #343a3d;
    border-radius: 14px;
    overflow: hidden;
    color: #ffffff;
}


/* Sarı üst çizgi */

.bs-result-card::before {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: #e6cf13;
}


.bs-result-top {
    box-sizing: border-box;
    width: 100%;
    padding: 25px 28px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #343a3d;
}


.bs-result-status {
    display: flex;
    align-items: center;
    gap: 14px;
}


.bs-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #e6cf13;
    color: #151515;
    font-size: 21px;
    font-weight: 900;
}


.bs-status-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
}


.bs-status-description {
    color: #8f969a;
    font-size: 12px;
    margin-top: 3px;
}



/* ================================
   GARANTİ ROZETİ
================================ */

.bs-warranty-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e6cf13;
    color: #141414;
    padding: 10px 16px;
    border-radius: 8px;
}


.bs-warranty-number {
    font-size: 27px;
    line-height: 1;
    font-weight: 900;
}


.bs-warranty-text {
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.5px;
}



/* ================================
   ARAÇ BAŞLIĞI
================================ */

.bs-vehicle-title {
    padding: 22px 28px 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}



/* ================================
   SONUÇ İÇERİĞİ
================================ */

.bs-result-content {
    box-sizing: border-box;
    display: flex;
    gap: 30px;
    padding: 25px 28px 30px;
}


.bs-car-photo {
    flex: 0 0 260px;
}


.bs-car-photo a {
    display: block;
}


.bs-car-photo img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #41474a;
}



/* ================================
   BİLGİLER
================================ */

.bs-result-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.bs-info-item {
    box-sizing: border-box;
    background: #262b2e;
    border: 1px solid #343a3d;
    border-radius: 8px;
    padding: 14px 16px;
    min-width: 0;
}


.bs-info-label {
    color: #e6cf13;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
}


.bs-info-value {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    word-break: break-word;
}



/* ================================
   BELGE BUTONU
================================ */

.bs-document-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    background: #e6cf13;
    color: #151515 !important;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;
}



/* ================================
   SONUÇ BULUNAMADI
================================ */

.bs-no-result {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 22px;
    border-radius: 10px;
    background: #1e2224;
    border: 1px solid #343a3d;
    color: #ffffff;
}


.bs-no-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #e6cf13;
    color: #151515;
    font-size: 20px;
    font-weight: 900;
}


.bs-no-result strong {
    font-size: 14px;
}


.bs-no-result p {
    margin: 3px 0 0;
    color: #9da3a7;
    font-size: 12px;
}



/* ================================
   TABLET
================================ */

@media only screen and (max-width: 900px) {

    .bs-search-row {
        flex-wrap: wrap;
    }

    .bs-search-select {
        flex: 1 1 45%;
    }

    .bs-search-input {
        flex: 1 1 45%;
    }

    .bs-search-button {
        flex: 1 1 100%;
    }

    .bs-result-content {
        flex-direction: column;
    }

    .bs-car-photo {
        flex: none;
        width: 100%;
    }

    .bs-car-photo img {
        height: 280px;
    }

}



/* ================================
   MOBİL
================================ */

@media only screen and (max-width: 600px) {

    #bS_search_panel {
        padding: 22px 18px;
        border-radius: 8px;
    }

    .bs-search-title {
        font-size: 19px;
    }

    .bs-search-select,
    .bs-search-input,
    .bs-search-button {
        flex: 1 1 100%;
    }

    .bs-result-top {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .bs-warranty-badge {
        align-self: flex-start;
    }

    .bs-vehicle-title {
        padding: 20px 20px 0;
        font-size: 20px;
    }

    .bs-result-content {
        padding: 20px;
        gap: 20px;
    }

    .bs-car-photo img {
        height: 220px;
    }

    .bs-result-info {
        grid-template-columns: 1fr;
    }

    .bs-info-item {
        padding: 13px 14px;
    }

}
/* ================================
   LIGHTBOX
================================ */

.bs-car-photo a {
    cursor: zoom-in;
}

.bs-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.88);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.bs-lightbox.bs-lightbox-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bs-lightbox img {
    display: block;
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55);

    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.bs-lightbox.bs-lightbox-active img {
    transform: scale(1);
}

.bs-lightbox-close {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(
        calc(-50% + min(46vw, 460px)),
        calc(-50% - min(45vh, 430px))
    );

    z-index: 2147483647;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 105px;
    height: 42px;

    padding: 0 15px;

    border: 0;
    border-radius: 7px;

    background: #e6cf13;
    color: #151515;

    font-family: 'Quicksand', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.bs-lightbox-close:hover {
    background: #f3dc14;

    transform: translate(
        calc(-50% + min(46vw, 460px)),
        calc(-50% - min(45vh, 430px))
    ) scale(1.04);
}

.bs-lightbox-close-icon {
    font-size: 23px;
    line-height: 1;
    font-weight: 500;
}

.bs-lightbox-close-text {
    position: relative;
    top: 1px;
}

body.bs-lightbox-open {
    overflow: hidden;
}


@media only screen and (max-width: 600px) {

    .bs-lightbox {
        padding: 15px;
    }

    .bs-lightbox img {
        max-width: 96vw;
        max-height: 85vh;
        border-radius: 7px;
    }

    .bs-lightbox-close {
        top: 12px;
        right: 12px;
    }

}
/* ========================================================
   v4.1 · Müşteri galeri + lightbox navigasyon
======================================================== */
.bs-car-gallery { flex:0 0 280px; min-width:0; }
.bs-car-gallery .bs-car-photo { width:100%; }
.bs-photo-thumbs {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
    margin-top:8px;
}
.bs-photo-thumb {
    display:block;
    overflow:hidden;
    border:2px solid transparent;
    border-radius:6px;
    background:#111;
    cursor:zoom-in;
}
.bs-photo-thumb:hover { border-color:#e6cf13; }
.bs-photo-thumb img {
    display:block;
    width:100%;
    height:52px;
    object-fit:cover;
}
.bs-photo-count {
    margin-top:7px;
    color:#92999d;
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.45px;
}
.bs-dealer-phone {
    display:block;
    margin-top:5px;
    color:#e6cf13 !important;
    font-size:11px;
    font-weight:800;
    text-decoration:none !important;
}
.bs-dealer-phone:hover { text-decoration:underline !important; }
.bs-info-item-wide { grid-column:1 / -1; }

.bs-lightbox-inner {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    max-width:92vw;
    max-height:90vh;
}
.bs-lightbox-close {
    top:10px !important;
    right:10px !important;
    left:auto !important;
    transform:none !important;
    z-index:20 !important;
}
.bs-lightbox-close:hover { transform:scale(1.04) !important; }
.bs-lightbox-nav {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:15;
    display:none;
    align-items:center;
    justify-content:center;
    width:46px;
    height:54px;
    padding:0;
    border:0;
    border-radius:8px;
    background:#e6cf13;
    color:#171717;
    font-size:26px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.bs-lightbox-prev { left:12px; }
.bs-lightbox-next { right:12px; }
.bs-lightbox-nav:hover { background:#f2dc16; }
.bs-lightbox-counter {
    position:absolute;
    left:50%;
    bottom:12px;
    transform:translateX(-50%);
    z-index:15;
    display:none;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(0,0,0,.62);
    color:#fff;
    font-size:10px;
    font-weight:800;
    letter-spacing:.4px;
}
@media only screen and (max-width:900px) {
    .bs-car-gallery { flex:none; width:100%; }
}
@media only screen and (max-width:600px) {
    .bs-photo-thumbs { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .bs-photo-thumb img { height:44px; }
    .bs-lightbox-nav { width:40px; height:48px; font-size:22px; }
    .bs-lightbox-prev { left:6px; }
    .bs-lightbox-next { right:6px; }
    .bs-lightbox-close { top:6px !important; right:6px !important; }
}

/* ========================================================
   v4.1.2 · Mobil görünürlük koruması
   Avada/Fusion responsive visibility bir üst container'ı gizlese bile
   shortcode'un kendi kökü mobilde görünür kalsın.
======================================================== */
@media only screen and (max-width:900px) {
    #belgeSorgu,
    #belgeSorgu.revocare-mobile-visible {
        display:block !important;
        visibility:visible !important;
        opacity:1 !important;
        width:100% !important;
        max-width:100% !important;
        max-height:none !important;
        overflow:visible !important;
        position:relative !important;
        z-index:1 !important;
    }

    #belgeSorgu #bS_search_panel,
    #belgeSorgu .bs-result-card,
    #belgeSorgu .bs-no-result {
        display:block !important;
        visibility:visible !important;
        opacity:1 !important;
    }

    #belgeSorgu .bs-search-row {
        display:flex !important;
        flex-direction:column !important;
        gap:10px !important;
    }

    #belgeSorgu .bs-search-select,
    #belgeSorgu .bs-search-input,
    #belgeSorgu .bs-search-button {
        width:100% !important;
        flex:1 1 auto !important;
    }
}

/* ========================================================
   v4.1.3 · Mobil public mount
   Garanti sorgulamayı Avada/Fusion gizli container'ından çıkarıp
   mobil header'ın hemen altında bağımsız olarak gösterir.
======================================================== */
@media only screen and (max-width:900px) {
    #revocare-mobile-public-mount {
        display:block !important;
        visibility:visible !important;
        opacity:1 !important;
        position:relative !important;
        z-index:5 !important;
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
        min-height:0 !important;
        padding:20px 16px 28px !important;
        margin:0 !important;
        box-sizing:border-box !important;
        overflow:visible !important;
        background:#1e2224 !important;
    }

    #revocare-mobile-public-mount #belgeSorgu {
        display:block !important;
        visibility:visible !important;
        opacity:1 !important;
        position:relative !important;
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
        min-height:0 !important;
        margin:0 auto !important;
        overflow:visible !important;
    }

    #revocare-mobile-public-mount #bS_search_panel {
        margin:0 !important;
    }
}

/* ========================================================
   v4.1.4 · Bağımsız garanti sorgulama sayfası
   Avada/Fusion Builder responsive visibility'den etkilenmez.
======================================================== */
.revocare-public-query-page {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    position:relative !important;
    width:100% !important;
    max-width:none !important;
    min-height:420px;
    margin:0 !important;
    padding:42px 20px 60px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    background:#1e2224;
}

.revocare-public-query-inner {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    max-width:1180px !important;
    margin:0 auto !important;
    padding:0 !important;
    box-sizing:border-box !important;
}

.revocare-public-query-inner > #belgeSorgu {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    margin:0 !important;
    overflow:visible !important;
}

@media only screen and (max-width:900px) {
    .revocare-public-query-page {
        min-height:320px;
        padding:24px 14px 38px !important;
    }

    .revocare-public-query-inner {
        max-width:100% !important;
    }

    .revocare-public-query-inner #bS_search_panel {
        margin:0 !important;
        padding:22px 18px !important;
    }
}

/* ========================================================
   v4.1.6 · Public müşteri ekranı / Calibri / bayi ve dijital belge
======================================================== */
#belgeSorgu, #belgeSorgu *, .revocare-public-query-page, .revocare-public-query-page * {
    font-family: Calibri, "Segoe UI", Arial, sans-serif !important;
}
.bs-dealer-public-card { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:16px; padding:16px; border:1px solid #e1e4e6; border-radius:10px; background:#f8f9f9; }
.bs-dealer-public-main { display:flex; align-items:center; gap:13px; min-width:0; }
.bs-dealer-logo { width:68px; height:68px; flex:0 0 68px; padding:6px; object-fit:contain; border:1px solid #dfe3e5; border-radius:9px; background:#fff; }
.bs-dealer-public-main strong { display:block; color:#202529; font-size:15px; font-weight:800; }
.bs-dealer-public-main span { display:block; margin-top:3px; color:#757d82; font-size:11px; }
.bs-dealer-public-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.bs-dealer-public-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:0 11px; border-radius:6px; background:#252b2f; color:#fff!important; text-decoration:none!important; font-size:10px; font-weight:800; }
.bs-dealer-public-actions a.bs-dealer-phone { background:#eef0f1; color:#30363a!important; }
.bs-dealer-public-actions a[href*="wa.me"] { background:#25D366; color:#102416!important; }
.bs-digital-certificate { display:grid; grid-template-columns:115px minmax(0,1fr); align-items:center; gap:18px; margin-top:18px; padding:17px; border:1px solid #d8c626; border-radius:11px; background:#fffbea; }
.bs-digital-certificate-qr { display:flex; align-items:center; justify-content:center; width:115px; height:115px; padding:7px; border:1px solid #e2d96d; border-radius:9px; background:#fff; }
.bs-digital-certificate-qr img { display:block; width:100%; height:100%; object-fit:contain; }
.bs-digital-certificate-copy strong { display:block; color:#24292c; font-size:17px; font-weight:800; }
.bs-digital-certificate-copy p { margin:5px 0 11px; color:#696f72; font-size:12px; line-height:1.5; }
.bs-document-button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 13px; border-radius:6px; background:#e6cf13; color:#161616!important; text-decoration:none!important; font-size:10px; font-weight:800; }
@media(max-width:700px){
  .bs-dealer-public-card { align-items:stretch; flex-direction:column; }
  .bs-dealer-public-actions { justify-content:flex-start; }
  .bs-digital-certificate { grid-template-columns:1fr; text-align:center; }
  .bs-digital-certificate-qr { margin:0 auto; }
}
.bs-dealer-logo { display:flex; align-items:center; justify-content:center; overflow:hidden; }
.bs-dealer-logo img { display:block; width:100%; height:100%; object-fit:contain; }

/* ========================================================
   v4.1.11 · Müşteri sorgu sonuç ekranı yerleşim düzeltmesi
   Bayi kartı üst sırada tam genişlik; galeri solda, bilgiler sağda.
======================================================== */
.bs-result-content {
    display:grid !important;
    grid-template-columns:minmax(260px, 300px) minmax(0, 1fr) !important;
    align-items:start !important;
    gap:24px !important;
    width:100% !important;
    min-width:0 !important;
}

.bs-result-content > .bs-dealer-public-card {
    grid-column:1 / -1 !important;
    grid-row:auto !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    align-self:start !important;
    box-sizing:border-box !important;
    background:#262b2e !important;
    border-color:#3a4145 !important;
}

.bs-dealer-public-main {
    flex:1 1 auto !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:2px !important;
}
.bs-dealer-public-main > span {
    margin:0 !important;
    color:#e6cf13 !important;
    font-size:9px !important;
    font-weight:800 !important;
    letter-spacing:.65px !important;
}
.bs-dealer-public-main > strong {
    color:#fff !important;
    font-size:16px !important;
    line-height:1.25 !important;
}
.bs-dealer-public-main > small {
    display:block !important;
    margin-top:3px !important;
    color:#aab1b5 !important;
    font-size:11px !important;
    line-height:1.35 !important;
}

.bs-result-content > .bs-car-gallery {
    grid-column:1 !important;
    grid-row:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:300px !important;
    flex:none !important;
    align-self:start !important;
}

.bs-result-content > .bs-result-info {
    grid-column:2 !important;
    grid-row:auto !important;
    width:100% !important;
    min-width:0 !important;
    align-self:start !important;
}

.bs-car-gallery .bs-car-photo,
.bs-car-gallery .bs-car-photo a {
    width:100% !important;
    min-width:0 !important;
}
.bs-car-gallery .bs-car-photo img {
    width:100% !important;
    height:210px !important;
    object-fit:cover !important;
}

.bs-result-info .bs-info-item {
    min-width:0 !important;
    width:100% !important;
}
.bs-result-info .bs-info-label,
.bs-result-info .bs-info-value {
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
}

@media only screen and (max-width:900px) {
    .bs-result-content {
        grid-template-columns:1fr !important;
        gap:18px !important;
    }
    .bs-result-content > .bs-dealer-public-card,
    .bs-result-content > .bs-car-gallery,
    .bs-result-content > .bs-result-info {
        grid-column:1 !important;
        width:100% !important;
        max-width:none !important;
    }
    .bs-car-gallery .bs-car-photo img {
        height:min(56vw, 340px) !important;
    }
}

@media only screen and (max-width:600px) {
    .bs-result-content {
        padding:18px !important;
        gap:16px !important;
    }
    .bs-dealer-public-card {
        padding:14px !important;
    }
    .bs-dealer-public-actions {
        width:100% !important;
        justify-content:flex-start !important;
    }
    .bs-dealer-public-actions a {
        flex:1 1 auto !important;
    }
    .bs-result-info {
        grid-template-columns:1fr !important;
    }
    .bs-car-gallery .bs-car-photo img {
        height:220px !important;
    }
}
