/* Lightbox Overrides */
.lightbox .lb-image {
    max-width: 80vw !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
}

.lightbox .lb-outerContainer {
    max-width: 80vw !important;
    max-height: 80vh !important;
}

/* --- BAŞLIK VE FİYAT ALANI (Ayrı İki Kutu) --- */
.detail-header {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: none;
}

.detail-header-left {
    background: #ffffff;
    padding: 24px !important;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.detail-header-right {
    background: #ffffff;
    padding: 24px !important;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .detail-header-left {
        padding: 32px !important;
    }

    .detail-header-right {
        padding: 32px !important;
    }
}

/* Gallery Info Bar */
.gallery-info-bar {
    background: rgba(13, 110, 253, 0.06);
    color: #0d6efd;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(13, 110, 253, 0.1);
    display: inline-flex;
    align-items: center;
}

.gallery-info-bar i {
    font-size: 1.1rem;
}

/* Breadcrumb */
.detail-header .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
}

.detail-header .breadcrumb-item {
    color: #6b7280;
}

.detail-header .breadcrumb-item+.breadcrumb-item::before {
    color: #d1d5db;
}

/* Vehicle Title */
.vehicle-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.vehicle-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
}

/* Info Badges */
.info-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 2px 0;
    border-radius: 0;
    border: none;
}

.info-badge i {
    font-size: 1.25rem;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

/* Price Card */
.price-card {
    background: #ffeeba;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
    max-width: 280px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.price-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #856404;
    margin-bottom: 8px;
}

.old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #a16207;
    margin-bottom: 4px;
    font-weight: 500;
}

.current-price {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: #78350f;
}

.current-price .currency {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 2px;
}

.price-note {
    font-size: 0.7rem;
    color: #856404;
    font-weight: 500;
}

/* --- GALERİ --- */
.gallery-main {
    height: 600px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.gallery-main .swiper-wrapper,
.gallery-main .swiper-slide {
    height: 100%;
    width: 100%;
}

.gallery-main .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.gallery-main.is-sold img,
.gallery-info-bar.is-sold .thumb-img {
    filter: blur(8px) grayscale(20%);
    pointer-events: none;
}

/* Swiper navigation görünürlüğü */
#vehicleSwiper .swiper-button-next,
#vehicleSwiper .swiper-button-prev {
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

#vehicleSwiper .swiper-button-next::after,
#vehicleSwiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

#vehicleSwiper .swiper-button-next,
#vehicleSwiper .swiper-button-prev,
#vehicleSwiper .swiper-pagination {
    z-index: 10;
}

.thumb-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    flex-shrink: 0;
}

.thumb-img:hover,
.thumb-img.active {
    opacity: 1;
    border-color: #0d6efd;
}

.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    pointer-events: none;
}

/* --- SAĞ SÜTUN BİLEŞENLERİ --- */

/* Teknik Tablo */
.specs-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.specs-header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.specs-table tr td {
    padding: 12px 20px;
    border-color: #f5f5f5;
    font-size: 0.95rem;
}

.specs-table tr td:first-child {
    font-weight: 500;
    color: #666;
    width: 40%;
    background: #fafafa;
}

.specs-table tr td:last-child {
    font-weight: 700;
    color: #222;
    text-align: right;
}

/* Tramer Kutusu */
.tramer-box {
    background: #fff;
    border: 1px solid #ffeeba;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.tramer-header {
    background: #fff3cd;
    color: #856404;
    font-weight: 700;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tramer-body {
    display: none;
    padding: 15px 20px;
    border-top: 1px solid #ffeeba;
}

.tramer-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding: 8px 0;
    font-size: 0.95rem;
}

.tramer-cost {
    font-weight: 800;
    color: #dc3545;
}

.tramer-note {
    font-size: 0.8rem;
    color: #856404;
    font-style: italic;
    margin-top: 10px;
    opacity: 0.8;
}

/* Kredi Hesaplama */
.loan-card {
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.loan-title {
    color: #004085;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loan-result {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    border: 1px dashed #b8daff;
}

/* Butonlar */
.btn-test-drive {
    background: linear-gradient(45deg, #212529, #343a40);
    color: #fff;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-test-drive:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
}

.btn-offer {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #212529;
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-offer:hover {
    background: #ffb300;
    color: #212529;
    transform: translateY(-2px);
}

/* Ekspertiz Şeması */
.car-schema-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 450px;
    margin: 0 auto;
}

.exp-point {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: default;
    transition: transform 0.2s;
    z-index: 10;
    position: absolute;
    transform: translate(-50%, -50%);
}

.exp-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.legend-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
}

/* Tablar */
.nav-tabs .nav-link {
    color: #555;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 25px;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background: transparent;
    border-bottom-color: #0d6efd;
}

/* --- BENZER İLANLAR (PREMIUM) --- */
.similar-vehicles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.similar-vehicles h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 15px;
}

.similar-vehicles h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #0d6efd;
    border-radius: 2px;
}

.similar-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.similar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd33;
}

.similar-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.similar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.similar-card:hover .similar-img-wrapper img {
    transform: scale(1.1);
}

.similar-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13, 110, 253, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.similar-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.similar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.similar-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.similar-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
}

.meta-item i {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* --- DONANIM ÖZELLİKLERİ --- */
.detail-features-section .specs-header {
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
}

.detail-features-section .row.g-2 .col {
    transition: all 0.2s;
}

.detail-features-section .row.g-2 .col:hover {
    transform: translateX(3px);
}