/* harita.mertkahveci.com — minimal arayüz (mertkahveci.com tasarım dili) */
:root {
  --bg: #FFFFFF;
  --fg: #1C1C1F;
  --muted: #707078;
  --soft: #F5F5F7;
  --line: #EDEDF0;
  --fold-back: #E1E1E6;
  --glass: rgba(255,255,255,.86);
  --shadow: 0 0 0 1px rgba(0,0,0,.05), 0 6px 20px -6px rgba(0,0,0,.16);
  --shadow-lg: 0 0 0 1px rgba(0,0,0,.05), 0 20px 50px -16px rgba(0,0,0,.28);
  --ui: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: var(--ui); font-size: 15px; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
#app { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; background: #C9DAA4; }

/* Kağıt + suluboya dokusu (zemin) */
.paper-texture {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .40  0 0 0 0 .30  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; opacity: .22;
}
.paper-wash {
  pointer-events: none; z-index: 0; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='1600'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.003' numOctaves='4' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 .92  0 0 0 -1.6 1.05'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>");
  background-size: cover; background-repeat: no-repeat; mix-blend-mode: screen; opacity: .5;
}
.maplibregl-ctrl-attrib { background: rgba(255,255,255,.7) !important; font-size: 10px; border-radius: 8px !important; }
.maplibregl-ctrl-bottom-right { bottom: calc(76px + var(--safe-b)); }
body.sheet-on .maplibregl-ctrl-bottom-right { opacity: 0; }

/* Ortak yüzey */
.surface { background: var(--glass); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: var(--shadow); }

/* ---------- Üst bar ---------- */
.brand { position: absolute; z-index: 20; top: calc(14px + var(--safe-t)); left: 14px; }
.brand-link { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 6px; border-radius: 999px; text-decoration: none; }
.logo { width: 30px; height: 30px; flex: 0 0 30px; display: block; }
.brand-name { font-weight: 600; font-size: 14.5px; letter-spacing: -.2px; white-space: nowrap; }
.brand-name small { font-weight: 500; color: var(--muted); margin-left: 4px; }

.seg { position: absolute; z-index: 20; top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.seg-btn { text-decoration: none; height: 34px; padding: 0 16px; display: flex; align-items: center; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--muted); transition: background .25s var(--ease), color .25s; }
.seg-btn.on { background: var(--fg); color: #fff; }

.fab { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--fg); }
.fab:active { transform: scale(.95); }
.fab-search { position: absolute; z-index: 20; top: calc(14px + var(--safe-t)); right: 14px; }
.map-tools { position: absolute; z-index: 6; right: 14px; bottom: calc(84px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; transition: opacity .2s; }
body.sheet-on .map-tools, body[data-view="lists"] .map-tools, body[data-view="list"] .map-tools { opacity: 0; pointer-events: none; }
body[data-view="lists"] .brand, body[data-view="list"] .brand { opacity: 0; pointer-events: none; }

/* ---------- Alt dock ---------- */
.dock { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; padding: 0 0 calc(14px + var(--safe-b)); pointer-events: none; transition: transform .35s var(--ease), opacity .2s; }
.dock > * { pointer-events: auto; }
body.sheet-on .dock, body[data-view="lists"] .dock, body[data-view="list"] .dock { transform: translateY(130%); opacity: 0; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 14px; scroll-padding: 14px; }
.cats::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: 0 0 auto; height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--fg); transition: background .2s, color .2s;
}
.chip-btn .e { font-size: 17px; line-height: 1; }
.chip-btn i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.chip-btn.on { background: var(--fg); color: #fff; box-shadow: none; }
.chip-btn.on i { color: rgba(255,255,255,.6); }
.chip-btn.filter { width: 40px; padding: 0; justify-content: center; position: relative; }
.chip-btn.filter b { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #E4572E; box-shadow: 0 0 0 2px #fff; }
.pills { display: none; }

/* ---------- Marker'lar ---------- */
.pm { display: flex; flex-direction: column; align-items: center; cursor: pointer; transform-origin: 50% 100%; }
.pm-emoji {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 12px -2px rgba(0,0,0,.28); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.pm-label {
  margin-top: 4px; max-width: 140px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.15; letter-spacing: -.1px; color: var(--fg);
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px rgba(255,255,255,.9);
  overflow: hidden; display: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
#map.z-labels .pm-label { display: -webkit-box; }
.pm:hover .pm-emoji { transform: scale(1.12); }
.pm.wish .pm-emoji { background: rgba(255,255,255,.75); box-shadow: 0 0 0 1.5px rgba(0,0,0,.18) inset, 0 3px 8px -2px rgba(0,0,0,.2); }
.pm.wish .pm-emoji > * , .pm.wish .pm-emoji { color: inherit; }
.pm.fav { position: relative; }
.pm.fav::before { content: ''; position: absolute; top: -1px; right: -1px; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: #F2B544; box-shadow: 0 0 0 2px #fff; }
.pm.sel { z-index: 3; }
.pm.sel .pm-emoji { transform: scale(1.25) translateY(-3px); box-shadow: 0 0 0 2.5px var(--fg), 0 8px 18px -4px rgba(0,0,0,.35); }
.pm.sel .pm-label { display: -webkit-box; }

.cm { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px; cursor: pointer; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 16px -4px rgba(0,0,0,.3); }
.cm:hover { box-shadow: 0 0 0 1.5px var(--fg), 0 6px 16px -4px rgba(0,0,0,.3); }
.cm-e { font-size: 15px; letter-spacing: -5px; padding-right: 5px; }
.cm b { font-size: 13px; font-weight: 600; }

.tm { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 12px -3px rgba(0,0,0,.25); cursor: pointer; }
.tm span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: color-mix(in srgb, var(--c) 18%, #fff); }
.tm em { font-style: normal; font-size: 12px; font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me { width: 16px; height: 16px; border-radius: 50%; background: #3A86FF; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(58,134,255,.18), 0 2px 6px rgba(0,0,0,.3); }

/* ---------- Detay sheet ---------- */
.sheet { position: absolute; z-index: 30; background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; }
.sheet.open { visibility: visible; transition: transform .4s var(--ease); }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 22px calc(28px + var(--safe-b)); overscroll-behavior: contain; }
.sheet-grip { display: none; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--soft); font-size: 13px; color: var(--muted); }
@media (min-width: 761px) {
  .sheet { top: 12px; bottom: 12px; left: 12px; width: 400px; border-radius: 22px; transform: translateX(calc(-100% - 24px)); }
  .sheet.open { transform: none; }
  .sheet-body { padding-top: 20px; }
  body.sheet-on .brand { opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) {
  .sheet { left: 0; right: 0; bottom: 0; max-height: 74vh; border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .sheet.open { transform: none; }
  .sheet.full { max-height: calc(100vh - 64px - var(--safe-t)); height: calc(100vh - 64px - var(--safe-t)); }
  .sheet-grip { display: grid; place-items: center; height: 22px; flex: 0 0 22px; }
  .sheet-grip span { width: 36px; height: 4px; border-radius: 4px; background: #DCDCE0; }
  .sheet-close { top: 10px; }
}
.photos { display: flex; gap: 8px; overflow-x: auto; margin: 4px -22px 16px; padding: 0 22px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photos::-webkit-scrollbar { display: none; }
.photo { flex: 0 0 auto; width: 74%; max-width: 280px; aspect-ratio: 4/3; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--soft); scroll-snap-align: start; }
.photos .photo:only-child { width: 100%; max-width: none; aspect-ratio: 16/10; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.sh-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 40px 0 0; }
.chip { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.chip.cat { color: var(--fg); }
.sh-title { font-size: 24px; font-weight: 650; letter-spacing: -.5px; line-height: 1.15; margin: 12px 0 4px; }
.sh-addr { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.sh-desc { white-space: pre-line; line-height: 1.6; font-size: 14.5px; color: #3C3C42; }
.sh-h { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.note { margin: 16px 0 0; padding: 14px 16px; background: var(--soft); border-radius: 14px; }
.note p { margin: 0; white-space: pre-line; font-size: 14.5px; line-height: 1.6; color: #2C2C31; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tags span { font-size: 12px; font-weight: 500; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; text-decoration: none; background: var(--soft); color: var(--fg); font-weight: 500; font-size: 14px; transition: background .2s; }
.btn:hover { background: #ECECEF; }
.btn.primary { background: var(--fg); color: #fff; flex: 1 1 100%; }
.btn.primary:hover { background: #000; }
.btn.yt-btn { background: #E4302B; }
.btn img { width: 16px; height: 16px; }
.yt { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #111; margin: 0 0 10px; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; border: 0; background: transparent; display: grid; place-items: center; }
.yt-play svg { width: 54px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.yt-label { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff; font-weight: 500; font-size: 12px; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1px; margin: 16px 0; background: var(--line); border-radius: 14px; overflow: hidden; }
.stats div { background: #fff; padding: 12px 6px; text-align: center; }
.stats b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.stats span { font-size: 12px; color: var(--muted); }
.mini-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; height: 34px; padding: 0 12px; background: var(--soft); border-radius: 999px; font-weight: 500; font-size: 13px; }
.stops { display: flex; flex-direction: column; }
.stop { text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.stop:last-child { border-bottom: 0; }
.stop i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 11px; font-weight: 600; color: var(--muted); }

/* ---------- Listeler sayfası ---------- */
.lists-view { position: absolute; inset: 0; z-index: 15; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.lists-view[aria-hidden="false"] { opacity: 1; visibility: visible; transition: opacity .25s; }
.lv-inner { max-width: 760px; margin: 0 auto; padding: calc(96px + var(--safe-t)) 24px calc(56px + var(--safe-b)); }
.lv-title { font-size: 22px; font-weight: 650; letter-spacing: -.4px; margin: 0; }
.lv-sub { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 460px; }
.lv-bar { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lv-bar b { font-weight: 500; color: #4A4A50; }
.empty, .muted { color: var(--muted); }
.empty { padding: 40px 0; text-align: center; }

/* Klasör — mertkahveci.com/photos ile aynı */
.folders { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
@media (max-width: 680px) { .folders { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .folders { gap: 24px 10px; } }
.alb { display: block; text-decoration: none; padding: 8px 8px 6px; border-radius: 18px; }
@media (max-width: 480px) { .alb { padding: 4px 2px; } }
.fold { position: relative; display: block; aspect-ratio: 1 / .92; container-type: inline-size; }
.fold .fb { position: absolute; left: 10%; right: 10%; top: 16%; height: 42%; border-radius: 12px; background: var(--fold-back); }
.fold .ph { position: absolute; display: block; padding: 4%; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.12); transition: transform 550ms var(--ease); }
.fold .ph img, .fold .ph .ph-e { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: var(--soft); }
.fold .ph .ph-e { display: grid; place-items: center; font-size: 12cqw; }
.fold .p1 { left: 31%; width: 38%; top: 1%; height: 56%; z-index: 2; }
.fold .p2 { left: 6%; top: 16%; width: 31%; height: 44%; transform: rotate(-12deg); }
.fold .p3 { right: 6%; top: 13%; width: 32%; height: 46%; transform: rotate(10deg); }
.fold .ff { position: absolute; inset: 27% 3% 2%; z-index: 3; transition: transform 550ms var(--ease); }
.fold .glass, .fold .edge { position: absolute; inset: 0; width: 100%; height: 100%; }
.fold .fsh { position: absolute; inset: 14% 3% 1%; border-radius: 14px; box-shadow: rgba(0,0,0,.22) 0 18px 28px -10px; }
.fold .glass {
  background: linear-gradient(rgba(255,255,255,.55), rgba(244,244,247,.82));
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 9Q0 2 6 2H34Q38 2 40.5 5L44 9.5Q46 12 50 12H94Q100 12 100 18L97.6 93Q97.2 99 91 99H9Q2.8 99 2.4 93Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 9Q0 2 6 2H34Q38 2 40.5 5L44 9.5Q46 12 50 12H94Q100 12 100 18L97.6 93Q97.2 99 91 99H9Q2.8 99 2.4 93Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.fold .edge { overflow: visible; }
.fold .edge path { vector-effect: non-scaling-stroke; }
.fold .edge .o { fill: none; stroke: rgba(0,0,0,.09); stroke-width: 1; }
.fold .edge .hl { fill: none; stroke: rgba(255,255,255,.95); stroke-width: 1.5; }
.fold .edge .gr { stroke: rgba(0,0,0,.05); stroke-width: 1; }
.fold .edge .gw { stroke: rgba(255,255,255,.9); stroke-width: 1; }
.fold .stk { position: absolute; display: block; line-height: 1; transform: rotate(var(--r)); filter: drop-shadow(rgba(0,0,0,.2) 0 2px 3px); transition: transform 450ms cubic-bezier(.34,1.56,.64,1); }
.fold .stk span { display: block; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.fold .stk.a { left: 12%; top: 18%; font-size: 23cqw; --r: -9deg; }
.fold .stk.b { right: 14%; top: 42%; font-size: 15cqw; --r: 6deg; }
.alb:hover .p1, .alb:focus-visible .p1 { transform: translateY(-10%); }
.alb:hover .p2, .alb:focus-visible .p2 { transform: rotate(-17deg) translate(-8%, -8%); }
.alb:hover .p3, .alb:focus-visible .p3 { transform: rotate(15deg) translate(8%, -8%); }
.alb:hover .ff, .alb:focus-visible .ff { transform: translateY(2%); }
.alb:hover .stk, .alb:focus-visible .stk { transform: rotate(calc(var(--r) * 1.6)) scale(1.06); }
.alb-meta { text-align: center; margin-top: 12px; }
.alb-meta b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.15px; }
.alb-meta span { display: inline-block; margin-top: 7px; font-size: 12px; color: var(--muted); background: var(--soft); padding: 3px 10px; border-radius: 999px; }

.tour-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.tour-card { text-decoration: none; display: block; }
.tc-img { position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-size: 34px; }
.tc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tour-card:hover .tc-img img { transform: scale(1.04); }
.tc-play { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; backdrop-filter: blur(6px); }
.tc-meta { padding: 10px 2px 0; }
.tc-meta b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.15px; }
.tc-meta span { font-size: 12.5px; color: var(--muted); }

.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.back:hover { color: var(--fg); }
.ld-head { display: flex; gap: 14px; align-items: center; }
.ld-sticker { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; font-size: 30px; border-radius: 16px; background: var(--soft); }
.ld-badge { font-size: 18px; margin-left: 4px; }
.ld-desc { font-size: 14.5px; line-height: 1.6; color: #4A4A50; max-width: 560px; white-space: pre-line; margin: 16px 0 0; }
.ld-actions { display: flex; gap: 8px; margin: 20px 0 8px; max-width: 420px; }
.ld-actions .btn.primary { flex: 1; }
.items { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-size: 24px; }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-txt { min-width: 0; flex: 1; }
.row-txt b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.1px; }
.row-txt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.row-txt p { margin: 4px 0 0; font-size: 13px; color: #55555B; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-go { color: #C4C4CA; font-size: 20px; }
.lv-foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 64px 0 0; font-size: 13px; color: var(--muted); }
.lv-foot a { text-decoration: none; }
.lv-foot a:hover { color: var(--fg); }

/* ---------- Arama ---------- */
.search { position: absolute; inset: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); display: none; flex-direction: column; }
.search.on { display: flex; }
.search-box { display: flex; gap: 8px; align-items: center; padding: calc(14px + var(--safe-t)) 18px 8px; max-width: 640px; width: 100%; margin: 0 auto; }
.search-box input { flex: 1; font: inherit; font-size: 16px; height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--soft); outline: none; }
.search-box input:focus { box-shadow: 0 0 0 2px var(--fg); background: #fff; }
.search-x { border: 0; background: none; color: var(--muted); font-size: 14px; }
.search-results { overflow-y: auto; padding: 4px 18px 30px; max-width: 640px; width: 100%; margin: 0 auto; }
.search-results a { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; text-decoration: none; padding: 10px 8px; border-radius: 12px; }
.search-results a:hover { background: var(--soft); }
.search-results a span { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); font-size: 18px; display: grid; place-items: center; }
.search-results b { font-weight: 600; font-size: 14.5px; }
.search-results small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-h { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 18px 8px 6px; }

/* ---------- Popover, toast, lightbox ---------- */
.popover { position: fixed; z-index: 50; width: 280px; max-height: 60vh; overflow-y: auto; background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg); }
.popover h5 { margin: 8px 10px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.popover button.opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14px; }
.popover button.opt:hover { background: var(--soft); }
.popover button.opt.on { font-weight: 600; }
.popover button.opt.on::after { content: '✓'; margin-left: auto; }
.popover button.opt i { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }
.popover button.opt.on i { display: none; }
.popover hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(30px + var(--safe-b)); transform: translate(-50%, 16px); background: var(--fg); color: #fff; font-size: 13.5px; font-weight: 500; padding: 10px 16px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(14,14,16,.95); opacity: 0; transition: opacity .2s; }
.lightbox.on { opacity: 1; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.lightbox button { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; }

@media (max-width: 760px) {
  .brand-name { display: none; }
  .brand-link { padding: 0 6px; width: 42px; justify-content: center; }
  .seg-btn { padding: 0 14px; }
  .lv-inner { padding-left: 18px; padding-right: 18px; }
}

/* Puan */
.rate { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 8px 0 2px; }
.rate .dots { display: inline-flex; gap: 3px; }
.rate .dots i { width: 8px; height: 8px; border-radius: 50%; background: #E3E3E8; }
.rate .dots i.on { background: var(--fg); }
.rate.r5 .dots i.on { background: #E8A317; }
.rate.r5 { color: #B07A00; }

/* Gidilen şehirler (uzak zoom) */
.ct { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 6px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; letter-spacing: -.1px; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 12px -3px rgba(0,0,0,.28); transition: box-shadow .2s; }
.ct:hover { box-shadow: 0 0 0 1.5px var(--fg), 0 4px 12px -3px rgba(0,0,0,.28); }
.ct span { font-size: 14px; line-height: 1; }
#map.z-near .ct { visibility: hidden; pointer-events: none; }
.lv-stats { display: flex; gap: 28px; margin: 22px 0 0; }
.lv-stats b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.lv-stats span { font-size: 12.5px; color: var(--muted); }
.ct.hide { visibility: hidden; pointer-events: none; }
.maplibregl-marker.ct { z-index: 4; }
#map:not(.z-near) .tm em { display: none; }
#map:not(.z-near) .tm { padding-right: 4px; }

/* ---------- Üst sağ düğmeler ---------- */
.fab-prefs { position: absolute; z-index: 20; top: calc(14px + var(--safe-t)); right: 64px; }
@media (max-width: 760px) { .seg { left: 64px; transform: none; } }
.row-dist { font-size: 12.5px; font-weight: 600; color: var(--fg); background: var(--soft); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.items.near { border-top: 0; margin-top: 6px; }
.lv-link { display: inline-flex; margin-top: 18px; font-size: 13.5px; font-weight: 500; color: var(--fg); text-decoration: none; background: var(--soft); padding: 8px 14px; border-radius: 999px; }
.lv-link:hover { background: var(--line); }

/* ---------- Yıl özeti ---------- */
.years { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.years a { text-decoration: none; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.years a.on { background: var(--fg); color: var(--bg); }
.sum-title { font-size: 44px; font-weight: 700; letter-spacing: -1.4px; margin: 0; }
.sum-title span { color: var(--muted); font-weight: 500; font-size: 26px; letter-spacing: -.5px; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 24px 0 8px; }
.sum-card { background: var(--soft); border-radius: 18px; padding: 18px 18px 16px; }
.sum-card b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.sum-card span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.sum-card em { display: block; font-style: normal; font-size: 22px; margin-top: 10px; letter-spacing: 2px; }
.sum-card.big { grid-column: span 2; }
.sum-cats { display: flex; flex-direction: column; margin-top: 4px; }
.sum-cats div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-cats span { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 20px; }
.sum-cats b { flex: 1; font-weight: 600; font-size: 14.5px; }
.sum-cats i { font-style: normal; color: var(--muted); font-size: 13px; }
.sum-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 140px; align-items: end; margin-top: 16px; }
.sum-months div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.sum-months i { width: 100%; min-height: 3px; border-radius: 6px; background: var(--fg); opacity: .85; }
.sum-months span { font-size: 11px; color: var(--muted); }

/* ---------- Karanlık mod ---------- */
html.dark { --bg: #111312; --fg: #F2F2F4; --muted: #9A9AA2; --soft: #1D201F; --line: #2A2D2C; --fold-back: #2C2C33; --glass: rgba(26,29,27,.82);
  --shadow: 0 0 0 1px rgba(255,255,255,.06), 0 8px 24px -8px rgba(0,0,0,.6); --shadow-lg: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px -16px rgba(0,0,0,.7); color-scheme: dark; }
html.dark #map { background: #1E2620; }
html.dark .paper-texture { opacity: .12; mix-blend-mode: overlay; }
html.dark .paper-wash { opacity: .05; }
html.dark .seg-btn.on, html.dark .chip-btn.on, html.dark .btn.primary { background: var(--fg); color: #111; }
html.dark .btn.primary:hover { background: #fff; }
html.dark .btn:hover { background: #262928; }
html.dark .sheet, html.dark .popover, html.dark .stats div { background: #171A19; }
html.dark .pm-emoji, html.dark .cm, html.dark .tm, html.dark .ct { background: #222624; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px -2px rgba(0,0,0,.6); color: var(--fg); }
html.dark .pm.sel .pm-emoji { box-shadow: 0 0 0 2.5px var(--fg), 0 8px 18px -4px rgba(0,0,0,.6); }
html.dark .pm-label { color: #F2F2F4; text-shadow: 0 0 2px #000, 0 0 3px #000, 0 0 4px rgba(0,0,0,.9); }
html.dark .pm.fav::before { box-shadow: 0 0 0 2px #222624; }
html.dark .note p { color: #E0E0E3; }
html.dark .sh-desc, html.dark .ld-desc, html.dark .row-txt p { color: #C8C8CC; }
html.dark .lv-bar b { color: #D6D6DA; }
html.dark .fold .ph { background: #2A2D2C; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 6px 16px rgba(0,0,0,.4); }
html.dark .fold .glass { background: linear-gradient(rgba(46,46,54,.5), rgba(32,32,38,.8)); }
html.dark .fold .edge .o { stroke: rgba(255,255,255,.12); }
html.dark .fold .edge .hl, html.dark .fold .edge .gw { stroke: rgba(255,255,255,.08); }
html.dark .fold .edge .gr { stroke: rgba(0,0,0,.35); }
html.dark .fold .stk span { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
html.dark .search { background: rgba(17,19,18,.96); }
html.dark .search-box input:focus { background: #000; }
html.dark .rate .dots i { background: #3A3D3C; }
html.dark .maplibregl-ctrl-attrib { background: rgba(20,22,21,.7) !important; color: #888; }
html.dark .maplibregl-ctrl-attrib a { color: #aaa; }
html.dark .toast { background: #F2F2F4; color: #111; }
html.dark .years a.on { color: #111; }
html.dark .cm b { color: var(--fg); }
html.dark .logo rect { fill: #F2F2F4; }
html.dark .logo path { stroke: #111; }
html.dark .logo circle { fill: #111; }
html.dark .chip-btn.on i { color: rgba(0,0,0,.5); }
