.cm-map {
  --cm-ink: #173f2e;
  --cm-muted: #65776d;
  --cm-orange: #e96f33;
  --cm-paper: #f7f7f1;
  --cm-line: #dce3dc;
  max-width: 1500px;
  margin: 0 auto;
  padding: 52px 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-intro { padding: 0 0 32px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: end; }
.cm-eyebrow { margin: 0 0 14px; color: var(--cm-orange); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.cm-intro h1 { margin: 0; max-width: 760px; font: 600 clamp(38px, 4.4vw, 66px)/1 'Playfair Display', Georgia, serif; letter-spacing: -.04em; }
.cm-intro > p { max-width: 550px; margin: 0; 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); }
.cm-toolbar { min-height: 60px; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--cm-line); }
.cm-toolbar > div:first-child { display: grid; gap: 3px; }
.cm-toolbar strong { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cm-toolbar span { color: var(--cm-muted); font-size: 10px; }
.cm-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: #7a6d38 !important; background: #f8f1d9; font-size: 9px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cm-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d3a724; }
.cm-status.is-ready { color: #2f6b42 !important; background: #e8f3e8; }
.cm-status.is-ready::before { background: #4c9a5d; }

/* ══════════ 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: 0; }
.cm-hl { color: #16A34A; font-weight: 700; }

/* 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-note { margin: 11px 0 0; color: #53665b; font-size: 12px; line-height: 1.5; }
.cm-external-route { color: var(--cm-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

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

@media (max-width: 800px) {
  .cm-map { padding: 32px 14px 48px; }
  .cm-intro { grid-template-columns: 1fr; gap: 18px; }
  .cm-intro h1 { font-size: clamp(37px, 11vw, 52px); }
  .cm-intro > p { font-size: 14px; line-height: 1.6; }
  .cm-shell { border-radius: 17px; }
  .cm-toolbar { padding: 10px 12px; }
  .cm-toolbar > div:first-child span { display: none; }
  .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; }
}
