/* Frontend CSS - Emlak Sitesi */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-light: #ff6b6b;
    --gold: #d4a373;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #fefefe;
    --bg-warm: #faf8f5;
    --bg-cream: #f5f0e8;
    --white: #ffffff;
    --shadow: 0 4px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-warm);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 24px;
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

.logo-text { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--primary); }

.header-phone {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 24px; background: var(--bg-cream);
    border-radius: 50px; font-weight: 600; color: var(--primary);
}

.header-phone i {
    width: 40px; height: 40px; background: var(--accent); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Navigation */
.nav { background: var(--secondary); position: relative; }
.nav::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}

.nav-menu { display: flex; list-style: none; justify-content: center; }

.nav-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 20px 28px; color: rgba(255,255,255,0.9);
    font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
    position: relative; white-space: nowrap;
}

.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
    background: var(--accent); transition: var(--transition); transform: translateX(-50%);
}

.nav-menu a:hover, .nav-menu a:hover::after, .nav-menu a.active::after { width: 60%; color: var(--white); }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 0; position: relative; overflow: hidden;
}

.page-header::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
}

.breadcrumb {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,0.7);
    position: relative; z-index: 2;
}

.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 10px; }

.page-header h1 { font-size: 42px; color: var(--white); margin-bottom: 8px; position: relative; z-index: 2; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 18px; position: relative; z-index: 2; }

/* Main Content */
.main-content { padding: 40px 0 80px; }
.content-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; height: fit-content; }

.filter-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}

.filter-header {
    background: var(--primary); color: var(--white);
    padding: 20px 24px; font-weight: 600; font-size: 16px;
    display: flex; align-items: center; gap: 10px;
}

.filter-body { padding: 24px; }
.filter-group { margin-bottom: 20px; }

.filter-label {
    font-size: 13px; font-weight: 600; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block;
}

.filter-select, .filter-input {
    width: 100%; padding: 12px 16px; border: 2px solid #eee;
    border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
    transition: var(--transition); background: var(--white);
}

.filter-select:focus, .filter-input:focus { outline: none; border-color: var(--accent); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.filter-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white); border: none; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
}

.filter-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3); }

.filter-reset {
    width: 100%; padding: 12px; background: var(--bg-cream);
    color: var(--text); border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; cursor: pointer; margin-top: 12px;
    display: block; text-align: center;
}

.filter-reset:hover { background: #e9e5df; }

/* Results */
.results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding: 20px 24px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}

.results-count { font-size: 16px; }
.results-count strong { color: var(--accent); }

.sort-select {
    padding: 10px 16px; border: 2px solid #eee;
    border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; cursor: pointer;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}

.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.property-image { position: relative; height: 220px; overflow: hidden; }

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

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

.property-badges {
    position: absolute; top: 16px; left: 16px;
    display: flex; gap: 8px; flex-wrap: wrap;
}

.badge-type, .badge-cat, .badge-featured {
    padding: 6px 12px; color: var(--white);
    font-size: 11px; font-weight: 600; border-radius: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.badge-type { background: var(--primary); }
.badge-cat { background: var(--accent); }
.badge-featured { background: var(--gold); color: var(--primary); }

.property-favorite {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px; background: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.property-favorite:hover { background: var(--accent); color: var(--white); }

.property-content { padding: 24px; }

.property-location {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-light); font-size: 13px; margin-bottom: 8px;
}

.property-location i { color: var(--accent); }

.property-title {
    font-size: 18px; color: var(--primary); margin-bottom: 16px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.property-title a:hover { color: var(--accent); }

.property-footer { display: flex; justify-content: space-between; align-items: center; }

.property-price {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700; color: var(--accent);
}

.property-btn {
    padding: 10px 20px; background: var(--bg-cream); color: var(--primary);
    border-radius: var(--radius-sm); font-weight: 600; font-size: 13px;
}

.property-btn:hover { background: var(--primary); color: var(--white); }

/* No Results */
.no-results {
    text-align: center; padding: 80px 40px;
    background: var(--white); border-radius: var(--radius);
}

.no-results-icon {
    width: 100px; height: 100px; background: var(--bg-cream); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-size: 40px; color: var(--text-light);
}

.no-results h3 { font-size: 24px; color: var(--primary); margin-bottom: 12px; }
.no-results p { color: var(--text-light); margin-bottom: 24px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }

.page-link {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--white); border-radius: var(--radius-sm);
    font-weight: 600; color: var(--text); box-shadow: var(--shadow);
}

.page-link:hover, .page-link.active { background: var(--accent); color: var(--white); }

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 60px 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a i {
    font-size: 10px;
    color: var(--accent);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.7);
}

.footer-contact-list li i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-contact-list a {
    color: rgba(255,255,255,0.7);
}

.footer-contact-list a:hover {
    color: var(--white);
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 20px;
    background: #25d366;
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-content { text-align: center; color: rgba(255,255,255,0.7); padding: 24px 0; }

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact-list li {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 16px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .nav-menu a { padding: 14px 16px; font-size: 13px; }
    .page-header h1 { font-size: 32px; }
    .results-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .property-grid { grid-template-columns: 1fr; }
}
