/* MotoAtlas forum rehberi (18 Kasım 2026): kanal rehberi, rehber haritası, mekân kartı, mekân konusu.
   Onaylanan 15 Kasım önizlemesinin (rehber-onizleme) dili; yalnız forum.css değişkenleri.
   Kategori renkleri uygulamayla aynı; kırmızı ve mavi yok (konum işareti ve rota çizgisi onlar). */
:root { --cat-yemek: #d9822b; --cat-cay: #9a6a3a; --cat-kamp: #3f7d4e; --cat-manzara: #2a8a84; --cat-yakit: #5f6b73; }
.forum-tag.is-mekan::before { background: var(--cat-cay); border-radius: 2px; transform: rotate(45deg); }
.rh-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Kategori işareti (pin, çip, satır başında aynı) */
.rh-cat { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--forum-meta)); color: #fff; flex: none; }
.rh-cat svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-yemek { --c: var(--cat-yemek); } .is-cay { --c: var(--cat-cay); } .is-kamp { --c: var(--cat-kamp); } .is-manzara { --c: var(--cat-manzara); } .is-yakit { --c: var(--cat-yakit); }

/* Kanal: rehber özeti */
.rh-answer { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--forum-line); }
.rh-answer h2 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.rh-answer > p { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--fg) 82%, var(--bg)); margin: 0 0 10px; max-width: 68ch; }
.rh-top { list-style: none; margin: 0; padding: 0; display: grid; }
.rh-top li { display: grid; grid-template-columns: 18px 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--forum-line); font-size: 15px; }
.rh-top li:first-child { border-top: 0; }
.rh-top .rh-n { font-family: var(--font-mono); font-size: 13px; color: var(--forum-faint); }
.rh-top a { color: var(--fg); text-decoration: none; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-top a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rh-top a small { font-weight: 500; color: var(--forum-meta); font-size: 13px; margin-left: 6px; }
.rh-count { font-size: 13px; color: var(--forum-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rh-count strong { color: var(--fg); }
.rh-answer .rh-actions { margin-top: 12px; }
.rh-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 20px; padding: 12px 14px; border: 1px dashed var(--forum-line); border-radius: 14px; font-size: 14px; color: var(--forum-meta); }
.rh-invite strong { color: var(--fg); }
.rh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.forum-places-head .rh-actions { margin: 0; }
.forum-tag.rh-tag-cat::before { display: none; }
.forum-tag.rh-tag-cat .rh-cat { width: 18px; height: 18px; }
.forum-tag.rh-tag-cat .rh-cat svg { width: 11px; height: 11px; }
.forum-pill.is-dark { background: var(--fg); color: var(--bg); }
.forum-pill.is-dark:hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); }

