/* ==========================================================================
   PatiSurfer — tek stil dosyası. Build adımı yok, doğrudan tarayıcıya gider.
   ========================================================================== */

:root {
    --bg: #faf6f1;
    --surface: #ffffff;
    --surface-2: #f4ede4;
    --ink: #2b2622;
    --ink-soft: #574d44;
    --muted: #7d7166;
    --line: #e9e0d6;
    --line-strong: #d8cbbc;

    --primary: #12786a;
    --primary-dark: #0d5c51;
    --primary-soft: #e2f0ec;

    --accent: #e4713f;
    --danger: #c0392b;
    --danger-soft: #fbeae7;
    --success: #1f7a52;
    --success-soft: #e4f2ea;

    /* Bölüm renkleri */
    --provider: #12786a;
    --provider-soft: #e2f0ec;
    --seeker: #3e5ea8;
    --seeker-soft: #e6ebf7;
    --adoption: #c9512e;
    --adoption-soft: #fbeae2;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(43, 38, 34, .05), 0 6px 20px rgba(43, 38, 34, .06);
    --shadow-lift: 0 2px 4px rgba(43, 38, 34, .06), 0 14px 34px rgba(43, 38, 34, .12);
    --wrap: 1140px;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.75rem 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 620px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Üst menü ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink);
    letter-spacing: -.02em;
    margin-right: 8px;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span em { font-style: normal; color: var(--primary); }

.main-nav { display: flex; gap: 2px; flex: 1; }
.main-nav a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .94rem;
    white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.main-nav a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.main-nav .nav-only-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    cursor: pointer;
    color: var(--ink);
}

/* ---------- Kullanıcı menüsü ---------- */
.usermenu { position: relative; }
.usermenu > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
}
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover { background: var(--surface-2); }
.usermenu[open] > summary { background: var(--surface-2); }
.usermenu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 218px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 7px;
    z-index: 50;
}
.usermenu-panel a, .usermenu-panel button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font: inherit;
    font-size: .92rem;
    background: none;
    border: 0;
    cursor: pointer;
}
.usermenu-panel a:hover, .usermenu-panel button:hover {
    background: var(--surface-2);
    text-decoration: none;
}
.usermenu-head { padding: 8px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    flex: none;
}
.avatar-lg { width: 72px; height: 72px; font-size: 1.9rem; }
.avatar-sm { width: 26px; height: 26px; font-size: .8rem; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: .94rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .05s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #cf5f2e; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: none; border-color: #e8c4bf; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 13px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Kartlar & rozetler ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 18px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.panel-head h2, .panel-head h3 { margin: 0; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    background: var(--surface-2);
    color: var(--ink-soft);
    letter-spacing: .01em;
}
.badge-provider { background: var(--provider-soft); color: var(--provider); }
.badge-seeker { background: var(--seeker-soft); color: var(--seeker); }
.badge-adoption { background: var(--adoption-soft); color: var(--adoption); }
.badge-passive { background: #f0e6d8; color: #8a6d3b; }
.badge-closed { background: #ece9e6; color: #6b625a; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: .82rem;
    color: var(--ink-soft);
}
.chip-check { background: var(--success-soft); border-color: #c6e2d3; color: var(--success); }

/* ---------- İlan ızgarası ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.listing-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: box-shadow .18s, transform .18s;
}
.listing-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.listing-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(28, 24, 20, .72);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}
.listing-card__body { padding: 16px 17px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.listing-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-card a.stretch::after {
    content: "";
    position: absolute;
    inset: 0;
}
.listing-card { position: relative; }
.listing-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    color: var(--muted);
}
.price-tag { font-weight: 700; color: var(--ink); font-size: .95rem; }

/* ---------- Anasayfa ---------- */
.hero {
    background:
        radial-gradient(900px 320px at 12% -10%, #dff0eb 0%, rgba(223, 240, 235, 0) 70%),
        radial-gradient(760px 300px at 92% 0%, #fbe6da 0%, rgba(251, 230, 218, 0) 70%),
        var(--bg);
    padding: 60px 0 52px;
    border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); max-width: 15ch; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 34px;
}
.section-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--line);
    transition: box-shadow .18s, transform .18s;
    display: block;
    color: inherit;
}
.section-card:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.section-card h3 { margin-bottom: 6px; }
.section-card p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.section-card .go { font-weight: 700; font-size: .9rem; }
.section-card--provider { border-top-color: var(--provider); }
.section-card--provider .go { color: var(--provider); }
.section-card--seeker { border-top-color: var(--seeker); }
.section-card--seeker .go { color: var(--seeker); }
.section-card--adoption { border-top-color: var(--adoption); }
.section-card--adoption .go { color: var(--adoption); }
.section-card .icon { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; display: block; }

.home-block { padding: 46px 0; }
.home-block + .home-block { border-top: 1px solid var(--line); }
.block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.block-head h2 { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step .num {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 10px;
}

/* ---------- Filtre çubuğu ---------- */
.section-hero {
    padding: 34px 0 26px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.section-hero h1 { margin-bottom: 6px; }
.section-hero p { margin: 0; color: var(--muted); max-width: 62ch; }

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin: -28px 0 26px;
    position: relative;
    z-index: 1;
}
.filters .field { margin: 0; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
.field > label, .field-label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
    color: var(--ink-soft);
}
.field .hint { font-size: .82rem; color: var(--muted); margin: 5px 0 0; }
.req { color: var(--accent); }

.input, .select, .textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.error { color: var(--danger); font-size: .84rem; margin: 5px 0 0; }

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

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 8px;
}
.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .92rem;
    background: var(--surface);
    transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--primary); }
