/* Rota brifingi (/route) — renkler styles.css tema değişkenlerinden */
.rt-head h1 { font-size: 26px; margin: 6px 0 6px; color: var(--text); }
.rt-lede { color: var(--text-dim); max-width: 760px; margin: 0 0 16px; line-height: 1.5; }

.rt-form {
  display: grid; gap: 10px; align-items: end;
  grid-template-columns: 1fr auto 1fr 1fr 1.2fr 1fr 1fr;
  background: var(--panel-solid); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
}
.rt-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rt-form label span { font-size: 11.5px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; }
.rt-form label em { font-style: normal; font-weight: 400; text-transform: none; }
.rt-form input, .rt-form select {
  height: 38px; border-radius: 9px; border: 1px solid var(--panel-border); background: var(--input-bg);
  color: var(--text); padding: 0 10px; font: inherit; font-size: 14px; min-width: 0; width: 100%; box-sizing: border-box;
}
.rt-form input[name="from"], .rt-form input[name="to"], .rt-form input[name="alt"] { text-transform: uppercase; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; }
.rt-depat { margin-top: 6px; }
.rt-swap { height: 38px; width: 38px; border-radius: 9px; border: 1px solid var(--panel-border); background: var(--input-bg); color: var(--text); cursor: pointer; font-size: 16px; }
.rt-go {
  height: 38px; padding: 0 18px; border-radius: 9px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px;
  background: #19256F; color: #fff; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap;
}
body[data-theme="dark"] .rt-go { background: #2f45b8; }
.rt-sec {
  height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--panel-border); background: transparent;
  color: var(--text); cursor: pointer; font: inherit; font-size: 12.5px; text-decoration: none; display: inline-flex; align-items: center;
}

