
.kct-training-map{
  --kct-bg:#ffffff;
  --kct-surface:#f5f5f3;
  --kct-border:#b8b8b2;
  --kct-muted:#555550;
  --kct-accent:var(--awb-color6,#8ec9e8);
  --kct-accent2:#005ea8;
  --kct-text:#111111;
  color:var(--kct-text);width:100%
}
.kct-tm-heading{max-width:820px;margin:0 auto 34px;text-align:center}
.kct-tm-eyebrow{display:inline-block;margin-bottom:10px;font-size:13px;font-weight:800;letter-spacing:.14em;color:var(--kct-muted)}
.kct-tm-heading h2{margin:0 0 14px;font-size:clamp(34px,4vw,62px);line-height:.98;letter-spacing:-.035em;color:var(--kct-text)}
.kct-tm-heading p{max-width:680px;margin:0 auto;font-size:17px;line-height:1.6;color:var(--kct-muted)}
.kct-tm-filter-panel{background:var(--kct-bg);border:1px solid var(--kct-border);border-radius:16px;padding:20px;box-shadow:0 14px 40px rgba(0,0,0,.055);margin-bottom:18px}
.kct-tm-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:12px;align-items:end}
.kct-tm-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.kct-tm-field>label{font-size:12px;font-weight:800;letter-spacing:.02em;color:var(--kct-muted)}
.kct-tm-field select{width:100%;min-height:50px;padding:0 38px 0 14px;border:1px solid var(--kct-border);border-radius:10px;background:var(--kct-bg);color:var(--kct-text);font:inherit;font-size:14px;cursor:pointer}
.kct-tm-field select:hover{border-color:var(--kct-accent2)}
.kct-tm-field select:focus-visible,.kct-tm-reset:focus-visible,.kct-tm-actions button:focus-visible,.kct-tm-actions a:focus-visible{outline:3px solid rgba(74,167,213,.35);outline-offset:2px}
.kct-tm-reset{min-height:50px;padding:0 18px;border:1px solid var(--kct-border);border-radius:10px;background:var(--kct-surface);color:var(--kct-text);font:inherit;font-size:14px;font-weight:800;cursor:pointer;white-space:nowrap}
.kct-tm-summary{display:flex;gap:8px;align-items:baseline;margin:18px 0;color:var(--kct-muted)}
.kct-tm-summary strong{font-size:18px;color:var(--kct-text)}
.kct-tm-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);grid-template-areas:"map list";gap:24px;align-items:start}
.kct-tm-map-column{grid-area:map;position:sticky;top:100px}
.kct-tm-map{height:min(70vh,720px);min-height:540px;border:1px solid var(--kct-border);border-radius:18px;overflow:hidden;background:var(--kct-surface);box-shadow:0 16px 45px rgba(0,0,0,.06)}
.kct-tm-list-column{grid-area:list;min-width:0}.kct-tm-list{display:flex;flex-direction:column;gap:14px;max-height:min(70vh,720px);min-height:540px;overflow:auto;padding-right:6px;scroll-behavior:smooth}
.kct-tm-card{background:var(--kct-bg);border:1px solid var(--kct-border);border-radius:16px;padding:22px;transition:.18s ease}
.kct-tm-card:hover,.kct-tm-card.is-map-focus{border-color:var(--kct-accent2);box-shadow:0 12px 30px rgba(0,0,0,.07);transform:translateY(-2px)}
.kct-tm-card[hidden]{display:none!important}
.kct-tm-card-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:18px}
.kct-tm-location{display:block;font-weight:800;line-height:1.25}
.kct-tm-address{margin-top:4px;font-size:13px;line-height:1.45;color:var(--kct-muted)}
.kct-tm-area{flex:0 0 auto;padding:7px 9px;border-radius:999px;background:rgba(142,201,232,.2);font-size:11px;font-weight:800;white-space:nowrap}
.kct-tm-card h3{margin:0 0 12px;font-size:clamp(21px,2vw,28px);line-height:1.12;color:var(--kct-text)}
.kct-tm-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}
.kct-tm-tags span{padding:6px 9px;border:1px solid var(--kct-border);border-radius:999px;font-size:11px;font-weight:700;color:var(--kct-muted)}
.kct-tm-schedule{display:grid;gap:7px;margin:0 0 18px;padding:14px 0;border-top:1px solid var(--kct-border);border-bottom:1px solid var(--kct-border)}
.kct-tm-schedule>div{display:flex;justify-content:space-between;gap:14px;font-size:14px}
.kct-tm-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kct-tm-meta>div{display:flex;flex-direction:column;gap:3px}
.kct-tm-meta span{font-size:11px;color:var(--kct-muted)}
.kct-tm-meta strong{font-size:13px}
.kct-tm-note{margin-top:14px;padding:11px 13px;border-radius:10px;background:var(--kct-surface);font-size:13px;color:var(--kct-muted)}
.kct-tm-actions{display:flex;gap:10px;align-items:center;margin-top:20px}
.kct-tm-actions button,.kct-tm-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 15px;border-radius:9px;font:inherit;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}
.kct-tm-actions button{border:1px solid var(--kct-border);background:transparent;color:var(--kct-text)}
.kct-tm-actions a{margin-left:auto;border:1px solid var(--kct-text);background:var(--kct-text);color:var(--kct-bg)!important}
.kct-tm-no-results,.kct-tm-empty{padding:34px;border:1px dashed var(--kct-border);border-radius:16px;text-align:center;background:var(--kct-surface)}
.kct-tm-no-results strong,.kct-tm-no-results span{display:block}
.kct-tm-no-results span{margin-top:6px;color:var(--kct-muted)}
/* KCT: czerwona pinezka z żółtą kropką dokładnie pośrodku. */
.kct-tm-marker{display:block;width:34px;height:34px;border-radius:50% 50% 50% 10%;transform:rotate(-45deg);background:#c8102e;border:3px solid #fff;box-shadow:0 5px 14px rgba(0,0,0,.26);position:relative}
.kct-tm-marker::after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#ffd700;left:50%;top:50%;transform:translate(-50%,-50%)}
.kct-tm-popup strong,.kct-tm-popup span{display:block}
.kct-tm-popup strong{margin-bottom:4px;font-size:14px}
.kct-tm-popup span{font-size:12px;line-height:1.45;color:#666}
.kct-tm-popup button{margin-top:10px;border:0;border-radius:7px;padding:8px 10px;background:#20201d;color:#fff;font-weight:700;cursor:pointer}
@media(max-width:1180px){.kct-tm-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kct-tm-layout{grid-template-columns:minmax(0,1fr) minmax(330px,.85fr)}}
@media(max-width:900px){.kct-tm-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kct-tm-layout{display:flex;flex-direction:column}.kct-tm-map-column{position:static;width:100%}.kct-tm-map{min-height:420px;height:55vh}.kct-tm-list{max-height:none;min-height:0;overflow:visible;padding-right:0}}
@media(max-width:560px){.kct-tm-heading{text-align:left;margin-bottom:24px}.kct-tm-heading h2{font-size:38px}.kct-tm-filter-panel{padding:14px;border-radius:13px}.kct-tm-filter-grid{grid-template-columns:1fr}.kct-tm-reset{width:100%}.kct-tm-summary{justify-content:space-between}.kct-tm-summary>span{display:none}.kct-tm-card{padding:18px}.kct-tm-card-top{flex-direction:column}.kct-tm-meta{grid-template-columns:1fr}.kct-tm-actions{flex-wrap:wrap}.kct-tm-actions a,.kct-tm-actions button{width:100%;margin-left:0}.kct-tm-map{min-height:350px;height:52vh;border-radius:14px}}
@media(prefers-reduced-motion:reduce){.kct-tm-card{transition:none}.kct-tm-list{scroll-behavior:auto}}


/* WCAG 2.1 AA hardening */
.kct-tm-filter-fieldset{margin:0;padding:0;border:0;min-width:0}
.kct-tm-filter-fieldset legend{padding:0;margin:0 0 8px;font-size:17px;font-weight:800;color:var(--kct-text)}
.kct-tm-filter-help{margin:0 0 14px;font-size:13px;line-height:1.5;color:var(--kct-muted)}
.kct-tm-skip-results{display:inline-flex;align-items:center;min-height:44px;margin:0 0 8px;font-weight:700;color:var(--kct-text);text-decoration:underline;text-underline-offset:3px}
.kct-tm-map-help{margin:10px 4px 0;font-size:13px;line-height:1.5;color:var(--kct-muted)}
.kct-tm-card:focus{outline:none}
.kct-tm-card:focus-visible{outline:3px solid #111;outline-offset:3px}
.kct-training-map :where(select,button,a,[tabindex]):focus-visible{
  outline:3px solid #111!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 2px #fff!important
}
.kct-tm-actions button,.kct-tm-actions a,.kct-tm-reset,.kct-tm-field select{min-height:44px}
.kct-tm-actions a:hover,.kct-tm-actions a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.kct-tm-map .leaflet-marker-icon:focus-visible,
.kct-tm-map .leaflet-control a:focus-visible,
.kct-tm-map .leaflet-popup-close-button:focus-visible{
  outline:3px solid #111!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 2px #fff!important
}
.kct-tm-map .leaflet-marker-icon[role="button"]{cursor:pointer}
.kct-sr-only{
  position:absolute!important;
  width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important
}
@media (forced-colors:active){
  .kct-tm-card,.kct-tm-filter-panel,.kct-tm-tags span,.kct-tm-actions button,.kct-tm-actions a,.kct-tm-reset{
    border:1px solid CanvasText
  }
  .kct-tm-marker{background:CanvasText;border-color:Canvas}
}

/* KCT 2.0.5: teksty czytelne na telefonach, minimum 44px dla kontrolek. */
.kct-tm-eyebrow,.kct-tm-field>label,.kct-tm-filter-help,.kct-tm-map-help,
.kct-tm-address,.kct-tm-area,.kct-tm-tags span,.kct-tm-meta span,
.kct-tm-meta strong,.kct-tm-note,.kct-tm-popup span,
.kct-tm-actions button,.kct-tm-actions a{font-size:14px;}
.kct-tm-popup button{min-height:44px;min-width:44px;padding:10px 14px;font-size:14px}
.kct-tm-map .leaflet-control-zoom a,
.kct-tm-map .leaflet-control-layers-toggle{min-width:44px;min-height:44px;line-height:44px;box-sizing:border-box}
.kct-tm-map .leaflet-popup-close-button{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
.kct-tm-map .leaflet-marker-icon{width:44px!important;height:44px!important;display:flex;align-items:center;justify-content:center}
.kct-tm-map{scroll-margin-top:85px}
@media(max-width:900px){
  .kct-tm-map-column{grid-area:map;order:0}
  .kct-tm-list-column{grid-area:list;order:1}
  .kct-tm-map{min-height:350px;height:min(55vh,500px)}
}

/* 2.0.6: Mobile-first progressive disclosure; desktop list/map unaffected. */
.kct-tm-mobile-intro{display:none}
@media(max-width:900px){
 .kct-tm-mobile-intro:not([hidden]){display:flex;flex-direction:column;gap:14px;padding:22px;border:1px solid var(--kct-border);border-radius:14px;background:var(--kct-surface);margin:16px 0}
 .kct-tm-mobile-intro p{margin:0;font-size:16px;line-height:1.6;color:var(--kct-text)}
 .kct-tm-show-all{min-height:48px;min-width:44px;padding:10px 20px;border:0;border-radius:10px;background:#E30613;color:#fff;font-size:16px;font-weight:700;cursor:pointer}
 .kct-tm-show-all:hover{background:#B5050F}
 .kct-tm-show-all:focus-visible{outline:3px solid #111;outline-offset:3px}
 .kct-tm-mobile-collapsed .kct-tm-list-column{display:none!important}
 .kct-tm-mobile-collapsed .kct-tm-skip-results{display:none!important}
 .kct-tm-list-column{scroll-margin-top:85px}
}
