/* Professional Listings CSS - Sahibinden.com Level */
:root {
    --primary-orange: #ff6b35;
    --primary-blue: #1a73e8;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-light: #e5e5e5;
    --border-medium: #cccccc;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-light);
    color: var(--text-primary);
    line-height: 1.5;
    padding-top: 80px; /* Header space */
}

/* Professional Container */
.listings-container {
    max-width: 1144px; /* DİĞER SAYFALARLA AYNI */
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
    overflow: hidden; /* Taşmayı engelle */
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .listings-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .breadcrumb-container .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .listings-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .categories-sidebar,
    .filters-sidebar {
        order: 2;
    }
    
    .listings-main {
        order: 1;
    }
}

/* Categories Sidebar */
.categories-sidebar {
    background: var(--background-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    height: fit-content;
    position: sticky;
    top: 5px; /* Further reduced to minimize top spacing */
    display: flex;
    flex-direction: column;
}

/* Filters Section */
.filters-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    margin-top: 16px;
    overflow: hidden;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Professional Breadcrumb */
/* Professional Breadcrumb Container - Full Width */
.breadcrumb-container {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    width: 100%;
    margin-bottom: 24px;
}

.breadcrumb-container .container {
    max-width: 1144px; /* DİĞER SAYFALARLA AYNI */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.breadcrumb-professional {
    padding: 16px 0;
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.breadcrumb-item:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    cursor: default;
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 12px;
}

/* Category List */
.category-list {
    padding: 0;
    margin: 0;
}

/* Category Sidebar - Professional Design */
.categories-container {
    height: calc(100vh - 180px); /* Fixed height based on listing area */
    max-height: 600px; /* Maximum height like 10-20 listings */
    overflow-y: auto;
    overflow-x: hidden; /* Hide horizontal overflow only */
    background: white;
    border-radius: 10px; /* Professional rounded corners back */
    box-shadow: var(--shadow-medium);
    position: relative;
    padding: 0; /* No padding to eliminate white space */
}

/* Professional Scrollbar */
.categories-container::-webkit-scrollbar {
    width: 4px; /* Thinner scrollbar */
}

.categories-container::-webkit-scrollbar-track {
    background: transparent; /* Invisible track */
}

.categories-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2); /* Semi-transparent thumb */
    border-radius: 2px;
    transition: background 0.3s ease;
}

.categories-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.4); /* Darker on hover */
}

.category-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1557b0 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-bottom: none;
    position: relative; /* Changed from sticky to relative for fixed positioning */
    z-index: 10;
    margin: 0;
    border-radius: 10px 10px 0 0; /* Top corners rounded to match container */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 52px; /* Fixed height */
    display: flex;
    align-items: center;
}

.category-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.category-header.active {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border-left: 4px solid #2E7D32;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
}


/* Category Back Button - PROFESSIONAL FIXED */
.category-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    background: white;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 500;
    position: relative; /* Changed from sticky to relative - fixed below header */
    z-index: 9;
    margin: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.category-back:hover {
    background: #e9ecef;
    color: var(--primary-blue);
}

.category-back i {
    font-size: 14px;
}

/* Category Items - Professional Layout */
.category-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    background: white;
    margin: 0; /* Ensure no margins */
}

.category-item:hover {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-blue);
    padding-left: 16px;
}

.category-item.active {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 500;
    padding-left: 16px;
}

/* Category Title & Count - Professional Alignment */
.category-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    border-radius: 14px;
    padding: 0 8px;
    margin-left: auto;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-item:hover .category-count {
    background: var(--primary-blue);
    color: white;
}

.category-item.active .category-count {
    background: var(--primary-blue);
    color: white;
}

/* Category Arrow */
.category-arrow {
    color: #adb5bd;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-item:hover .category-arrow {
    color: var(--primary-blue);
    transform: translateX(4px);
}

.category-item.active .category-arrow {
    color: var(--primary-blue);
}

/* First category item spacing fix */
.category-item:first-child {
    margin-top: 0;
    border-top: none;
}

/* Category item after header/back button spacing */
.category-header + .category-item,
.category-back + .category-item {
    margin-top: 0;
    border-top: none;
}

/* Ensure no gaps between sticky elements */
.category-header + .category-back {
    margin-top: 0;
}

.category-back + .category-item:first-of-type {
    margin-top: 0;
    border-top: none;
}


.category-arrow {
    color: var(--text-muted);
    font-size: 10px;
    transition: var(--transition);
}

