/* KıbrısEvAdresim — site stilleri */

:root {
    --ink: #0f1d2b;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e5e7eb;
    --bg: #ffffff;
    --soft: #f6f4ef;
    --soft-2: #eef2f1;
    --accent: #0b6e69;
    --accent-dark: #08524f;
    --accent-soft: #e3f1ef;
    --wa: #1fae54;
    --wa-dark: #178a42;
    --danger: #c2410c;
    --danger-soft: #fff1ea;
    --success-soft: #e7f6ec;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 29, 43, .04), 0 6px 24px rgba(15, 29, 43, .06);
    --shadow-lg: 0 10px 40px rgba(15, 29, 43, .12);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.icon-sm { width: 1em; height: 1em; }

/* ---------- Butonlar ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .78em 1.3em; border-radius: var(--radius-sm); border: 1.5px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
    cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55em 1em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Başlık ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.logo-mark { width: 34px; height: 34px; }
.logo-text { font-size: 1.2rem; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.logo-text strong { font-weight: 800; color: var(--accent); }
.admin-tag {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: var(--accent-soft); color: var(--accent-dark); padding: .25em .6em; border-radius: 6px;
}

.main-nav { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.main-nav a, .nav-button {
    display: inline-flex; align-items: center; gap: .35em;
    padding: .5em .85em; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover, .nav-button:hover { background: var(--soft); color: var(--ink); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.main-nav form { margin: 0; }
.nav-button { background: none; border: 0; font: inherit; cursor: pointer; }

/* ---------- Ana sayfa ---------- */

.hero {
    position: relative;
    padding: 72px 0 56px;
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(11, 110, 105, .16), transparent 60%),
        radial-gradient(700px 360px at 0% 110%, rgba(214, 180, 120, .22), transparent 60%),
        var(--soft);
    overflow: hidden;
}
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: .45em; }
.hero p { font-size: 1.1rem; color: var(--ink-2); max-width: 540px; }