/* Harita iğnesi: damla, kategori ikonu, duruş rozeti (Mapbox işaretçisi olarak) */
.rh-pin { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 0; border: 0; background: none; font: inherit; }
.rh-pin i { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--forum-meta)); box-shadow: 0 2px 6px rgba(20, 12, 10, .28); border: 2px solid #fff; }
.rh-pin i svg { transform: rotate(45deg); width: 15px; height: 15px; color: #fff; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rh-pin b { position: absolute; top: -9px; left: calc(50% + 7px); min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: #1f1b19; font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(20, 12, 10, .25); }
.rh-pin span { position: absolute; top: calc(100% + 2px); font-size: 12px; font-weight: 700; color: #1f1b19; background: rgb(255 255 255 / .9); padding: 1px 6px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.rh-map-labels-off .rh-pin span { display: none; }
.rh-pin.is-new i { background: #fff; border: 2px dashed var(--c, var(--forum-meta)); box-shadow: none; }
.rh-pin.is-new i svg { color: var(--c, var(--forum-meta)); }
.rh-pin.is-selected { z-index: 3; }
.rh-pin.is-selected i { width: 40px; height: 40px; border: 3px solid #1f1b19; }
.rh-pin.is-selected i svg { width: 19px; height: 19px; }
.rh-pin.is-selected b { left: calc(50% + 11px); top: -12px; }
.rh-pin.is-off { display: none; }
.rh-pin:focus-visible i { outline: 3px solid var(--fg); outline-offset: 2px; }

/* Rehber haritası ekranı */
.rh-overlay { margin: 0; padding: 0; position: fixed; inset: var(--site-header-row-height, 72px) 0 0 0; z-index: 60; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.rh-overlay[hidden] { display: none; }
.rh-strip svg, .rh-stop-icon svg, .rh-card .forum-pill svg { width: 16px; height: 16px; }
.rh-strip .forum-pill { white-space: nowrap; flex: none; }
.rh-strip { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--forum-line); background: var(--bg); }
.rh-strip .rh-strip-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--forum-red, #c63d32); color: #fff; flex: none; }
.rh-strip h2 { font-size: 16px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-strip h2 span { color: var(--forum-meta); font-weight: 500; }
.rh-strip .rh-close { margin-left: auto; }
.rh-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 440px; min-height: 0; }
.rh-stage.no-card { grid-template-columns: minmax(0, 1fr); }
.rh-stage.no-card .rh-card { display: none; }
.rh-mapbox { position: relative; min-height: 0; height: 100%; background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
.rh-chips { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; pointer-events: none; }
.rh-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--card); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 1px 4px rgba(20, 12, 10, .14); border: 1px solid var(--forum-line); cursor: pointer; white-space: nowrap; flex: none; }
.rh-chip .rh-cat { width: 24px; height: 24px; }
.rh-chip small { color: var(--forum-meta); font-weight: 600; font-variant-numeric: tabular-nums; }
.rh-chip[aria-pressed="false"] { opacity: .45; }
.rh-tip { position: absolute; left: 16px; top: 60px; z-index: 2; max-width: 300px; padding: 12px 14px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 14px; line-height: 1.5; box-shadow: 0 12px 30px rgba(20, 12, 10, .2); }
.rh-tip button { display: block; margin-top: 8px; font: inherit; font-size: 13px; font-weight: 700; background: none; border: 0; color: var(--bg); padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rh-empty { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; }
.rh-empty div { pointer-events: auto; max-width: 320px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--forum-line); text-align: center; font-size: 14px; display: grid; gap: 10px; justify-items: center; }

/* Mekân kartı (masaüstünde sağ panel, mobilde alt sayfa) */
.rh-card { background: var(--bg); border-left: 1px solid var(--forum-line); overflow: auto; padding: 0; display: flex; flex-direction: column; }
.rh-card-photo { aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.rh-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-card-body { padding: 16px 20px 0; display: grid; gap: 14px; }
.rh-card h3 { font-family: var(--font-heading); font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; margin: 2px 0 0; }
.rh-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--forum-meta); font-weight: 600; }
.rh-card-meta .rh-cat { width: 20px; height: 20px; }
.rh-card .forum-pills { margin-top: 0; }
.rh-card-quote { margin: 0; font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--fg) 82%, var(--bg)); }
.rh-card-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.rh-card-who small { color: var(--forum-meta); font-weight: 500; }
.rh-card-sep { border-top: 1px solid var(--forum-line); }
.rh-card-close { display: none; }
.rh-card-body { flex: 1 0 auto; padding-bottom: 20px; align-content: start; }
.rh-card-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; background: var(--bg); border-top: 1px solid var(--forum-line); }
.rh-card-topic { margin: 6px 0 0; font-size: 13px; color: var(--forum-meta); }
.rh-card-topic a { color: var(--fg); font-weight: 600; }
.rh-card-text .rh-card-who, .rh-cmt .rh-card-who { margin-bottom: 2px; }
.rh-cmt-body { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.rh-cmt-body p { margin: 0 0 6px; }
.rh-card-bars .rh-bars { height: 44px; gap: 4px; }
.rh-card-bars .rh-bars-x { gap: 4px; font-size: 10px; }
.rh-card-photos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rh-card-photos img { width: 104px; height: 74px; object-fit: cover; border-radius: 8px; flex: none; }
.rh-card-talk { border-top: 1px solid var(--forum-line); padding-top: 14px; }
.rh-card-talk h4 { margin: 0 0 10px; font-size: 15px; }
.rh-card-talk h4 span { color: var(--forum-meta); font-weight: 600; }
.rh-cmts, .rh-cmts ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rh-cmts ol { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--forum-line); }
.rh-card-empty { margin: 0; font-size: 14px; color: var(--forum-meta); }
.rh-sheet-grab { display: none; }
.rh-card-loading { padding: 20px; font-size: 14px; color: var(--forum-meta); }