/* Brand/Model Sub-categories */
.subcategory-list {
    max-height: 300px;
    overflow-y: auto;
    background: #fafbfc;
}

.subcategory-item {
    padding: 8px 20px 8px 40px;
    font-size: 13px;
    color: var(--text-secondary);
}

.subcategory-item:hover {
    background: #f0f2f5;
    color: var(--primary-blue);
}

/* Main Listings Area */
.listings-main {
    background: var(--background-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    min-width: 0; /* Grid taşmasını engelle */
    max-width: 100%; /* Container içinde kal */
    overflow: hidden; /* Taşan içeriği gizle */
    box-sizing: border-box;
}

/* Listings Header */
.listings-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.listings-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.listings-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.result-count {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Sort & View Controls */
.controls-bar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: white;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary-blue);
    color: white;
}

.view-btn:hover:not(.active) {
    background: #f8f9fa;
    color: var(--primary-blue);
}

/* Listings Grid */
.listings-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%; /* Container genişliğini aşma */
    overflow-x: hidden; /* Yatay taşmayı gizle */
    box-sizing: border-box;
}

.listings-grid.grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 20px 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Force grid layout on all grid cards - ULTIMATE OVERRIDE */
.listings-grid.grid-view .listing-card,
.listings-grid.grid-view .listing-card.grid-view {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    align-items: stretch !important;
    min-height: 280px !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    border-bottom: 1px solid #e9ecef !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    cursor: pointer !important;
    padding: 0 !important;
    gap: 0 !important;
}

.listings-grid.list-view {
    display: block;
    gap: 0;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* Professional Listing Card */
.listing-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    will-change: transform, box-shadow;
}

/* Professional Table Structure - Header Row */
.listings-grid .table-header {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 100px 80px 120px; /* minmax(0, 1fr) taşmayı engeller */
    gap: 12px;
    padding: 16px 18px;
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 12px;
    color: #495057;
    align-items: center;
    min-height: 50px;
    box-sizing: border-box;
    margin: 0;
    max-width: 100%; /* Container genişliğini aşma */
    overflow: hidden; /* Taşan içeriği gizle */
}

