.proposal-territory-map{--map-base:#19233f;--map-expansion:#2b7589;--map-national:#737e94;background:#fff;border:1px solid #e3e7ee;border-radius:26px;padding:clamp(20px,3vw,36px);margin:26px 0 34px;box-shadow:0 12px 35px rgba(25,35,63,.045);min-width:0}
.proposal-territory-map *{box-sizing:border-box}
.territory-map-heading h2{font-size:clamp(25px,2.8vw,36px);line-height:1.18;letter-spacing:-.025em;margin:8px 0 16px;max-width:850px}
.territory-map-heading p:not(.eyebrow){font-size:17px;line-height:1.65;color:#5d6676;max-width:900px;margin:0}
.territory-map-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0}
.territory-map-summary>div{background:#f7f8fb;border:1px solid #e9ecf2;border-radius:16px;padding:18px;min-width:0}
.territory-map-summary strong{display:block;color:var(--map-base);font-size:clamp(23px,2.8vw,34px);line-height:1.1;margin-bottom:10px;font-weight:600}
.territory-map-summary span{font-size:14px;line-height:1.5;color:#647084}
.territory-map-controls,.territory-rate-controls{display:flex;gap:8px;flex-wrap:wrap}
.territory-map-controls button,.territory-rate-controls button{appearance:none;background:#f5f7fa;border:1px solid #e2e7ee;border-radius:10px;padding:11px 14px;font:inherit;font-size:14px;color:#4d586b;cursor:pointer;min-height:44px;transition:background .15s,color .15s}
.territory-map-controls button[aria-pressed=true],.territory-rate-controls button[aria-pressed=true]{background:var(--map-base);border-color:var(--map-base);color:#fff}
.territory-map-scope-note{color:#6b7688;font-size:13px;line-height:1.6;margin:14px 0 20px;min-height:42px}
.territory-map-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:20px;align-items:stretch}
.territory-map-figure{margin:0;border-radius:20px;background:linear-gradient(140deg,#f8fafc,#edf2f7);border:1px solid #e8edf3;min-width:0;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.territory-map-figure svg{display:block;width:100%;height:auto;min-width:0}
.territory-map-land{fill:#dfe6ee;stroke:#afbcca;stroke-width:1.4;stroke-linejoin:round}
.territory-map-water{fill:#a2afbf;font-size:14px;letter-spacing:2px;text-anchor:middle}
.territory-map-point{cursor:pointer;--point:var(--map-base);transition:opacity .18s}
.territory-map-point[data-group=expansion]{--point:var(--map-expansion)}
.territory-map-point[data-group=national]{--point:var(--map-national)}
.territory-map-point[data-covered=false]{opacity:.2}
.territory-map-point line{stroke:var(--point);stroke-width:1.4;opacity:.6}
.territory-map-location{fill:var(--point)}
.territory-map-hit{fill:transparent;stroke:none}
.territory-map-halo{fill:none;stroke:var(--point);stroke-width:2;opacity:0;transition:opacity .18s}
.territory-map-point[data-selected=true] .territory-map-halo,.territory-map-point:hover .territory-map-halo,.territory-map-point:focus-visible .territory-map-halo{opacity:.7}
.territory-map-bubble{fill:var(--point);stroke:#fff;stroke-width:3}
.territory-map-number{fill:#fff;font-size:20px;font-weight:700;text-anchor:middle;pointer-events:none}
.territory-map-name{fill:#465269;font-size:15px;font-weight:600;text-anchor:middle;pointer-events:none}
.territory-map-point[data-selected=true] .territory-map-name{fill:var(--map-base);font-weight:700}
.territory-map-figure figcaption{display:flex;flex-wrap:wrap;gap:9px 16px;padding:15px 18px;background:rgba(255,255,255,.74);font-size:12px;color:#57667b;line-height:1.5}
.territory-map-figure figcaption span{display:inline-flex;align-items:center;gap:6px}
.territory-map-figure figcaption i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--map-base)}
.territory-map-figure figcaption i.expansion{background:var(--map-expansion)}
.territory-map-figure figcaption i.national{background:var(--map-national)}
.territory-map-figure figcaption small{flex-basis:100%;font-size:11px;line-height:1.55;color:#718095}
.territory-city-panel{padding:23px;border:1px solid #e3e8f0;border-radius:20px;background:#fcfdff;min-width:0;display:flex;flex-direction:column}
.territory-city-panel .eyebrow{font-size:10px;line-height:1.6;letter-spacing:.09em}
.territory-city-panel h3{font-size:26px;line-height:1.2;letter-spacing:-.025em;margin:8px 0 21px;color:var(--map-base)}
.territory-city-metric>span,.territory-city-value>span{display:block;font-size:10px;font-weight:600;letter-spacing:.07em;line-height:1.6;color:#667489}
.territory-city-metric>strong{display:block;font-size:43px;font-weight:600;line-height:1.15;color:var(--map-base);margin:7px 0}
.territory-city-metric p,.territory-city-value p{font-size:13px;line-height:1.55;color:#738094;margin:6px 0 0}
.territory-city-value{border-top:1px solid #e2e7ef;padding-top:18px;margin-top:19px}
.territory-city-value>strong{display:block;font-size:clamp(18px,1.65vw,23px);line-height:1.35;letter-spacing:-.025em;color:var(--map-base);margin-top:8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.territory-city-value small{display:block;color:#758399;font-size:11px;line-height:1.5;margin-top:8px}
.territory-city-current{font-size:12px;line-height:1.55;margin:18px 0;color:#5f6d81}
.territory-city-source{font-size:13px;color:var(--map-base);font-weight:600;margin-top:auto;text-decoration:none;line-height:1.6}
.territory-city-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0 28px}
.territory-city-choice{display:flex;align-items:center;gap:10px;text-align:left;appearance:none;background:#fff;border:1px solid #e5e9f0;border-radius:12px;padding:12px;font:inherit;color:#647084;cursor:pointer;min-width:0;min-height:66px;transition:background .15s,border-color .15s}
.territory-city-choice[aria-pressed=true]{border-color:#929fba;background:#f1f4fa;color:var(--map-base)}
.territory-city-choice[data-covered=false]{background:#fafbfd;color:#7e8796}
.territory-city-choice .territory-city-number{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:27px;height:27px;border-radius:8px;color:#fff;background:var(--map-base);font-size:11px}
.territory-city-choice[data-group=expansion] .territory-city-number{background:var(--map-expansion)}
.territory-city-choice[data-group=national] .territory-city-number{background:var(--map-national)}
.territory-city-choice>span:last-child{min-width:0}
.territory-city-choice strong{display:block;font-size:13px;line-height:1.4;font-weight:600}
.territory-city-choice>span>span{display:block;font-size:11px;line-height:1.4;margin-top:4px;color:#788499}
.territory-map-scenario{background:#f5f7fb;border:1px solid #e5e9f1;border-radius:20px;padding:24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px}
.territory-map-scenario h3{font-size:24px;line-height:1.3;letter-spacing:-.02em;margin:8px 0 10px;color:var(--map-base)}
.territory-map-scenario>div:first-child>p:not(.eyebrow){color:#6f7d91;font-size:14px;line-height:1.6;margin:0;max-width:670px}
.territory-rate-controls{align-self:start;flex-wrap:nowrap}
.territory-scenario-metrics{display:grid;grid-template-columns:1fr 1.2fr;gap:22px;margin:10px 0;grid-column:1/-1;min-width:0}
.territory-scenario-metrics>div{min-width:0}
.territory-scenario-metrics strong{display:block;color:var(--map-base);font-size:clamp(21px,2.5vw,33px);line-height:1.2;font-weight:600;letter-spacing:-.025em;overflow-wrap:anywhere}
.territory-scenario-metrics span{display:block;font-size:13px;line-height:1.6;color:#647084;margin-top:8px}
.territory-scenario-metrics p{font-size:11px;line-height:1.55;color:#8490a3;margin:6px 0 0}
.territory-scenario-track{grid-column:1/-1;height:12px;border-radius:10px;background:#e2e7f0;overflow:hidden}
.territory-scenario-track i{display:block;height:100%;background:var(--map-expansion);border-radius:10px;transition:width .2s ease}
.territory-scenario-scale{grid-column:1/-1;margin:0;display:flex;justify-content:space-between;gap:15px;color:#6f7d91;font-size:11px;line-height:1.5}
.territory-map-limit{grid-column:1/-1;color:#77859a;font-size:12px;line-height:1.7;margin:8px 0 0}
.territory-map-details{border:1px solid #e5e9f0;border-radius:15px;margin-top:21px;overflow:hidden}
.territory-map-details summary{cursor:pointer;padding:19px 21px;color:var(--map-base);font-size:15px;line-height:1.5;font-weight:600}
.territory-map-table-wrap{overflow-x:auto;padding:0 18px 18px;max-width:100%}
.territory-map-table-wrap table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.6}
.territory-map-table-wrap caption{text-align:left;color:#7e8b9e;font-size:11px;padding:0 0 14px}
.territory-map-table-wrap th,.territory-map-table-wrap td{text-align:left;padding:14px 12px;border-bottom:1px solid #e7ebf1;vertical-align:top}
.territory-map-table-wrap thead th{font-size:11px;color:#68768b;background:#f6f8fb;font-weight:600;min-width:100px}
.territory-map-table-wrap td{color:#66748a;font-variant-numeric:tabular-nums;white-space:nowrap}
.territory-map-table-wrap th a{color:var(--map-base);text-decoration:none;font-weight:600}
.territory-map-method{font-size:12px;color:#78869a;line-height:1.8;margin:21px 0 0}
.territory-map-method strong{color:#506078;font-weight:600}
.territory-map-sources{display:flex;flex-wrap:wrap;gap:10px 20px;border-top:1px solid #e7ecf3;margin-top:20px;padding-top:17px;font-size:12px;line-height:1.6}
.territory-map-sources a{color:var(--map-base);text-decoration:none}
.territory-map-sources>span{flex-basis:100%;color:#8994a5;font-size:11px}
.proposal-territory-map button:focus-visible,.territory-map-point:focus-visible,.territory-map-details summary:focus-visible,.territory-map-sources a:focus-visible,.territory-city-source:focus-visible{outline:3px solid #438caf;outline-offset:4px}
@media(max-width:1100px){.territory-map-layout{grid-template-columns:1fr}.territory-map-figure svg{max-height:510px}.territory-city-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.territory-city-panel .eyebrow,.territory-city-panel h3,.territory-city-current,.territory-city-source{grid-column:1/-1}.territory-city-value{border-top:0;border-left:1px solid #e2e7ef;padding:0 0 0 22px;margin:0}.territory-city-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.proposal-territory-map{padding:18px;border-radius:20px}.territory-map-heading h2{font-size:25px}.territory-map-heading p:not(.eyebrow){font-size:15px}.territory-map-summary{grid-template-columns:1fr;gap:9px;margin:20px 0}.territory-map-summary>div{display:flex;align-items:center;gap:17px;padding:14px}.territory-map-summary strong{font-size:26px;min-width:92px;margin:0}.territory-map-summary span{font-size:12px}.territory-map-controls button{font-size:12px;padding:10px 11px;flex:1 1 43%}.territory-map-layout{gap:12px}.territory-city-panel{display:block;padding:18px}.territory-city-panel h3{font-size:25px}.territory-city-value{border-left:0;border-top:1px solid #e2e7ef;padding:17px 0 0;margin-top:17px}.territory-city-value>strong{font-size:22px}.territory-city-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.territory-city-choice{padding:10px;gap:7px}.territory-city-choice strong{font-size:12px}.territory-city-choice>span>span{font-size:10px}.territory-city-choice .territory-city-number{width:22px;height:22px;font-size:10px}.territory-map-scenario{padding:18px;grid-template-columns:1fr}.territory-map-scenario h3{font-size:22px}.territory-rate-controls{justify-self:start}.territory-scenario-metrics{grid-template-columns:1fr;gap:20px}.territory-map-figure figcaption{padding:12px;font-size:10px;gap:6px 10px}.territory-map-figure figcaption small{font-size:10px}.territory-map-details summary{padding:17px;font-size:14px}.territory-map-method{font-size:11px}.territory-map-sources{font-size:11px}}
@media(prefers-reduced-motion:reduce){.proposal-territory-map *{transition:none!important}}
/* Override the hub's shared icon stroke for cartographic text. */
.proposal-territory-map svg{stroke:none}
.proposal-territory-map svg text{stroke:none}
.proposal-territory-map .territory-map-name{font-size:18px}
@media(max-width:650px){.proposal-territory-map .territory-map-number{font-size:28px}.proposal-territory-map .territory-map-name{font-size:23px}}

/* Complete-city opportunity: continuous scenario and separate CPC/CPM components. */
#mapa-posicionamiento .territory-slider-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-self: start;
  gap: 12px 16px;
  width: clamp(250px, 28vw, 350px);
  max-width: 100%;
  min-width: 0;
}

#mapa-posicionamiento .territory-slider-controls label {
  color: var(--map-base);
  font-size: 13px;
  line-height: 1.5;
}

#mapa-posicionamiento .territory-slider-controls output {
  padding: 6px 11px;
  border: 1px solid #dce5ec;
  border-radius: 10px;
  background: #fff;
  color: var(--map-base);
  font-size: 25px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#mapa-posicionamiento #territory-scenario-slider {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 10px;
  margin: 11px 0 3px;
  border-radius: 99px;
  --territory-slider-fill: 10%;
  background: linear-gradient(to right, #2b7589 var(--territory-slider-fill), #dce5ee var(--territory-slider-fill));
  cursor: pointer;
}

#mapa-posicionamiento #territory-scenario-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  border: 5px solid #2b7589;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px #19233f22;
}

#mapa-posicionamiento #territory-scenario-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 5px solid #2b7589;
  border-radius: 50%;
  background: #fff;
}

#mapa-posicionamiento #territory-scenario-slider:focus-visible {
  outline: 3px solid #438caf;
  outline-offset: 8px;
}

#mapa-posicionamiento .territory-slider-scale {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 8px;
  color: #68798f;
  font-size: 10px;
  line-height: 1.5;
}

#mapa-posicionamiento .territory-scenario-metrics {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: stretch;
  gap: 22px;
  width: 100%;
}

#mapa-posicionamiento .territory-scenario-components,
#mapa-posicionamiento .territory-city-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

#mapa-posicionamiento .territory-scenario-components > div,
#mapa-posicionamiento .territory-city-components > div {
  min-width: 0;
}

#mapa-posicionamiento .territory-scenario-components span,
#mapa-posicionamiento .territory-city-components span {
  display: block;
  margin: 0 0 8px;
  color: #667489;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .06em;
}

#mapa-posicionamiento .territory-scenario-components strong {
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.3;
}

#mapa-posicionamiento .territory-scenario-total {
  grid-column: 1 / -1;
  padding: 25px 28px;
  border-radius: 16px;
  background: var(--map-base);
}

#mapa-posicionamiento .territory-scenario-total > span {
  margin: 0 0 11px;
  color: #cad7e6;
  font-size: 11px;
  letter-spacing: .06em;
}

#mapa-posicionamiento #territory-scenario-value {
  color: #fff;
  font-size: clamp(35px, 4vw, 46px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#mapa-posicionamiento .territory-scenario-total > small {
  display: block;
  margin-top: 12px;
  color: #cad7e6;
  font-size: 12px;
  line-height: 1.6;
}

#mapa-posicionamiento .territory-city-value > strong {
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#mapa-posicionamiento .territory-city-components {
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e7ef;
}

#mapa-posicionamiento .territory-city-components strong {
  display: block;
  color: var(--map-base);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  #mapa-posicionamiento .territory-map-scenario,
  #mapa-posicionamiento .territory-scenario-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  #mapa-posicionamiento .territory-slider-controls {
    width: 100%;
  }
}

@media (max-width: 650px) {
  #mapa-posicionamiento .territory-scenario-metrics {
    gap: 22px;
  }

  #mapa-posicionamiento .territory-scenario-components,
  #mapa-posicionamiento .territory-city-components {
    gap: 16px;
  }

  #mapa-posicionamiento .territory-scenario-components strong {
    font-size: 20px;
  }

  #mapa-posicionamiento .territory-scenario-total {
    padding: 22px 18px;
  }

  #mapa-posicionamiento .territory-city-value > strong {
    font-size: 30px;
  }
}

@media (max-width: 380px) {
  #mapa-posicionamiento .territory-scenario-components strong {
    font-size: 18px;
  }

  #mapa-posicionamiento .territory-scenario-total {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mapa-posicionamiento #territory-scenario-slider {
    transition: none;
  }
}
