/* ==========================================================================
   SEARCH RESULTS PAGE
   ========================================================================== */
.search-page {
    padding: 120px 20px 80px;
    background: rgb(var(--sand-50));
    min-height: 100vh;
}
.search-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgb(var(--ink-500)); margin-bottom: 24px;
}
.breadcrumb a { color: rgb(var(--ink-500)); text-decoration: none; font-weight: 500; transition: 0.2s; }
.breadcrumb a:hover { color: rgb(var(--ink-900)); }
.breadcrumb svg { width: 14px; height: 14px; }

/* Yerleşim */
.search-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* Filtreler */
.search-sidebar {
    background: rgb(var(--sand-50));
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgb(var(--sand-200));
    position: sticky;
    top: 100px;
}
.filter-widget { margin-bottom: 24px; }
.fw-title { font-size: 0.95rem; font-weight: 700; color: rgb(var(--ink-900)); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fw-title svg { width: 16px; height: 16px; color: rgb(var(--ink-500)); }
.input-group input, .input-group select {
    width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid rgb(var(--sand-200));
    background: rgb(var(--beyaz)); font-size: 0.9rem; outline: none; transition: 0.3s; cursor: pointer;
    color: rgb(var(--ink-700)); font-weight: 500;
}
.input-group input:focus, .input-group select:focus { background: rgb(var(--beyaz)); border-color: rgb(var(--ink-500)); box-shadow: 0 0 0 4px rgb(var(--ink-500) / 0.1); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid rgb(var(--sand-200)); background: rgb(var(--beyaz)); outline:none; transition: 0.3s; font-weight: 500; }
.price-inputs input:focus { border-color: rgb(var(--ink-500)); box-shadow: 0 0 0 4px rgb(var(--ink-500) / 0.1); }

.btn-filter { width: 100%; background: rgb(var(--ink-900)); color: rgb(var(--beyaz)); border: none; padding: 14px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.3s; margin-bottom: 12px; }
.btn-filter:hover { background: rgb(var(--ink-500)); box-shadow: 0 4px 15px rgb(var(--ink-500) / 0.3); transform: translateY(-1px); }
.btn-clear-filter { display: block; width: 100%; text-align: center; color: rgb(var(--ink-500)); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.btn-clear-filter:hover { color: rgb(var(--red-700)); }

/* Sonuç listesi */
.results-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.results-header h2 { font-size: 1.25rem; font-weight: 700; color: rgb(var(--ink-900)); }
.sort-box select { padding: 8px 16px; border-radius: 8px; border: 1px solid rgb(var(--sand-200)); background: rgb(var(--beyaz)); font-size: 0.9rem; outline:none; cursor: pointer; }

/* Horizontal List (Sahibinden stili) */
.list-view { display: flex; flex-direction: column; gap: 16px; }
.list-item {
    display: flex; background: rgb(var(--beyaz)); border-radius: 16px; border: 1px solid rgb(var(--sand-200));
    box-shadow: 0 4px 15px rgb(var(--golge) / .04); transition: all 0.3s; text-decoration: none; overflow: hidden;
}
.list-item:hover { border-color: rgb(var(--ink-500)); box-shadow: 0 10px 30px rgb(var(--ink-500) / 0.1); transform: translateY(-2px); }

.li-img { width: 240px; height: 160px; flex-shrink: 0; background: rgb(var(--sand-100)); position: relative; }
.li-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgb(var(--ink-400)); font-size: 0.85rem; }

.li-content { flex-grow: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.li-cat { font-size: 0.75rem; font-weight: 700; color: rgb(var(--ink-500)); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.05em; }
.li-title { font-size: 1.15rem; font-weight: 700; color: rgb(var(--ink-900)); margin-bottom: 8px; line-height: 1.4; transition: 0.2s;}
.list-item:hover .li-title { color: rgb(var(--ink-500)); }
.li-desc { font-size: 0.9rem; color: rgb(var(--ink-500)); margin-bottom: auto; line-height: 1.5; }
.li-loc { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: rgb(var(--ink-400)); margin-top: 12px; }
.li-loc svg { width: 14px; height: 14px; }

.li-side {
    width: 180px; padding: 20px; background: rgb(var(--sand-50)); border-left: 1px solid rgb(var(--sand-200));
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    text-align: right; flex-shrink: 0;
}
.li-price { font-size: 1.3rem; font-weight: 800; color: rgb(var(--ink-500)); margin-bottom: 8px; }
.li-date { font-size: 0.85rem; color: rgb(var(--ink-500)); }

.empty-results { background: rgb(var(--beyaz)); border-radius: 20px; padding: 60px 20px; text-align: center; border: 1px dashed rgb(var(--sand-300)); }
.empty-results svg { width: 64px; height: 64px; color: rgb(var(--ink-400)); margin-bottom: 16px; }
.empty-results h3 { font-size: 1.25rem; color: rgb(var(--ink-900)); margin-bottom: 8px; }
.empty-results p { color: rgb(var(--ink-500)); }

@media (max-width: 992px) {
    .search-grid { grid-template-columns: 1fr; }
    .search-sidebar { position: static; }
}
@media (max-width: 640px) {
    .list-item { flex-direction: column; }
    .li-img { width: 100%; height: 200px; }
    .li-side { width: 100%; border-left: none; border-top: 1px solid rgb(var(--sand-200)); align-items: flex-start; text-align: left; flex-direction: row; justify-content: space-between; }
    .li-price { margin-bottom: 0; }
}