.bs-mapa-svg {
  width: 100%;
  max-width: 900px;
  background: #fafafa;
  border-radius: 8px;
  /* 1 dedo na vertical rola a página; pinça e arraste horizontal ficam com o mapa */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bs-mapa-palco {
  fill: #e5e5e5;
  stroke: #999;
  stroke-width: 0.5;
}

.bs-mapa-palco-label {
  font-size: 11px;
  fill: #666;
}

.bs-mapa-obstaculo {
  stroke: #5f5e5a;
  stroke-width: 0.5;
}

.bs-mapa-mesa-tampo {
  fill: #d8d6cd;
  stroke: #9c9a90;
  stroke-width: 0.5;
}

.bs-mapa-rotulo-fileira {
  font-size: 9px;
  fill: #999;
  pointer-events: none;
}

.bs-assento {
  transition: fill 0.15s ease;
  /* contorno discreto: o amarelo e o verde continuam visíveis em cima de imagens de fundo claras */
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.6px;
}

/* Assento escolhido pelo cliente: continua verde, com contorno escuro grosso e um pouco maior */
.bs-assento--selecionado {
  stroke: #14532d;
  stroke-width: 2.5px;
  /* o tamanho (raio + 1,5) é definido em JS: depende do tamanho de cada assento */
}

/* ✓ dentro do assento selecionado (não recebe clique: o clique vai para o assento) */
.bs-assento-check {
  fill: none;
  stroke: #fff;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.bs-mapa-erro {
  color: #A32D2D;
  font-size: 14px;
  padding: 16px;
  text-align: center;
}

.bs-popup-ingressos {
  position: absolute;
  z-index: 10;
  width: 240px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 12px;
  font-size: 13px;
}

.bs-popup-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.bs-popup-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.bs-popup-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.bs-popup-item:hover {
  border-color: #185FA5;
  background: #f0f6fc;
}

.bs-popup-vazio {
  color: #888;
  font-size: 12px;
  text-align: center;
  padding: 8px 0;
}

.bs-popup-cancelar {
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 12px;
}

.bs-mapa-controles {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.bs-mapa-botao-zoom {
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  color: #333;
}

.bs-mapa-botao-zoom:hover {
  background: #f0f0f0;
}

.bs-mapa-botao-reset {
  font-size: 14px;
  border-top: 1px solid #eee;
}

.bs-modal-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(13,17,25,.64);backdrop-filter:blur(5px);animation:bsModalFade .16s ease}
.bs-modal-card{width:min(520px,100%);max-height:min(82vh,680px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 28px 90px rgba(0,0,0,.3);color:#20232b;animation:bsModalUp .2s ease}
.bs-modal-header{display:flex;justify-content:space-between;gap:18px;padding:25px;border-bottom:1px solid #edf0f4}
.bs-modal-kicker{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--brand,#16a34a);margin-bottom:8px;display:inline-block}
.bs-modal-header h3{font-size:23px;margin:0 0 7px;font-weight:800}.bs-modal-header p{font-size:13px;color:#707684;margin:0}
.bs-modal-close{width:34px;height:34px;border:0;border-radius:50%;background:#f3f4f6;color:#555;font-size:24px;cursor:pointer}
.bs-modal-options{padding:17px 20px;display:flex;flex-direction:column;gap:10px}
.bs-modal-ticket{display:flex;align-items:center;gap:12px;width:100%;padding:15px;border:1px solid #e7eaf0;border-radius:13px;background:#fff;text-align:left;cursor:pointer;transition:.16s}
.bs-modal-ticket:hover{border-color:var(--brand,#16a34a);background:var(--brand-soft,#f0fdf4);box-shadow:0 5px 18px color-mix(in srgb,var(--brand,#16a34a) 12%,transparent);transform:translateY(-1px)}
.bs-modal-ticket-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.bs-modal-ticket-name{font-weight:750;font-size:14px;color:#242832}.bs-modal-ticket-info small{font-size:12px;color:#8a909c}
.bs-modal-ticket strong{font-size:15px;white-space:nowrap;color:#222630}.bs-modal-ticket-action{font-size:11px;font-weight:750;color:var(--brand,#16a34a);background:var(--brand-soft,#dcfce7);padding:7px 10px;border-radius:8px;white-space:nowrap}
.bs-modal-empty{padding:20px;text-align:center;color:#737987;font-size:13px;background:#f7f8fa;border-radius:12px}
.bs-modal-footer{padding:0 20px 20px;display:flex;justify-content:flex-end}.bs-modal-cancel{border:0;background:transparent;padding:10px 16px;color:#747986;font-weight:650;cursor:pointer;border-radius:9px}
@keyframes bsModalFade{from{opacity:0}to{opacity:1}}@keyframes bsModalUp{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:520px){.bs-modal-overlay{padding:12px;align-items:flex-end}.bs-modal-card{border-radius:18px 18px 14px 14px;max-height:88vh}.bs-modal-header{padding:21px 18px 17px}.bs-modal-header h3{font-size:20px}.bs-modal-options{padding:14px}.bs-modal-ticket{padding:13px 11px;gap:8px}.bs-modal-ticket-action{padding:6px 8px}.bs-modal-footer{padding:0 14px 14px}}


/* ---- Tela cheia (botão ⛶) ------------------------------------------------ */
.bs-mapa-botao-tela{border-top:1px solid #eee;font-size:15px}
.bs-mapa--tela-cheia{position:fixed!important;inset:0;z-index:9000;background:#fafafa;display:flex;flex-direction:column;
  padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0)}
.bs-mapa--tela-cheia .bs-mapa-svg{flex:1;width:100%;height:100%;max-width:none;border-radius:0;touch-action:none}
.bs-mapa--tela-cheia .bs-mapa-controles{top:calc(12px + env(safe-area-inset-top,0px));left:calc(12px + env(safe-area-inset-left,0px))}
html.bs-mapa-aberto,html.bs-mapa-aberto body{overflow:hidden;overscroll-behavior:none}
.bs-mapa-barra{display:none}
.bs-mapa--tela-cheia .bs-mapa-barra{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;
  padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -6px 20px rgba(0,0,0,.06)}
.bs-mapa-barra-info{font-weight:700;font-size:14px;color:#20232b}
.bs-mapa-barra-ok{border:0;border-radius:10px;padding:12px 22px;background:var(--brand,#16a34a);color:#fff;font:inherit;font-weight:800;cursor:pointer}

/* ---- Celular: botões maiores (alvo de toque) ------------------------------ */
@media (pointer:coarse){
  .bs-mapa-botao-zoom{width:40px;height:40px;font-size:19px}
}
