/* İlanlar1.php için Özel CSS Stilleri */

/* Sayfa Başlığı */
.sayfa-basligi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.sayfa-basligi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.sayfa-basligi .container {
    position: relative;
    z-index: 2;
}

.sayfa-basligi h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.sayfa-basligi p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.breadcrumb span {
    opacity: 0.7;
}

/* Filtreleme Bölümü */
.filtreleme-bolumu {
    background: #f8f9fa;
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
}

.filtre-baslik {
    text-align: center;
    margin-bottom: 40px;
}

.filtre-baslik h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.filtre-baslik p {
    font-size: 1.2rem;
    color: #6c757d;
}

.filtre-formu {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.filtre-satiri {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.filtre-satiri:last-child {
    margin-bottom: 0;
}

.filtre-grubu {
    display: flex;
    flex-direction: column;
}

.filtre-grubu label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.filtre-grubu label i {
    color: #667eea;
    font-size: 1rem;
}

.filtre-grubu select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filtre-grubu select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filtre-grubu select:hover {
    border-color: #667eea;
}

.btn-filtrele, .btn-temizle {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.btn-filtrele {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-right: 10px;
}

.btn-filtrele:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-temizle {
    background: #6c757d;
    color: white;
}

.btn-temizle:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Mobil görünüm düzeltmeleri - Tıklama sorunları */

/* İlan kartları için mobil tıklama düzeltmeleri */
@media (max-width: 768px) {
    .ilan-card {
        display: block !important;
        position: relative !important;
        z-index: 1 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        cursor: pointer !important;
        min-height: 44px !important; /* iOS minimum touch target */
        padding: 8px !important;
        margin-bottom: 15px !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        color: inherit !important;
    }

    .ilan-card:hover,
    .ilan-card:focus,
    .ilan-card:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
        background: #f8f9fa !important;
        outline: none !important;
    }

    /* İlan kartı içeriği */
    .ilan-card * {
        pointer-events: none !important;
        touch-action: none !important;
    }

    /* Butonlar için mobil düzeltmeler */
    .btn-filtrele,
    .btn-temizle,
    .gorunum-btn {
        display: inline-block !important;
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        cursor: pointer !important;
        min-height: 44px !important; /* iOS minimum touch target */
        min-width: 44px !important;
        padding: 12px 20px !important;
        margin: 5px !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
        line-height: 1.2 !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        background: #007bff !important;
        color: white !important;
    }

    .btn-filtrele:hover,
    .btn-filtrele:focus,
    .btn-filtrele:active {
        background: #0056b3 !important;
        transform: scale(0.98) !important;
        outline: none !important;
    }

    .btn-temizle {
        background: #6c757d !important;
    }

    .btn-temizle:hover,
    .btn-temizle:focus,
    .btn-temizle:active {
        background: #545b62 !important;
        transform: scale(0.98) !important;
        outline: none !important;
    }

    .gorunum-btn {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 2px solid #dee2e6 !important;
    }

    .gorunum-btn.active {
        background: #007bff !important;
        color: white !important;
        border-color: #007bff !important;
    }

    .gorunum-btn:hover,
    .gorunum-btn:focus,
    .gorunum-btn:active {
        background: #e9ecef !important;
        border-color: #adb5bd !important;
        transform: scale(0.98) !important;
        outline: none !important;
    }

    .gorunum-btn.active:hover,
    .gorunum-btn.active:focus,
    .gorunum-btn.active:active {
        background: #0056b3 !important;
        border-color: #0056b3 !important;
    }

    /* Form elementleri için mobil düzeltmeler */
    select,
    input[type="text"],
    input[type="number"] {
        min-height: 44px !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px !important;
        border-radius: 8px !important;
        border: 2px solid #dee2e6 !important;
        touch-action: manipulation !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }

    /* Container ve grid düzeltmeleri */
    .ilanlar-grid {
        touch-action: pan-y !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .filtreleme-bolumu {
        touch-action: pan-y !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* Overlay ve modal sorunlarını önle */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }

    /* iOS Safari için özel düzeltmeler */
    @supports (-webkit-touch-callout: none) {
        .ilan-card,
        .btn-filtrele,
        .btn-temizle,
        .gorunum-btn {
            -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
            -webkit-touch-callout: none !important;
        }
    }

    /* Android için özel düzeltmeler */
    @media (pointer: coarse) {
        .ilan-card,
        .btn-filtrele,
        .btn-temizle,
        .gorunum-btn {
            min-height: 48px !important; /* Android minimum touch target */
            min-width: 48px !important;
        }
    }
}

/* Küçük mobil cihazlar için ek düzeltmeler */
@media (max-width: 480px) {
    .ilan-card {
        margin-bottom: 12px !important;
        padding: 6px !important;
    }

    .btn-filtrele,
    .btn-temizle,
    .gorunum-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 40px !important;
        min-width: 40px !important;
    }

    .filtre-formu {
        padding: 15px !important;
    }

    .filtre-satiri {
        gap: 10px !important;
    }
}

/* Z-index sorunlarını çöz */
.header {
    z-index: 1000 !important;
}

.mobile-menu-toggle {
    z-index: 1001 !important;
}

.mobile-overlay {
    z-index: 999 !important;
}

.nav-menu {
    z-index: 1000 !important;
}

.filtreleme-bolumu {
    z-index: 10 !important;
}

.ilanlar-grid {
    z-index: 1 !important;
}

/* Performans optimizasyonları */
.ilan-card,
.btn-filtrele,
.btn-temizle,
.gorunum-btn {
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: translateZ(0) !important;
}

.ilan-card, .btn-filtrele, .btn-temizle, .gorunum-btn {
    position: relative;
}

.ilan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.ilanlar-grid.list-view .ilan-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive düzenlemeler */
@media (max-width: 1200px) {
    .ilanlar-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .ilanlar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ilan-card {
        max-width: 100%;
    }
    
    .ilan-image {
        height: 250px;
    }
    
    .ilanlar-grid.list-view .ilan-card {
        flex-direction: column;
    }
    
    .ilanlar-grid.list-view .ilan-image {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .ilan-image {
        height: 220px;
    }
    
    .ilanlar-grid.list-view .ilan-image {
        height: 200px;
    }
}

.ilan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.ilan-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.ilan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ilan-card:hover .ilan-image img {
    transform: scale(1.05);
}

.ilan-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.ilan-badge.kiralik {
    background: #3498db;
}

.ilan-badge.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
}

.ilan-favori {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.ilan-favori:hover {
    background: white;
    transform: scale(1.1);
}

.ilan-favori i {
    font-size: 1.2rem;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.ilan-content {
    padding: 25px;
}

.ilan-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ilan-konum {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ilan-ozellik {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.ilan-fiyat {
    font-size: 1.5rem;
    font-weight: 800;
    color: #27ae60;
    text-align: right;
}

/* Sayfalama */
.sayfalama {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.sayfa-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
}

.sayfa-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.sayfa-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.sayfa-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sayfa-nokta {
    color: #6c757d;
    font-weight: 600;
    padding: 0 10px;
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .sayfa-basligi {
        padding: 60px 0 40px;
    }
    
    .sayfa-basligi h1 {
        font-size: 2.5rem;
    }
    
    .filtreleme-bolumu {
        padding: 40px 0;
    }
    
    .filtre-formu {
        padding: 25px;
    }
    
    .filtre-satiri {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ilanlar-ust-bilgi {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .ilanlar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ilanlar-grid.list-view .ilan-card {
        flex-direction: column;
    }
    
    .ilanlar-grid.list-view .ilan-image {
        width: 100%;
        height: 200px;
    }
    
    .ilan-content {
        padding: 20px;
    }
    
    .sayfalama {
        gap: 5px;
    }
    
    .sayfa-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .sayfa-basligi h1 {
        font-size: 2rem;
    }
    
    .filtre-baslik h2 {
        font-size: 2rem;
    }
    
    .filtre-formu {
        padding: 20px;
    }
    
    .ilan-content h3 {
        font-size: 1.2rem;
    }
    
    .ilan-fiyat {
        font-size: 1.3rem;
    }
}

/* Özel Scroll Bar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Yükleme Animasyonu */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .ilan-card {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Overlay için sayfa-özel koruma (ilanlar sayfasında çakışmayı önler) */
.mobile-overlay {
    pointer-events: none !important;
}
.mobile-overlay.active {
    pointer-events: auto !important;
}