.table-header .header-cell {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

.table-header .header-cell.image { 
    justify-content: center; 
    text-align: center;
}
.table-header .header-cell.title { 
    justify-content: flex-start; 
    text-align: left;
}
.table-header .header-cell.price { 
    justify-content: center; 
    text-align: center;
}
.table-header .header-cell.date { 
    justify-content: center; 
    text-align: center;
}
.table-header .header-cell.location { 
    justify-content: flex-start; 
    text-align: left;
}

/* Professional Alternating Colors */
.listing-card.list-view:nth-child(even) {
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.listing-card.list-view:nth-child(odd) {
    background: white;
    transition: all 0.2s ease;
}

/* Integrated borders for seamless table */
.listing-card.list-view:last-of-type {
    border-bottom: none;
}

/* List view kartları arası boşluk */
.listing-card.list-view:not(:last-child) {
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.listing-card.list-view:hover {
    background: #e6f7ff !important;
    border-color: #40a9ff;
    box-shadow: 0 2px 8px rgba(64, 169, 255, 0.15);
    transition: all 0.2s ease !important;
}

.listings-grid.grid-view .listing-card.grid-view:hover {
    border-color: #40a9ff !important;
    box-shadow: 0 8px 25px rgba(64, 169, 255, 0.15) !important;
    transform: translateY(-6px) !important;
    transition: all 0.3s ease !important;
}

.listing-card:active {
    transform: translateY(-2px);
    transition-duration: 0.1s;
}

/* Professional Table Structure - Listing Rows */
.listing-card.list-view {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 100px 80px 120px; /* minmax(0, 1fr) taşmayı engeller */
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    min-height: 85px;
    border: none;
    border-bottom: 1px solid #e9ecef;
    box-sizing: border-box;
    background: white;
    margin: 0;
    transition: all 0.2s ease;
    max-width: 100%; /* Container genişliğini aşma */
    overflow: hidden; /* Taşan içeriği gizle */
}

/* Professional Grid View Card - OVERRIDE LIST STYLES */
.listings-grid.grid-view .listing-card.grid-view {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    align-items: stretch !important;
    min-height: 280px !important;
    max-width: 100% !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    border-bottom: 1px solid #e9ecef !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    cursor: pointer !important;
    padding: 0 !important;
    gap: 0 !important;
}

.listings-grid.grid-view .listing-card.grid-view .card-image {
    width: 100% !important;
    height: 160px !important;
    overflow: hidden !important;
    position: relative !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.listings-grid.grid-view .listing-card.grid-view .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.listings-grid.grid-view .listing-card.grid-view:hover .card-image img {
    transform: scale(1.05) !important;
}

.card-image.no-image::before {
    content: '\f1b9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 32px;
    color: var(--text-muted);
    opacity: 0.5;
}


.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.listing-card.list-view .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.listing-card:hover .card-image img {
    transform: scale(1.05);
}

/* Card Badges & Tags - Professional System */

.listing-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

/* Professional Badge Styles */
.badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

/* Specific Badge Colors - ANASAYFA İLE AYNI */
.badge-vitrin {
    background: linear-gradient(135deg, #f39c12, #e67e22); /* Turuncu - VİTRİN */
}

.badge-yeni {
    background: linear-gradient(135deg, #27ae60, #2ecc71); /* Yeşil - YENİ */
}

.badge-firsat {
    background: linear-gradient(135deg, #ffc107, #ff9800); /* Sarı - FIRSAT */
    color: #1a1a1a; /* Koyu metin sarı için */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.badge-acil {
    background: linear-gradient(135deg, #e74c3c, #c0392b); /* Kırmızı - ACİL */
    animation: badge-pulse 2s infinite;
}

.badge-premium {
    background: linear-gradient(135deg, #ffd700, #ff8f00);
}

/* SATILDI Badge - Professional Style */
.badge-sold {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Sold Listing Card Overlay */
/* Badge Animation */
@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Card Content */
.listings-grid.grid-view .listing-card.grid-view .card-content {
    padding: 16px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: auto !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}


.listings-grid.grid-view .listing-card.grid-view .card-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 40px !important;
    text-align: left !important;
    white-space: normal !important;
}


.listings-grid.grid-view .listing-card.grid-view .card-specs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    flex-wrap: wrap !important;
}

.listing-card.list-view .card-specs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    height: 16px;
    max-width: 100%;
}

.listing-card.list-view .spec-item {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    font-size: 9px;
    color: var(--text-muted);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spec-item i {
    font-size: 10px;
    color: var(--text-muted);
}

.listing-card.list-view .spec-item i {
    font-size: 8px;
    color: var(--text-muted);
}

.listing-card.grid-view .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.listing-card.list-view .card-location {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.listing-card.list-view .card-footer {
    display: none;
}

/* Clean Column Styles */
.listing-card.list-view .card-image {
    width: 100px;
    height: 85px;
    border-radius: 6px;
    padding: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    background: #f8f9fa;
}

.listing-card.list-view .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 85px;
    padding: 0;
    box-sizing: border-box;
    align-items: flex-start;
    min-width: 0; /* Grid taşmasını engelle */
    max-width: 100%; /* Container içinde kal */
    overflow: hidden; /* Taşan içeriği gizle */
}

.listing-card.list-view .card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-width: 100%; /* Parent genişliğini aşma */
    width: 100%; /* Tüm alanı kullan ama taşma */
}

.listing-card.list-view .card-specs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
}

.listing-card.list-view .card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-orange);
    text-align: center;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.listing-card.list-view .card-date {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.listing-card.list-view .card-location {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.listings-grid.grid-view .listing-card.grid-view .card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
    padding: 12px 16px 16px 16px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
    border-bottom: none !important;
    min-height: auto !important;
}

.listing-card.grid-view .card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-orange);
}

.listing-card.list-view .card-price {
    font-size: 20px;
}

.card-date {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.listing-card.grid-view .card-date {
    order: -1;
    margin-right: auto;
}

/* Loading & Empty States */
.loading-state {
    text-align: center;
    padding: 20px 24px; /* Reduced from 60px to eliminate excess space */
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Professional Skeleton Loading */
.skeleton-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.skeleton-card.list-view {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.skeleton-card.grid-view {
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-card.list-view .skeleton-image {
    width: 180px;
    height: 120px;
    border-radius: var(--border-radius);
}

.skeleton-card.grid-view .skeleton-image {
    width: 100%;
    height: 140px;
}

.skeleton-content {
    flex: 1;
    padding: 16px;
}

.skeleton-card.list-view .skeleton-content {
    padding: 0;
}

.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-line.title {
    height: 20px;
    width: 80%;
}

.skeleton-line.specs {
    height: 16px;
    width: 60%;
}

.skeleton-line.location {
    height: 14px;
    width: 40%;
}

.skeleton-line.price {
    height: 18px;
    width: 30%;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-description {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Professional Pagination */
.pagination-wrapper {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-medium);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.page-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--background-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    height: fit-content;
    position: sticky;
    top: 20px; /* Reduced from 100px to match categories sidebar */
}

.filter-section {
    border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-toggle {
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--transition);
}

.filter-section.collapsed .filter-toggle {
    transform: rotate(180deg);
}

.filter-content {
    padding: 16px 20px;
}

.filter-section.collapsed .filter-content {
    display: none;
}

/* Filter Inputs */
.filter-group {
    margin-bottom: 16px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: white;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range .filter-input {
    flex: 1;
}

.range-separator {
    color: var(--text-muted);
    font-weight: 500;
}

/* Filter Pills - Professional Design */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.filter-pill {
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.filter-pill:hover {
    background: #e9ecef;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.filter-pill.selected {
    background: linear-gradient(135deg, var(--primary-blue), #1557b0);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.filter-pill.selected:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Filter Section Collapsed State */
.filter-section.collapsed .filter-content {
    display: none;
}

.filter-section.collapsed .filter-toggle {
    transform: rotate(180deg);
}

/* Filter Checkboxes */
.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
}

/* Filter Buttons */
.filter-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}

.filter-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.filter-btn.primary:hover {
    background: #1557b0;
}

.filter-btn.secondary {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.filter-btn.secondary:hover {
    background: #f8f9fa;
    color: var(--text-primary);
}

/* Desktop Only - No Mobile Responsive */

/* ============================================
   ETİKET RENK SİSTEMİ - DESKTOP LISTINGS
   ============================================ */

/* 1. SADECE VİTRİN - ALTIN ÇERÇEVE */
.listing-card.featured:not(.tag-acil):not(.tag-firsat):not(.tag-yeni) {
    border: 2px solid #ffd700 !important;
    background: linear-gradient(to right, #fffef7, #ffffff) !important;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.2) !important;
}

.listing-card.featured:not(.tag-acil):not(.tag-firsat):not(.tag-yeni):hover {
    border-color: #ffb700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3) !important;
}

/* 2. VİTRİN + FIRSAT - TURKUAZ ÇERÇEVE (TAK RENGİ) */
.listing-card.featured.tag-firsat,
.listing-card.tag-firsat {
    border: 2px solid #3df9fb !important;
    background: linear-gradient(to right, #f0feff, #ffffff) !important;
    box-shadow: 0 2px 12px rgba(61, 249, 251, 0.2) !important;
}

.listing-card.featured.tag-firsat:hover,
.listing-card.tag-firsat:hover {
    border-color: #00d4dd !important;
    box-shadow: 0 4px 20px rgba(61, 249, 251, 0.3) !important;
}

/* 3. SADECE ACİL - KIRMIZI ÇERÇEVE */
.listing-card.tag-acil:not(.featured) {
    border: 2px solid #ef4444 !important;
    background: linear-gradient(to right, #fef2f2, #ffffff) !important;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.2) !important;
}

.listing-card.tag-acil:not(.featured):hover {
    border-color: #dc2626 !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3) !important;
}

/* 4. SADECE YENİ - YEŞİL ÇERÇEVE */
.listing-card.tag-yeni:not(.featured) {
    border: 2px solid #10b981 !important;
    background: linear-gradient(to right, #f0fdf4, #ffffff) !important;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.2) !important;
}

.listing-card.tag-yeni:not(.featured):hover {
    border-color: #059669 !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3) !important;
}

/* PREMIUM BADGE - Listing Kartlarında */
.listing-badge.premium {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
}

/* Grid View için badge pozisyonu */
.listings-grid.grid-view .listing-card .listing-badge.premium {
    top: 12px;
    left: 12px;
}


/* ============================================
   HOVER SORUNU DÜZELTMESİ
   ============================================ */

/* Card content hover'ını iptal et - sadece kart hover olsun */
.listing-card .card-content {
    pointer-events: none; /* İçerik hover almasın */
}

.listing-card .card-content * {
    pointer-events: none; /* İçindeki elementler de hover almasın */
}

/* Listing card'ın kendisi hover alsın */
.listing-card {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Uniform hover efekti */
.listing-card:hover {
    transform: translateY(-4px) !important;
    transition: all 0.3s ease !important;
}

/* Satılmış İlan - Komple Gri Tasarım */
.listing-card.sold {
    position: relative;
    opacity: 0.8;
    pointer-events: none;
    background: #e9ecef !important; /* Komple gri arka plan */
    border-color: #ced4da !important;
}

.listing-card.sold .card-content {
    background: #e9ecef !important; /* İçerik de gri */
}

.listing-card.sold .card-image {
    filter: grayscale(100%) brightness(0.9);
}

.listing-card.sold .card-title,
.listing-card.sold .card-price,
.listing-card.sold .card-specs {
    color: #6c757d !important; /* Metinler gri */
}


/* ============================================
   PROFESYONEL ETİKET SİSTEMİ - LİSTİNGS
   ============================================ */

/* Etiket Container - Fotoğrafın üstünde sol üst köşe */
.listing-card .card-badges,
.listing-card .listing-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Profesyonel Badge Tasarımı */
.listing-card .badge,
.listing-card [class*="badge-"] {
    padding: 6px 14px !important;
    border-radius: 20px !important; /* Yuvarlak köşeler */
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important; /* Hafif beyaz border */
    backdrop-filter: blur(8px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* VİTRİN Badge - Premium Altın */
.listing-card .badge-vitrin,
.listing-card [data-badge="VİTRİN"] {
    background: linear-gradient(135deg, #ffd700, #ffa500) !important;
    color: #000 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5) !important;
}

/* YENİ Badge - Taze Yeşil */
.listing-card .badge-yeni,
.listing-card [data-badge="YENİ"] {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
}

/* ACİL Badge - Uyarı Kırmızı */
.listing-card .badge-acil,
.listing-card [data-badge="ACİL"] {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    animation: pulse-glow 1.5s ease-in-out infinite !important;
}

/* FIRSAT Badge - Parlak Turkuaz */
.listing-card .badge-firsat,
.listing-card [data-badge="FIRSAT"] {
    background: linear-gradient(135deg, #3df9fb, #00d4dd) !important;
    color: #000 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5) !important;
}

/* Pulse Glow Animation - ACİL için */
@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(239, 68, 68, 0.6);
    }
}

/* SATILDI Badge - Özel Koyu Gri */
.listing-card .badge-sold,
.listing-card [data-badge="SATILDI"] {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
}

/* Grid View için özel pozisyon */
.listings-grid.grid-view .listing-card .card-badges,
.listings-grid.grid-view .listing-card .listing-tags {
    top: 12px;
    left: 12px;
}

/* List View için özel pozisyon */
.listing-card.list-view .card-badges,
.listing-card.list-view .listing-tags {
    top: 8px;
    left: 8px;
}


/* ETİKET POZİSYONU - SAĞ ÜST KÖŞE */
.listing-card .card-badges,
.listing-card .listing-tags {
    position: absolute;
    top: 10px;
    left: auto !important;
    right: 10px !important; /* SAĞ ÜSTE TAŞINDI */
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end !important; /* Sağa hizala */
}

/* Grid View için */
.listings-grid.grid-view .listing-card .card-badges,
.listings-grid.grid-view .listing-card .listing-tags {
    top: 12px;
    right: 12px !important;
    left: auto !important;
}

/* List View için */
.listing-card.list-view .card-badges,
.listing-card.list-view .listing-tags {
    top: 8px;
    right: 8px !important;
    left: auto !important;
}

/* SATILDI badge'i SOL üstte kalsın */
.listing-card .badge-sold,
.listing-card [data-badge="SATILDI"] {
    position: absolute;
    top: 10px;
    left: 10px !important;
    right: auto !important;
}

/* ============================================
   ETİKET BAZLI ÇERÇEVE SİSTEMİ - GÜNCELLENDİ
   ============================================ */

/* ACİL Etiketli İlanlar - KIRMIZI ÇERÇEVE */
.listing-card[data-tag="ACİL"]:not(.featured),
.listing-card.tag-acil:not(.featured) {
    border: 2px solid #ef4444 !important; /* Kırmızı çerçeve */
    background: #ffffff !important; /* İçi beyaz */
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.2) !important;
}

.listing-card[data-tag="ACİL"]:not(.featured):hover,
.listing-card.tag-acil:not(.featured):hover {
    border-color: #dc2626 !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3) !important;
}

/* YENİ Etiketli İlanlar - BEYAZ (VİTRİN YOKSA) */
.listing-card[data-tag="YENİ"]:not(.featured):not([data-featured="1"]),
.listing-card.tag-yeni:not(.featured):not([data-featured="1"]) {
    border: 1px solid #e5e5e5 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.listing-card[data-tag="YENİ"]:not(.featured):not([data-featured="1"]):hover,
.listing-card.tag-yeni:not(.featured):not([data-featured="1"]):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* YENİ kartların içerik alanı da beyaz */
.listing-card[data-tag="YENİ"]:not(.featured):not([data-featured="1"]) .card-content,
.listing-card.tag-yeni:not(.featured):not([data-featured="1"]) .card-content {
    background: #ffffff !important;
}

.listing-card[data-tag="YENİ"]:not(.featured):not([data-featured="1"]):hover .card-content,
.listing-card.tag-yeni:not(.featured):not([data-featured="1"]):hover .card-content {
    background: #ffffff !important;
}

/* FIRSAT Etiketli İlanlar - BEYAZ (VİTRİN YOKSA) */
.listing-card[data-tag="FIRSAT"]:not(.featured):not([data-featured="1"]),
.listing-card.tag-firsat:not(.featured):not([data-featured="1"]) {
    border: 1px solid #e5e5e5 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.listing-card[data-tag="FIRSAT"]:not(.featured):not([data-featured="1"]):hover,
.listing-card.tag-firsat:not(.featured):not([data-featured="1"]):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* VİTRİN + FIRSAT → SADECE VİTRİN STİLİ */
.listing-card.featured.tag-firsat,
.listing-card[data-featured="1"].tag-firsat {
    border: 2px solid #ffd700 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.2) !important;
}

.listing-card.featured.tag-firsat:hover,
.listing-card[data-featured="1"].tag-firsat:hover {
    border-color: #ffb700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3) !important;
}


/* ============================================
   SATILMIŞ İLAN - FULL GRİ + TIKLANAMAZ
   ============================================ */

/* Satılmış kartlar - Komple gri, profesyonel */
.listing-card.sold {
    position: relative;
    opacity: 0.75 !important;
    pointer-events: none !important; /* Tıklanamaz */
    cursor: not-allowed !important;
    background: #e9ecef !important; /* Tam gri */
    border: 2px solid #ced4da !important;
    box-shadow: none !important;
}

.listing-card.sold:hover {
    transform: none !important; /* Hover efekti yok */
    box-shadow: none !important;
}

/* Satılmış kart içeriği - Full gri */
.listing-card.sold .card-content {
    background: #e9ecef !important;
}

.listing-card.sold .card-image {
    filter: grayscale(100%) brightness(0.85) !important;
}

/* Satılmış kart metinleri - Gri tonlar */
.listing-card.sold .card-title {
    color: #6c757d !important;
}

.listing-card.sold .card-price {
    color: #868e96 !important;
}

.listing-card.sold .card-specs,
.listing-card.sold .card-location,
.listing-card.sold .spec-item {
    color: #adb5bd !important;
}

/* SATILDI badge - Belirgin ve profesyonel */
.listing-card.sold .badge-sold,
.listing-card.sold [data-badge="SATILDI"] {
    background: linear-gradient(135deg, #495057, #343a40) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}


/* ============================================
   ESKİ CSS ÇÖP TEMİZLİĞİ - ÖNCELİK OVERRIDE
   ============================================ */

/* VİTRİN (FEATURED) → ALTIN ÇERÇEVE, BEYAZ ARKA PLAN */
.listing-card.featured,
.listing-card[data-featured="1"] {
    background: #ffffff !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.2) !important;
}

.listing-card.featured:hover,
.listing-card[data-featured="1"]:hover {
    transform: translateY(-2px) !important;
    border-color: #ffb700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3) !important;
}

.listing-card.featured .card-content,
.listing-card[data-featured="1"] .card-content {
    background: #ffffff !important;
}

/* VİTRİN + ACİL → PREMİUM TASARIM (ALTIN + KIRMIZI GLOW) */
.listing-card.featured.tag-acil:not(.sold),
.listing-card.featured[data-tag*="ACİL"]:not(.sold),
.listing-card[data-featured="1"].tag-acil:not(.sold),
.listing-card[data-featured="1"][data-tag*="ACİL"]:not(.sold) {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 50%, #fff0f0 100%) !important;
    border: none !important;
    box-shadow: 
        0 4px 20px rgba(255, 100, 0, 0.5),
        0 8px 32px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    position: relative !important;
    overflow: visible !important;
}

.listing-card.featured.tag-acil:not(.sold)::before,
.listing-card.featured[data-tag*="ACİL"]:not(.sold)::before,
.listing-card[data-featured="1"].tag-acil:not(.sold)::before,
.listing-card[data-featured="1"][data-tag*="ACİL"]:not(.sold)::before {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #ffd700) !important;
    background-size: 200% 200% !important;
    border-radius: inherit !important;
    z-index: -1 !important;
    animation: premium-glow 3s ease infinite !important;
}

@keyframes premium-glow {
    0%, 100% { background-position: 0% 50%; opacity: 0.8; }
    50% { background-position: 100% 50%; opacity: 1; }
}

.listing-card.featured.tag-acil:not(.sold):hover,
.listing-card.featured[data-tag*="ACİL"]:not(.sold):hover,
.listing-card[data-featured="1"].tag-acil:not(.sold):hover,
.listing-card[data-featured="1"][data-tag*="ACİL"]:not(.sold):hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 
        0 8px 32px rgba(255, 100, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* VİTRİN + ACİL içerik alanı */
.listing-card.featured.tag-acil:not(.sold) .card-content,
.listing-card.featured[data-tag*="ACİL"]:not(.sold) .card-content,
.listing-card[data-featured="1"].tag-acil:not(.sold) .card-content,
.listing-card[data-featured="1"][data-tag*="ACİL"]:not(.sold) .card-content {
    background: transparent !important;
}

/* VİTRİN + YENİ → SADECE VİTRİN STİLİ */
.listing-card.featured.tag-yeni,
.listing-card.featured[data-tag*="YENİ"],
.listing-card[data-featured="1"].tag-yeni,
.listing-card[data-featured="1"][data-tag*="YENİ"] {
    background: #ffffff !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.2) !important;
}

.listing-card.featured.tag-yeni .card-content,
.listing-card.featured[data-tag*="YENİ"] .card-content,
.listing-card[data-featured="1"].tag-yeni .card-content,
.listing-card[data-featured="1"][data-tag*="YENİ"] .card-content {
    background: #ffffff !important;
}

/* Eski card-content background'ları iptal et */
.listing-card .card-content {
    background: transparent !important; /* Transparent - parent'tan alsın */
}

/* Grid view kartlarında içerik beyaz */
.listings-grid.grid-view .listing-card:not(.sold):not(.tag-yeni) .card-content {
    background: #ffffff !important;
}

/* Hover'da transform sadece satılmamış kartlarda */
.listing-card:not(.sold):hover {
    transform: translateY(-4px) !important;
    transition: all 0.3s ease !important;
}

/* Etiketlerin üst üste gelmesini engelle */
.listing-card .card-badges > *,
.listing-card .listing-tags > * {
    margin-bottom: 0 !important;
}


/* ============================================
   HARD OVERRIDE - TÜM ESKİ CSS'LERİ EZ!
   ============================================ */

/* 1. ETİKETLER SAĞ ÜSTE - HARD OVERRIDE */
.listing-card .card-badges,
.listing-card .listing-tags,
.card-badges,
.listing-tags {
    position: absolute !important;
    top: 10px !important;
    left: auto !important;
    right: 10px !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-end !important;
}

/* SATILDI SOL ÜSTTE */
.badge-sold,
[data-badge="SATILDI"],
.listing-card .badge-sold {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    background: linear-gradient(135deg, #495057, #343a40) !important;
    color: #fff !important;
    padding: 20px 40px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    z-index: 1000 !important;
}

/* 2. NORMAL KARTLAR - DÜZ BEYAZ */
.listing-card {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
}

.listing-card .card-content {
    background: #ffffff !important;
}

/* 3. ACİL - SADECE KIRMIZI ÇERÇEVE */
.listing-card[data-tag="ACİL"],
.listing-card.tag-acil {
    border: 3px solid #ef4444 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.1) !important;
}

.listing-card[data-tag="ACİL"] .card-content,
.listing-card.tag-acil .card-content {
    background: #ffffff !important;
}

/* 4. YENİ - SADECE BEYAZ (VİTRİN YOKSA) */
.listing-card[data-tag="YENİ"]:not(.featured):not([data-featured="1"]),
.listing-card.tag-yeni:not(.featured):not([data-featured="1"]) {
    border: 1px solid #e5e5e5 !important;
    background: #ffffff !important;
}

.listing-card[data-tag="YENİ"]:not(.featured):not([data-featured="1"]) .card-content,
.listing-card.tag-yeni:not(.featured):not([data-featured="1"]) .card-content {
    background: #ffffff !important;
}

/* 5. FIRSAT - SADECE BEYAZ (VİTRİN YOKSA) */
.listing-card[data-tag="FIRSAT"]:not(.featured):not([data-featured="1"]),
.listing-card.tag-firsat:not(.featured):not([data-featured="1"]) {
    border: 1px solid #e5e5e5 !important;
    background: #ffffff !important;
}

.listing-card[data-tag="FIRSAT"]:not(.featured):not([data-featured="1"]) .card-content,
.listing-card.tag-firsat:not(.featured):not([data-featured="1"]) .card-content {
    background: #ffffff !important;
}

/* 6. SATILDI - FULL GRİ + ORTADA BADGE */
.listing-card.sold {
    background: #e9ecef !important;
    border: 2px solid #ced4da !important;
    opacity: 0.8 !important;
    pointer-events: none !important;
    position: relative !important;
}

.listing-card.sold .card-content {
    background: #e9ecef !important;
}

.listing-card.sold .card-image {
    filter: grayscale(100%) brightness(0.8) !important;
    position: relative !important;
}

.listing-card.sold .card-title,
.listing-card.sold .card-price,
.listing-card.sold * {
    color: #6c757d !important;
}

/* 7. PROFESYONEL BADGES */
.badge,
[class*="badge-"] {
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
}

.badge-acil,
[data-badge="ACİL"] {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
}

.badge-yeni,
[data-badge="YENİ"] {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
}

.badge-firsat,
[data-badge="FIRSAT"] {
    background: linear-gradient(135deg, #3df9fb, #00d4dd) !important;
    color: #000 !important;
}

.badge-vitrin,
[data-badge="VİTRİN"] {
    background: linear-gradient(135deg, #ffd700, #ffa500) !important;
    color: #000 !important;
}

/* ============================================
   ANASAYFA GİBİ CREATIVE BADGE SİSTEMİ V2
   ============================================ */

/* Badge Container - İKİ TARAFLI LAYOUT */
.listing-card .card-badges {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

/* VİTRİN Badge - SOL ÜST (Anasayfa Gibi) */
.listing-card .badge-vitrin,
.listing-card [data-badge="VİTRİN"] {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    
    /* Tipografi */
    font-size: 9px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    line-height: 1.1 !important;
    
    /* Görünüm */
    color: #fff !important;
    background: linear-gradient(180deg, #ff7a1a 0%, #e85a00 100%) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.18) !important;
    
    /* İç boşluk */
    padding: 7px 14px 9px 12px !important;
    
    /* Sağ kenarı eğik */
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 88%) !important;
    
    /* Derinlik */
    box-shadow: 
        0 4px 10px rgba(0,0,0,.18),
        0 1px 3px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
    
    border: none !important;
    border-radius: 0 !important;
    z-index: 102 !important;
    pointer-events: none !important;
}

/* VİTRİN Badge - Alt Gölge */
.listing-card .badge-vitrin::after,
.listing-card [data-badge="VİTRİN"]::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 0 !important;
    width: 6px !important;
    height: 6px !important;
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.2) 50%) !important;
    clip-path: polygon(0 0, 100% 0, 0 100%) !important;
}

/* SAĞ ÜSTTE TAGS (ACİL, YENİ, FIRSAT) */
.listing-card .listing-tags {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-end !important;
    z-index: 101 !important;
    pointer-events: none !important;
}

/* SAĞ BADGES - Modern & Creative */
.listing-card .listing-tags .badge-acil,
.listing-card .listing-tags .badge-yeni,
.listing-card .listing-tags .badge-firsat,
.listing-card .listing-tags [data-badge="ACİL"],
.listing-card .listing-tags [data-badge="YENİ"],
.listing-card .listing-tags [data-badge="FIRSAT"] {
    position: relative !important;
    padding: 6px 14px !important;
    border-radius: 6px 6px 6px 2px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    border: 1.5px solid rgba(255,255,255,0.4) !important;
}

/* ACİL - Kırmızı Gradient */
.listing-card .listing-tags .badge-acil,
.listing-card .listing-tags [data-badge="ACİL"] {
    background: linear-gradient(135deg, #ff3b3b 0%, #d32f2f 100%) !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* YENİ - Yeşil Gradient */
.listing-card .listing-tags .badge-yeni,
.listing-card .listing-tags [data-badge="YENİ"] {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%) !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* FIRSAT - Turkuaz Gradient */
.listing-card .listing-tags .badge-firsat,
.listing-card .listing-tags [data-badge="FIRSAT"] {
    background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%) !important;
    color: #000 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5) !important;
}