.check input { margin: 3px 0 0; accent-color: var(--primary); flex: none; }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

.form-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section > h3 { font-size: 1.05rem; margin-bottom: 4px; }
.form-section > .sub { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 24px;
}

/* ---------- Fotoğraf yükleme ---------- */
.dropzone {
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 26px 18px;
    text-align: center;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input { display: none; }
.dropzone .big { font-size: 1.7rem; }

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__remove {
    position: absolute;
    top: 6px; right: 6px;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 0;
    background: rgba(28, 24, 20, .78);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb__remove:hover { background: var(--danger); }
.thumb.is-removed { opacity: .35; }
.thumb.is-removed img { filter: grayscale(1); }

/* ---------- İlan detayı ---------- */
.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
    padding: 28px 0 56px;
}
.gallery-main {
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.gallery-strip button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--surface-2);
}
.gallery-strip button.is-active { border-color: var(--primary); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }

.detail-title { margin: 18px 0 10px; font-size: 1.75rem; }
.detail-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .89rem; margin-bottom: 18px; }
.prose { white-space: pre-line; color: var(--ink-soft); }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 20px; margin: 0; }
.fact dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fact dd { margin: 2px 0 0; font-weight: 600; }

.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.contact-box .price {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 2px;
}
.owner-row { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }

/* ---------- Yorumlar ---------- */
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment:first-of-type { border-top: 0; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 3px; }
.comment__name { font-weight: 700; font-size: .93rem; color: var(--ink); }
.comment__text { margin: 0; white-space: pre-line; color: var(--ink-soft); }
.comment__actions { display: flex; gap: 12px; margin-top: 7px; }
.comment__actions button, .comment__actions a {
    background: none; border: 0; padding: 0;
    font: inherit; font-size: .82rem; font-weight: 600;
    color: var(--muted); cursor: pointer;
}
.comment__actions button:hover { color: var(--primary); }
.replies { margin-left: 46px; border-left: 2px solid var(--line); padding-left: 16px; }
.replies .comment { border-top: 0; padding: 12px 0 0; }
.reply-form { margin: 12px 0 0 46px; }

