/* Szakasztervező */
body { color: #b9c7c2; }
.tv-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--wr-green-deep); position: sticky; top: 0; z-index: 20; }
.tv-back { color: #dfe7e4; font-size: 15px; text-decoration: none; }
.tv-back:hover { color: var(--base-color); }
.tv-wrap { max-width: 1320px; margin: 0 auto; padding: 34px 24px 70px; }
.tv-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; }
.tv-intro > div:first-child { max-width: 680px; }
.tv-intro h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1; }
.tv-stats { min-width: 280px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-family: var(--alt-font); color: #fff; }
.tv-stats b { font-size: 38px; color: var(--base-color); margin-right: 6px; }
.tv-stats span { font-size: 15px; }
.tv-statbar { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.tv-statbar i { display: block; height: 100%; width: 0; background: var(--base-color); transition: width .6s; }
.tv-who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--wr-green); border-radius: 6px; padding: 14px 18px; margin-bottom: 24px; }
.tv-who select, .tv-who .form-control { background: #1b2925; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 10px 12px; font-size: 16px; min-width: 240px; width: auto; }
.tv-who select option { color: #000; }
.tv-who-hint { font-size: 14px; }
.tv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 991px) { .tv-grid { grid-template-columns: 1fr; } }
.tv-mapbox { background: radial-gradient(ellipse at 50% 40%, #2a3f39, #17231f 75%); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 18px; position: sticky; top: 90px; }
@media (max-width: 991px) { .tv-mapbox { position: static; padding: 8px; } }
#tvMap { width: 100%; height: auto; display: block; overflow: visible; }
.tv-lake { fill: rgba(59,87,80,.55); stroke: none; }
#gSeg .seg { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 9; stroke-linecap: butt; stroke-linejoin: round; transition: stroke .2s, stroke-width .2s; }
#gSeg .seg.taken { stroke-width: 11; }
#gSeg .seg.mine { stroke: var(--base-color); stroke-width: 14; }
#gSeg .seg.sel { stroke: #fff; stroke-width: 16; filter: drop-shadow(0 0 8px rgba(255,255,255,.7)); }
#gSeg .seg.hover { stroke-width: 18; }
#gSeg .hit { fill: none; stroke: transparent; stroke-width: 34; cursor: pointer; }
#gSeg .hit:hover + .seg, #gSeg .seg:hover { stroke-width: 18; }
#gNum .xpt { fill: #1b2925; stroke: rgba(255,255,255,.65); stroke-width: 2.5; pointer-events: none; }
#gAv .av { pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
#gAv .av text { font: 700 24px 'Roboto Condensed', sans-serif; fill: #13201c; }
.tv-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin-top: 10px; padding: 0 6px; }
.tv-legend .lg { display: inline-block; width: 22px; height: 6px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.lg.free { background: rgba(255,255,255,.35); } .lg.sel { background: #fff; } .lg.mine { background: var(--base-color); } .lg.taken { background: linear-gradient(90deg, #e8b86b, #7fb5e6, #d98fb3); }
.tv-panel { display: grid; gap: 16px; }
.tv-card { background: var(--wr-green); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 20px 20px 22px; }
.tv-sel-list { margin: 10px 0 14px; min-height: 24px; }
.tv-sel-list .it { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #dfe7e4; font-size: 15px; }
.tv-sel-list .it span { margin-left: auto; white-space: nowrap; color: var(--base-color); }
.tv-meter-top { display: flex; align-items: baseline; gap: 6px; font-family: var(--alt-font); color: #fff; }
.tv-meter-top b { font-size: 42px; line-height: 1; }
.tv-meter-top em { margin-left: auto; font-style: normal; font-size: 14px; color: #9fb0aa; font-family: var(--primary-font); }
.tv-meter-bar { position: relative; height: 10px; background: rgba(255,255,255,.1); border-radius: 5px; margin-top: 10px; overflow: hidden; }
.tv-meter-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #d6d27a; transition: width .3s, background .3s; }
.tv-meter-bar i.good { background: var(--base-color); } .tv-meter-bar i.over { background: #e89a7a; }
.tv-meter-bar .z { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.6); }
.tv-meter-bar .z10 { left: 50%; } .tv-meter-bar .z15 { left: 75%; }
.tv-meter-scale { position: relative; height: 18px; font-size: 11px; color: #7f918b; }
.tv-meter-scale span { position: absolute; top: 2px; } .tv-meter-scale span:nth-child(1) { left: 0; } .tv-meter-scale span:nth-child(2) { left: 50%; transform: translateX(-50%); } .tv-meter-scale span:nth-child(3) { left: 75%; transform: translateX(-50%); }
.tv-rule { font-size: 14px; margin: 10px 0 14px; min-height: 40px; color: #c9d4d0; }
.tv-rule.good { color: var(--base-color); } .tv-rule.soft { color: #e0cf8f; } .tv-rule.bad { color: #f0a58a; }
.tv-card .btn:disabled { opacity: .45; cursor: not-allowed; }
.tv-link { background: none; border: 0; padding: 0; color: var(--base-color); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-top: 10px; display: inline-block; }
.tv-msg { font-size: 14px; margin: 10px 0 0; min-height: 20px; }
.tv-msg.good { color: var(--base-color); } .tv-msg.bad { color: #f0a58a; }
.blk { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.blk b { display: block; color: #fff; font-family: var(--alt-font); font-size: 17px; }
.blk span { font-size: 13px; }
.blk .tv-link { margin: 0; white-space: nowrap; }
.tv-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-bottom: 10px; }
.tv-facts b { color: #fff; font-size: 17px; }
.tv-listwrap { margin-top: 50px; }
.tv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 8px; }
@media (max-width: 575px) { .tv-list { grid-template-columns: 1fr; } }
.tv-list .tv-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "n t k" "n c u"; gap: 2px 10px; align-items: center; padding: 10px 14px; border-radius: 6px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); cursor: pointer; transition: background .15s, border-color .15s; }
.tv-list .tv-row:hover { background: rgba(152,176,169,.1); border-color: rgba(152,176,169,.4); }
.tv-list .tv-row:focus-visible { outline: 2px solid var(--base-color); }
.tv-list .tv-row.sel { border-color: #fff; background: rgba(255,255,255,.08); }
.tv-list .tv-row.mine { border-color: var(--base-color); background: rgba(152,176,169,.14); }
.tv-list .tv-row.taken { opacity: .8; }
.tv-list .n { grid-area: n; font-family: var(--alt-font); font-size: 20px; color: #fff; }
.tv-list .t { grid-area: t; color: #dfe7e4; font-size: 15px; }
.tv-list .t i { color: #c9b8f0; }
.tv-list .k { grid-area: k; font-family: var(--alt-font); color: #fff; font-size: 17px; text-align: right; }
.tv-list .u { grid-area: u; font-size: 12px; color: #7f918b; text-align: right; }
.tv-list .chip { grid-area: c; justify-self: start; font-size: 12px; padding: 2px 9px; border-radius: 20px; }
.chip.free { background: rgba(255,255,255,.08); color: #9fb0aa; }
.chip.sel { background: #fff; color: #13201c; font-weight: 600; }
.chip.mine { background: var(--base-color); color: #13201c; font-weight: 600; }
.chip.taken { background: var(--c); color: #13201c; font-weight: 600; }
@media (max-width: 575px) { .tv-top { padding: 12px 16px; } .tv-back { font-size: 13px; } .tv-wrap { padding: 24px 16px 60px; } .tv-who select, .tv-who .form-control { min-width: 0; width: 100%; } .tv-stats b { font-size: 30px; } }
.tv-note { display: flex; gap: 14px; align-items: flex-start; background: rgba(224,207,143,.1); border: 1px solid rgba(224,207,143,.45); border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; color: #e9e2c4; font-size: 15px; }
.tv-note i { font-size: 24px; color: #e0cf8f; line-height: 1.2; }
.tv-note b { color: #fff; }
.tv-small { font-size: 12px; color: #9fb0aa; margin: 8px 0 0; text-align: center; }
.tv-meter-bar .zone { position: absolute; top: 0; bottom: 0; left: 40%; width: 20%; background: rgba(152,176,169,.25); }
.tv-meter-bar i.long { background: #7fd1c7; }
.tv-meter-scale span:nth-child(2) { left: 40%; } .tv-meter-scale span:nth-child(3) { left: 60%; } .tv-meter-scale span:nth-child(4) { left: 50%; top: 14px; transform: translateX(-50%); color: var(--base-color); }
.tv-meter-scale { height: 30px; }
#gTown circle { fill: rgba(255,255,255,.55); }
#gTown text { font: 500 20px 'Roboto', sans-serif; fill: rgba(223,231,228,.72); paint-order: stroke; stroke: rgba(23,35,31,.9); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; letter-spacing: .02em; }
@media (max-width: 767px) { #gTown text { font-size: 30px; } }
.tv-note-map { margin: 0 0 14px; font-size: 14px; padding: 12px 16px; }
.tv-note-map i { font-size: 20px; }
.tv-list .chip { display: inline-flex; align-items: center; gap: 6px; }
.tv-list .chip.taken, .tv-list .chip.mine { padding: 2px 10px 2px 2px; }
.mini { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.mini.ini { display: inline-grid; place-items: center; background: #1b2925; color: #fff; font: 700 11px 'Roboto Condensed', sans-serif; }
.tv-by { display: flex; align-items: center; gap: 8px; }
.tv-by .mini { width: 30px; height: 30px; }

/* térközök: a sablon minden <section>-nek nagy paddingot ad – itt nem kell */
.tv-wrap > section { padding-top: 0 !important; padding-bottom: 0 !important; }
.tv-wrap { padding-top: 26px; }
.tv-intro { margin-bottom: 18px; }
.tv-who { margin-bottom: 18px; }
.tv-listwrap { margin-top: 40px; }
.tv-note-map { margin: 14px 0 0; }
.tv-who-hint a { color: var(--base-color); text-decoration: underline; }
.tv-who-hint b { color: #fff; }
/* tervezett futásidő */
.tv-time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; padding: 10px 12px; background: rgba(152,176,169,.12); border-radius: 6px; color: #dfe7e4; font-size: 15px; }
.tv-time i { color: var(--base-color); }
.tv-time b { font-family: var(--alt-font); font-size: 22px; color: #fff; }
.tv-time span { font-size: 13px; color: #9fb0aa; }
#gSeg .seg { stroke: rgba(255,255,255,.2); }
#gSeg .seg.mine { stroke: #b9d6cc; stroke-width: 16; filter: drop-shadow(0 0 6px rgba(152,176,169,.9)); }
.lg.free { background: rgba(255,255,255,.2); } .lg.mine { background: #b9d6cc; box-shadow: 0 0 6px rgba(152,176,169,.9); }

/* tömörebb lista: annyi oszlop, amennyi elfér */
.tv-list { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px; }
.tv-list .tv-row { padding: 8px 12px; grid-template-columns: 30px 1fr auto; gap: 1px 8px; }
.tv-list .n { font-size: 17px; }
.tv-list .t { font-size: 14px; line-height: 1.3; }
.tv-list .k { font-size: 15px; }
.tv-list .u { font-size: 11px; }
.tv-list .chip { font-size: 11px; }
@media (max-width: 575px) { .tv-list { grid-template-columns: 1fr; } }
/* irány-nyilak és rajt a térképen */
#gDir path { fill: rgba(255,255,255,.75); pointer-events: none; }
#gDir .tv-start circle { fill: var(--base-color); stroke: #fff; stroke-width: 3; }
#gDir .tv-start text { font: 700 22px 'Roboto Condensed', sans-serif; fill: #fff; letter-spacing: .08em; paint-order: stroke; stroke: rgba(23,35,31,.9); stroke-width: 5px; }
.tv-mobnote { display: none; gap: 12px; align-items: flex-start; background: rgba(152,176,169,.12); border: 1px solid rgba(152,176,169,.4); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; color: #dfe7e4; }
.tv-mobnote i { font-size: 22px; color: var(--base-color); line-height: 1.2; }
.tv-mobnote b { color: #fff; }
@media (max-width: 991px) { .tv-mobnote { display: flex; } }
