﻿/* Version: 2024-12-11-v7 - FINAL card alignment fix with fixed heights */
/* --- GENEL STİLLER --- */
.filter-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 0;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* İlan Kartları */
.listing-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #d1d1d1;
}

.card-img-wrapper {
    position: relative;
    height: 280px;
    background: #f8f9fa;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

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

.listing-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.lot-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #28a745;
    color: #28a745;
    font-weight: 800;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 13px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    color: #222;
    margin-bottom: 5px;
    height: 25px !important;
    line-height: 1.3;
    overflow: hidden !important;
}

.trim-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    height: 21px !important;
}

/* Clickable title hover effects */
.card-content>a {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-content>a:hover .brand-title {
    color: #0d6efd;
}

.card-content>a:hover .trim-title {
    color: #495057;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    height: 76px !important;
    max-height: 76px !important;
    overflow: hidden !important;
    align-items: stretch !important;
}

.spec-item {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 32px !important;
}

.spec-item i {
    width: 18px;
    color: #777;
    margin-right: 5px;
}

.card-footer-custom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    height: 80px !important;
    overflow: visible !important;
}

.price-val {
    font-size: 20px;
    font-weight: 900;
    color: #0d6efd;
    letter-spacing: -0.5px;
}

/* Rozetler */
.badge-dynamic {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-right: auto;
    text-transform: uppercase;
}

.badge-kdv {
    background: #e8f5e9;
    color: #1b5e20;
}

.badge-firsat {
    background: #ffebee;
    color: #b71c1c;
}

.badge-acil {
    background: #fff3e0;
    color: #e65100;
}

.badge-kredi {
    background: #e3f2fd;
    color: #0d47a1;
}

.badge-default {
    background: #f5f5f5;
    color: #616161;
}

/* Butonlar */
.fav-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.fav-btn:hover,
.fav-btn.active {
    color: #ffc107;
    background: #fff;
    border-color: #ffc107;
}

.compare-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    border: 1px solid #eee;
}

.compare-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Marka Kutuları */
.brand-box {
    display: block;
    background: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.2s;
    color: #333;
    text-decoration: none;
}

.brand-box:hover {
    border-color: #0d6efd;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.brand-box i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: #adb5bd;
}

.brand-box:hover i {
    color: #0d6efd;
}

/* Hizmet Kutuları */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 15px;
    height: 100%;
    border: 1px solid #eee;
    transition: 0.3s;
}

.feature-box:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: white;
}

.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: #e7f1ff;
    color: #0d6efd;
    border-radius: 50%;
    font-size: 28px;
    margin: 0 auto 20px;
}

/* CTA Banner */
.cta-section {
    background: linear-gradient(45deg, #1a1a1a, #333);
    border-radius: 20px;
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    transform: skewX(-20deg);
}

/* İstatistikler */
.stats-section {
    background: #0d6efd;
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Marka vitrini - Minimal Elegant */
#brandShowcaseTabs {
    border-bottom: 3px solid #e9ecef;
    padding-bottom: 0;
    margin-bottom: 30px;
}

#brandShowcaseTabs .nav-link {
    background: transparent;
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    margin: 0 15px;
    padding: 15px 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

#brandShowcaseTabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: rgba(13, 110, 253, 0.3);
}

#brandShowcaseTabs .nav-link.active {
    color: #0d6efd;
    background: transparent;
    border-bottom-color: #0d6efd;
    font-weight: 700;
}

.empty-state-message {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-message i {
    opacity: 0.3;
}

/* E-Bülten */
.newsletter-box {
    background: #212529;
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-input {
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1rem;
}

.newsletter-btn {
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e9ecef;
    color: #adb5bd;
    font-weight: bold;
    flex-direction: column;
}

/* --- YENİ: MODERN BAŞLIK TASARIMI (Butonlu) --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid #0d6efd;
}

/* --- BLOG KARTI (YENİ STİL) --- */
.blog-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #b0b0b0;
}

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

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

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
}

.blog-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.blog-excerpt {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
    height: 63px;
    overflow: hidden;
}

.blog-btn {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: block;
    transition: color 0.2s;
}

.blog-btn:hover {
    color: #0d6efd;
}

/* Image Switch on Mouse Move */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.card-img-wrapper img {
    transition: opacity 0.2s ease;
}

.image-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-img-wrapper:hover .image-indicator {
    opacity: 1;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.indicator-dot.active {
    background: #0d6efd;
    border-color: #ffffff;
    transform: scale(1.3);
}

/* Insurance Banner */
.insurance-banner {
    animation: fadeInUp 0.8s ease;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBİL RESPONSIVE --- */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px !important;
    }

    .carousel-caption {
        padding-bottom: 40px !important;
    }

    .carousel-caption h1 {
        font-size: 1.8rem !important;
    }

    .carousel-caption .lead {
        font-size: 1rem !important;
    }

    .carousel-caption .badge {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }

    .filter-widget {
        margin-top: -60px;
        padding: 15px;
    }

    .filter-widget label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.2rem;
        padding-left: 10px;
        border-left-width: 3px;
    }

    .image-indicator {
        opacity: 1 !important;
    }

    .card-img-wrapper {
        height: 280px;
    }

    .specs-grid {
        gap: 8px;
        padding: 10px;
        font-size: 12px;
    }

    .blog-img-wrapper {
        height: 180px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .brand-showcase-section {
        display: none !important;
    }

    .insurance-banner h2 {
        font-size: 1.3rem !important;
    }

    .insurance-banner p {
        font-size: 0.9rem;
    }

    .insurance-banner .btn {
        font-size: 0.9rem;
        padding: 12px 30px !important;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px !important;
    }

    .carousel-caption h1 {
        font-size: 1.3rem !important;
    }

    .carousel-caption .lead {
        font-size: 0.85rem !important;
        display: none;
    }

    .filter-widget {
        margin-top: -40px;
    }

    .section-title {
        font-size: 1rem;
    }
}

/* ==========================================
   SIMPLE SPLIT SLIDER - v1.0
   ========================================== */

.simple-split-slider {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 30px auto 50px auto;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.simple-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.simple-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Left: Image */
.slide-left {
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Vehicle Collage Frame - Stylish Border & Shadow */
.vehicle-collage-frame {
    padding: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    border-radius: 12px;
    border: 2px solid #e0e4e8;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
}

.collage-img {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Right: Info */
.slide-right {
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #dee2e6;
}

.slide-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.slide-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.slide-subtitle {
    font-size: 1.05rem;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.slide-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.slide-spec-item {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-spec-item i {
    color: #0d6efd;
    margin-right: 5px;
}

.slide-price {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
    white-space: nowrap;
}

.slide-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.slide-btn:hover {
    background: #0b5ed7;
    color: white;
    transform: translateY(-2px);
}

/* Navigation Buttons - SIMPLE AND CLEAR */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-prev {
    left: 20px;
}

.slider-nav-next {
    right: 20px;
}

.slider-nav i {
    font-size: 20px;
    color: #333;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .simple-split-slider {
        height: auto;
    }

    .simple-slide {
        flex-direction: column;
    }

    .slide-left {
        width: 100%;
        height: 300px;
    }

    .slide-right {
        width: 100%;
        padding: 30px 20px;
    }

    .slider-nav-prev {
        left: 10px;
    }

    .slider-nav-next {
        right: 10px;
    }
}