/* Moduł mapy. Ładować po /assets/stylesheets/style.css. */
:root {
  --map-development: #0161fd;
  --map-development-soft: #eef4ff;
  --map-innovation: #2e2356;
  --map-innovation-soft: #f2effb;
  --map-border: #e5e5ef;
  --map-muted: #66667a;
}
.ecosystem-content.accreditation-map-page { width: auto; max-width: none; margin: 0 7vw; padding: 140px 0 40px; }
.accreditation-map-page { padding-bottom: 40px; }
.accreditation-map-page .map-page-intro { margin-bottom: 28px; }
.accreditation-map-page .map-page-intro .title { margin: 0; line-height: 1.08; }
.accreditation-map-page .map-page-intro .text-24 { max-width: 1100px; }
.accreditation-map-page .map-page-intro p { margin: 12px 0 0; line-height: 1.55; }
.accreditation-map-page .workspace { padding: 0; }
.accreditation-map-page .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.accreditation-map-page .search-wrap { width: min(650px, 55vw); position: relative; z-index: 12; }
.accreditation-map-page .search-wrap > label { min-height: 58px; padding: 0 16px 0 20px; display: flex; align-items: center; gap: 12px; background: var(--bg-primary); border: 1px solid var(--map-border); border-radius: 16px; box-shadow: rgba(0, 0, 0, .12) 4px 4px 12px; }
.accreditation-map-page .search-wrap label > span { font-size: 1.7rem; color: #616176; }
.accreditation-map-page .search-wrap input { width: 100%; border: 0; outline: 0; color: var(--text-primary); background: transparent; font-size: 1rem; }
.accreditation-map-page .search-wrap input::placeholder { color: #858598; }
.accreditation-map-page .search-wrap kbd { color: #66667a; background: #f2effb; border: 1px solid #ded9eb; border-radius: 7px; padding: 5px 8px; font-size: .72rem; white-space: nowrap; }
.accreditation-map-page .search-wrap label button { border: 0; background: transparent; cursor: pointer; font-size: 1.6rem; color: #66667a; }
.accreditation-map-page .search-results { position: absolute; top: 66px; left: 0; right: 0; padding: 8px; background: var(--bg-primary); border: 1px solid var(--map-border); border-radius: 16px; box-shadow: rgba(0, 0, 0, .22) 4px 8px 24px; max-height: 430px; overflow-y: auto; }
.accreditation-map-page .search-results > button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; color: var(--text-primary); border-radius: 10px; padding: 10px; cursor: pointer; }
.accreditation-map-page .search-results > button:hover { background: var(--map-innovation-soft); color: var(--text-alt); } 
.accreditation-map-page .search-results > button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.accreditation-map-page .search-results strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.accreditation-map-page .search-results small { color: var(--map-muted); font-size: .75rem; }
.accreditation-map-page .result-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #eef4ff; color: var(--map-development); font-size: .72rem; font-weight: 700; }
.accreditation-map-page .result-icon--group, .accreditation-map-page .result-icon--service { background: var(--map-innovation-soft); color: var(--map-innovation); }
.accreditation-map-page .filter-tabs { display: flex; gap: 4px; padding: 5px; background: var(--map-innovation-soft); border: 1px solid #e1dbea; border-radius: 14px; }
.accreditation-map-page .filter-tabs button { border: 0; background: transparent; padding: 11px 15px; border-radius: 10px; color: #5d5572; font-size: .85rem; font-weight: 600; cursor: pointer; }
.accreditation-map-page .filter-tabs button.active { color: #fff; background: var(--map-innovation); box-shadow: rgba(46, 35, 86, .22) 0 6px 16px; }
.accreditation-map-page .group-strip { display: grid; grid-template-columns: repeat(8, minmax(145px, 1fr)); gap: 10px; overflow-x: auto; padding: 4px 2px 16px; }
.accreditation-map-page .group-button { min-width: 150px; min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px 11px; text-align: left; border: 1px solid var(--map-border); background: var(--bg-primary); color: var(--text-primary); border-radius: 12px; font-size: .78rem; font-weight: 600; cursor: pointer; box-shadow: rgba(0, 0, 0, .10) 3px 3px 9px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.accreditation-map-page .group-button:hover { transform: translateY(-2px); box-shadow: rgba(0, 0, 0, .2) 4px 7px 14px; }
.accreditation-map-page .group-button--development:hover { border-color: var(--map-development); }
.accreditation-map-page .group-button--innovation:hover { border-color: var(--map-innovation); }
.accreditation-map-page .group-button__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--map-development); }
.accreditation-map-page .group-button--innovation .group-button__dot { background: var(--map-innovation); }
.accreditation-map-page .group-button strong { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #f2effb; color: #554a6b; font-size: .7rem; }
.accreditation-map-page .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 760px; border: 1px solid var(--map-border); background: var(--bg-primary); border-radius: 16px; overflow: hidden; box-shadow: rgba(0, 0, 0, .25) 4px 4px 20px; }
.accreditation-map-page .map-card { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--map-border); }
.accreditation-map-page .map-card__head { min-height: 62px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--map-border); }
.accreditation-map-page .breadcrumbs { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: .8rem; }
.accreditation-map-page .breadcrumbs button { border: 0; background: transparent; padding: 0; color: #625979; cursor: pointer; }
.accreditation-map-page .breadcrumbs strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.accreditation-map-page .breadcrumbs span { color: #aaa5b5; }
.accreditation-map-page .legend { display: flex; gap: 16px; color: #66667a; font-size: .75rem; white-space: nowrap; }
.accreditation-map-page .legend span { display: flex; align-items: center; gap: 6px; }
.accreditation-map-page .legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.accreditation-map-page .legend-dot--development { background: var(--map-development); }
.accreditation-map-page .legend-dot--innovation { background: var(--map-innovation); }
.accreditation-map-page .graph-stage { flex: 1; min-height: 680px; position: relative; overflow: hidden; background-color: var(--bg-primary); background-image: radial-gradient(#dedce7 1px, transparent 1px); background-size: 22px 22px; }
.accreditation-map-page .graph-stage svg { width: 100%; height: 100%; min-height: 680px; display: block; }
.accreditation-map-page .overview-line { stroke: #d5d1df; stroke-width: 1; stroke-dasharray: 3 7; }
.accreditation-map-page .connection { fill: none; stroke-width: 2.4; stroke-dasharray: 7 6; animation: drawLine .65s both ease-out; }
.accreditation-map-page .connection--development { stroke: var(--map-development); }
.accreditation-map-page .connection--innovation { stroke: var(--map-innovation); }
.accreditation-map-page .arrow-development { fill: var(--map-development); }
.accreditation-map-page .arrow-innovation { fill: var(--map-innovation); }
@keyframes drawLine { from { stroke-dashoffset: 90; opacity: 0; } to { stroke-dashoffset: 0; opacity: .9; } }
.accreditation-map-page .graph-node { cursor: pointer; outline: none; }
.accreditation-map-page .graph-node rect { fill: #ffffff; stroke: #cfcbd9; stroke-width: 1.3; filter: drop-shadow(4px 4px 7px rgba(0, 0, 0, .13)); transition: stroke .2s, filter .2s, transform .2s; transform-box: fill-box; transform-origin: center; }
.accreditation-map-page .graph-node:hover rect, .accreditation-map-page .graph-node:focus rect { stroke: var(--map-innovation); filter: drop-shadow(4px 7px 10px rgba(46, 35, 86, .24)); transform: translateY(-2px); }
.accreditation-map-page .graph-node--development rect { fill: var(--map-development-soft); stroke: #75a8fb; }
.accreditation-map-page .graph-node--innovation rect { fill: var(--map-innovation-soft); stroke: #9f94ba; }
.accreditation-map-page .graph-node--network rect { fill: #0b0b30; stroke: #0b0b30; }
.accreditation-map-page .graph-node--central rect { stroke-width: 2; filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, .22)); }
.accreditation-map-page .graph-node__label { fill: #0b0b30; font-size: 12px; font-weight: 600; pointer-events: none; }
.accreditation-map-page .graph-node__sublabel { fill: #66667a; font-size: 9px; pointer-events: none; }
.accreditation-map-page .graph-node--development .graph-node__label { fill: #103978; }
.accreditation-map-page .graph-node--development .graph-node__sublabel { fill: #31527e; }
.accreditation-map-page .graph-node--innovation .graph-node__label { fill: #2e2356; }
.accreditation-map-page .graph-node--innovation .graph-node__sublabel { fill: #61567a; }
.accreditation-map-page .graph-node--network .graph-node__label { fill: #fff; font-size: 18px; font-weight: 600; }
.accreditation-map-page .graph-node--network .graph-node__sublabel { fill: #d9d5e5; }
.accreditation-map-page .zoom-controls { position: absolute; right: 14px; bottom: 14px; display: grid; background: var(--bg-primary); border: 1px solid var(--map-border); border-radius: 10px; overflow: hidden; box-shadow: rgba(0, 0, 0, .16) 3px 3px 10px; }
.accreditation-map-page .zoom-controls button { width: 36px; height: 34px; border: 0; border-bottom: 1px solid var(--map-border); background: var(--bg-primary); cursor: pointer; color: var(--text-primary); font-weight: 700; }
.accreditation-map-page .zoom-controls button:last-child { border-bottom: 0; }
.accreditation-map-page .zoom-controls button:hover { background: var(--map-innovation-soft); }
.accreditation-map-page .graph-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 9px 15px; color: #625979; background: var(--bg-primary); border: 1px solid var(--map-border); border-radius: 999px; font-size: .72rem; white-space: nowrap; box-shadow: rgba(0, 0, 0, .12) 3px 3px 10px; }
.accreditation-map-page .detail-panel { max-height: 760px; overflow-y: auto; padding: 30px 26px; background: var(--bg-primary); }
.accreditation-map-page .detail-panel--intro { display: flex; flex-direction: column; justify-content: center; }
.accreditation-map-page .eyebrow { margin: 0 0 12px; color: #6b637c; font-size: .72rem; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.accreditation-map-page .eyebrow--development { color: var(--map-development); }
.accreditation-map-page .eyebrow--innovation { color: var(--map-innovation); }
.accreditation-map-page .detail-panel h2 { margin: 0; color: var(--text-primary); font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
.accreditation-map-page .metric-row { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border: 1px solid var(--map-border); border-radius: 12px; }
.accreditation-map-page .metric-row div { padding: 14px 16px; display: grid; gap: 3px; }
.accreditation-map-page .metric-row div + div { border-left: 1px solid var(--map-border); }
.accreditation-map-page .metric-row strong { font-size: 1.6rem; font-weight: 600; }
.accreditation-map-page .metric-row span { color: var(--map-muted); font-size: .75rem; }
.accreditation-map-page .steps { display: grid; gap: 20px; list-style: none; margin: 30px 0; padding: 0; }
.accreditation-map-page .steps li { display: flex; gap: 13px; align-items: flex-start; }
.accreditation-map-page .steps li > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--map-innovation); border-radius: 50%; font-size: .75rem; font-weight: 700; }
.accreditation-map-page .steps p { display: grid; gap: 4px; margin: 0; }
.accreditation-map-page .steps strong { font-size: .9rem; }
.accreditation-map-page .steps small { color: var(--map-muted); font-size: .8rem; line-height: 1.5; }
.accreditation-map-page .data-note { display: flex; gap: 10px; padding: 14px; background: var(--map-innovation-soft); border-radius: 11px; color: #5c526f; }
.accreditation-map-page .data-note span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #ded7eb; font-style: italic; font-size: .75rem; }
.accreditation-map-page .data-note p { margin: 0; font-size: .76rem; line-height: 1.55; }
.accreditation-map-page .panel-section { margin-top: 25px; }
.accreditation-map-page .panel-section h3 { margin: 0 0 11px; display: flex; align-items: center; gap: 7px; color: #61586f; font-size: .73rem; letter-spacing: .07em; text-transform: uppercase; }
.accreditation-map-page .panel-cards { display: grid; gap: 8px; }
.accreditation-map-page .panel-cards button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 11px 13px; border: 1px solid var(--map-border); background: var(--bg-primary); color: var(--text-primary); border-radius: 9px; cursor: pointer; font-size: .82rem; font-weight: 600; }
.accreditation-map-page .panel-cards button:hover { border-color: var(--map-innovation); background: var(--map-innovation-soft); color: var(--text-alt); }
.accreditation-map-page .panel-cards b { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: #584f69; background: #eeeaf4; font-size: .7rem; }
.accreditation-map-page .provider-list { display: flex; flex-wrap: wrap; gap: 7px; }
.accreditation-map-page .provider-list button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--map-border); background: var(--bg-primary); border-radius: 9px; cursor: pointer; font-size: .78rem; }
.accreditation-map-page .provider-list button:hover { border-color: var(--map-development); }
.accreditation-map-page .provider-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: var(--map-development); color: #fff; font-size: .7rem; font-weight: 700; }
.accreditation-map-page .section-heading { display: flex; align-items: center; justify-content: space-between; }
.accreditation-map-page .section-heading h3 { margin: 0; }
.accreditation-map-page .section-heading > span { min-width: 27px; height: 23px; display: grid; place-items: center; background: #eeeaf4; border-radius: 6px; color: #625979; font-size: .68rem; }
.accreditation-map-page .small-search { height: 42px; margin: 11px 0; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--map-border); border-radius: 9px; }
.accreditation-map-page .small-search > span { color: #6a6278; font-size: 1.25rem; }
.accreditation-map-page .small-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: .8rem; }
.accreditation-map-page .service-list { display: grid; border-top: 1px solid var(--map-border); }
.accreditation-map-page .service-list button { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; padding: 11px 5px; text-align: left; border: 0; border-bottom: 1px solid var(--map-border); background: var(--bg-primary); cursor: pointer; }
.accreditation-map-page .service-list button:hover, .accreditation-map-page .service-list button.is-selected { background: var(--map-innovation-soft); }
.accreditation-map-page .service-list button > span { color: #8b8497; font-size: .68rem; padding-top: 2px; }
.accreditation-map-page .service-list p { margin: 0; color: var(--text-primary); font-size: .78rem; line-height: 1.5; }
.accreditation-map-page .service-note { margin-top: 13px; padding: 13px; border-left: 4px solid var(--map-innovation); background: var(--map-innovation-soft); }
.accreditation-map-page .service-note strong { font-size: .7rem; color: var(--map-innovation); letter-spacing: .08em; text-transform: uppercase; }
.accreditation-map-page .service-note p { margin: 6px 0; font-size: .8rem; line-height: 1.45; }
.accreditation-map-page .service-note small { color: #665b76; font-size: .7rem; line-height: 1.45; }
.dark .accreditation-map-page .graph-stage { background-color: var(--bg-primary); background-image: radial-gradient(#43435e 1px, transparent 1px); }
.dark .accreditation-map-page .graph-node rect { fill: #151543; stroke: #77779b; }
.dark .accreditation-map-page .graph-node--development rect { fill: #103b86; stroke: #75a8fb; }
.dark .accreditation-map-page .graph-node--innovation rect { fill: #4a386f; stroke: #aa9acb; }
.dark .accreditation-map-page .graph-node--network rect { fill: #05051f; stroke: #77779b; }
.dark .accreditation-map-page .graph-node__label,
.dark .accreditation-map-page .graph-node--development .graph-node__label,
.dark .accreditation-map-page .graph-node--innovation .graph-node__label { fill: #ffffff; }
.dark .accreditation-map-page .graph-node__sublabel,
.dark .accreditation-map-page .graph-node--development .graph-node__sublabel,
.dark .accreditation-map-page .graph-node--innovation .graph-node__sublabel { fill: #e3e6ff; }
.dark .accreditation-map-page .map-page-intro p, .dark .accreditation-map-page .detail-panel, .dark .accreditation-map-page .content-grid { color: var(--text-primary); }
@media (max-width: 1280px) {
  .accreditation-map-page .group-strip { grid-template-columns: repeat(8, 165px); }
  .accreditation-map-page .content-grid { grid-template-columns: minmax(0, 1fr) 370px; }
}
@media (max-width: 991px) {
  .ecosystem-content.accreditation-map-page { margin-inline: 5vw; padding-top: 120px; }
  .accreditation-map-page .toolbar { align-items: stretch; flex-direction: column; }
  .accreditation-map-page .search-wrap { width: 100%; }
  .accreditation-map-page .filter-tabs { width: fit-content; }
  .accreditation-map-page .content-grid { grid-template-columns: 1fr; }
  .accreditation-map-page .map-card { border-right: 0; border-bottom: 1px solid var(--map-border); }
  .accreditation-map-page .detail-panel { max-height: none; }
  .accreditation-map-page .graph-stage, .accreditation-map-page .graph-stage svg { min-height: 560px; }
}
@media (max-width: 620px) {
  .ecosystem-content.accreditation-map-page { margin-inline: 5vw; padding-top: 112px; }
  .accreditation-map-page .map-page-intro .title { font-size: 2.4rem; }
  .accreditation-map-page .map-page-intro .text-24 { font-size: 1rem; }
  .accreditation-map-page .filter-tabs { width: 100%; }
  .accreditation-map-page .filter-tabs button { flex: 1; padding-inline: 8px; }
  .accreditation-map-page .map-card__head { align-items: flex-start; flex-direction: column; }
  .accreditation-map-page .graph-stage, .accreditation-map-page .graph-stage svg { min-height: 460px; }
  .accreditation-map-page .graph-hint { display: none; }
  .accreditation-map-page .detail-panel { padding: 24px 18px; }
}
