/* ==================== PROPERTY KARTLARI (IZGARA & LİSTE) ==================== */

/* Izgara Container */
.properties-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.properties-list.list-view {
    grid-template-columns: 1fr;
}

/* Property Card */
.property-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.property-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* List View - Yatay Düzen */
.properties-list.list-view .property-item {
    flex-direction: row;
    gap: 0;
    height: auto;
}

/* Card Image Box */
.property-img-box {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.property-item:hover .property-img-box img {
    transform: scale(1.05);
}

.property-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.properties-list.list-view .property-img-box {
    width: 250px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
}

/* Card Body */
.property-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.properties-list.list-view .property-body {
    flex-grow: 1;
    justify-content: space-between;
}

/* Card Title */
.property-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Location */
.property-place {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-place i {
    color: #999;
}

/* Property Details */
.property-specs {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 5px;
}

.spec-item i {
    color: #999;
    font-size: 13px;
}

/* Property Price */
.property-cost {
    font-size: 18px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 12px;
}

/* Button */
.btn-view-detail {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.btn-view-detail:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28C76F;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.status-badge.sale {
    background: #d32f2f;
}

/* ==================== RESPONSİVE ==================== */

@media (max-width: 1024px) {
    .properties-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .properties-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .property-item .property-img-box {
        height: 180px;
    }
    
    .properties-list.list-view .property-item {
        flex-direction: column;
        gap: 0;
    }
    
    .properties-list.list-view .property-img-box {
        width: 100%;
        height: 180px;
        border-radius: 8px 8px 0 0;
    }
    
    .property-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .properties-list {
        gap: 10px;
        padding: 0 5px;
    }
    
    .property-body {
        padding: 12px;
    }
    
    .property-name {
        font-size: 12px;
        min-height: 32px;
    }
    
    .property-cost {
        font-size: 16px;
    }
    
    .btn-view-detail {
        padding: 10px 12px;
        font-size: 12px;
    }
}
/* ===== MOBİL RESPONSIVE - YANLAR 0px ===== */

@media (max-width: 768px) {
    /* View Buttons - GİZLE */
    .ilan-view-buttons {
        display: none !important;
    }
    
    /* Sidebar Filter - GİZLE */
    .sidebar-filter {
        display: none !important;
    }
    
    /* Main Layout */
    .ilan-main-layout {
        display: block;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Content Area */
    .content-area {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* ===== ARAMA FİLTRESİ ===== */
    .top-search-filter {
        padding: 12px 12px !important;
        margin: 0 !important;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .top-search-filter form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .filter-group label {
        font-size: 12px;
        font-weight: 600;
        color: #333;
    }
    
    .filter-group input,
    .filter-group select {
        height: 38px;
        padding: 0 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 12px;
        background: #fff;
    }
    
    .filter-group input:focus,
    .filter-group select:focus {
        outline: none;
        border-color: #d30001;
    }
    
    /* Min/Max Fiyat - Full Width */
    .filter-group.price-range {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .filter-group.price-range > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    /* Arama Butonları */
    .filter-actions {
        grid-column: 1 / -1;
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }
    
    .btn-filter-apply {
        flex: 1;
        height: 40px;
        background: #d30001;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    
    .btn-filter-apply:hover {
        background: #b80001;
    }
    
    .btn-filter-clear {
        width: 40px;
        height: 40px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }
    
    /* ===== İLAN KARTLARI ===== */
    .properties-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0px 0 !important;
        margin: 0 !important;
    }
    
    /* Property Item */
    .property-item {
        background: #fff;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .property-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #d30001;
        color: #fff;
        padding: 4px 10px;
        border-radius: 3px;
        font-size: 11px;
        font-weight: 600;
        z-index: 1;
    }
    
    .property-img-box {
        width: 100%;
        height: 170px;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .property-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .property-body {
        padding: 10px 12px;
        margin: 0 !important;
    }
    
    .property-name {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .property-place {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: #999;
        margin-bottom: 6px;
    }
    
    .property-specs {
        display: flex;
        gap: 6px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .spec-item {
        display: flex;
        align-items: center;
        gap: 3px;
        font-size: 10px;
        color: #666;
        background: #f5f5f5;
        padding: 3px 6px;
        border-radius: 3px;
    }
    
    .property-cost {
        font-size: 16px;
        font-weight: 700;
        color: #d30001;
        margin: 6px 0;
    }
    
    .btn-view-detail {
        width: 100%;
        height: 38px;
        background: #d30001;
        color: #fff;
        border: none;
        border-radius: 0;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }
    
    .btn-view-detail:hover {
        background: #b80001;
    }
    
    /* ===== PAGİNASYON ===== */
    .pagination-box {
        padding: 12px;
        margin: 0 !important;
        border-top: 1px solid #e0e0e0;
        background: #f9f9f9;
    }
}

@media (max-width: 480px) {
    .top-search-filter {
        padding: 10px 12px !important;
    }
    
    .top-search-filter form {
        gap: 10px;
    }
    
    .filter-group input,
    .filter-group select {
        height: 36px;
        font-size: 11px;
    }
    
    .filter-group label {
        font-size: 11px;
    }
    
    .filter-group.price-range {
        gap: 10px;
    }
    
    .btn-filter-apply {
        height: 38px;
        font-size: 12px;
    }
    
    .btn-filter-clear {
        width: 38px;
        height: 38px;
    }
    
    .properties-list {
        gap: 6px;
        padding: 6px 0 !important;
        margin: 0 !important;
    }
    
    .property-img-box {
        height: 150px;
    }
    
    .property-body {
        padding: 8px 12px;
    }
    
    .property-name {
        font-size: 12px;
    }
    
    .property-cost {
        font-size: 15px;
    }
    
    .btn-view-detail {
        height: 36px;
        font-size: 11px;
    }
}
