/* ==========================================================================
   EmlakListesi.com - Ana stil dosyasi (app.css)
   Modern, temiz ve creative bir tasarim sistemi.
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --accent: #7c3aed;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --bg-elev: #ffffff;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --amber: #d97706;
    --amber-bg: #fef3c7;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow: 0 10px 25px -8px rgba(15, 23, 42, .15);
    --shadow-lg: 0 22px 50px -12px rgba(15, 23, 42, .28);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --maxw: 1160px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.muted { color: var(--muted); }
.muted-link { color: var(--muted); }
.grad {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: .9em;
    color: var(--ink-soft);
}

.section { padding: 56px 0; }
.section-title { font-size: 1.8rem; margin-bottom: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.link-more { font-weight: 600; white-space: nowrap; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-ghost { background: #f1f5f9; color: var(--ink-soft); }
.btn-ghost:hover { background: #e2e8f0; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn-whatsapp svg { flex-shrink: 0; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-xs { padding: 5px 10px; font-size: .78rem; border-radius: 7px; }
.btn-block { width: 100%; }

/* ---------- Baslik / header ---------- */
.site-header {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-radius: 10px; font-weight: 800; font-size: 1.1rem;
}
.brand-mark.small { width: 28px; height: 28px; font-size: .95rem; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.brand-text { font-size: 1.12rem; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-weight: 600; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(124, 58, 237, .10), transparent),
        radial-gradient(900px 500px at 0% 0%, rgba(37, 99, 235, .10), transparent);
    padding: 70px 0 60px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 6px 14px; border-radius: 999px;
    font-size: .82rem; font-weight: 700; margin-bottom: 16px;
}
.hero-title { font-size: 2.9rem; letter-spacing: -.02em; margin-bottom: 16px; }
.hero-sub { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.hero-points li::before {
    content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800;
}

.hero-visual { position: relative; min-height: 320px; }
.mock-card {
    position: absolute; width: 260px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 14px; border: 1px solid var(--line);
}
.mock-card { top: 20px; left: 20px; }
.mock-card-2 { top: 130px; left: 190px; z-index: 2; }
.mock-photo { height: 120px; border-radius: 10px; background: linear-gradient(135deg, #93c5fd, #c4b5fd); margin-bottom: 12px; }
.mock-photo.alt { background: linear-gradient(135deg, #a7f3d0, #93c5fd); }
.mock-line { height: 10px; background: #e2e8f0; border-radius: 6px; margin-bottom: 8px; }
.mock-line.w70 { width: 70%; } .mock-line.w40 { width: 40%; }
.mock-line.w60 { width: 60%; } .mock-line.w30 { width: 30%; }
.mock-price { font-weight: 800; color: var(--primary-dark); margin-top: 4px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary-dark); font-size: 1.3rem; margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-inner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-radius: 22px; padding: 48px 24px;
}
.cta-inner h2 { color: #fff; font-size: 1.9rem; }
.cta-inner .muted { color: rgba(255, 255, 255, .85); margin-bottom: 22px; }
.cta-inner .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-inner .btn-primary:hover { background: #f1f5f9; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-weight: 600; }
.copyright { width: 100%; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 18px 0; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: #14532d; border-color: #bbf7d0; }
.alert-error { background: var(--danger-bg); color: #7f1d1d; border-color: #fecaca; }
.error-list { margin: 8px 0 0; padding-left: 20px; }

/* ---------- Cards / forms ---------- */
.card {
    background: var(--bg-elev); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px;
}
.auth-section { background: var(--bg); min-height: 60vh; }
.auth-narrow { max-width: 460px; }
.auth-wide { max-width: 820px; }
.auth-card { margin: 0 auto; }
.auth-title { font-size: 1.6rem; margin-bottom: 4px; }
.auth-desc { margin-bottom: 22px; }
.auth-links { margin-top: 20px; text-align: center; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; color: var(--muted); }

.form-section-title { font-size: 1.05rem; margin: 8px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-col-2 { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="file"], select, textarea {
    font-family: inherit; font-size: 1rem; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea { resize: vertical; }
.hint { color: var(--muted); font-size: .82rem; }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 600; }

/* Davet kodu vurgulu kutusu (kayit formu) */
.invite-box { background: var(--primary-soft); border: 1px solid #bfdbfe; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 22px; }
.invite-box label { color: var(--primary-dark); }
.invite-box .form-group { margin-bottom: 0; }

.subdomain-input { display: flex; align-items: stretch; }
.subdomain-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.subdomain-suffix {
    display: flex; align-items: center; padding: 0 12px; background: #f1f5f9;
    border: 1.5px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--muted); font-size: .9rem; white-space: nowrap;
}
.subdomain-ok { color: var(--success); font-weight: 600; }
.subdomain-bad { color: var(--danger); font-weight: 600; }

.form-check { margin-top: 8px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-soft); cursor: pointer; }
.check-label input { width: auto; margin-top: 3px; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Listing grid / cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.listing-card {
    position: relative;
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
    display: flex; flex-direction: column;
}
/* Kartin tamamini kaplayan gizli baglanti — her yere dokunmak ilana goturur */
.listing-card-link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.listing-card-link:hover { text-decoration: none; }
.listing-detay { font-size: .9rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.listing-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #eef2f7; overflow: hidden; }
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: #eef2f7; }
.listing-card-noimg.large { min-height: 320px; border-radius: var(--radius); }
.listing-badge {
    position: absolute; top: 12px; left: 12px; background: rgba(15, 23, 42, .82); color: #fff;
    padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.listing-badge.inline { position: static; display: inline-block; }
.listing-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-card-title { font-size: 1.05rem; margin: 0; }
.listing-card-title a { color: var(--ink); }
.listing-card-title a:hover { color: var(--primary); text-decoration: none; }
.listing-card-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.listing-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.listing-price { font-weight: 800; color: var(--primary-dark); font-size: 1.05rem; }

/* ---------- Tenant hero ---------- */
.tenant-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff; padding: 54px 0;
}
.tenant-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.tenant-hero-title { color: #fff; font-size: 2.4rem; margin-bottom: 12px; }
.tenant-hero-desc { color: rgba(255,255,255,.82); font-size: 1.08rem; margin-bottom: 22px; max-width: 560px; }
.tenant-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tenant-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.tenant-hero .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.tenant-hero-info { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 20px; }
.info-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.info-row:last-child { border-bottom: 0; }
.info-label { color: rgba(255,255,255,.6); font-size: .85rem; }
.tenant-hero-info .info-row span:last-child { text-align: right; }

/* Info list (agency/contact, light bg) */
.info-list .info-row { border-color: var(--line); }
.info-list .info-label { color: var(--muted); }

/* ---------- Breadcrumb / pagination ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.page-btn {
    min-width: 42px; text-align: center; padding: 9px 12px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); color: var(--ink-soft); font-weight: 600; background: #fff;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Filter bar ---------- */
.filter-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; margin: 20px 0 28px; box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.filter-actions { grid-column: 1 / -1; display: flex; gap: 10px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-ico { font-size: 2.4rem; margin-bottom: 10px; opacity: .5; }
.empty-state h3 { color: var(--ink-soft); }
.empty-inline { padding: 14px 0; }

/* ---------- Listing detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.detail-title { font-size: 1.9rem; margin-bottom: 8px; }
.detail-subline { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #eef2f7; box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; max-height: 460px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-videos { margin-top: 26px; }
.detail-video { width: 100%; border-radius: var(--radius); margin-bottom: 14px; background: #000; }
.detail-description { margin-top: 26px; }
.detail-description p { color: var(--ink-soft); }

.detail-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.price-card { padding: 22px; }
.price-big { font-size: 1.7rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 16px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 16px; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list span { color: var(--muted); }
.tkgm-btn { margin-top: 6px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card .btn { margin-top: 10px; }
.back-link { display: inline-block; margin-top: 26px; font-weight: 600; }

/* ---------- Agency / contact ---------- */
.agency-card { max-width: 780px; }
.agency-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.agency-logo { width: 76px; height: 76px; border-radius: 16px; object-fit: contain; background: #f1f5f9; }
.agency-logo.placeholder { display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--primary-dark); background: var(--primary-soft); }
.agency-name { font-size: 1.6rem; margin: 0; }
.agency-desc { color: var(--ink-soft); margin: 16px 0; }
.agency-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.contact-actions-card .btn { margin-top: 10px; }

/* Utility */
.inline-form { display: inline; margin: 0; }

/* Tablo ve durum etiketleri (ana layout'ta da kullanilir — or. yonetici paneli) */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.data-table th, .data-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; }
.data-table tbody tr:hover { background: #f8fafc; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-green { background: var(--success-bg); color: #14532d; }
.pill-amber { background: var(--amber-bg); color: #92400e; }
