/* Hesperides · Tur planlayıcı: rota sahnesi + masaüstü iki sütun düzeni */
.ts { background: #fff; border-radius: 20px; margin: 1rem 0; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.05); font-family: 'Inter', sans-serif; }
.ts[hidden] { display: none; }
.ts-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 20px 12px; flex-wrap: wrap; }
.ts-eye { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #8a6d24; }
.ts-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-top: 5px; color: #000; max-width: 460px; line-height: 1.3; }
.ts-stats { display: flex; gap: 18px; }
.ts-stats div { text-align: right; }
.ts-stats b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: #14233f; line-height: 1; font-variant-numeric: tabular-nums; }
.ts-stats span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #999; }
.ts-map { position: relative; aspect-ratio: 1000 / 560; background: #fbfbfa; border-top: 1px solid #f0f0f0; }
.ts-svg { width: 100%; height: 100%; display: block; cursor: grab; }
.ts-land { fill: url(#ts-hatch); stroke: #000; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ts-nb { fill: #f3f3f1; stroke: #d9d9d9; stroke-width: .7; vector-effect: non-scaling-stroke; }
.ts-grat { fill: none; stroke: #efefef; stroke-width: .6; vector-effect: non-scaling-stroke; }
.ts-ctx circle { fill: #c9a85c; opacity: .35; }
.ts-arc { fill: none; stroke: #14233f; opacity: .55; }
.ts-route-under { fill: none; stroke: #c9a85c; opacity: .25; stroke-linecap: round; }
.ts-route { fill: none; stroke: #14233f; stroke-linecap: round; stroke-linejoin: round; }
.ts-radar { fill: none; stroke: #c9a85c; stroke-width: 1.2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; opacity: .7; }
.ts-ray { stroke: #14233f; stroke-width: 1.4; opacity: .45; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }

.ts-pin path { fill: #14233f; stroke: #fff; stroke-width: 2; }
.ts-pin.b path { fill: #c9a85c; }
.ts-pin text { font: 800 12px 'Inter', sans-serif; fill: #fff; }
.ts-pin.b text { fill: #14233f; }
.ts-drop { animation: tsDrop .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes tsDrop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ts-lbl text { font: 800 11.5px 'Inter', sans-serif; fill: #000; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }

.ts-stamp { cursor: pointer; }
.ts-pop { animation: tsPop .5s cubic-bezier(.2,1.6,.4,1) both; transform-box: fill-box; }
@keyframes tsPop { 0% { transform: scale(2.2); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
.ts-stamp .ring { fill: #fff; stroke: #c9a85c; stroke-width: 2.5; }
.ts-stamp .num-bg { fill: #14233f; stroke: #fff; stroke-width: 1.5; }
.ts-stamp .num { font: 800 9px 'Inter', sans-serif; fill: #fff; }
.ts-stamp .nm { font: 700 10.5px 'Inter', sans-serif; fill: #14233f; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.ts-stamp.detour .ring { fill: #fff; stroke: #b07830; stroke-dasharray: 3 3; stroke-width: 1.6; }
.ts-stamp.detour .nm { fill: #b07830; font-size: 9.5px; }
.ts-stamp:hover .ring { stroke: #14233f; }
.ts-car circle { fill: #14233f; stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.ts-car.arrived { animation: tsFade .6s .4s both; }
@keyframes tsFade { to { opacity: 0; } }

.ts-ticker { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; background: rgba(20,35,63,.92); color: #fff; font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-ticker.on { opacity: 1; transform: none; }
.ts-ticker em { font-style: normal; color: #c9a85c; font-weight: 600; }
.ts-dot { width: 8px; height: 8px; border-radius: 50%; background: #c9a85c; flex-shrink: 0; animation: tsBlink 1s infinite; }
.ts-dot.ok { animation: none; background: #6fcf97; }
@keyframes tsBlink { 50% { opacity: .3; } }
.ts-replay { position: absolute; right: 14px; bottom: 14px; z-index: 2; font: 700 12.5px 'Inter', sans-serif; background: #fff; color: #14233f; border: 1.5px solid #14233f; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.ts-replay[hidden] { display: none; }

/* Sonuç kartları sırayla belirir, sahnede basılan durak kartta vurgulanır */
#planner-results .route-city-card { animation: tsCard .45s both; }
#planner-results .route-city-card:nth-child(n) { animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes tsCard { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#planner-results .route-city-card.ts-lit { box-shadow: 0 0 0 2px #c9a85c inset; }

@media (prefers-reduced-motion: reduce) { .ts-drop, .ts-pop, #planner-results .route-city-card { animation: none; } }

/* Masaüstü: solda yapışkan form, sağda sahne + sonuçlar */
@media (min-width: 1000px) {
  .planner-main { max-width: 1240px !important; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .planner-main > .planner-card { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 96px; }
  .planner-main > .ts, .planner-main > #planner-results, .planner-main > .saved-section { grid-column: 2; }
  .planner-main > .ts { margin-top: 0; }
  .ts-title { font-size: 19px; }
}
@media (max-width: 600px) {
  .ts-head { padding: 14px 14px 10px; }
  .ts-stats b { font-size: 18px; }
  .ts-map { aspect-ratio: 1000 / 640; }
}
.ts-stats i { font-style: normal; }
/* Kalabalık rotada (12+ durak) mühürler küçülür, isimler üzerine gelince görünür */
.dense .ts-stamp .ts-pop { transform: scale(.78); animation-name: tsPopS; }
@keyframes tsPopS { 0% { transform: scale(1.8); opacity: 0; } 60% { transform: scale(.7); opacity: 1; } 100% { transform: scale(.78); } }
.dense .ts-stamp .nm { opacity: 0; transition: opacity .15s; }
.dense .ts-stamp:hover .nm { opacity: 1; }
.dense .ts-stamp:hover { filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }

/* ── Ulaşım + süre seçimi: kutular ve tek tık düğmeler ── */
.planner-options-row { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 16px !important; margin-bottom: 18px !important; }
.planner-options-row .transport-group, .planner-options-row .duration-group { width: 100% !important; min-width: 0 !important; flex: none !important; }
.transport-chips { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px !important; }
.transport-chip { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 14px 6px 12px !important;
  border-radius: 14px !important; border: 1.5px solid #e6e3dc !important; background: #faf9f6 !important; color: #333 !important; font-size: 13px !important; font-weight: 700; transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s !important; }
.transport-chip .hsp-ic { width: 24px !important; height: 24px !important; margin: 0 !important; color: #14233f; transition: color .18s; }
.transport-chip:hover { border-color: #c9a85c !important; background: #fff !important; }
.transport-chip.active { background: #14233f !important; border-color: #14233f !important; color: #fff !important; box-shadow: 0 8px 18px rgba(20,35,63,.22); }
.transport-chip.active .hsp-ic { color: #c9a85c; }
.transport-chip.active::after { content: ''; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%; background: #c9a85c
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314233f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }

.dur-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.dur-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dur-pills button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 4px; border-radius: 12px; border: 1.5px solid #e6e3dc; background: #faf9f6; cursor: pointer;
  font: 800 14px/1.1 'Inter', sans-serif; color: #222; transition: all .18s; -webkit-tap-highlight-color: transparent; }
.dur-pills button small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #999; }
.dur-pills button:hover { border-color: #c9a85c; background: #fff; }
.dur-pills button.on { background: #14233f; border-color: #14233f; color: #fff; box-shadow: 0 8px 18px rgba(20,35,63,.22); }
.dur-pills button.on small { color: #c9a85c; }
.planner-field-label { display: flex; align-items: center; gap: 8px; }
