/* İlanlar Sayfası CSS */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #419F4B; /* Yeşil renk diğer sayfalar gibi */
}

.ilan-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-left: 8px;
}

.beta-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.mobile-menu-btn {
    background: linear-gradient(135deg, #419F4B 0%, #2E7D32 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.mobile-menu-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
}

.mobile-menu-btn svg {
    color: white;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    color: white;
    white-space: nowrap;
}

/* Mobile Actions */
.mobile-actions {
    display: none;
    gap: 12px;
    justify-content: center;
    width: 100%;
    padding: 10px;
}

.mobile-sort-btn {
    background: transparent;
    border: 2px solid #419F4B;
    border-radius: 8px;
    padding: 8px 12px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.mobile-sort-btn:hover {
    background: #419F4B;
    border-color: #419F4B;
}

.mobile-sort-btn svg {
    color: #419F4B;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.mobile-sort-btn span {
    color: #419F4B;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.mobile-sort-btn:hover svg,
.mobile-sort-btn:hover span {
    color: white;
}

.mobile-actions {
    display: none; /* Web'de gizli */
}

@media (max-width: 768px) {
    .mobile-actions {
        display: flex; /* Sadece mobile'da görünür */
    }
}

/* SVG elementlerini seçilemez yap */
svg, svg * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: none;
}

.listings-header {
    color: white;
    padding: 60px 0 10px;
    position: relative;
}


.listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filtreleme Bölümü */
/* Filters and Controls Container */
.filters-and-controls {
    margin-bottom: 12px;
}

.filters-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.filters-content {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.filters-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filters-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid #e9ecef;
    padding-left: 25px;
}

.filters-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filter-category {
    margin-bottom: 20px;
}

.filter-category h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-link {
    display: inline-block;
    padding: 6px 0;
    margin-right: 20px;
    color: #419F4B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.filter-link:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
    text-decoration: none;
}

.filter-link.active {
    color: #0056b3;
    border-bottom-color: #0056b3;
    font-weight: 600;
}

.filter-placeholder {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
    padding: 8px 0;
}

/* Filter Range Inputs */
.filter-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.range-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.range-input:focus {
    outline: none;
    border-color: #419F4B;
    box-shadow: 0 0 0 3px rgba(65,159,75,0.1);
}

.range-input:hover {
    border-color: #419F4B;
}

.range-input::placeholder {
    color: #999;
}

.range-separator {
    color: #666;
    font-weight: 500;
    min-width: 15px;
    text-align: center;
}

/* Listings Info Bar */
.listings-info-bar {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.listings-info-bar span {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.listings-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

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

.control-group label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.control-select-inline {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 120px;
}

.control-select-inline:focus {
    outline: none;
    border-color: #419F4B;
}

/* İlan Kartları */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.listing-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.listing-image {
    height: 171px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.listing-content {
    padding: 25px;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.listing-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}


.listing-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-date {
    color: #888;
    font-size: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-date svg {
    flex-shrink: 0;
}

.listing-date span {
    font-weight: 500;
}

.listing-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.listing-price {
    font-size: 24px;
    font-weight: 800;
    color: #419F4B;
}

.listing-area {
    color: #666;
    font-size: 16px;
    font-weight: 700;
}


/* Durum Mesajları */
.no-listings {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 40px;
}

/* Sayfalama - SEO-friendly links */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    background: white;
    color: #333;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.pagination a {
    cursor: pointer;
}

.pagination a:hover {
    border-color: #419F4B;
    color: #419F4B;
}

.pagination span.active {
    background: #419F4B;
    color: white;
    border-color: #419F4B;
}

.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobil Hamburger Menü */

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.show {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transition: bottom 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.mobile-sidebar.open {
    bottom: 0;
}

.mobile-sidebar-header {
    padding: 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.mobile-sidebar-content {
    padding: 20px;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.mobile-filter-category {
    margin-bottom: 30px;
}

.mobile-filter-category h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f3f4;
}

.mobile-filter-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-filter-links .filter-link {
    text-align: left;
    padding: 12px 16px;
    margin-right: 0;
    margin-bottom: 8px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.mobile-filter-links .filter-link:hover {
    background: #f0f8f0;
    border-color: #419F4B;
}

.mobile-filter-links .filter-link.active {
    background: #f0f8f0;
    border-color: #419F4B;
    font-weight: 600;
}

.apply-filter-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #419F4B 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apply-filter-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.mobile-filter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.clear-filter-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-filter-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
}

.apply-filter-btn {
    flex: 1;
}

.web-apply-btn {
    margin-top: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.mobile-overlay.show {
    display: block;
}

/* Sort Popup */
.sort-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.sort-popup-overlay.show {
    display: block;
}

.sort-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transition: bottom 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.sort-popup.show {
    bottom: 0;
}

.sort-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.sort-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.sort-popup-content {
    padding: 20px;
}

.sort-group {
    margin-bottom: 30px;
}

.sort-group h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.sort-options, .limit-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sort-options label, .limit-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.sort-options label:hover, .limit-options label:hover {
    background: #f0f8f0;
    border-color: #419F4B;
}

.sort-options input[type="radio"]:checked + span,
.sort-options label:has(input[type="radio"]:checked) {
    background: #f0f8f0;
    border-color: #419F4B;
    font-weight: 600;
}

.sort-option, .limit-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:has(input:checked), .limit-option:has(input:checked) {
    border-color: #419F4B;
    background: #f0f8f0;
}

.sort-option input, .limit-option input {
    margin: 0;
}

.sort-option span, .limit-option span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.apply-sort-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #419F4B 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.apply-sort-btn:hover {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    transform: translateY(-1px);
}

/* Close Button Styles */
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.close-btn:active {
    transform: scale(0.95);
}

/* Web-only controls - hide on mobile */
.listings-controls-inline {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-select-inline {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.control-select-inline:hover {
    border-color: #419F4B;
}

.control-select-inline:focus {
    outline: none;
    border-color: #419F4B;
    box-shadow: 0 0 0 2px rgba(65, 159, 75, 0.1);
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .listings-controls-inline {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Mobile popup padding adjustments */
    .mobile-sidebar-header {
        padding: 0px 20px;
    }
    
    .mobile-sidebar-content {
        padding: 15px 20px;
    }
    
    .mobile-filter-category {
        margin-bottom: 20px;
    }
    
    .mobile-filter-category h4 {
        margin: 0 0 10px 0;
        font-size: 15px;
    }
    
    .mobile-filter-links .filter-link {
        padding: 10px 14px;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .mobile-filter-buttons {
        margin-top: 15px;
        gap: 12px;
    }
    
    .apply-filter-btn, .clear-filter-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    /* Sort popup mobile adjustments */
    .sort-popup-header {
        padding: 4px 20px;
        margin-bottom: 12px;
    }
    
    .sort-popup-content {
        padding: 15px 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .sort-group {
        margin-bottom: 15px;
    }
    
    .sort-group h4 {
        margin: 0 0 8px 0;
        font-size: 15px;
        padding: 0 20px;
    }
    
    .sort-options {
        padding: 0 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .sort-options h4 {
        margin: 16px 0 8px 0;
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }
    
    .sort-options label {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .apply-sort-btn {
        width: 90%;
        padding: 14px;
        font-size: 15px;
        margin: 20px 20px 12px 20px;
    }
    
    /* Range inputs mobile adjustments */
    .filter-range {
        gap: 8px;
        margin-top: 8px;
    }
    
    .range-input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    /* Close button mobile adjustments */
    .close-btn {
        width: 48px;
        height: 48px;
        font-size: 28px;
        padding: 8px;
    }
    
    /* Mobilde logo ve yazıları küçült */
    .logo {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .ilan-text {
        font-size: 16px;
        margin-left: 6px;
    }
    
    .beta-badge {
        font-size: 8px;
        padding: 1px 4px;
        margin-left: 4px;
    }
    
    .listings-header {
        padding: 60px 0 0px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .filters-and-controls {
        display: none;
    }
    
    .filters-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .filters-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e9ecef;
        padding-top: 25px;
    }
    
    .listings-controls {
        display: none;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .listings-container {
        padding: 0px 14px;
    }
    
    .listing-card {
        margin-top: 0;
    }
}
