/* ==========================================
   DEĞİŞKENLER VE GENEL AYARLAR
   ========================================== */
:root {
    --primary: #14213d;
    --accent: #fca311;
    --text: #2b2d42;
    --text-light: #8d99ae;
    --border: #edf2f4;
    --white: #ffffff;
    --bg-page: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 15px;
    --radius-lg: 20px;
}

.listing-page-wrapper {
    padding: 40px 0 80px;
    background-color: var(--bg-page);
    min-height: 100vh;
}

.listing-grid-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

/* ==========================================
   SOL KOLON: FİLTRE SIDEBAR
   ========================================== */
.filter-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-page);
}

.filter-header h3 {
    font-size: 20px;
    margin: 0;
    color: var(--primary);
    font-weight: 800;
}

.reset-link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.reset-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 22px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
    background-color: #fcfcfc;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(252, 163, 17, 0.1);
}

.dual-inputs,
.price-inputs {
    display: flex;
    gap: 10px;
}

/* Checkbox Tasarımı (Custom) */
.check-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.check-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    user-select: none;
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 6px;
    transition: 0.3s;
}

.check-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.check-container input:checked ~ .checkmark {
    background-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-container input:checked ~ .checkmark:after {
    display: block;
}

.btn-filter-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-filter-submit:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================
   SAĞ KOLON: İLAN LİSTESİ ÜST BAR
   ========================================== */
.listing-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.results-info h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.results-info span {
    color: var(--text-light);
    font-size: 14px;
}

.sort-box select {
    border: 1px solid var(--border);
    background: var(--bg-page);
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
    outline: none;
}

/* ==========================================
   İLAN KARTLARI (GRID)
   ========================================== */
.ilan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.ilan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ilan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-box {
    position: relative;
    height: 240px;
    background: #eee;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-type {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    z-index: 2;
}

.badge-type.satilik {
    background: linear-gradient(135deg, #e63946, #d62828);
}

.badge-type.kiralik {
    background: linear-gradient(135deg, #457b9d, #1d3557);
}

.price-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 25px;
}

.card-content .loc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.card-content .loc i {
    color: var(--accent);
    margin-right: 5px;
}

.card-content .title {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 15px 0;
    line-height: 1.4;
    height: 52px;
    overflow: hidden;
    /* Metin sınırlama özellikleri */
/* Satır sınırlama özellikleri (Derleyici uyarısı alsa da çalışır) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.feats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.feats span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feats i {
    color: var(--accent);
    font-size: 15px;
}

.not-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.not-found i {
    font-size: 60px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.not-found p {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 600;
}

/* ==========================================
   MOBİL UYUMLULUK
   ========================================== */
@media (max-width: 1200px) {
    .listing-grid-layout {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 992px) {
    .listing-grid-layout {
        grid-template-columns: 1fr;
    }
    .filter-card {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .listing-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .sort-box {
        width: 100%;
    }
    .sort-box select {
        width: 100%;
    }
    .ilan-grid {
        grid-template-columns: 1fr;
    }
}