﻿
/* =========================================
           2. MAKİNE İLANLARI ÖZEL CSS (REVİZE EDİLDİ)
           ========================================= */

/* Sayfa Başlığı (DAHA BELİRGİN VE AZ BLUR) */
.page-header {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    margin-bottom: 50px;
    overflow: hidden;
    z-index: 1;
}

    /* Arka Plan Katmanı */
    .page-header::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        /* Doosan Görseli (Yüksek Çözünürlük) */
        background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2070');
        background-size: cover;
        background-position: center;
        /* Blur azaltıldı (3px), resim belli olsun */
        filter: blur(3px);
        z-index: -2;
    }

    /* Perde (Overlay) - Hafif Şeffaf */
    .page-header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 31, 51, 0.5); /* Daha şeffaf perde */
        z-index: -1;
    }

    .page-header h1 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 10px;
        letter-spacing: 1px;
        text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    }

.breadcrumb {
    justify-content: center;
    margin-bottom: 0;
    font-size: 1rem;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

    .breadcrumb a {
        color: var(--accent-orange);
        font-weight: 700;
        text-decoration: none;
    }

    .breadcrumb span {
        margin: 0 10px;
        color: white;
    }

/* İlan Kartı */
.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    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.08);
        transform: translateY(-5px);
        border-color: var(--accent-orange);
    }

.listing-img-box {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f3f4f6;
}

.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.listing-card:hover .listing-img {
    transform: scale(1.05);
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--dark-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 10;
}

    .listing-badge.opportunity {
        background: #dc3545;
    }

.listing-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.listing-specs {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

    .listing-specs span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .listing-specs i {
        color: var(--accent-orange);
    }

.listing-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Butonlar */
.btn-hezsan {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    font-size: 0.85rem;
}

.btn-primary-hezsan {
    background-color: var(--accent-orange);
    color: white;
    border: 2px solid var(--accent-orange);
}

    .btn-primary-hezsan:hover {
        background-color: #d9641e;
        border-color: #d9641e;
        color: white;
    }

/* Listing Buttons */
.listing-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.btn-listing {
    flex: 1;
    padding: 10px 5px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-listing-outline {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

    .btn-listing-outline:hover {
        background: var(--primary-blue);
        color: white;
    }

.btn-listing-primary {
    background: var(--primary-blue);
    color: white;
    border: 1px solid var(--primary-blue);
}

    .btn-listing-primary:hover {
        background: var(--accent-orange);
        border-color: var(--accent-orange);
        color: white;
    }

@media (max-width: 991px) {
    .page-header {
        padding: 60px 0;
    }

    .listing-buttons .btn-listing {
        font-size: 0.75rem;
        padding: 8px 4px;
    }

    .footer {
        text-align: center;
    }

    .whatsapp-chat-popup {
        right: 20px;
        bottom: 90px;
        width: 300px;
    }
}
