/* SpeedTravel – strona WWW (dziedziczy czcionki motywu) */
.spt-box, .spt-cards, .spt-track-form { --spt-r: 12px; --spt-line: #e3e7ec; --spt-muted: #6b7785; box-sizing: border-box; }
.spt-box *, .spt-cards *, .spt-track-form * { box-sizing: border-box; }
.spt-box { margin: 32px 0; }
.spt-box h3 { margin: 28px 0 12px; }
.spt-muted { color: var(--spt-muted); }
.spt-how { background: #f6f8fa; border-left: 4px solid var(--spt-accent); padding: 12px 16px; border-radius: 6px; }

.spt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--spt-accent); color: #1a1a1a !important; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700; text-decoration: none !important; cursor: pointer; line-height: 1.2; font-size: 15px; transition: transform .1s, filter .15s; }
.spt-btn:hover { filter: brightness(1.05); }
.spt-btn:active { transform: translateY(1px); }
.spt-btn:disabled { opacity: .55; cursor: default; }
.spt-btn-lg { width: 100%; padding: 15px 20px; font-size: 16px; margin-top: 8px; }
.spt-btn-ghost { background: transparent; color: var(--spt-primary) !important; box-shadow: inset 0 0 0 2px var(--spt-primary); }

.spt-bar { display: inline-block; vertical-align: middle; width: 90px; height: 8px; background: #e9edf1; border-radius: 99px; overflow: hidden; }
.spt-bar i { display: block; height: 100%; background: var(--spt-accent); border-radius: 99px; }
.spt-bar-lg { display: block; width: 100%; height: 10px; margin-bottom: 6px; }
.spt-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.spt-badge-ok { background: #e3f5e8; color: #126b2f; }
.spt-badge-live { background: #e0efff; color: #0a4b8f; }
.spt-chip { display: inline-block; background: var(--spt-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.spt-chip-sm { font-size: 11px; padding: 1px 8px; background: var(--spt-accent); color: #1a1a1a; margin-left: 6px; }

/* Przystanki */
/* Selektory z .spt-box / ol – żeby style list z motywu (np. ".entry ol li") nie przesuwały osi trasy. */
.spt-timeline, .spt-box ol.spt-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.spt-timeline li, .spt-box ol.spt-timeline > li { position: relative; margin: 0; padding: 6px 0 6px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.spt-timeline li::before, .spt-box ol.spt-timeline > li::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; height: auto; border: 0; transform: none; background: var(--spt-line); }
.spt-timeline li:first-child::before, .spt-box ol.spt-timeline > li:first-child::before { top: 50%; }
.spt-timeline li:last-child::before, .spt-box ol.spt-timeline > li:last-child::before { bottom: 50%; }
.spt-timeline .spt-dot { position: absolute; left: 1px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--spt-primary); }
.spt-timeline li.is-board .spt-dot { border-color: var(--spt-accent); background: var(--spt-accent); }
.spt-stop-name { font-weight: 600; }
.spt-stop-off { color: var(--spt-muted); font-size: 13px; }

/* Terminy */
.spt-deps { display: flex; flex-direction: column; gap: 10px; }
.spt-dep { display: grid; grid-template-columns: 1.3fr 1.6fr .8fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--spt-line); border-radius: var(--spt-r); background: #fff; }
.spt-dep.is-confirmed { border-color: #bfe5c9; }
.spt-dep-date strong { display: block; }
.spt-dep-date small, .spt-dep-group small { color: var(--spt-muted); display: block; }
.spt-dep-price { font-size: 20px; font-weight: 800; color: var(--spt-primary); white-space: nowrap; }
.spt-dep-price small { font-size: 12px; font-weight: 400; color: var(--spt-muted); margin-left: 3px; }
@media (max-width: 720px) {
	.spt-dep { grid-template-columns: 1fr auto; }
	.spt-dep-group { grid-column: 1 / -1; order: 3; }
	.spt-dep-cta { grid-column: 1 / -1; order: 4; }
	.spt-dep-cta .spt-btn { width: 100%; }
}

/* Formularz */
.spt-form { margin-top: 24px; padding: 22px; border-radius: var(--spt-r); background: #f6f8fa; border: 1px solid var(--spt-line); scroll-margin-top: 80px; }
.spt-form h3 { margin-top: 0; }
.spt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.spt-span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .spt-grid { grid-template-columns: 1fr; } }
.spt-field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.spt-field input, .spt-field select { width: 100%; padding: 11px 12px; border: 1px solid #cfd6de; border-radius: 9px; font-size: 16px; background: #fff; font-weight: 400; }
.spt-field input:focus, .spt-field select:focus { outline: 2px solid var(--spt-accent); outline-offset: 1px; border-color: transparent; }
.spt-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; font-size: 13px; line-height: 1.45; }
.spt-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.spt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.spt-form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 10px; line-height: 1.5; }
.spt-form-msg.is-info { background: #eef3f8; }
.spt-form-msg.is-error { background: #fdecec; color: #8f1d1d; }
.spt-form-msg.is-success { background: #e6f6ea; color: #14532d; }
.spt-form-msg .spt-btn { margin-left: 6px; }
.spt-form-app { margin-top: 10px; }
.spt-form.is-done .spt-grid, .spt-form.is-done .spt-check, .spt-form.is-done [type=submit] { opacity: .5; }

/* Karty wycieczek */
.spt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.spt-card { border: 1px solid var(--spt-line); border-radius: var(--spt-r); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.spt-card-img { display: block; aspect-ratio: 16 / 9; background: var(--spt-primary) center / cover no-repeat; position: relative; }
.spt-card-img .spt-chip { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.6); }
.spt-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spt-card-body h3 { margin: 0; font-size: 19px; }
.spt-card-body h3 a { text-decoration: none; color: inherit; }
.spt-card-route { color: var(--spt-muted); font-size: 13px; margin: 0; }
.spt-card-deps, .spt-cards ul.spt-card-deps { list-style: none; margin: 4px 0; padding: 0; font-size: 14px; }
.spt-card-deps li, .spt-cards ul.spt-card-deps > li { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 5px 0; border-bottom: 1px dashed var(--spt-line); }
.spt-cards ul.spt-card-deps > li::before { content: none; }
.spt-mini { font-size: 12px; color: var(--spt-muted); white-space: nowrap; }
.spt-mini .spt-bar { width: 60px; height: 6px; }
.spt-mini-ok { color: #126b2f; font-weight: 700; }
.spt-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.spt-price { font-weight: 800; color: var(--spt-primary); font-size: 17px; }

/* Śledzenie */
.spt-track-form { padding: 18px; border-radius: var(--spt-r); background: var(--spt-primary); color: #fff; }
.spt-track-form label { display: block; margin-bottom: 8px; color: #fff; }
.spt-track-form .spt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.spt-track-form input { flex: 1 1 220px; padding: 12px; border-radius: 9px; border: 0; font-size: 16px; text-transform: uppercase; }
.spt-track-form input::placeholder { text-transform: none; }