/* Duruş kutusu */
.rh-stop { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
.rh-stop-icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--fg); border: 1px solid var(--forum-line); }
.rh-stop strong { font-size: 15px; }
.rh-stop span { font-size: 13px; color: var(--forum-meta); font-weight: 500; }

/* "Burada durdu" işareti */
.rh-mark { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--success, #2f8f5b); padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--success, #2f8f5b) 10%, transparent); white-space: nowrap; }
.rh-mark svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rh-mark.is-year { color: var(--forum-meta); background: color-mix(in srgb, var(--fg) 6%, transparent); }

/* Mekân konusu / mekân sayfası */
.rh-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; padding: 14px 0; border-top: 1px solid var(--forum-line); border-bottom: 1px solid var(--forum-line); }
.rh-facts div { display: flex; flex-direction: column-reverse; padding: 0 16px; border-left: 1px solid var(--forum-line); min-width: 0; }
.rh-facts div:first-child { padding-left: 0; border-left: 0; }
.rh-facts dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rh-facts dt { font-size: 13px; color: var(--forum-meta); font-weight: 500; }
.rh-hist { margin: 16px 0 0; }
.rh-hist h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.rh-hist h3 span { font-weight: 500; color: var(--forum-meta); }
.rh-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 72px; }
.rh-bars i { display: block; min-height: 3px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--fg) 18%, var(--bg)); }
.rh-bars i.is-peak { background: var(--fg); }
.rh-bars-x { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--forum-faint); text-align: center; }
.rh-new-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 5%, var(--bg)); font-size: 14px; color: color-mix(in srgb, var(--fg) 82%, var(--bg)); }
.rh-near { list-style: none; margin: 0; padding: 0; display: grid; }
.rh-near li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.rh-near a { color: var(--fg); text-decoration: none; font-weight: 600; }
.rh-near small { display: block; font-size: 12px; color: var(--forum-meta); font-weight: 500; }
.rh-near em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--forum-meta); }
.rh-side-more { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.rh-side-more button { font: inherit; background: none; border: 0; padding: 0; color: var(--fg); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Konudaki mekân listesi: kategori işaretiyle */
.forum-places-list .forum-place-name .rh-cat { width: 24px; height: 24px; }
.forum-places-list .rh-place-sub { display: flex; flex-wrap: wrap; gap: 2px 8px; }

/* Yer öner / mekân ekle penceresinde tür seçimi */
.rh-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.rh-cats legend { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; padding: 0; }
.rh-cats label { position: relative; }
.rh-cats label > input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0 !important; appearance: none; border: 0; background: none; cursor: pointer; }
.rh-cats label > span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid var(--forum-line, var(--border)); font-size: 13.5px; font-weight: 600; background: var(--card); }
.rh-cats input:checked + span { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.rh-cats input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }

