/* ==========================================================
   Mapa 3D — capa com vídeo
   Carregado depois de styles.css, page-produto.css e tema-novidades.css
   ========================================================== */

.map-hero { padding: 48px 0 88px; }
.map-hero .container { position: relative; z-index: 1; }

.map-hero-head {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.map-hero-head .crumbs { justify-content: center; }
.map-hero-head .eyebrow { margin-top: 18px; }
.map-hero-head .eyebrow::before { display: none; }
.map-hero h1 {
  font-size: clamp(36px, 5.4vw, 72px);
  margin: 18px auto 0;
}
.map-hero .hero-sub { margin: 22px auto 0; max-width: 640px; }
.map-hero .hero-actions { justify-content: center; margin-top: 30px; }

/* ---------- Janela com o vídeo ---------- */
.map-stage { max-width: 1060px; margin: 52px auto 0; }
.map-frame {
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 10px;
  box-shadow: var(--card-shadow), 0 0 140px -30px var(--brand-glow);
}
.map-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 10px 8px;
}
.map-frame-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.map-frame-bar em {
  flex: 1;
  text-align: center;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-video-toggle {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.map-video-toggle:hover { border-color: var(--brand); color: var(--brand); }
.map-video-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.map-video-toggle .bi { font-size: 16px; line-height: 1; }
.map-video-toggle .bi-play-fill { display: none; }
.map-stage.is-paused .map-video-toggle .bi-play-fill { display: block; }
.map-stage.is-paused .map-video-toggle .bi-pause-fill { display: none; }

.map-video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #dfe8ef;
  aspect-ratio: 1600 / 1170;
}
.map-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-video-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(5, 7, 12, .18);
}
.map-video-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width .25s linear;
}

/* ---------- Etapas sincronizadas com o vídeo ---------- */
.map-steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ms-btn {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s;
}
.ms-btn:hover { border-color: var(--line-strong); }
.ms-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.ms-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border: 2px solid var(--line-strong);
  transition: all .3s;
}
.ms-txt b { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.ms-txt small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.map-steps li.on .ms-btn {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}
.map-steps li.on .ms-n { color: #fff; background: var(--brand); border-color: var(--brand); }
.map-steps li.on .ms-txt small { color: var(--text-2); }

/* ---------- Provas abaixo do vídeo ---------- */
.map-proof {
  max-width: 1060px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.map-proof strong {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.map-proof span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .map-video-progress i { transition: none; }
}

@media (max-width: 860px) {
  .map-steps { grid-template-columns: 1fr; }
  .map-proof { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .map-hero { padding: 32px 0 64px; }
  .map-hero-head { text-align: left; }
  .map-hero-head .crumbs, .map-hero .hero-actions { justify-content: flex-start; }
  .map-hero .hero-sub { margin-left: 0; }
  .map-stage { margin-top: 36px; }
  .map-frame { padding: 6px; border-radius: 18px; }
  .map-frame-bar { padding: 2px 2px 6px 6px; }
  .map-frame-bar em { font-size: 10.5px; }
  .map-video-wrap { border-radius: 12px; }
  .ms-btn { padding: 14px; }
  .map-proof { gap: 16px; }
  .map-proof strong { font-size: 19px; }
}