/* ---------- Uyarı kutuları ---------- */
.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    margin-bottom: 20px;
    font-size: .93rem;
}
.alert-success { background: var(--success-soft); border-color: #c6e2d3; color: #17563a; }
.alert-error { background: var(--danger-soft); border-color: #eec9c4; color: #8f2b1f; }
.alert-info { background: var(--seeker-soft); border-color: #cdd8ee; color: #2c4479; }
.flash-wrap { padding-top: 18px; }

.empty {
    text-align: center;
    padding: 56px 24px;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
}
.empty .big { font-size: 2.4rem; margin-bottom: 8px; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin: 34px 0 10px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 600;
}
.pager a:hover { background: var(--surface-2); text-decoration: none; }
.pager .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .is-disabled { opacity: .4; }

/* ---------- Tablo (ilanlarım) ---------- */
.mylist { display: flex; flex-direction: column; gap: 12px; }
.myrow {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}
.myrow__thumb { width: 84px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.myrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.myrow__title { font-weight: 700; margin: 0 0 3px; }
.myrow__actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Alt bilgi ---------- */
.site-footer {
    background: #241f1b;
    color: #c9bfb5;
    padding: 44px 0 30px;
    margin-top: 60px;
    font-size: .9rem;
}
.site-footer a { color: #e5dcd2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid #3a332d;
    margin-top: 30px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .84rem;
    color: #9b9188;
}
.site-footer .logo { color: #fff; }
.site-footer .logo span em { color: #6cc0ae; }

/* ---------- Duyarlı ---------- */
@media (max-width: 940px) {
    .detail { grid-template-columns: 1fr; }
    .side { position: static; }
    .filters { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    /* Sıra önemli: logo → hamburger → sağdaki düğmeler tek satırda kalsın,
       menü panelı alta tam genişlikte açılsın. */
    .nav-toggle { display: inline-flex; order: 1; }
    .header-actions { order: 2; margin-left: auto; }
    .main-nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        border-top: 1px solid var(--line);
        padding: 10px 0 14px;
        gap: 2px;
    }
    .main-nav.is-open { display: flex; }
    .site-header .wrap { flex-wrap: wrap; }
    .header-actions .btn-newlisting { display: none; }
    /* Dar ekranda iki misafir düğmesi sığmıyor; "Giriş yap" menüye taşındı. */
    .header-actions .btn-login { display: none; }
    .main-nav .nav-only-mobile { display: block; }
    .row, .row-3 { grid-template-columns: 1fr; }
    /* Masaüstünde filtre kartı başlığın üstüne biner; mobilde bu, "ilan ver"
       düğmesinin üstünü kapatıyordu. */
    .filters { grid-template-columns: 1fr; margin: 16px 0 22px; }
    .myrow { grid-template-columns: 64px minmax(0, 1fr); }
    .myrow__thumb { width: 64px; height: 52px; }
    .myrow__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .replies { margin-left: 0; padding-left: 12px; }
    .reply-form { margin-left: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 42px 0 38px; }
    h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* Klavye erişilebilirliği */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Ekran okuyucuya görünür, gözle görünmez. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    z-index: 100;
}
.skip-link:focus { left: 12px; }

/* ---------- Google ile giriş ---------- */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--muted);
    font-size: .84rem;
}
.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.btn-google {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
    font-weight: 600;
}
.btn-google:hover { background: var(--surface-2); }
.btn-google svg { flex: none; }

.auth-alt {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
}

/* ---------- Yönetim paneli ---------- */
.admin-bar {
    background: #241f1b;
    color: #d8cec4;
    border-bottom: 3px solid var(--accent);
}
.admin-bar .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 52px;
    flex-wrap: wrap;
}
.admin-bar__tag {
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    flex: none;
}
.admin-bar a { color: #d8cec4; }
.admin-bar .small { margin-left: auto; }

.admin-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.admin-nav a {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-nav a:hover { background: #38312b; text-decoration: none; }
.admin-nav a.is-active { background: var(--accent); color: #fff; }

.admin-badge {
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-nav a.is-active .admin-badge { background: #fff; color: var(--accent); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    display: block;
    color: inherit;
}
.stat:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.stat--alert { border-color: var(--accent); background: #fdf3ee; }
.stat__num { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat--alert .stat__num { color: var(--accent); }
.stat__label { display: block; font-size: .85rem; color: var(--muted); margin-top: 3px; }

.admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}
.admin-row:first-of-type { border-top: 0; }

/* ---------- Şikayet formu ---------- */
.report { margin-top: 12px; }
.report > summary {
    cursor: pointer;
    font-size: .82rem;
    color: var(--muted);
    font-weight: 600;
    list-style: none;
}
.report > summary::-webkit-details-marker { display: none; }
.report > summary::before { content: "⚑ "; }
.report > summary:hover { color: var(--danger); }
.report__form {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
