.ilanlar-page {
    padding-top: 160px;
    padding-bottom: 60px;
    background: #f5f5f5;
    min-height: 100vh;
}

.ilanlar-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

.ilanlar-layout > .ilanlar-sidebar,
.ilanlar-layout > .ilanlar-main {
    margin: 0 !important;
}

.ilanlar-sidebar {
    background: #fff;
    border: 1px solid #ddd;
}

.ilanlar-sidebar form {
    margin: 0;
    padding: 0;
}

.ilanlar-main {
    min-width: 0;
}

.ilanlar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-bottom: 0;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toolbar-left .toplam-ilan {
    font-size: 14px;
    color: #666;
}

.toolbar-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fee2e2;
    color: #dc2626;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.toolbar-clear:hover {
    background: #dc2626;
    color: #fff;
}

@media (max-width: 768px) {
    .ilanlar-toolbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    
    .toolbar-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .toolbar-item {
        flex: 1;
    }
    
    .toolbar-select {
        width: 100%;
    }
    
    .toolbar-clear {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.toolbar-right {
    display: flex;
    gap: 15px;
}

.toolbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-item label {
    font-size: 13px;
    color: #666;
}

.toolbar-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.toolbar-select:focus {
    outline: none;
    border-color: var(--accent-renk);
}

.sidebar-header {
    padding: 12px 15px;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.filter-section {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.filter-section:first-child {
    margin-top: 0;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-parent {
    margin-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-parent:last-child {
    border-bottom: none;
}

.filter-parent-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.filter-toggle:hover {
    color: #333;
}

.filter-toggle i {
    transition: transform 0.2s;
}

.filter-parent.open .filter-toggle i {
    transform: rotate(90deg);
}

.filter-parent > .filter-parent-header > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
}

.filter-parent > .filter-parent-header > a:hover,
.filter-parent > .filter-parent-header > a.active {
    color: var(--accent-renk);
}

.filter-parent > .filter-parent-header > a .count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.filter-children {
    list-style: none;
    padding: 0 0 8px 32px;
    margin: 0;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filter-parent.open .filter-children {
    display: block;
    max-height: 500px;
}

.filter-children li {
    margin-bottom: 2px;
}

.filter-children li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}

.filter-children li a:hover,
.filter-children li a.active {
    background: #f0f7ff;
    color: var(--accent-renk);
}

.filter-children li a .count {
    font-size: 11px;
    color: #999;
}

.filter-input select,
.filter-input input,
.filter-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

.filter-input select:focus,
.filter-input input:focus,
.filter-row input:focus {
    outline: none;
    border-color: var(--accent-renk);
}

.filter-input {
    margin-bottom: 10px;
}

.filter-input:last-child {
    margin-bottom: 0;
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    flex: 1;
    min-width: 60px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #eee;
    color: #333;
}

.filter-btn.active {
    background: var(--accent-renk);
    border-color: var(--accent-renk);
    color: #fff;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-checkboxes::-webkit-scrollbar {
    width: 4px;
}

.filter-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.filter-checkboxes::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.filter-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.filter-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-renk);
    cursor: pointer;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-row input {
    flex: 1;
    min-width: 0;
}

.filter-row span {
    color: #999;
    font-size: 14px;
}

.filter-submit {
    width: calc(100% - 30px);
    padding: 12px;
    background: var(--gradient-2);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 15px 15px 15px;
}

.filter-submit:hover {
    filter: brightness(1.1);
}

.filter-clear {
    display: block;
    text-align: center;
    padding: 10px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    margin: 10px 15px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.filter-clear:hover {
    background: #f5f5f5;
    color: #333;
}

.ilanlar-table {
    background: #fff;
    border: 1px solid #ddd;
}

.table-header {
    display: grid;
    grid-template-columns: 120px 1fr 70px 70px 120px 100px 100px;
    gap: 10px;
    padding: 12px 15px;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    align-items: center;
    min-height: 40px;
}

.table-header .sort-select {
    padding: 6px 0px 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 8px center;
    cursor: pointer;
    appearance: none;
    text-transform: uppercase;
}

.table-header .sort-select:focus {
    outline: none;
    border-color: #0066cc;
}

.table-row {
    display: grid;
    grid-template-columns: 120px 1fr 70px 70px 120px 100px 100px;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: #f8fbff;
}

.table-row.featured {
    background: #fffef5;
}

.table-row.featured:hover {
    background: #fffde0;
}

.td-image {
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.td-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.title-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-row:hover .title-text {
    color: #0066cc;
}

.badge-featured {
    color: #f5a623;
    font-size: 12px;
}

.title-type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-renk);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    width: fit-content;
}

.td-m2,
.td-oda,
.td-tarih {
    font-size: 13px;
    color: #666;
}

.td-fiyat {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-renk);
}

.td-konum {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.td-konum small {
    color: #999;
    font-size: 12px;
}

.no-results {
    background: #fff;
    border: 1px solid #ddd;
    padding: 60px 20px;
    text-align: center;
}

.no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px;
}

.no-results p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

.btn-reset {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient-2);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-reset:hover {
    filter: brightness(1.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.pagination a.active {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.page-prev,
.page-next {
    font-size: 12px;
}

.mobile-filter-tabs {
    display: none;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-tab-btn i {
    margin-right: 6px;
}

.mobile-tab-btn.active {
    background: var(--ana-renk);
    border-color: var(--ana-renk);
    color: #fff;
}

.mobile-panel {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.mobile-panel.show {
    display: block;
}

.mobile-panel a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    transition: all 0.2s;
}

.mobile-panel a:last-child {
    border-bottom: none;
}

.mobile-panel a:hover,
.mobile-panel a.active {
    background: #f5f5f5;
    color: var(--ana-renk);
}

@media (max-width: 1200px) {
    .table-header,
    .table-row {
        grid-template-columns: 100px 1fr 60px 60px 100px 90px 90px;
    }
}

@media (max-width: 992px) {
    .ilanlar-page {
        padding-top: 140px;
    }
    
    .mobile-filter-tabs {
        display: flex;
    }
    
    .ilanlar-layout {
        display: block;
    }
    
    .ilanlar-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 60px;
    }
    
    .ilanlar-sidebar.show {
        display: block;
    }
    
    .ilanlar-sidebar .sidebar-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 10000;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #ddd;
        font-size: 16px;
    }
    
    .ilanlar-sidebar .sidebar-header::after {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 20px;
        cursor: pointer;
        color: #666;
    }
    
    .filter-section {
        border-right: none;
    }
    
    .filter-submit,
    .filter-clear {
        width: calc(100% - 30px);
        margin: 15px 15px 0;
    }
    
    .filter-clear {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .ilanlar-page {
        padding-top: 130px;
        padding-bottom: 40px;
    }
    
    .ilanlar-sidebar {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        border-right: none;
    }
    
    .filter-submit,
    .filter-clear {
        grid-column: span 1;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 15px;
    }
    
    .td-image {
        grid-row: span 2;
        height: 70px;
        width: 100px;
    }
    
    .td-title {
        grid-column: 2;
    }
    
    .td-m2,
    .td-oda,
    .td-tarih,
    .td-konum {
        display: none;
    }
    
    .td-fiyat {
        grid-column: 2;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .ilanlar-page {
        padding-top: 120px;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-row span {
        display: none;
    }
    
    .filter-row input {
        width: 100%;
    }
    
    .td-image {
        width: 80px;
        height: 60px;
    }
    
    .title-text {
        font-size: 13px;
    }
    
    .td-fiyat {
        font-size: 14px;
    }
}

.btn-talep {
    display: inline-block;
    padding: 12px 24px;
    background: var(--ana-renk);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.btn-talep:hover {
    background: var(--accent-renk);
}

.btn-talep i {
    margin-right: 6px;
}

.konut-talebi-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--ana-renk), var(--ikincil-renk));
    padding: 24px 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.konut-talebi-banner .banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.konut-talebi-banner .banner-icon i {
    font-size: 24px;
    color: #fff;
}

.konut-talebi-banner .banner-content {
    flex: 1;
}

.konut-talebi-banner .banner-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.konut-talebi-banner .banner-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.konut-talebi-banner .banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-renk);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

.konut-talebi-banner .banner-btn:hover {
    background: #fff;
    color: var(--ana-renk);
}

@media (max-width: 768px) {
    .konut-talebi-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .konut-talebi-banner .banner-icon {
        width: 50px;
        height: 50px;
    }
    
    .konut-talebi-banner .banner-icon i {
        font-size: 20px;
    }
    
    .konut-talebi-banner .banner-content h4 {
        font-size: 16px;
    }
    
    .konut-talebi-banner .banner-btn {
        width: 100%;
        justify-content: center;
    }
}