/* Yönetim > Ayarlar'dan yüklenen banner: yazılar okunsun diye üstüne koyu bir katman */
.hero.has-banner {
    background:
        linear-gradient(90deg, rgba(15, 29, 43, .78) 0%, rgba(15, 29, 43, .5) 55%, rgba(15, 29, 43, .25) 100%),
        var(--banner) center / cover no-repeat,
        var(--ink);
}
.hero.has-banner .hero-text { color: #fff; text-shadow: 0 1px 16px rgba(15, 29, 43, .35); }
.hero.has-banner p { color: rgba(255, 255, 255, .88); }
.hero.has-banner .eyebrow { text-shadow: none; }
.eyebrow {
    display: inline-block; margin-bottom: 14px; padding: .35em .8em; border-radius: 999px;
    background: #fff; color: var(--accent-dark); font-weight: 600; font-size: .82rem; box-shadow: var(--shadow);
}

.search-card {
    margin-top: 36px;
    display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end;
    background: #fff; padding: 18px; border-radius: 18px; box-shadow: var(--shadow-lg);
}
.search-submit { height: 48px; }

.section { padding: 48px 0; }
.section-tight { padding-top: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: .15em; }
.section-head p { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }

.type-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -8px; }
.chip {
    display: inline-flex; align-items: center; gap: .6em;
    padding: .6em 1em; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); font-weight: 500; font-size: .93rem; background: #fff;
    transition: border-color .15s, background .15s;
}
.chip span {
    font-size: .78rem; font-weight: 700; color: var(--muted);
    background: var(--soft); border-radius: 999px; padding: .1em .55em;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.contact-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 40px; border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, #0a4f5c 100%);
}
.contact-band h2 { color: #fff; }
.contact-band p { color: rgba(255, 255, 255, .85); margin-bottom: .4em; max-width: 520px; }
.contact-band .agent-line { color: #fff; margin: 12px 0 0; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Kartlar ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
    display: flex; flex-direction: column; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--soft-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.no-image { display: grid; place-items: center; height: 100%; color: #b6c2c0; }
.no-image .icon { width: 42px; height: 42px; }

.badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .78rem; font-weight: 700;
    padding: .35em .7em; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.badge-inline { position: static; display: inline-block; background: var(--accent-soft); color: var(--accent-dark); box-shadow: none; margin-bottom: 10px; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent-dark); }
.card-title { font-size: 1rem; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-loc { display: flex; align-items: center; gap: .35em; color: var(--muted); font-size: .9rem; }
.card-loc .icon { width: 1em; height: 1em; }

.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .88rem; }
.specs li { display: inline-flex; align-items: center; gap: .4em; }
.specs .icon { color: var(--muted); }
.card-specs { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.specs-lg { font-size: 1rem; gap: 10px 26px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }

.empty {
    text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius);
    color: var(--ink-2); background: #fff;
}
.empty .btn { margin-top: 8px; }

/* ---------- Form alanları ---------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.search-card .field { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

input[type="text"], input[type="search"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
    width: 100%; min-width: 0; height: 48px; padding: 0 14px;
    font: inherit; font-size: .95rem; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; }
select {
    appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Arama sayfası ---------- */

.page-head { background: var(--soft); padding: 36px 0 28px; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { margin: 0; }
.page-head.has-banner {
    padding: 72px 0 36px; color: #fff;
    background:
        linear-gradient(rgba(15, 29, 43, .3), rgba(15, 29, 43, .72)),
        var(--banner) center / cover no-repeat,
        var(--ink);
}
.page-head.has-banner .muted { color: rgba(255, 255, 255, .85); }

.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }

.filters { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filters summary {
    display: flex; align-items: center; gap: .5em; padding: 16px 18px; font-weight: 700;
    cursor: pointer; list-style: none;
}
.filters summary::-webkit-details-marker { display: none; }
.filters .count { background: var(--accent); color: #fff; font-size: .75rem; border-radius: 999px; padding: .05em .55em; }
.filter-form { padding: 0 18px 18px; }
.filter-form .btn + .btn { margin-top: 8px; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sort-form { margin: 0; }
.sort-form select { height: 42px; width: auto; }
.grid-results { grid-template-columns: repeat(2, 1fr); }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span {
    display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
    border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .gap { border: 0; min-width: 20px; }

/* ---------- İlan detayı ---------- */

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .icon { width: .9em; height: .9em; }

.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.detail-head h1 { margin-bottom: .25em; }
.detail-loc { display: flex; align-items: center; gap: .4em; color: var(--muted); margin: 0; }
.detail-price { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--accent-dark); letter-spacing: -.03em; white-space: nowrap; }

.gallery-main {
    position: relative; aspect-ratio: 16 / 9; max-height: 620px; width: 100%;
    border-radius: 18px; overflow: hidden; background: #0f1d2b;
}
.gallery-main img { display: none; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-main img.active { display: block; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
    cursor: pointer; box-shadow: var(--shadow);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-count {
    position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .4em;
    background: rgba(15, 29, 43, .7); color: #fff; font-size: .85rem; font-weight: 600; padding: .35em .75em; border-radius: 8px;
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumbs button {
    flex: 0 0 104px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px;
    overflow: hidden; cursor: pointer; background: var(--soft-2); opacity: .65; transition: opacity .15s, border-color .15s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.gallery-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    aspect-ratio: 21 / 7; border-radius: 18px; background: var(--soft-2); color: var(--muted);
}
.gallery-empty .icon { width: 40px; height: 40px; }

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin-top: 12px; align-items: start; }
.detail-section-title { font-size: 1.2rem; margin-top: 8px; margin-bottom: 14px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0 0 32px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: .55em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.prose { color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2, .prose h3 { color: var(--ink); margin: 1.4em 0 .5em; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 1em 0; padding: .2em 1em; border-left: 3px solid var(--accent); color: var(--ink); }
.prose a { text-decoration: underline; }

.contact-card {
    position: sticky; top: 88px; padding: 24px; margin-top: 18px;
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); background: #fff;
}
.contact-card .btn + .btn { margin-top: 10px; }
.agent { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.agent-avatar {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 1.3rem;
}
.agent-name { font-weight: 700; font-size: 1.08rem; }

.mobile-contact { display: none; }

.lightbox {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
    background: rgba(8, 14, 20, .94); padding: 20px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
    position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
body.no-scroll { overflow: hidden; }

/* ---------- Alt bilgi ---------- */

.site-footer { margin-top: 40px; background: var(--ink); color: rgba(255, 255, 255, .7); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text strong { color: #5fd0c6; }
.footer-brand .logo { color: #129b93; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 6px; }
.footer-col a { color: rgba(255, 255, 255, .7); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 22px; font-size: .85rem; }

/* ---------- Yönetim paneli ---------- */

body.admin { background: #f7f8f8; }
.admin-main { padding: 32px 0 64px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; }
.admin-head h1 .muted { font-weight: 500; }
.admin-head p { margin: 4px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: .3em; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 18px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert p { margin: 6px 0 0; }
.alert-success { background: var(--success-soft); color: #14532d; }
.alert-error { background: var(--danger-soft); color: #7c2d12; }

.login-wrap { min-height: 80vh; display: grid; place-items: center; }
.login-card { width: 100%; max-width: 400px; padding: 32px; }
.login-card .logo { margin-bottom: 22px; }
.login-card h1 { font-size: 1.35rem; margin-bottom: 18px; }

.admin-search { display: flex; gap: 10px; margin-bottom: 16px; }
.admin-search .btn { height: 48px; }

.admin-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-row { display: grid; grid-template-columns: 88px 1fr auto auto; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-row:hover { background: #fbfbfa; }
.admin-thumb {
    width: 88px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
    background: var(--soft-2); display: grid; place-items: center; color: #b6c2c0;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-row-info { min-width: 0; }
.admin-row-title { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-price { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.admin-row-actions { display: flex; gap: 4px; }
.admin-row-actions form { margin: 0; }
.icon-btn {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
    border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }

.listing-form { max-width: 880px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
    display: inline-block; padding: .7em 1.2em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: all .15s;
}
.segmented input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }

.ql-toolbar.ql-snow { border: 1.5px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-family: var(--font); }
.ql-container.ql-snow { border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: var(--font); font-size: 1rem; }
.ql-editor { min-height: 240px; line-height: 1.7; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.photo-grid:empty { display: none; }
.photo { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--soft-2); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo.is-deleted img { opacity: .3; filter: grayscale(1); }
.photo-actions { display: flex; justify-content: space-between; gap: 4px; padding: 6px; font-size: .8rem; font-weight: 600; }
.photo-actions label { display: inline-flex; align-items: center; gap: .3em; cursor: pointer; padding: .3em .45em; border-radius: 6px; }
.photo-actions label span { display: inline-flex; align-items: center; gap: .3em; }
.photo-cover:has(input:checked) { background: var(--accent-soft); color: var(--accent-dark); }
.photo-delete { color: var(--danger); }
.photo-delete input { display: none; }
.photo-delete:has(input:checked) { background: var(--danger); color: #fff; }
.photo-meta { padding: 6px 8px; font-size: .75rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.photo-remove { border: 0; background: none; color: var(--danger); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }

.dropzone {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 32px 20px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer;
    color: var(--ink-2); transition: border-color .15s, background .15s; margin-bottom: 12px;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .icon { width: 34px; height: 34px; color: var(--accent); }
.upload-status:empty { display: none; }
.upload-status { margin-bottom: 12px; }

.form-actions {
    position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 0; background: linear-gradient(to top, #f7f8f8 70%, rgba(247, 248, 248, 0));
}

.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.settings-grid .panel { margin: 0; }
.settings-grid .panel-wide { grid-column: 1 / -1; }
.field em { font-style: normal; font-weight: 400; }

.banner-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 20px; }
.banner-slot h3 { font-size: 1rem; margin-bottom: .2em; }
.banner-slot p { margin-bottom: 10px; }
.banner-pick {
    position: relative; display: grid; place-items: center; aspect-ratio: 16 / 6; margin-bottom: 10px;
    border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--soft);
    overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.banner-pick:hover { border-color: var(--accent); }
.banner-pick:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.banner-pick.has-image { border-style: solid; }
.banner-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.banner-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-hint {
    position: relative; display: inline-flex; align-items: center; gap: .4em;
    padding: .45em .8em; border-radius: 8px; background: rgba(255, 255, 255, .94);
    color: var(--ink-2); font-size: .875rem; font-weight: 600; box-shadow: var(--shadow);
}
.banner-pick.has-image .banner-hint { position: absolute; right: 10px; bottom: 10px; }
.banner-pick .hint-change, .banner-pick.has-image .hint-empty { display: none; }
.banner-pick.has-image .hint-change { display: inline; }
.check { display: inline-flex; align-items: center; gap: .5em; font-size: .9rem; color: var(--ink-2); cursor: pointer; }

/* ---------- Duyarlı tasarım ---------- */

@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .search-card { grid-template-columns: repeat(2, 1fr); }
    .search-submit { grid-column: 1 / -1; }
    .detail-layout { grid-template-columns: 1fr; gap: 8px; }
    .contact-card { position: static; }
}

@media (max-width: 860px) {
    .search-layout { grid-template-columns: 1fr; gap: 20px; }
    .filters { position: static; }
    .grid-results { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .settings-grid { grid-template-columns: 1fr; }
    .banner-slots { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header-inner { gap: 12px; height: 60px; }
    .logo-text { font-size: 1.05rem; }
    .logo-mark { width: 30px; height: 30px; }
    .main-nav:not(.admin-nav) { display: none; }
    .header-wa { margin-left: auto; padding: .55em .7em; }
    .header-wa span { display: none; }

    .admin-nav { margin-left: auto; margin-right: 0; gap: 0; }
    .admin-nav a, .admin-nav .nav-button { padding: .5em .5em; font-size: .85rem; }
    .admin-nav a[target] { display: none; }
    .admin-tag { display: none; }

    .hero { padding: 44px 0 36px; }
    .hero.has-banner {
        background:
            linear-gradient(rgba(15, 29, 43, .62), rgba(15, 29, 43, .62)),
            var(--banner) center / cover no-repeat,
            var(--ink);
    }
    .page-head.has-banner { padding: 48px 0 26px; }
    .search-card { grid-template-columns: 1fr; padding: 14px; margin-top: 26px; }
    .section { padding: 32px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .grid, .grid-results { grid-template-columns: 1fr; gap: 18px; }
    .contact-band { padding: 28px 22px; }
    .contact-actions { width: 100%; }
    .contact-actions .btn { flex: 1; }

    .detail-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .gallery-main { aspect-ratio: 4 / 3; border-radius: 14px; margin: 0 -16px; width: calc(100% + 32px); border-radius: 0; }
    .gallery-nav { width: 38px; height: 38px; }
    .gallery-nav.prev { left: 10px; }
    .gallery-nav.next { right: 10px; }
    .gallery-thumbs button { flex-basis: 80px; }
    .facts { grid-template-columns: 1fr; }
    .contact-card { display: none; }
    .mobile-contact {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 -6px 24px rgba(15, 29, 43, .08);
    }
    body:has(.mobile-contact) .site-footer { padding-bottom: 70px; }

    .footer-inner { grid-template-columns: 1fr; }

    .admin-main { padding-top: 20px; }
    .admin-row { grid-template-columns: 72px 1fr; gap: 6px 12px; }
    .admin-thumb { width: 72px; grid-row: span 2; }
    .admin-row-price { font-size: .95rem; }
    .admin-row-actions { grid-column: 2; justify-content: flex-start; margin-left: -8px; }
    .form-grid { grid-template-columns: 1fr; }
    .panel { padding: 18px; }
    .form-actions .btn { flex: 1; }
}
