/* ==============================================================================
 * DOSYA YOLU:      assets/css/main.css
 * SÜRÜM:           1.0.0
 * TARİH:           2026-10-17
 * 
 * GÖREVİ:          Ana sayfa ve genel sayfa stilleri.
 * ============================================================================== */

/* ==========================================================================
   1. TEMEL AYARLAR
   ========================================================================== */
:root {
    --color-primary: #3d4654;
    --color-secondary: #2f3640;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: #0073e6;
    --color-accent-light-hover: #005bb5;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   2. HERO BÖLÜMÜ
   ========================================================================== */
.hero-bg {
    background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.4)),
    url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   3. ÖNE ÇIKAN İLAN KARTI
   ========================================================================== */
.property-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.property-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.property-card .thumb {
    display: block;
    height: 10rem;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.property-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .thumb img {
    transform: scale(1.1);
}

/* ==========================================================================
   4. PROJE KARTI
   ========================================================================== */
.project-card {
    flex: 0 0 auto;
    width: 220px;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.project-card .thumb {
    display: block;
    height: 8rem;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.project-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .thumb img {
    transform: scale(1.1);
}

/* ==========================================================================
   5. ARSA KARTI
   ========================================================================== */
.land-card {
    flex: 0 0 auto;
    width: 220px;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.land-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.land-card .thumb {
    display: block;
    height: 8rem;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.land-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.land-card:hover .thumb img {
    transform: scale(1.1);
}

/* ==========================================================================
   6. YATAY KAYDIRMA
   ========================================================================== */
.scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0 1rem 0;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.scroll-btn:hover {
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-btn:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* ==========================================================================
   7. NEDEN FİKİRTEPE EMLAK KARTI
   ========================================================================== */
.office-card {
    background: white;
    border-radius: 14px;
    padding: 20px 18px 25px 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.office-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #eef4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle svg {
    width: 30px;
    height: 30px;
    stroke: #3b82f6;
}

.card-title {
    text-align: center;
    margin-bottom: 12px;
}

.card-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.card-description {
    flex: 1;
    margin-bottom: 20px;
}

.card-description p {
    text-align: center;
    color: #4b5563;
    line-height: 1.5;
    font-size: 0.85rem;
}

.card-button {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.card-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-accent-light);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 160px;
    text-align: center;
    text-decoration: none;
}

.card-btn:hover {
    background: var(--color-accent-light-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   8. ARAMA KUTUSU
   ========================================================================== */
.search-wrapper {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    width: 100%;
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.filter-item {
    flex: 1;
    min-width: 140px;
}

.filter-item select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-item select:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.btn-search-hero {
    background: var(--color-accent);
    color: white;
    border: none;
    height: 48px;
    padding: 0 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    min-width: 140px;
}

.btn-search-hero:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-search-hero:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* ==========================================================================
   9. MAHALLE PANELİ
   ========================================================================== */
#neighborhood-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 16px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.close-btn {
    cursor: pointer;
    font-size: 20px;
    color: #666;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.close-btn:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.mh-list-scroll {
    max-height: 250px;
    overflow-y: auto;
}

.mh-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mh-option input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.mh-option label {
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    margin: 0;
}

.panel-ok-btn {
    width: 100%;
    margin-top: 10px;
    background: #f0f0f0;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.panel-ok-btn:hover {
    background: #e2e8f0;
}

.panel-ok-btn:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* ==========================================================================
   10. YARDIMCI SINIFLAR
   ========================================================================== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   11. MOBİL
   ========================================================================== */
@media (max-width: 1024px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-search-hero {
        width: 100%;
    }
    
    #neighborhood-panel {
        position: fixed;
        top: 20%;
        left: 5%;
        right: 5%;
        width: 90%;
    }
}

/* ==========================================================================
   12. ERİŞİLEBİLİRLİK
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}