/**
 * İlanlar Stil Dosyası
 * 
 * @package Conpera
 */

/* ============================================
   İLAN DETAY SAYFASI
   ============================================ */

.ilan-detay-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ilan-detay-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 350px;
    gap: 30px;
    align-items: start;
}

/* Sol: Galeri */
.ilan-galeri-section {
    position: sticky;
    top: 100px;
}

.ilan-galeri-slider {
    display: grid;
    gap: 10px;
}

.ilan-galeri-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.ilan-galeri-item:hover {
    transform: scale(1.02);
}

.ilan-galeri-item img {
    width: 100%;
    height: auto;
    display: block;
}

.ilan-featured-image img {
    width: 100%;
    border-radius: 8px;
}

/* Orta: İlan Bilgileri */
.ilan-bilgiler-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ilan-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.ilan-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ilan-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.ilan-badge.ilan-tipi {
    background: #3498db;
    color: white;
}

.ilan-badge.emlak-tipi {
    background: #e1e5e9;
    color: #333;
}

.ilan-title {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.ilan-fiyat {
    font-size: 36px;
    font-weight: 700;
    color: #27ae60;
}

/* Özellikler Grid */
.ilan-ozellikler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ilan-ozellik {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.ozellik-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.ozellik-label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.ozellik-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* İlan Açıklaması */
.ilan-aciklama {
    margin: 30px 0;
}

.ilan-aciklama h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.ilan-aciklama p {
    line-height: 1.8;
    color: #555;
}

/* Konum */
.ilan-konum {
    margin: 30px 0;
}

.ilan-konum h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

#ilan-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* Sağ: Yetkili Bilgisi */
.ilan-yetkili-section {
    position: sticky;
    top: 100px;
}

.ilan-yetkili-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.ilan-yetkili-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.yetkili-foto {
    margin-bottom: 20px;
}

.yetkili-foto img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.yetkili-bilgiler h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.yetkili-unvan {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.yetkili-iletisim {
    display: block;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.3s;
}

.yetkili-iletisim:hover {
    background: #e1e5e9;
}

.yetkili-iletisim-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.yetkili-iletisim-btn:hover {
    background: #2980b9;
}

/* ============================================
   İLANLAR ARŞİV SAYFASI
   ============================================ */

.ilanlar-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ilanlar-archive-header {
    margin-bottom: 40px;
}

.ilanlar-archive-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Filtreler */
.ilanlar-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form select,
.filter-form input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filter-form select {
    min-width: 150px;
}

.filter-form input[type="number"] {
    width: 150px;
}

.filter-btn {
    padding: 10px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: #2980b9;
}

.filter-reset {
    padding: 10px 25px;
    background: #95a5a6;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.filter-reset:hover {
    background: #7f8c8d;
}

/* İlan Grid */
.ilanlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* İlan Kartı */
.ilan-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ilan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ilan-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ilan-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.ilan-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ilan-card:hover .ilan-card-image img {
    transform: scale(1.05);
}

.ilan-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.ilan-badge.ilan-tipi-satilik {
    background: #e74c3c;
    color: white;
}

.ilan-badge.ilan-tipi-kiralik {
    background: #3498db;
    color: white;
}

.ilan-card-content {
    padding: 20px;
}

.ilan-card-category {
    display: inline-block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ilan-card-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.4;
}

.ilan-card-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.ilan-card-features .feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #6c757d;
}

.feature-icon {
    font-size: 16px;
}

.ilan-card-price {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

.no-ilanlar {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .ilan-detay-wrapper {
        grid-template-columns: 1fr 2fr;
    }
    
    .ilan-yetkili-section {
        grid-column: 1 / -1;
        position: static;
    }
    
    .ilan-yetkili-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ilan-detay-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ilan-galeri-section {
        position: static;
    }
    
    .ilan-title {
        font-size: 24px;
    }
    
    .ilan-fiyat {
        font-size: 28px;
    }
    
    .ilan-ozellikler-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ilanlar-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-form select,
    .filter-form input {
        width: 100%;
    }
}