.rt-load, .rt-err, .rt-note { margin: 18px 0; color: var(--text-dim); }
.rt-err { color: #dc2626; font-weight: 600; }

.rt-sum { margin-top: 18px; background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 14px; padding: 16px; border-top: 5px solid #16a34a; }
.rt-sum.rt-v-care { border-top-color: #eab308; }
.rt-sum.rt-v-limit { border-top-color: #dc2626; }
.rt-route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; color: var(--text); }
.rt-route b { font-family: "JetBrains Mono", ui-monospace, monospace; }
.rt-route small { font-size: 13px; color: var(--text-dim); }
.rt-route .rt-sec { margin-inline-start: auto; }
.rt-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.rt-kpis div { display: flex; flex-direction: column; gap: 2px; }
.rt-kpis small { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; }
.rt-kpis b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.rt-kpis em { font-style: normal; font-size: 11px; color: var(--text-dim); }
.rt-verdict { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rt-verdict p { margin: 0; color: var(--text-dim); }
.rt-badge { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13.5px; background: #16a34a; color: #fff; }
.rt-v-care .rt-badge { background: #eab308; color: #19256F; }
.rt-v-limit .rt-badge { background: #dc2626; color: #fff; }
.rt-reasons { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rt-reasons li { padding: 7px 10px; border-inline-start: 4px solid #eab308; background: var(--hover); border-radius: 6px; color: var(--text); font-size: 14px; }
.rt-reasons li.rt-limit { border-inline-start-color: #dc2626; }

.rt-sec-b { margin-top: 22px; }
.rt-sec-b h2 { font-size: 17px; margin: 0 0 10px; color: var(--text); }
.rt-map { height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid var(--panel-border); }

.rt-aps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.rt-ap, .rt-sig { background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 12px; padding: 12px 14px; }
.rt-ap header small { color: var(--text-dim); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.rt-ap h3 { margin: 2px 0 8px; font-size: 16px; color: var(--text); }
.rt-ap h3 a { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--brand); text-decoration: none; }
.rt-ap h3 span { font-weight: 500; color: var(--text-dim); font-size: 13.5px; }
.rt-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13.5px; color: var(--text); flex-wrap: wrap; }
.rt-row > span:first-child { color: var(--text-dim); min-width: 110px; }
.rt-cat { display: inline-block; padding: 2px 8px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.rt-raw { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: var(--mono-bg, var(--input-bg)); color: var(--text); font: 12px/1.45 "JetBrains Mono", ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }
.rt-dim { color: var(--text-dim); font-size: 13.5px; }
.rt-warn { color: #dc2626; font-size: 13px; margin: 4px 0; }

.rt-scroll { overflow-x: auto; border: 1px solid var(--panel-border); border-radius: 12px; background: var(--panel-solid); }
.rt-tab { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text); }
.rt-tab th { text-align: start; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); padding: 9px 10px; border-bottom: 1px solid var(--panel-border); white-space: nowrap; }
.rt-tab td { padding: 8px 10px; border-bottom: 1px solid var(--panel-border); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-tab tr:last-child td { border-bottom: 0; }
.rt-tab td.rt-ice { color: #dc2626; font-weight: 700; }
.rt-cor td:first-child a { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; color: var(--brand); text-decoration: none; }
.rt-cor td:first-child small { display: block; color: var(--text-dim); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.rt-cor td code { white-space: normal; font-size: 11.5px; min-width: 280px; display: block; }

.rt-sig { margin-bottom: 10px; border-inline-start: 4px solid var(--panel-border); }
.rt-sig.rt-care { border-inline-start-color: #eab308; }
.rt-sig.rt-limit { border-inline-start-color: #dc2626; }
.rt-sig header { color: var(--text); margin-bottom: 4px; }
.rt-sig header small { color: var(--text-dim); margin-inline-start: 6px; }

.rt-lock { margin-top: 18px; background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 14px; padding: 22px; border-top: 5px solid #19256F; }
.rt-lock h2 { margin: 0 0 8px; color: var(--text); font-size: 19px; }
.rt-lock p { color: var(--text-dim); max-width: 720px; line-height: 1.5; }
.rt-lock-cta { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.rt-disc { margin: 22px 0 0; font-size: 12.5px; color: var(--text-dim); }

.rt-form .rt-via { grid-column: span 4; }
.rt-form .rt-ff { grid-column: span 2; }
.rt-form .rt-via input { font-family: "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; }

/* --- çok bacaklı rota, harita etkileşimi, kesit (10 Kas 2026) */
.rt-hint { margin: -4px 0 10px; color: var(--text-dim); font-size: 13px; }
.rt-busy-t { display: none; font-size: 12.5px; color: var(--text-dim); }
.rt-sum.rt-busy { opacity: .7; }
.rt-sum.rt-busy .rt-busy-t { display: inline; }
.rt-xs.rt-busy { opacity: .45; pointer-events: none; transition: opacity .2s; }
.rt-route i { font-style: normal; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; color: var(--text-dim); }
.rt-map { height: 460px; }
.rt-mk { display: flex; align-items: center; gap: 6px; cursor: default; }
.rt-mk i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #19256F; box-sizing: border-box; box-shadow: 0 0 0 2px #fff; }
.rt-mk.ara { cursor: grab; }
.rt-mk.ara i { width: 16px; height: 16px; }
.rt-mk span { position: absolute; left: 20px; top: -4px; font: 700 11.5px "JetBrains Mono", ui-monospace, monospace; color: #19256F; white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; display: flex; flex-direction: column; line-height: 1.15; pointer-events: none; }
.rt-mk span small { font: 500 10.5px Inter, system-ui, sans-serif; color: #334155; }
body[data-theme="dark"] .rt-mk i { border-color: #8fb2ff; box-shadow: 0 0 0 2px #0b1030; }
body[data-theme="dark"] .rt-mk span { color: #e2e8f0; text-shadow: 0 0 3px #0b1030, 0 0 3px #0b1030, 0 0 3px #0b1030; }
body[data-theme="dark"] .rt-mk span small { color: #cbd5e1; }
.rt-ucak { width: 14px; height: 14px; border-radius: 50%; background: #19256F; border: 2px solid #fff; box-shadow: 0 0 0 2px #19256F; pointer-events: none; }
body[data-theme="dark"] .rt-ucak { background: #8fb2ff; border-color: #0b1030; box-shadow: 0 0 0 2px #8fb2ff; }
.rt-pop { font-size: 12.5px; color: #19256F; display: grid; gap: 4px; }
.rt-pop a { color: #19256F; font-family: "JetBrains Mono", ui-monospace, monospace; }
.rt-pop code { font-size: 11px; white-space: normal; word-break: break-word; }
.rt-wps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rt-wps > i { color: var(--text-dim); font-style: normal; }
.rt-wp { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--panel-border); background: var(--panel-solid); color: var(--text); font-size: 12.5px; }
.rt-wp b { font-family: "JetBrains Mono", ui-monospace, monospace; }
.rt-wp small { color: var(--text-dim); }
.rt-wp button { border: 0; background: transparent; color: var(--text-dim); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.rt-wp button:hover { color: #dc2626; }

.rt-xs { background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 14px; padding: 10px 10px 12px; }
.rt-xs > .rt-load, .rt-xs > .rt-note { margin: 8px 6px; }
.xs-wrap { position: relative; width: 100%; }
.xs-wrap canvas { position: absolute; left: 0; top: 0; }
.xs-o { cursor: crosshair; touch-action: pan-y; }
.xs-tip { position: absolute; z-index: 2; min-width: 170px; max-width: 240px; padding: 8px 10px; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--panel-border);
  box-shadow: var(--shadow); font-size: 12px; color: var(--text); pointer-events: none; display: grid; gap: 2px; }
.xs-tip[hidden] { display: none; }
.xs-tip header { font-weight: 700; margin-bottom: 3px; }
.xs-tip div { display: flex; justify-content: space-between; gap: 10px; }
.xs-tip div span { color: var(--text-dim); }
.xs-tip footer, .rt-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.xs-tip em, .rt-chips em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 5px; }
.rt-chips { margin: 0; white-space: normal; min-width: 160px; }
.rt-chips small { color: var(--text-dim); }
.xs-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 4px 0; font-size: 12px; color: var(--text-dim); }
.xs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.xs-legend i { display: inline-block; width: 16px; height: 10px; border-radius: 2px; }
body[data-theme="dark"] .xs-legend i[style*="#19256F"] { background: #8fb2ff !important; }

.rt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rt-stats div { background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rt-stats small { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; }
.rt-stats b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.rt-stats em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.rt-caut li.rt-info { border-inline-start-color: #2563eb; }
.rt-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; }
.rt-exp td:first-child a, .rt-legs td a { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; color: var(--brand); text-decoration: none; }
.rt-exp td:first-child small { display: block; color: var(--text-dim); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 980px) {
  .rt-form { grid-template-columns: 1fr auto 1fr; }
  .rt-form .rt-via, .rt-form .rt-ff { grid-column: span 3; }
  .rt-form label:nth-of-type(3), .rt-form label:nth-of-type(4) { grid-column: span 3; }
  .rt-form label:nth-of-type(5), .rt-form label:nth-of-type(6) { grid-column: span 1; }
  .rt-go[type="submit"] { grid-column: span 3; justify-content: center; }
  .rt-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .rt-kpis { grid-template-columns: repeat(2, 1fr); }
  .rt-map { height: 340px; }
  .rt-xs { padding: 6px; }
  .rt-route { font-size: 17px; }
}

/* Rota meteogramı (dikey kesit) sayfaya sıkıştırılmaz: rota uzunluğuna göre genişler,
   yatay kaydırılır. Çubuk her zaman görünür (macOS'un gizlenen çubuğu yerine);
   tuval fareyle tutulup sürüklenerek de kaydırılır. İrtifa ekseni solda sabit. */
.xs-kaydir { overflow-x: scroll; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  border-radius: 10px; scrollbar-width: auto; scrollbar-color: #19256F var(--hover); padding-bottom: 2px; cursor: grab; }
.xs-kaydir.xs-tutuldu { cursor: grabbing; user-select: none; }
.xs-kaydir::-webkit-scrollbar { height: 14px; }
.xs-kaydir::-webkit-scrollbar-track { background: var(--hover); border-radius: 7px; }
.xs-kaydir::-webkit-scrollbar-thumb { background: #19256F; border-radius: 7px; border: 3px solid var(--hover); }
body[data-theme="dark"] .xs-kaydir { scrollbar-color: #8fb2ff var(--hover); }
body[data-theme="dark"] .xs-kaydir::-webkit-scrollbar-thumb { background: #8fb2ff; }
.xs-kaydir .xs-wrap { max-width: none; }
.xs-wrap canvas.xs-eksen { z-index: 2; pointer-events: none; box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .35); }
.xs-ipucu { font-size: 12px; color: var(--text-dim); margin: 0 0 6px; }
