/* ==========================================
   PROJELER SAYFASI - MODERN & KOMPAKT TASARIM
   ========================================== */
:root {
    --pro-navy: #14213d;
    --pro-gold: #fca311;
    --pro-bg: #f8f9fa;
    --pro-border: #edf2f4;
    --pro-white: #ffffff;
    --pro-text-light: #8d99ae;
}

.projects-wrapper { background: var(--pro-bg); padding: 50px 0 100px; }

/* ÜST BAR VE SIRALAMA */
.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pro-white);
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 35px;
}

.control-left h2 { font-size: 26px; font-weight: 800; color: var(--pro-navy); margin: 0; }
.control-left span { color: var(--pro-text-light); font-size: 14px; }

/* SIRALAMA SELECT BUTONU */
.sort-form select {
    border: 1.5px solid var(--pro-border);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    background: #fcfcfc;
    color: var(--pro-navy);
    transition: 0.3s;
}
.sort-form select:hover { border-color: var(--pro-gold); }

/* FİLTRE KARTI ÜST KISIM (BAŞLIK & SIFIRLA) */
.f-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--pro-bg);
}

.f-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--pro-navy);
    letter-spacing: 1px;
}

.f-reset-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--pro-gold);
    text-decoration: none;
    background: rgba(252, 163, 17, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    transition: 0.3s;
}

.f-reset-link:hover {
    background: var(--pro-gold);
    color: var(--pro-navy);
}

/* SIDEBAR & LAYOUT */
.projects-layout { display: grid; grid-template-columns: 280px 1fr; gap: 35px; }

.filter-card {
    background: var(--pro-white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}

.f-group { margin-bottom: 18px; }
.f-group label { display: block; font-weight: 700; font-size: 12px; margin-bottom: 8px; color: var(--pro-navy); text-transform: uppercase; }
.f-group input, .f-group select {
    width: 100%;
    padding: 11px;
    border: 1.5px solid var(--pro-border);
    border-radius: 10px;
    outline: none;
    font-size: 13px;
    transition: 0.3s;
}
.f-group input:focus, .f-group select:focus { border-color: var(--pro-gold); background: #fff; }

.f-range { display: flex; gap: 8px; }

/* YENİ: CHECKBOX FİLTRE STİLLERİ */
.check-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1.5px solid var(--pro-border);
}

.custom-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--pro-navy);
    transition: 0.2s;
}

.custom-check input {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    accent-color: var(--pro-gold); /* Modern tarayıcılarda gold rengi verir */
}

.custom-check:hover { color: var(--pro-gold); }

.btn-f-apply {
    width: 100%;
    background: var(--pro-navy);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    margin-top: 20px;
}
.btn-f-apply:hover { background: var(--pro-gold); color: var(--pro-navy); }

/* PROJE KARTLARI (KÜÇÜLTÜLMÜŞ KOMPAKT TASARIM) */
.p-card-premium {
    display: flex;
    background: var(--pro-white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 220px; /* Kompakt görünüm için sabit yükseklik */
}

.p-card-premium:hover { transform: translateX(5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }

.p-img-area { width: 300px; height: 100%; flex-shrink: 0; position: relative; }
.p-img-area img { width: 100%; height: 100%; object-fit: cover; transition: 1s; }
.p-card-premium:hover .p-img-area img { transform: scale(1.1); }

/* Genel Badge Yapısı */
.p-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.p-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Durumlara Göre Özel Gradyanlar */
.status-inşaat-halinde { background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9)); }
.status-sıfır { background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(39, 174, 96, 0.9)); }
.status-dolu { background: linear-gradient(135deg, rgba(243, 156, 18, 0.9), rgba(230, 126, 34, 0.9)); }
.status-boş { background: linear-gradient(135deg, rgba(149, 165, 166, 0.9), rgba(127, 140, 141, 0.9)); }

.p-card-premium:hover .p-badge { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }

.p-info-area { padding: 20px 25px; flex-grow: 1; display: flex; flex-direction: column; }
.p-title { font-size: 19px; font-weight: 800; color: var(--pro-navy); margin: 0 0 8px 0; }
.p-loc { font-size: 13px; color: var(--pro-text-light); margin-bottom: 12px; }

.p-highlights { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.p-highlights span { 
    font-size: 11px; font-weight: 600; color: var(--pro-navy); 
    display: flex; align-items: center; gap: 5px; 
    background: var(--pro-bg); padding: 5px 10px; border-radius: 8px;
}
.p-highlights i { color: var(--pro-gold); }

.p-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.p-price strong { font-size: 20px; color: var(--pro-navy); font-weight: 900; }
.p-price small { display: block; color: var(--pro-text-light); font-size: 11px; }

.btn-p-explore { font-weight: 700; color: var(--pro-gold); font-size: 13px; }

/* BOŞ SONUÇ MESAJI */
.p-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    color: var(--pro-text-light);
}
.p-empty i { font-size: 50px; margin-bottom: 20px; color: var(--pro-border); }

/* MOBİL UYUMLULUK */
@media (max-width: 992px) {
    .projects-layout { grid-template-columns: 1fr; }
    .p-card-premium { flex-direction: column; height: auto; }
    .p-img-area { width: 100%; height: 200px; }
    .projects-controls { flex-direction: column; gap: 20px; text-align: center; }
}