:root{ --ioho-primary:#176739; --ioho-secondary:#1e8449; --ioho-accent:#f9429e; }

.ioho-search{ background:#fff; border:1px solid #eaf3ee; border-radius:14px; padding:16px; box-shadow:0 4px 18px rgba(23,103,57,.06) }

/* Sekmeler: üstte 1, altta 2 yan yana (mobil); masaüstünde 3 sütun */
.ioho-search-tabs{
  display:grid; gap:8px; margin-bottom:12px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "find find"
    "plan track";
}
.ioho-search-tabs .tab[data-tab="find"]{ grid-area: find; }
.ioho-search-tabs .tab[data-tab="plan"]{ grid-area: plan; }
.ioho-search-tabs .tab[data-tab="track"]{ grid-area: track; }
@media (min-width: 860px){
  .ioho-search-tabs{
    grid-template-columns: repeat(3,1fr);
    grid-template-areas: "find plan track";
  }
}

.ioho-search .tab{
  appearance:none; border:1px solid #eaf3ee; background:#f7fbf8; cursor:pointer;
  border-radius:14px; padding:0 12px; height:48px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; color:#0f5132; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ioho-search .tab.active{
  background:linear-gradient(135deg,var(--ioho-primary),var(--ioho-secondary));
  color:#fff; border-color:transparent; box-shadow:0 2px 8px rgba(23,103,57,.18);
}

.ioho-pane{ display:none } .ioho-pane.active{ display:block }

.ioho-field{ width:100% }
.ioho-label{ display:block; font-size:12px; font-weight:700; color:#0f5132; margin-bottom:6px; opacity:.85 }
.ioho-field input{
  width:100%; padding:12px 14px; border:1px solid #eaf3ee; border-radius:12px; outline:none; background:#fbfdfc;
}
.ioho-field input:focus{ border-color:var(--ioho-secondary); box-shadow:0 0 0 3px rgba(30,132,73,.12) }
.ioho-grid2{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
@media (max-width:700px){ .ioho-grid2{ grid-template-columns:1fr }}

/* Öneri kutuları */
.suggest-wrap{ position:relative }
.ioho-suggest{
  position:absolute; top:100%; left:0; right:0; z-index:50; background:#fff; border:1px solid #eaf3ee; border-radius:12px; margin-top:6px; display:none;
  max-height:240px; overflow:auto; box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.ioho-suggest .sg-item{ padding:10px 12px; cursor:pointer }
.ioho-suggest .sg-item:hover{ background:#f7fbf8 }

/* Bağlantı butonu (haritadan seç) */
.ioho-linkbtn{
  margin-top:6px; appearance:none; border:0; background:none; color:var(--ioho-secondary);
  font-weight:800; cursor:pointer; text-decoration:underline; padding:0;
}
.ioho-picked{ margin-top:6px; font-size:12px; color:#0f5132; opacity:.85 }

/* Buton */
.ioho-btn{
  margin-top:10px; appearance:none; border:0; padding:12px 14px; border-radius:12px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,var(--ioho-primary),var(--ioho-secondary)); cursor:pointer;
}
.ioho-track-actions{ display:flex; align-items:center; gap:12px; margin-top:6px }
.ioho-track-actions .hint{ font-size:12px; color:#0f5132; opacity:.75 }

/* Sonuç/ortak satır stili */
.ioho-results .grp{ margin-top:8px }
.ioho-results .grp-title{ font-weight:800; color:#0f5132; margin:6px 0 }

.ioho-route-list{ display:flex; flex-direction:column; gap:12px }
.ioho-route-row{
  display:flex; align-items:center; gap:12px; padding:12px 14px;
  background:#f7fbf8; border:1px solid #eaf3ee; border-radius:16px;
  text-decoration:none; color:#111; box-shadow:0 2px 10px rgba(23,103,57,.06);
}
.ioho-route-row:hover{ border-color:var(--ioho-primary); transform:translateY(-1px) }
.ioho-route-row .code-badge{
  background:var(--ioho-secondary); color:#fff; font-weight:800; border-radius:12px;
  padding:8px 10px; min-width:64px; text-align:center; letter-spacing:.5px; flex:0 0 auto;
}
.ioho-route-row .route-title{ font-weight:800; text-transform:uppercase; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; flex:1 1 auto; min-width:0; }
.ioho-route-row .route-title--wrap{ white-space:normal; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.25; }
.ioho-route-row .go{ width:44px; height:44px; border-radius:12px; background:var(--ioho-primary); color:#fff; display:flex; align-items:center; justify-content:center; flex:0 0 44px; }
.ioho-route-row .go svg{ display:block }

/* Liste satırı */
.list{ list-style:none; margin:0; padding:0 }
.list li{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed #eaf3ee }

/* Plan kartı */
.plan-card{margin-top:12px; padding:12px; border:1px solid #eaf3ee; border-radius:16px; background:#fbfdfc}
.plan-io{font-weight:800; color:#0f5132; margin-bottom:8px}
.plan-io .arr{display:inline-block; padding:0 6px; color:#1e8449}
.plan-row .pill{ background:linear-gradient(135deg,var(--ioho-primary),var(--ioho-secondary)); color:#fff; font-weight:800; border-radius:12px; padding:8px 10px; flex:0 0 auto; }
.plan-actions{ margin-top:10px; display:flex; justify-content:flex-end }

/* Detay sayfası yardımcıları */
.ioho-note-box{ text-align:center; background:#fbfdfc; border:1px dashed #eaf3ee; padding:12px; border-radius:12px; color:#0f5132; opacity:.85; margin-bottom:10px; }
.ioho-kv{ display:flex; justify-content:space-between; align-items:center; gap:12px; background:#f7fbf8; border:1px solid #eaf3ee; border-radius:12px; padding:12px; margin-top:10px; }
.ioho-kv.hdr{ background:#f2f5f3; font-weight:800; color:#0f5132 }
.ioho-mini-label{ display:inline-block; background:#f2f5f3; border:1px solid #eaf3ee; color:#0f5132; font-weight:800; border-radius:10px; padding:6px 10px; }
.ioho-stoptext{ white-space:normal; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.25; }
.ioho-route-row.is-static{ pointer-events:none; }
.ioho-static-row{ background:#f7fbf8; border:1px solid #eaf3ee; border-radius:12px; padding:12px; font-weight:800; color:#0f5132; margin-top:6px; }

/* Modal (harita seçim) */
.ioho-modal{ position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; }
.ioho-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.35); }
.ioho-modal__panel{
  position:relative; z-index:1; width:min(720px,92vw); background:#fff; border-radius:12px; border:1px solid #eaf3ee;
  box-shadow:0 10px 30px rgba(0,0,0,.2); overflow:hidden;
}
.ioho-modal__head{ display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid #eaf3ee; }
.ioho-modal__head .grow{ flex:1; }
.ioho-modal__head .ioho-close{ appearance:none; border:0; background:#f7fbf8; width:32px; height:32px; border-radius:8px; cursor:pointer; }
.ioho-modal__toolbar{ display:flex; align-items:center; gap:12px; padding:8px 12px; }
.ioho-mini-btn{
  appearance:none; border:1px solid #eaf3ee; background:#f7fbf8; border-radius:10px; padding:6px 10px; cursor:pointer; font-weight:700; color:#0f5132;
}
.ioho-modal__toolbar .hint{ font-size:12px; color:#0f5132; opacity:.75 }
.ioho-pickmap{ width:100%; height:380px; }
.ioho-modal__foot{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-top:1px solid #eaf3ee; }
.ioho-modal__foot .grow{ flex:1; }
.ioho-modal__foot .status{ font-size:12px; color:#0f5132; opacity:.85 }
.ioho-modal__foot .ioho-ok{ background:linear-gradient(135deg,var(--ioho-primary),var(--ioho-secondary)); color:#fff; border:0; border-radius:10px; padding:8px 12px; cursor:pointer; }

/* ===== Timeline (ikonlu, dikey) ===== */
.ioho-timeline{ margin-top:14px; }
.ioho-steps{ list-style:none; margin:0; padding:0 0 0 30px; position:relative; }
.ioho-steps::before{
  content:""; position:absolute; left:13px; top:0; bottom:0; width:2px; background:#eaf3ee;
}
.ioho-step{ position:relative; margin:12px 0 16px; }
.ioho-step .rail-dot{
  position:absolute; left:4px; top:6px; width:18px; height:18px; border-radius:50%;
  background:#fff; color:#176739; display:flex; align-items:center; justify-content:center;
  border:2px solid #dfeee6; box-shadow:0 0 0 3px #fff;
}
.ioho-step.kind-walk .rail-dot{ color:#176739; border-color:#dfeee6; }
.ioho-step.kind-board .rail-dot{ color:#b3126a; border-color:#f4d8e8; }
.ioho-step.kind-alight .rail-dot{ color:#0aa0d9; border-color:#d5edf7; }

.ioho-step .content{
  background:#f7fbf8; border:1px solid #eaf3ee; border-radius:12px;
  padding:10px 12px; box-shadow:0 2px 8px rgba(23,103,57,.05);
  margin-left:30px;           /* ← ikon çakışmasını engeller */
  position:relative;          /* stacking context */
}
.ioho-step .title{
  font-weight:800; color:#0f5132; display:flex; gap:8px; align-items:center; flex-wrap:wrap;
}
.ioho-step .label{ font-weight:900; }
.badge{
  display:inline-block; font-size:11px; font-weight:800; border-radius:10px;
  padding:4px 8px; line-height:1; letter-spacing:.3px;
}
.badge-walk{ background:#eef7f1; color:#0f5132; border:1px solid #e0efe6; }
.badge-route{ background:linear-gradient(135deg,var(--ioho-primary),var(--ioho-secondary)); color:#fff; border:0; }

.ioho-step .meta{ margin-top:6px; font-size:13px; color:#0f5132; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ioho-step .meta2{ margin-top:4px; font-size:12px; color:#0f5132; opacity:.85 }
.chip{
  display:inline-block; padding:6px 8px; border-radius:10px; background:#fff; border:1px solid #eaf3ee; font-weight:700;
}
.chip-stop{ color:#0f5132; }
.arrow{ opacity:.6; font-weight:900; }

.ioho-arrive{ margin-top:12px; }

/* === Timeline başlık hizalama & çakışma fix === */
/* ikon (dot) rayın üzerinde, içerik kutusu ondan bağımsız kalsın */
.ioho-step .rail-dot{
  z-index: 1;             /* ikon altta */
}

/* içerik kutusu ikonun ÜSTÜNDE ama onunla çakışmayacak şekilde dursun */
.ioho-step .content{
  position: relative;
  z-index: 2;             /* içerik üstte */
  margin-left: 30px;      /* SENDE ZATEN VARSA aynen kalsın; kutuyu yerinden oynatmaz */
}

/* SADECE başlık satırını biraz sağa kaydır (ikonlardan güvenli mesafe) */
.ioho-step .title{
  padding-left: 16px;     /* başlığı sağa itiyoruz (10–22px arası deneyebilirsin) */
  min-height: 20px;       /* ikon yüksekliği kadar pay */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* rozet ile başlık arası nefes */
.ioho-step .badge{
  margin-left: 4px;
}

/* metin satırlarının ikonlarla olası teması için çok hafif sağ tampon */
.ioho-step .meta,
.ioho-step .meta2{
  padding-left: 4px;
}

