/* Bebiş Blog — temel stiller. Renkler ve ölçüler taslaklar/index.html ile aynı. */

/* ---------- Font: Nunito (değişken ağırlık, repodan sunulur) ---------- */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito/nunito-latin-ext-wght-normal.woff2) format("woff2-variations"),
       url(/fonts/nunito/nunito-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito/nunito-latin-wght-normal.woff2) format("woff2-variations"),
       url(/fonts/nunito/nunito-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #e7e1d4;
  --paper: #f7f3ea;
  --ink: #26221f;
  --ink-soft: #6f675e;
  --rule: #e3dccd;
  --accent: #3f5d4a;
  --chip: #ece6d8;
  --field-border: #ddd5c4;
  --ok: #3f7d5a;
  --danger: #b0412e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 40px rgba(40,30,20,.14);
  --font: "Nunito", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--paper); color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) {
  body { background: var(--page); }
}

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }

.linkish { color: var(--accent); font-weight: 700; text-decoration: none; background: none; border: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.linkish:hover { text-decoration: underline; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.logo { font-weight: 800; font-size: 26px; line-height: 1; margin: 0; }
.logo span { color: var(--accent); }

/* ---------- Formlar ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.input {
  display: block; width: 100%; padding: 11px 12px;
  background: #fff; border: 1.5px solid var(--field-border); border-radius: 10px;
  font: 16px var(--font); color: var(--ink);  /* 16px: iOS odaklanınca yakınlaştırmasın */
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #a99b88; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.input.is-ok { border-color: var(--ok); }
.input.is-err { border-color: var(--danger); }
.input.code { font-family: var(--mono); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.prefix { display: flex; align-items: stretch; }
.prefix span { display: grid; place-items: center; padding: 0 0 0 12px; background: #fff; border: 1.5px solid var(--field-border); border-right: none; border-radius: 10px 0 0 10px; color: var(--ink-soft); }
.prefix .input { border-left: none; border-radius: 0 10px 10px 0; padding-left: 2px; }
.prefix:has(.input:focus) span { border-color: var(--accent); }
.prefix:has(.is-ok) span { border-color: var(--ok); }
.prefix:has(.is-err) span { border-color: var(--danger); }

.msg { display: flex; gap: 4px; align-items: center; margin-top: 5px; font-size: 12.5px; font-weight: 700; }
.msg:empty { display: none; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--danger); }
.msg.muted { color: var(--ink-soft); font-weight: 400; }
.hint { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

.alert { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; margin-bottom: 16px; }
.alert:empty { display: none; }
.alert.err { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--paper)); }
.alert.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--paper)); }

/* ---------- Düğmeler ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border-radius: 999px;
  border: 1.5px solid var(--accent); background: transparent; color: var(--accent);
  font: 700 15px var(--font); cursor: pointer;
}
.btn.solid { background: var(--accent); color: var(--paper); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, .linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Giriş / kayıt ---------- */
.auth-page {
  min-height: 100dvh; display: grid; place-items: center;
  padding: 32px 26px calc(32px + env(safe-area-inset-bottom));
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card .logo { font-size: 36px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 0 0 28px; }
.auth-title { font-weight: 800; font-size: 22px; margin: 0 0 6px; }
.auth-lead { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin: 18px 0 0; }
.auth-forgot { text-align: right; font-size: 13px; margin: -4px 0 20px; }
@media (min-width: 768px) {
  .auth-card { max-width: 420px; padding: 40px 36px; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-lg); }
}

/* ---------- Geçici / bilgi sayfaları ---------- */
.placeholder { max-width: 480px; margin: 0 auto; padding: 48px 26px; text-align: center; }
.placeholder p { color: var(--ink-soft); }
.placeholder .btn { max-width: 260px; margin: 18px auto 0; }

/* ---------- Uygulama çerçevesi ---------- */
/* Telefon: içerik + alttaki 7 öğeli menü. 768px ve üstü: üst çubuk, alt menü yok. */
.content { max-width: 640px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.topbar, .desktop-only { display: none; }

.appbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 10px; }
.appbar .logo { font-size: 26px; }

.bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--chip); color: var(--ink); }
.bell b { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #c2593f; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(7, 1fr); align-items: center;
  padding: 10px 4px calc(14px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--rule); color: var(--ink-soft);
}
.tab { position: relative; display: grid; justify-items: center; padding: 4px 0; color: inherit; }
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--ink); }
.tab.on::after { content: ""; position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tab.saved { color: var(--accent); }
.tab.fab span { width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--paper); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.tab.fab .ic { stroke-width: 2.2; }
.tab.fab.on::after { display: none; }

@media (min-width: 768px) {
  .content { max-width: 1506px; padding: 22px 32px 60px; }
  .tabbar, .appbar { display: none; }
  .desktop-only { display: block; }

  .topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 18px;
    padding: 12px 32px; background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .logo-link { color: inherit; text-decoration: none; flex: none; }
  .top-search { flex: 0 1 340px; min-width: 160px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--field-border); color: var(--ink-soft); }
  .top-search:focus-within { border-color: var(--accent); }
  .top-search input { flex: 1; min-width: 0; padding: 9px 0; border: none; outline: none; background: none; font: 14.5px var(--font); color: var(--ink); }
  .topnav { display: flex; gap: 2px; margin-left: auto; }
  .nav { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
  .nav:hover { background: color-mix(in srgb, var(--chip) 60%, transparent); }
  .nav.on { background: var(--chip); color: var(--ink); font-weight: 800; }
  .nav.saved { color: var(--accent); }
  .new-pin { width: auto; padding: 10px 18px; font-size: 14.5px; text-decoration: none; white-space: nowrap; }

  .menu-wrap { position: relative; }
  .avatar-btn { padding: 0; border: none; background: none; border-radius: 50%; cursor: pointer; display: block; }
  .avatar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  .page-title { margin: 0 0 14px; font-size: 24px; font-weight: 800; }
}
/* Dar masaüstünde menü yazıları sığmazsa sadece ikon */
@media (min-width: 768px) and (max-width: 1080px) {
  .topnav .nav { font-size: 0; gap: 0; }
  .topnav .nav .ic { width: 20px; height: 20px; }
  .top-search { flex-basis: 220px; }
}

/* ---------- Avatar ---------- */
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; object-fit: cover; background: var(--accent); color: var(--paper); font-weight: 700; font-size: 11px; }
.avatar.lg { width: 38px; height: 38px; font-size: 15px; }

/* ---------- Kategori çipleri ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 13px; border-radius: 999px; border: 1.5px solid transparent; background: var(--chip); color: var(--ink); font: 13px var(--font); white-space: nowrap; cursor: pointer; }
.chip.cat { border-color: var(--cat); }
.chip.on { background: var(--ink); color: var(--paper); }
@media (min-width: 768px) {
  .chips { flex-wrap: wrap; overflow: visible; }
}

/* ---------- Kart ızgarası ---------- */
.masonry { display: flex; gap: 22px; align-items: flex-start; }
.masonry-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) {
  .masonry-col { gap: 22px; }
}
.sentinel { height: 1px; }
.feed-status { text-align: center; color: var(--ink-soft); }
.feed-status .muted { margin: 20px 0; }
.feed-error .btn { max-width: 220px; margin: 0 auto; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 48px 16px; color: var(--ink-soft); }
.empty .ic { width: 40px; height: 40px; }
.empty .btn { width: auto; padding: 11px 20px; margin-top: 10px; text-decoration: none; }

/* ---------- Pin kartı ---------- */
.card { position: relative; background: var(--paper); border: 1.5px solid var(--cat, var(--rule)); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; }
.card:hover { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.08); }
.meta { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; font-size: 12.5px; color: var(--ink-soft); }
.meta .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 700; text-decoration: none; }
.meta .who:hover { text-decoration: underline; }
.badges { flex: none; display: flex; gap: 4px; margin-left: auto; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, transparent); white-space: nowrap; }
/* Kategori etiketinin yanındaki renksiz etiket (Planlı); bir punto küçük */
.badge.plain { padding: 3px 8px; font-size: 10.5px; color: var(--ink-soft); background: var(--chip); }
.photo { position: relative; height: 200px; background: var(--chip); }
.rating {
  position: absolute; right: 12px; bottom: -22px;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: baseline; justify-content: center; padding-top: 13px;
  font-size: 21px; font-weight: 700; line-height: 1;
  background: var(--paper); color: var(--cat, var(--accent)); border: 1.5px solid var(--cat, var(--accent));
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}
.rating small { font-size: 11px; opacity: .65; margin-left: 1px; font-weight: 600; }
.rating.planned { border-style: dashed; color: var(--ink-soft); box-shadow: none; }
.photo .rating.planned { top: 12px; bottom: auto; }
.body { position: relative; padding: 14px 14px 12px; }
.body.no-photo .rating { top: 2px; bottom: auto; }
.title { font-weight: 800; font-size: 20px; line-height: 1.25; margin: 4px 0 6px; padding-right: 50px; overflow-wrap: anywhere; }
.title a { color: inherit; text-decoration: none; }
.loc { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; }
.excerpt {
  margin: 0 0 10px; font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.actions { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--rule); }
