.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.cm-map {
  --cm-ink: #173f2e;
  --cm-muted: #65776d;
  --cm-orange: #e96f33;
  --cm-paper: #f7f7f1;
  --cm-line: #dce3dc;
  max-width: 1500px;
  margin: 0 auto;
  padding: 128px 24px 72px;
  color: var(--cm-ink);
  font-family: 'Poppins', system-ui, sans-serif;
}

.cm-map *, .cm-map *::before, .cm-map *::after { box-sizing: border-box; }
.cm-map button, .cm-map a { font: inherit; }
.cm-lead { max-width: 640px; margin: 0 0 28px; color: var(--cm-muted); font-size: 16px; line-height: 1.7; }

.cm-shell { overflow: hidden; background: #fff; border: 1px solid #d9e1da; border-radius: 24px; box-shadow: 0 20px 55px rgba(29,57,43,.10); }

/* ══════════ CORPO: TEXTO (esquerda) + MAPA (direita) ══════════ */
.cm-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; padding: 34px; align-items: start; }

/* Texto simples */
.cm-text-col h2 { margin: 0 0 6px; font: 600 24px/1.2 'Playfair Display', Georgia, serif; color: var(--cm-ink); }
.cm-text-col h3 { margin: 26px 0 8px; font: 600 17px/1.2 'Playfair Display', Georgia, serif; color: var(--cm-ink); }
.cm-text-col h3:first-of-type { margin-top: 28px; }
.cm-plain { color: var(--cm-muted); font-size: 14.5px; line-height: 1.75; margin: 10px 0; }
.cm-plain:first-child { margin-top: 0; }
.cm-hl { color: #16A34A; font-weight: 700; }

.cm-list { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 5px; }
.cm-list li { color: var(--cm-muted); font-size: 14.5px; line-height: 1.6; }

.cm-note { margin: 10px 0 0; padding: 11px 13px; background: var(--cm-paper); border: 1px dashed #d8ddd3; border-radius: 10px; color: var(--cm-muted); font-size: 12.5px; line-height: 1.55; }

.cm-mini { margin-top: 22px; border: 1px solid var(--cm-line); border-radius: 12px; overflow: hidden; }
.cm-mini-trigger { width: 100%; min-height: 50px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--cm-paper); color: var(--cm-ink); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.cm-mini-caret { width: 16px; height: 16px; stroke: var(--cm-muted); stroke-width: 2.4; fill: none; transition: transform .25s ease; flex: 0 0 auto; }
.cm-mini-trigger.is-open .cm-mini-caret { transform: rotate(180deg); stroke: var(--cm-orange); }
.cm-mini-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 16px 16px; }
.cm-mini-panel[hidden] { display: none; }

/* Mapa */
.cm-stage { position: relative; height: min(42vh, 380px); min-height: 280px; overflow: hidden; background: #dfe4df; border-radius: 16px; }
.cm-canvas, .cm-fallback { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cm-canvas:empty { pointer-events: none; }

.cm-config-notice { position: absolute; z-index: 6; left: 50%; bottom: 14px; width: min(460px, calc(100% - 28px)); padding: 13px 16px; transform: translateX(-50%); border: 1px solid rgba(219,228,220,.96); background: rgba(255,255,255,.97); box-shadow: 0 16px 42px rgba(20,42,31,.22); backdrop-filter: blur(12px); border-left: 5px solid #d7aa29; border-radius: 12px; }
.cm-config-notice[hidden] { display: none; }
.cm-config-notice > span { display: block; margin-bottom: 4px; color: #9b7420; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.cm-config-notice strong { font: 600 16px/1.2 'Playfair Display', Georgia, serif; }
.cm-config-notice p { margin: 5px 0 0; color: var(--cm-muted); font-size: 10px; line-height: 1.5; }

.cm-map-marker { position: absolute; z-index: 20; width: 142px; transform: translate(-50%, calc(-100% - 22px)); display: grid; justify-items: center; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(12,31,21,.34)); }
.cm-marker-title { position: relative; z-index: 2; margin-bottom: -1px; padding: 5px 10px; color: #fff; background: var(--cm-orange); border: 2px solid #fff; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .11em; white-space: nowrap; }
.cm-marker-logo { width: 138px; height: 58px; display: block; overflow: hidden; background: #ff9300; border: 3px solid var(--cm-orange); border-radius: 12px; }
.cm-marker-logo img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(2.35); }
.cm-marker-arrow { width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 22px solid var(--cm-orange); filter: drop-shadow(0 2px 0 #fff); }

/* Portões — 3 botões simples abaixo do mapa */
.cm-gates-label { margin: 16px 0 8px; color: var(--cm-muted); font-size: 12px; }
.cm-gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cm-gate { width: 100%; min-height: 54px; padding: 8px 6px; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 4px; align-items: center; color: var(--cm-ink); background: var(--cm-paper); border: 1px solid #dde5de; border-radius: 11px; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.cm-gate:hover { background: #fff; border-color: #a9b9ac; }
.cm-gate:focus-visible { outline: 3px solid rgba(233,111,51,.24); outline-offset: 1px; }
.cm-gate.is-active { background: #fff; border-color: #9cac9f; box-shadow: 0 7px 18px rgba(31,61,46,.12); }
.cm-gate-3.is-active { border-bottom: 4px solid #f4c400; }
.cm-gate-10.is-active { border-bottom: 4px solid #171a18; }
.cm-gate-13.is-active { border-bottom: 4px solid #e33b2f; }
.cm-gate-number { width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 900; }
.cm-gate-3 .cm-gate-number { border-color: #f4c400; }
.cm-gate-10 .cm-gate-number { color: #fff; background: #171a18; border-color: #171a18; }
.cm-gate-13 .cm-gate-number { border-color: #e33b2f; }
.cm-gate-copy b { font-size: 11px; }
.cm-route-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 12px; padding: 0 14px; background: var(--cm-ink); color: #fff; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; }
.cm-route-btn[hidden] { display: none; }

@media (max-width: 980px) {
  .cm-body { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 800px) {
  .cm-map { padding: 96px 14px 48px; }
  .cm-shell { border-radius: 17px; }
  .cm-body { padding: 18px; }
  .cm-stage { height: min(38vh, 300px); min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-map * { transition: none !important; animation: none !important; }
}