@media (max-width: 760px) {
  .rh-overlay { inset: var(--site-header-row-height, 60px) 0 0 0; }
  .rh-strip { padding: 0 10px 0 14px; gap: 8px; }
  .rh-strip .rh-strip-ico, .rh-close-text { display: none; }
  .rh-strip h2 { font-size: 15px; min-width: 0; }
  .rh-strip .forum-pill { padding: 0 10px; }
  .rh-stage, .rh-stage.no-card { grid-template-columns: 1fr; }
  .rh-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72%; z-index: 4; border-left: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(20, 12, 10, .18); }
  .rh-sheet-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--forum-line); margin: 8px auto 0; }
  .rh-card-close { display: inline-flex; position: absolute; right: 12px; top: 10px; }
  .rh-card-photo { display: none; }
  .rh-chips { bottom: auto; top: 12px; right: 56px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rh-tip { display: none; }
  .rh-mapbox .mapboxgl-ctrl-top-left, .rh-mapbox .maplibregl-ctrl-top-left { top: 50px; }
  .rh-top li { grid-template-columns: 22px minmax(0, 1fr); row-gap: 0; }
  .rh-top .rh-n { display: none; }
  .rh-top .rh-count { grid-column: 2; }
  .rh-facts { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .rh-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
}
.forum-places-box:has(.forum-places-list > li:only-child) .forum-spots-map { height: min(40vh, 240px); }

/* ---- 18 Kasım akşam düzeni ---- */
/* Kanal rehberi: ilk 5 yer hap kart (Rehber haritası düğmesiyle aynı dil) */
.rh-top { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.rh-top li { display: block; padding: 0; border: 0; }
.rh-top a.rh-chip-top { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 5px 18px 5px 6px; border-radius: 999px; background: var(--forum-surface, color-mix(in srgb, var(--fg) 8%, var(--bg))); color: var(--fg); text-decoration: none; font-size: 14.5px; font-weight: 700; max-width: 100%; box-sizing: border-box; white-space: normal; }
.rh-top a.rh-chip-top:hover { background: var(--forum-surface-hover, color-mix(in srgb, var(--fg) 13%, var(--bg))); text-decoration: none; }
.rh-top a.rh-chip-top .rh-cat { width: 34px; height: 34px; }
.rh-top a.rh-chip-top .rh-cat svg { width: 17px; height: 17px; }
.rh-top a.rh-chip-top > span:not(.rh-cat) { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rh-top a.rh-chip-top small { margin: 1px 0 0; font-size: 12px; font-weight: 500; color: var(--forum-meta); }
/* Harita iğneleri: listedeki simgeyle aynı (dolu renk + beyaz simge), tüm türler ve yeni öneriler */
.rh-pin { z-index: 2; }
.rh-pin i, .rh-pin.is-new i { width: 34px; height: 34px; border-radius: 50%; transform: none; background: var(--c, var(--forum-meta)); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.rh-pin i svg, .rh-pin.is-new i svg { transform: none; width: 17px; height: 17px; color: #fff; }
.rh-pin::after { content: ''; width: 3px; height: 7px; margin-top: -1px; border-radius: 0 0 2px 2px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.rh-pin b { top: -8px; left: calc(50% + 9px); }
.rh-pin.is-selected i { width: 44px; height: 44px; border: 3px solid #fff; box-shadow: 0 0 0 3px #1f1b19, 0 4px 12px rgba(0, 0, 0, .4); }
.rh-pin.is-selected i svg { width: 21px; height: 21px; }
.rh-pin.is-selected b { left: calc(50% + 13px); top: -11px; }
/* Fotoğraf şeridi en üstte */
.forum-photo-strip.is-top { margin: 0 0 24px; }
/* İller / İlçeler: üstteki çizgiye yapışmasın */
.forum-feed + .forum-kids, .forum-pager + .forum-kids { margin-top: 28px; }

/* 19 Kasım: yer kartı (harita balonu) pinlerin üstünde */
.mapboxgl-popup, .maplibregl-popup { z-index: 5; }

/* 19 Kasım: harita kartındaki bağlantıda tıklayınca çıkan odak çerçevesi gizlenir */
.mapboxgl-popup a:focus, .maplibregl-popup a:focus { outline: none; }