.act { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; margin-left: -8px; border: none; border-radius: 8px; background: none; color: var(--ink-soft); font: 13px var(--font); text-decoration: none; cursor: pointer; }
.act + .act { margin-left: 4px; }
.act:hover { background: var(--chip); }
.act.liked { color: #c2593f; }
.act.liked .ic { fill: currentColor; }
.act.save { color: var(--accent); }
.act.save[aria-pressed="true"] .ic { fill: color-mix(in srgb, var(--accent) 25%, transparent); }
.actions .when { margin-left: auto; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Kısa bildirim (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  animation: toast-in .2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Kartta alt bilgi ---------- */
.card .sub { margin: -2px 0 8px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Yeni pin formu ---------- */
.form-page { max-width: 600px; margin: 0 auto; }
.form-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 12px; }
.form-h h1 { margin: 0; font-size: 22px; font-weight: 800; }
.form-h .cancel { color: var(--ink-soft); font-weight: 600; }
@media (min-width: 768px) {
  .form-page { padding: 8px 0 40px; }
  .pin-form { padding: 24px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); }
}
.pin-form .field label i { text-transform: none; font-style: normal; font-weight: 400; letter-spacing: 0; }
.pin-form .input:focus { border-color: var(--cat, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, var(--accent)) 15%, transparent); }
.pin-form > .btn { margin-top: 8px; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

.notice { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 16px; border-radius: 10px; background: var(--chip); font-size: 13.5px; }
.notice[hidden] { display: none; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.cat { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px; border: 1.5px solid transparent; background: var(--chip); color: var(--cat); font: 12px var(--font); cursor: pointer; }
.cat span { color: var(--ink); text-align: center; }
.cat.on { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 10%, var(--paper)); }
.cat.on span { color: var(--cat); font-weight: 700; }

.suggest { margin-top: -1px; background: #fff; border: 1.5px solid var(--cat, var(--accent)); border-top: none; border-radius: 0 0 10px 10px; overflow: hidden; }
.suggest[hidden] { display: none; }
.title-field:has(.suggest:not([hidden])) .input { border-radius: 10px 10px 0 0; }
.sug { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: none; border-top: 1px solid #f0e8d8; background: none; color: var(--ink); font: 14px var(--font); text-align: left; cursor: pointer; }
.sug:first-child { border-top: none; }
.sug:hover, .sug.active { background: color-mix(in srgb, var(--cat, var(--accent)) 8%, #fff); }
.sug .mini { width: 32px; height: 46px; flex: none; border-radius: 3px; object-fit: cover; background: var(--chip); }
.sug small { display: block; color: var(--ink-soft); font-size: 12px; }
.sug-src { padding: 6px 10px; font-size: 11.5px; color: var(--ink-soft); background: #faf6ee; }

.toggle { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; padding: 3px; border-radius: 999px; background: var(--chip); }
.toggle button { padding: 8px; border: none; border-radius: 999px; background: none; color: var(--ink); font: 14px var(--font); cursor: pointer; }
.toggle button.on { background: var(--paper); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.field .upload { display: grid; justify-items: center; align-content: center; gap: 4px; height: 96px; border-radius: 10px; border: 1.5px dashed #cdbd9e; color: var(--ink-soft); font-size: 14px; text-align: center; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.field .upload small { font-size: 11.5px; }
.field .upload:hover { border-color: var(--cat, var(--accent)); color: var(--ink); }
.photo-preview { display: flex; gap: 12px; align-items: flex-start; }
.photo-preview img { width: 120px; height: 120px; flex: none; border-radius: 10px; object-fit: cover; background: var(--chip); }
.photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.photo-actions .caption { font-size: 12.5px; color: var(--ink-soft); }
.chip-btn, .field .chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: none; border-radius: 8px; background: var(--chip); color: var(--ink); font: 700 13px var(--font); cursor: pointer; text-transform: none; letter-spacing: 0; }
.chip-btn.danger { background: transparent; color: var(--danger); border: 1.5px solid #ecd2cb; }
.chip-btn[hidden] { display: none; }

.row { display: flex; gap: 8px; }
.row .input { flex: 1; min-width: 0; }
.mapbtn { flex: none; display: flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--field-border); background: var(--chip); color: var(--ink); font: 14px var(--font); cursor: pointer; }
.mapbtn.on { border-color: var(--cat, var(--accent)); }
.map-panel { margin-top: 10px; display: grid; gap: 8px; }
.map-panel[hidden] { display: none; }
.map-box { height: 260px; border-radius: 10px; border: 1px solid var(--rule); overflow: hidden; z-index: 0; }
@media (min-width: 768px) { .map-box { height: 320px; } }
.map-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.place-results { display: grid; gap: 2px; }
.place-results:empty { display: none; }
.place { display: grid; gap: 1px; padding: 8px 10px; border: none; border-radius: 8px; background: #fff; color: var(--ink); font: 14px var(--font); text-align: left; cursor: pointer; }
.place:hover { background: var(--chip); }
.place small { color: var(--ink-soft); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-pin { background: none; border: none; }

.score { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.score button { height: 34px; padding: 0; border: none; border-radius: 50%; background: var(--chip); color: var(--ink); font: 700 14px var(--font); cursor: pointer; }
.score button.on { background: color-mix(in srgb, var(--cat, var(--accent)) 15%, var(--paper)); color: var(--cat, var(--accent)); }
.score button.sel { background: var(--cat, var(--accent)); color: var(--paper); transform: scale(1.1); }
.field[hidden] { display: none; }

/* ---------- Seçim penceresi ---------- */
.dialog { width: min(400px, calc(100% - 32px)); padding: 22px; border: none; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(30,25,20,.4); }
.dialog h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.dialog p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }
.dialog-actions { display: flex; gap: 8px; }
.dialog-actions .btn { margin: 0; }
.btn.danger { border-color: var(--danger); color: var(--danger); }

/* ---------- Açılır menü (profil menüsü, pin ⋯ menüsü) ---------- */
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 230px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.dropdown[hidden] { display: none; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: none; border-radius: 8px; background: none; color: var(--ink); font: 14px var(--font); text-decoration: none; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--chip); }
.dropdown .ic { color: var(--ink-soft); }
.dropdown .admin, .dropdown .admin .ic { color: var(--accent); font-weight: 800; }
.dropdown .danger, .dropdown .danger .ic { color: var(--danger); }

/* ---------- Bildirimdeki düğme ---------- */
.toast { display: flex; align-items: center; gap: 14px; }
.toast button { padding: 0; border: none; background: none; color: #f0c98a; font: 800 14px var(--font); cursor: pointer; }

/* ---------- Pin detayı ---------- */
.detail { max-width: 640px; margin: 0 auto; padding-bottom: 24px; }
.detail-loading { padding: 40px 0; text-align: center; color: var(--ink-soft); }
.detail-top { position: relative; }
.detail-controls { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; }
.detail-top.has-photo .detail-controls { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 14px; }
.round-btn { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%; background: var(--chip); color: var(--ink); cursor: pointer; }
.detail-top.has-photo .round-btn { background: rgba(255,255,255,.9); color: #222; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.detail-menu { position: relative; }
.detail-photo { position: relative; margin: 0 -16px; height: 300px; background: var(--chip); }
@media (min-width: 768px) {
  .detail:not(.in-modal) { padding-top: 8px; }
  .detail:not(.in-modal) .detail-photo { margin: 0; border-radius: 14px; overflow: hidden; height: 380px; }
}
.detail .notice { margin-top: 12px; }
.detail-head { position: relative; padding-top: 16px; }
.detail-head .rating { top: -32px; bottom: auto; right: 4px; width: 64px; height: 64px; padding-top: 17px; font-size: 26px; }
.detail-top:not(.has-photo) + .detail-head .rating,
.detail .notice + .detail-head .rating { top: 6px; }
.detail-head .meta { padding: 0 76px 0 0; }
.detail-head .meta .when { font-size: 12.5px; white-space: nowrap; }
.detail-head .badges { margin-left: 0; }
.detail-title { margin: 8px 0 6px; padding-right: 70px; font-size: 25px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.detail .sub { margin-bottom: 6px; font-size: 13.5px; color: var(--ink-soft); }
.detail .loc { font-size: 13px; }
.detail-loc { margin: -4px 0 0; }
.recommended { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.recommended a { color: var(--accent); font-weight: 700; text-decoration: none; }

.minimap { position: relative; height: 150px; margin: 14px 0; border-radius: var(--radius); border: 1px solid var(--rule); overflow: hidden; }
.minimap-map { position: absolute; inset: 0; z-index: 0; }
.minimap-link { position: absolute; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: flex-end; padding: 8px; text-decoration: none; }
.minimap-link span { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--accent); font-size: 12.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.15); }

.note { margin: 14px 0; font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.note a, .comment-body a { color: var(--accent); }
.linkrow { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--radius); background: var(--chip); color: var(--ink-soft); font-size: 13.5px; text-decoration: none; }
.linkrow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkrow b { margin-left: auto; flex: none; color: var(--accent); font-weight: 700; }

.detail-reactions .actions { border-top: none; padding-top: 0; gap: 12px; }
.like-group { display: inline-flex; align-items: center; }
.like-group .act:first-child { margin-left: -8px; }
.act.count { margin-left: -6px; color: var(--ink); font-weight: 600; }
.save-btn { margin: 14px 0 6px; }

/* ---------- Yorumlar ---------- */
.section-h { margin: 26px 0 12px; font-size: 18px; font-weight: 800; }
.comments { display: grid; gap: 14px; }
.comment { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.comment .avatar { margin-top: 2px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.comment-head .who { color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.comment-head .when { color: var(--ink-soft); font-size: 11.5px; }
.comment-body { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 14px; margin-top: 3px; font-size: 12.5px; }
.comment-actions .linkish { font-size: 12.5px; color: var(--ink-soft); }
.comment-actions .linkish:hover { color: var(--accent); }
.linkish.danger:hover { color: var(--danger); }
.replies { display: grid; gap: 12px; margin: 10px 0 0 36px; }
.replies:empty { display: none; }
.comment.reply .avatar { width: 22px; height: 22px; font-size: 10px; }
.comment-form { display: grid; gap: 8px; margin-top: 14px; }
.replies .comment-form { margin-top: 0; }
.comment-form textarea { resize: none; min-height: 44px; line-height: 1.45; font-size: 15px; }
.comment-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.comment-form-actions .btn { width: auto; padding: 9px 18px; margin: 0; font-size: 14px; }
.comment-main .comment-form { margin-top: 6px; }

/* ---------- Kişi listesi (beğenenler) ---------- */
.people-list { display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.person:hover { background: var(--chip); }
.person span { display: grid; }
.person small { color: var(--ink-soft); font-size: 12.5px; }

/* ---------- Alttan panel (telefonda) / küçük pencere (masaüstü) ---------- */
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-head h2 { margin: 0; }
.icon-btn { width: 34px; height: 34px; padding: 0; border: none; border-radius: 50%; background: var(--chip); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 767px) {
  .dialog.sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ---------- Masaüstü: akışın üstünde pin penceresi ---------- */
.modal-open { overflow: hidden; }
.pin-modal { width: min(640px, calc(100% - 48px)); max-height: calc(100vh - 48px); padding: 0; border: none; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow-y: auto; }
.pin-modal::backdrop { background: rgba(30,25,20,.55); }
.pin-modal-body { padding: 0 24px 24px; }
.pin-modal .detail-photo { margin: 0 -24px; }
.pin-modal .detail-top:not(.has-photo) .detail-controls { padding-top: 18px; }

/* ---------- Resim çerçevesi (kart + detay) ---------- */
.photo-frame { position: absolute; inset: 0; overflow: hidden; }
.photo-frame img { display: block; width: 100%; height: 100%; }
.photo-frame .fg { position: relative; object-fit: cover; }
.photo-frame .bg { display: none; position: absolute; inset: 0; object-fit: cover; transform: scale(1.15); filter: blur(18px) brightness(.85); }
.photo-frame.fit .bg { display: block; }
.photo-frame.fit .fg { object-fit: contain; }

/* ---------- Sadece telefonda ---------- */
@media (min-width: 768px) {
  .mobile-only { display: none !important; }
}

/* ---------- Profil ---------- */
.avatar.xl { width: 88px; height: 88px; font-size: 34px; font-weight: 800; border: 4px solid var(--paper); }
.profile { padding-bottom: 24px; }
.profile-head, .profile-col { max-width: 640px; margin: 0 auto; }
.cover-wrap { position: relative; }
/* Kapak 3:1; fotoğraf yoksa kişinin renginden yumuşak bir geçiş */
.cover {
  position: relative; aspect-ratio: 3 / 1; margin: 0 -16px; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--person, var(--accent)) 28%, var(--paper)), color-mix(in srgb, var(--person, var(--accent)) 62%, var(--paper)));
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-controls { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 14px 0; }
.cover-controls .round-btn { background: rgba(255,255,255,.9); color: #222; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.prof { position: relative; }
.prof .avatar.xl { margin-top: -44px; }
.prof h1 { margin: 6px 0 0; font-size: 22px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.prof .handle { font-size: 13.5px; color: var(--ink-soft); }
.prof .bio { margin: 8px 0 4px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.prof .since { margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); }
@media (min-width: 768px) {
  .profile { padding-top: 8px; }
  .cover { margin: 0; border-radius: 14px; }
  .cover-controls { padding: 14px; }
  .prof { padding-left: 20px; }
}

/* Öne Çıkarılanlar: 3 kutu */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fcard { display: flex; flex-direction: column; min-width: 0; border: 1.5px solid var(--cat, var(--rule)); border-radius: 10px; overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.fcard:hover { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.08); }
.fphoto { position: relative; height: 84px; display: grid; place-items: center; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, var(--paper)); }
.fphoto .ic { width: 28px; height: 28px; }
.fi { padding: 7px 8px 8px; }
.ft { font-size: 12.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.fs .rating { position: static; width: auto; height: auto; padding: 0; margin-top: 3px; display: block; border: none; border-radius: 0; background: none; box-shadow: none; font-size: 13px; font-weight: 800; }
.fs .rating small { font-size: 10px; }
.fcard.empty { min-height: 140px; align-items: center; justify-content: center; padding: 10px; border: 1.5px dashed #cdbd9e; box-shadow: none; background: transparent; color: var(--ink-soft); font-size: 12px; text-align: center; line-height: 1.4; }
@media (min-width: 768px) {
  .fphoto { height: 120px; }
  .fcard.empty { min-height: 178px; }
}

/* ⚙ ayarlar listesi (alttan açılan panel) */
.menu-list { display: grid; }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; border: none; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); font: 15px var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.menu-row:last-child { border-bottom: none; }
.menu-row .ic { color: var(--ink-soft); }
.menu-row .chev { margin-left: auto; color: var(--ink-soft); }
.menu-row.admin, .menu-row.admin .ic { color: var(--accent); font-weight: 800; }
.menu-row.danger, .menu-row.danger .ic { color: var(--danger); }

/* ---------- Profili düzenle ---------- */
.edit-cover .cover { margin: 0; border-radius: 10px; }
.edit-image-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.edit-avatar { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.edit-avatar .avatar.xl { border: none; }
.edit-avatar .edit-image-actions { margin-top: 0; }
.input[readonly] { background: var(--chip); color: var(--ink-soft); }
.prefix:has(.input[readonly]) span { background: var(--chip); }
.bio-input { min-height: 84px; }

/* ---------- Resim kırpma penceresi ---------- */
.crop-dialog { width: min(560px, calc(100% - 32px)); }
.crop-frame { position: relative; width: 100%; overflow: hidden; border-radius: 10px; background: #2a2520; touch-action: none; cursor: grab; user-select: none; }
.crop-frame:active { cursor: grabbing; }
.crop-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.crop-img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); border-radius: inherit; }
.crop-mask.round { border-radius: 50%; box-shadow: 0 0 0 9999px rgba(30,25,20,.5), inset 0 0 0 2px rgba(255,255,255,.85); }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 0 18px; color: var(--ink-soft); font-weight: 800; }
.crop-zoom input { flex: 1; accent-color: var(--accent); }
.crop-frame:has(.crop-mask.round) { max-width: 360px; margin: 0 auto; }

/* ---------- Filtrele ve sırala (açılır kapanır panel) ---------- */
.filter-bar { margin: 4px 0 16px; }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--field-border); border-radius: 999px; background: #fff; color: var(--ink); font: 700 14px var(--font); cursor: pointer; }
.filter-toggle:hover { border-color: var(--accent); }
.filter-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-toggle .filter-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--paper); font-size: 11.5px; display: grid; place-items: center; }
.filter-toggle .filter-count[hidden] { display: none; }
.filter-toggle .chev { width: 8px; height: 8px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.filter-bar.open .filter-toggle { border-color: var(--accent); }
.filter-bar.open .filter-toggle .chev { transform: translateY(1px) rotate(-135deg); }
.filter-panel { margin-top: 10px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.filter-panel[hidden] { display: none; }
.filter-sec + .filter-sec { margin-top: 16px; }
.filter-h { margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-wrap .chip { display: inline-flex; align-items: center; gap: 6px; }
.chip-wrap .chip .avatar { width: 20px; height: 20px; font-size: 9px; }
.chip.cat.on { background: var(--cat); border-color: var(--cat); color: #fff; }
.filter-panel .toggle { max-width: 420px; }
.date-range { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.date-range label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-soft); flex: 1; min-width: 140px; }
.date-range .input { padding: 8px 10px; }
.filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); }
.filter-actions .btn { width: auto; padding: 10px 24px; }

/* Çift tutamaçlı puan kaydırıcısı: üst üste iki range */
.range { max-width: 420px; }
.range-track { position: relative; height: 28px; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--chip); }
.range-fill { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--accent); }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); pointer-events: auto; cursor: pointer; }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); pointer-events: auto; cursor: pointer; }
.range input::-moz-range-track { background: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.range-value { font-weight: 800; color: var(--ink); }

/* ---------- Liste sayfaları (Pinlerim, Çöp kutusu) ---------- */
.list-page { max-width: 800px; margin: 0 auto; padding-bottom: 24px; }
.page-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 8px; }
.page-h h1 { margin: 0; font-size: 22px; font-weight: 800; }
.page-sub { font-size: 13px; color: var(--ink-soft); }
.page-h .cancel { color: var(--ink-soft); font-weight: 600; }
@media (min-width: 768px) { .list-page { padding-top: 8px; } }
.list-tools { display: flex; align-items: flex-start; gap: 10px; }
.list-tools .filter-bar { flex: 1; min-width: 0; }
.seg { flex: none; display: flex; margin-top: 4px; border: 1.5px solid var(--field-border); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { width: 40px; height: 36px; display: grid; place-items: center; border: none; background: none; color: var(--ink-soft); cursor: pointer; }
.seg button.on { background: var(--chip); color: var(--ink); }

.rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.ritem { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.ritem.trashed { cursor: default; }
.ritem .thumb { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 10px; border: 1.5px solid var(--cat); color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, var(--paper)); }
.ritem.trashed .thumb { opacity: .65; }
.ritem .txt { flex: 1; min-width: 0; }
.ritem .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ritem a.t:hover { text-decoration: underline; }
.ritem .s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }
.ritem .s .c { color: var(--cat); font-weight: 700; }
.ritem .s .left { color: var(--danger); font-weight: 700; }
.mini-tag { padding: 1px 7px; border-radius: 999px; background: var(--chip); color: var(--ink-soft); font-size: 10.5px; font-weight: 800; }
.mini-tag.feat-tag { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.ritem .sc { flex: none; font-weight: 800; font-size: 17px; color: var(--cat); }
.ritem .sc small { font-size: 10.5px; font-weight: 600; opacity: .6; }
.ritem .sc.pl { color: var(--ink-soft); }
.row-menu { position: relative; flex: none; }
.row-more { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; }
.row-more:hover, .row-more[aria-expanded="true"] { background: var(--chip); color: var(--ink); }
.row-menu .dropdown { top: calc(100% + 4px); }
.tacts { flex: none; display: flex; gap: 6px; }
@media (max-width: 420px) { .tacts .lbl { display: none; } }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { padding: 8px 6px; border-bottom: 1.5px solid #d8cfbd; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.tbl td { padding: 9px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--chip) 50%, transparent); }
.tbl .tt { max-width: 0; width: 50%; }
.tbl .tt a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 700; text-decoration: none; }
.tbl .tc { white-space: nowrap; color: var(--ink-soft); }
.tbl .cd { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--cat); }
.tbl .num { text-align: right; font-weight: 800; color: var(--cat); }
.tbl th.num { color: var(--ink-soft); }
.tbl .td-date { white-space: nowrap; color: var(--ink-soft); font-size: 12.5px; }
.tbl td.row-menu { width: 40px; padding: 0; }
@media (max-width: 480px) { .tbl .tc { display: none; } }
.tbl .to { white-space: nowrap; }
.tbl .to a, .ritem .owner { color: var(--ink); font-weight: 600; text-decoration: none; }
.tbl .to a:hover, .ritem .owner:hover { text-decoration: underline; }

.trashlink { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 0 6px; color: var(--ink-soft); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.trashlink:hover { color: var(--ink); }
.list-page > .btn.danger { max-width: 280px; margin: 20px auto 0; }
.list-page > .btn[hidden] { display: none; }

/* Telefonda bildirim alt menünün üstünde dursun; düğme yazısı kırılmasın */
@media (max-width: 767px) {
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); width: max-content; }
}
.toast button { white-space: nowrap; }

/* ---------- Arama ---------- */
.search-box { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--field-border); color: var(--ink-soft); }
.search-box:focus-within { border-color: var(--accent); }
.search-box .input { flex: 1; min-width: 0; padding: 11px 0; border: none; box-shadow: none; background: none; }
.search-box .input:focus { box-shadow: none; }
.stabs { display: flex; gap: 20px; margin: 6px 0 14px; border-bottom: 1px solid var(--rule); }
.stabs[hidden] { display: none; }
.stab { padding: 10px 0 9px; border: none; border-bottom: 2.5px solid transparent; background: none; color: var(--ink-soft); font: 700 14.5px var(--font); cursor: pointer; }
.stab.on { color: var(--ink); border-bottom-color: var(--ink); }
.search-page [role="tabpanel"][hidden], .search-empty[hidden] { display: none; }
.search-empty { padding-top: 6px; }
.search-empty .filter-h { margin-top: 10px; }
.recent { display: grid; }
.recent-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--rule); }
.recent-q { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 4px; border: none; background: none; color: var(--ink); font: 15px var(--font); text-align: left; cursor: pointer; }
.recent-q .ic { color: var(--ink-soft); }
.ritem .x { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-soft); }
.ritem .x .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, #e0a83a 32%, transparent); color: inherit; }
.search-people { max-height: none; }
.search-people .person b { font-weight: 700; }
@media (min-width: 768px) {
  .search-page { padding-top: 8px; }
}

/* ---------- Harita ---------- */
/* Harita sayfasında içerik kenar boşluksuz ve tam genişlik */
.content.content-map { max-width: none; padding: 0; }
.map-page { position: relative; height: calc(100dvh - 57px - env(safe-area-inset-bottom)); overflow: hidden; }  /* 57px: alt menü */
@media (min-width: 768px) {
  .map-page { height: calc(100dvh - 67px); }  /* 67px: üst çubuk */
}
.map-canvas { position: absolute; inset: 0; z-index: 0; background: #ece5d3; }
.map-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-views { background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.map-views button { padding: 8px 14px; }
.map-top .filter-bar { margin: 0; max-width: 100%; }
.map-top .filter-toggle { box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.map-top .filter-panel { max-height: calc(100dvh - 260px); overflow-y: auto; width: min(560px, calc(100vw - 24px)); }
@media (min-width: 768px) {
  .map-top { flex-direction: row; align-items: flex-start; right: auto; }
}
.map-note { position: absolute; left: 12px; bottom: 12px; z-index: 500; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 1px 6px rgba(0,0,0,.12); font-size: 12.5px; color: var(--ink-soft); }
.map-note:empty { display: none; }
.map-locate { position: absolute; right: 12px; bottom: 96px; z-index: 500; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.15); cursor: pointer; }
.map-page .leaflet-bottom.leaflet-right { margin-bottom: 0; }

/* Telefonda altta kart */
.map-card-wrap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 600; }
.map-card-wrap[hidden] { display: none; }
.map-card { display: flex; align-items: center; gap: 12px; padding: 10px 44px 10px 10px; border-radius: 14px; border: 1.5px solid var(--cat); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.mc-photo { position: relative; flex: none; width: 60px; height: 60px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, var(--paper)); }
.mc-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mc-txt b { font-size: 14.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-txt small { font-size: 12px; color: var(--ink-soft); }
.mc-txt .mini-tag { justify-self: start; }
.mc-score .rating { position: static; width: auto; height: auto; padding: 0; border: none; border-radius: 0; background: none; box-shadow: none; font-size: 18px; font-weight: 800; }
.mc-close { position: absolute; top: 8px; right: 8px; }

/* Masaüstünde iğnenin üstünde balon */
.map-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; background: var(--paper); }
.map-popup .leaflet-popup-content { margin: 0; font: inherit; }
.leaflet-container .map-popup a.map-card { padding: 10px; border: none; box-shadow: none; border-radius: 0; color: var(--ink); }
.map-popup .map-card:hover b { text-decoration: underline; }

/* Gruplanmış iğneler */
.map-cluster { background: none; border: none; }
.map-cluster span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 13px var(--font); border: 3px solid rgba(255,255,255,.88); box-shadow: 0 3px 10px rgba(0,0,0,.25); }

/* ---------- Hakkında ---------- */
.about p { margin: 0 0 12px; line-height: 1.6; }
.about-source { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.about-source p { margin: 0; font-size: 14px; }
.about-source a { color: var(--accent); font-weight: 700; }
.about-logo { display: block; height: 17px; width: auto; margin-bottom: 8px; }

/* ---------- Yönetim ---------- */
.atabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.atabs::-webkit-scrollbar { display: none; }
.atabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.atabs a.on { background: var(--ink); color: var(--paper); }
.admin-create { margin: 4px 0 14px; }
.admin-summary { margin: 0 0 6px; }

/* Davetler */
.invite-list { display: grid; gap: 10px; margin-bottom: 16px; }
.invite { padding: 12px; border: 1.5px solid var(--rule); border-radius: 12px; background: #fff; }
.invite.fresh { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.invite .code { font: 800 16px var(--mono); letter-spacing: .06em; overflow-wrap: anywhere; }
.invite .st { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.invite .st b { color: var(--ok); }
.invite .st a { color: var(--ink); font-weight: 700; text-decoration: none; }
.invite .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.invite .acts .danger { margin-left: auto; }
.invite.used { background: transparent; }
.invite.used .code { color: var(--ink-soft); text-decoration: line-through; }
details.revoked summary { cursor: pointer; list-style: none; }
details.revoked summary::before { content: "▸ "; }
details.revoked[open] summary::before { content: "▾ "; }

/* Kategoriler */
.cat-list { display: grid; gap: 8px; margin-bottom: 6px; }
.catrow { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1.5px solid var(--cat); border-radius: 12px; background: #fff; cursor: pointer; }
.catrow:hover { box-shadow: var(--shadow); }
.catrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.catrow.dragging { opacity: .45; }
.catrow.drop-target { box-shadow: 0 -3px 0 var(--accent); }
.catrow .grip { color: #b9ad97; cursor: grab; }
.catrow .ci, .cat-preview .ci { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, #fff); }
.catrow .cn { flex: 1; min-width: 0; font-weight: 800; font-size: 14.5px; }
.catrow .cn small { display: block; font: 500 11.5px var(--font); color: var(--ink-soft); }
.catrow .sw { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cat); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--field-border); }
.cat-moves { display: flex; flex: none; }
.cat-moves .row-more:disabled { opacity: .3; cursor: default; }
.cat-form .field { margin-bottom: 14px; }
.cat-preview { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icon-grid button { height: 44px; display: grid; place-items: center; border: 1.5px solid transparent; border-radius: 10px; background: var(--chip); color: var(--ink); cursor: pointer; }
.icon-grid button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); }
.color-row input[type=color] { flex: none; width: 46px; height: 44px; padding: 2px; border: 1.5px solid var(--field-border); border-radius: 10px; background: #fff; cursor: pointer; }
.color-row .hex { font-family: var(--mono); }
.cat-form .dialog-actions { margin-top: 18px; }

/* Kullanıcılar */
.user-list { display: grid; }
.urow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.urow.suspended .avatar, .urow.suspended .u-name a { opacity: .55; }
.urow .txt { flex: 1; min-width: 0; }
.u-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.u-name a { color: var(--ink); font-weight: 800; text-decoration: none; }
.u-name a:hover { text-decoration: underline; }
.urow .s { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.urow .s a { color: var(--ink); text-decoration: none; font-weight: 600; }
.mini-tag.danger-tag { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

/* Depolama */
.gauge { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); display: grid; gap: 14px; }
.gauge-row .lbl { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; }
.gauge-row .lbl span:last-child { color: var(--ink-soft); font-weight: 600; }
.gauge-row .bar { height: 8px; margin-top: 6px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.gauge-row .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.gauge-row .bar i.warn { background: #c07a2c; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.stat { display: grid; justify-items: center; padding: 12px 6px; border-radius: 12px; background: var(--chip); }
.stat b { font-size: 20px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Yazarak onay penceresi */
.typed-hint { margin: 0 0 8px !important; }
.dialog .typed-actions { margin-top: 14px; }
