/* Estilos atualizados para layout corrigido - mantendo todas as funcionalidades */

/* Cabeçalho principal com botão posicionado corretamente */
.section-header-fixed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.main-title-green {
  color: #059669 !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header-fixed .primary-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header-fixed .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Nome do ativo clicável */
.ativo-nome.clickable {
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.2s;
  font-size: 1.5rem;
  font-weight: 700;
}

.ativo-nome.clickable:hover {
  opacity: 0.8;
}

/* Cores dos biomas */
.ativo-nome.amazonia {
  color: #065f46;
}

.ativo-nome.cerrado {
  color: #ea580c;
}

.ativo-nome.pantanal {
  color: #1e3a8a;
}

/* Layout do cabeçalho do ativo */
.ativo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.ativo-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.ativo-description {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-size: 0.95rem;
  color: #374151;
  border: 2px solid #d1d5db;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ativo-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.ativo-price .price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
}

.ativo-price .variation {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.ativo-price .variation.positive {
  background-color: #dcfce7;
  color: #166534;
}

.ativo-price .variation.negative {
  background-color: #fecaca;
  color: #dc2626;
}

.ativo-price .volume {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Container de ofertas */
.offers-container {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.offers-section {
  flex: 1;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buy-section {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
}

.sell-section {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  border: 2px solid #ef4444;
}

.section-title {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.buy-title {
  color: #1d4ed8;
}

.sell-title {
  color: #dc2626;
}

/* Cabeçalho das ofertas */
.offers-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1.5fr;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Linhas das ofertas */
.offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #10b981;
}

.offer-row.negotiating {
  background-color: rgba(254, 243, 199, 0.9);
  border: 2px solid #f59e0b;
}

.offer-row.negotiated {
  background-color: rgba(229, 231, 235, 0.9);
  border: 2px solid #9ca3af;
  opacity: 0.7;
}

.offer-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.offer-data {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0.5rem;
  flex: 1;
  align-items: center;
}

.offer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Botões das ações */
.details-btn {
  background: #6b7280;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.details-btn:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.accept-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.accept-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.accept-btn.negotiating {
  background: #f59e0b;
  cursor: not-allowed;
  opacity: 0.8;
}

.accept-btn.negotiated {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Container dos ativos */
.ordens-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ativo-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.ativo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Histórico modal */
.history-offers-container {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.history-offers-section {
  flex: 1;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.history-buy-section {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
}

.history-sell-section {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  border: 2px solid #ef4444;
}

.history-section-title {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.history-buy-title {
  color: #1d4ed8;
}

.history-sell-title {
  color: #dc2626;
}

.history-offers-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1.5fr;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.history-offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #10b981;
}

.history-offer-row.em_negociacao {
  background-color: rgba(254, 243, 199, 0.9);
  border: 2px solid #f59e0b;
}

.history-offer-row.negociada {
  background-color: rgba(229, 231, 235, 0.9);
  border: 2px solid #9ca3af;
  opacity: 0.7;
}

.history-offer-data {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0.5rem;
  flex: 1;
  align-items: center;
}

.history-offer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.history-details-btn {
  background: #6b7280;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-accept-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.history-accept-btn.em_negociacao {
  background: #f59e0b;
  cursor: not-allowed;
  opacity: 0.8;
}

.history-accept-btn.negociada {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsividade */
@media (max-width: 768px) {
  .section-header-fixed {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .main-title-green {
    font-size: 2rem;
  }
  
  .ativo-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .offers-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .history-offers-container {
    flex-direction: column;
  }
  
  .offers-header,
  .history-offers-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .offer-data,
  .history-offer-data {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .offer-actions,
  .history-offer-actions {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════
   LegadoVivo · Book/List UI (home broker style)
   Prefixos: .lg- (list view), .bv- (book view)
   ═══════════════════════════════════════════════════════════ */

:root {
  --lg-bg:#f5f6f8;
  --lg-surface:#fff;
  --lg-text:#0f1419;
  --lg-muted:#6b7785;
  --lg-border:#e7eaef;
  --lg-soft:#eef5f0;
  --lg-accent:#1e7f4a;
  --lg-up:#16a34a;
  --lg-down:#dc2626;
  --lg-sell:#1e5cad;
  --lg-buy:#c81e1e;
}

.lg-mono,
.lg-t, .lg-tk, .lg-q, .lg-p, .lg-v,
.bv-t, .bv-price, .bv-p, .bv-q,
.bv-stats .val {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

/* ── Filtros ── */
.lg-filters {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.lg-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lg-filter-row:last-child { margin-bottom: 0; }
.lg-filter-label {
  font-size: 11px;
  color: var(--lg-muted);
  width: 48px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
}
.lg-chip {
  padding: 6px 12px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  color: var(--lg-text);
  user-select: none;
  transition: border-color .15s, background .15s;
}
.lg-chip:hover { border-color: #cbd3dc; }
.lg-chip.active {
  background: var(--lg-accent);
  color: #fff;
  border-color: var(--lg-accent);
}
.lg-search {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--lg-border);
  border-radius: 8px;
  font-size: 13px;
  min-width: 200px;
  font-family: inherit;
}
.lg-search:focus { outline: none; border-color: var(--lg-accent); }

/* ── Lista de cotações ── */
.lg-quotes {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  overflow: hidden;
}
.lg-qh {
  display: grid;
  grid-template-columns: 1fr 120px 140px 100px 24px;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--lg-border);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--lg-muted);
  letter-spacing: .5px;
  font-weight: 600;
}
.lg-qh .r { text-align: right; }
.lg-row {
  display: grid;
  grid-template-columns: 1fr 120px 140px 100px 24px;
  gap: 8px;
  padding: 13px 18px;
  cursor: pointer;
  align-items: center;
  border-top: 1px solid var(--lg-border);
  transition: background .15s;
}
.lg-row:first-child { border-top: none; }
.lg-row:hover { background: #f7faf7; }
.lg-t {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lg-tk {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #c3cbd6;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 10px;
  font-weight: 700;
  color: #8893a2;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
.lg-info:hover {
  border-color: var(--lg-accent);
  color: var(--lg-accent);
  background: var(--lg-soft);
}
.lg-q {
  text-align: right;
  font-weight: 500;
  font-size: 13px;
}
.lg-q small {
  color: var(--lg-muted);
  font-weight: 400;
  margin-left: 2px;
}
.lg-p {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
}
.lg-v {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
}
.lg-v.up   { color: var(--lg-up); }
.lg-v.down { color: var(--lg-down); }
.lg-chev {
  color: #b5bcc6;
  text-align: right;
  font-size: 16px;
}
.lg-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--lg-muted);
  font-size: 13px;
}

/* ── Book view: hero ── */
.bv-back {
  background: none;
  border: none;
  color: var(--lg-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 12px;
  font-weight: 500;
}
.bv-back:hover { color: var(--lg-accent); }

.bv-hero {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.bv-t {
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bv-m {
  font-size: 13px;
  color: var(--lg-muted);
  margin: 4px 0 16px;
}
.bv-priceline {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.bv-price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.6px;
  line-height: 1;
}
.bv-price small {
  font-size: 14px;
  color: var(--lg-muted);
  font-weight: 400;
  margin-left: 2px;
}
.bv-var {
  font-size: 14px;
  font-weight: 600;
}
.bv-var.up   { color: var(--lg-up); }
.bv-var.down { color: var(--lg-down); }
.bv-stats {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--lg-border);
  flex-wrap: wrap;
}
.bv-stats > div .k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--lg-muted);
  font-weight: 700;
}
.bv-stats > div .val {
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}
.bv-stats .val.sell { color: var(--lg-sell); }
.bv-stats .val.buy  { color: var(--lg-buy); }
.bv-stats .muted    { color: var(--lg-muted); font-weight: 500; }

/* ── Book view: livro ── */
.bv-book {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  overflow: hidden;
}
.bv-head {
  padding: 12px 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--lg-border);
}
.bv-head .sub {
  color: var(--lg-muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}
.bv-sell-head {
  color: var(--lg-sell);
  background: rgba(30, 92, 173, .05);
}
.bv-buy-head {
  color: var(--lg-buy);
  background: rgba(200, 30, 30, .05);
  border-top: 1px solid var(--lg-border);
}
.bv-bh {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
  padding: 8px 18px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--lg-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--lg-border);
}
.bv-bh .r { text-align: right; }
.bv-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
  padding: 11px 18px;
  align-items: center;
  border-top: 1px solid #f0f2f5;
  cursor: pointer;
  transition: background .15s;
}
.bv-row:first-of-type { border-top: none; }
.bv-sell-row:hover { background: rgba(30, 92, 173, .04); }
.bv-buy-row:hover  { background: rgba(200, 30, 30, .04); }
.bv-p {
  font-weight: 700;
  font-size: 13px;
}
.bv-sell-row .bv-p { color: var(--lg-sell); }
.bv-buy-row  .bv-p { color: var(--lg-buy); }
.bv-q {
  text-align: right;
  font-size: 13px;
}
.bv-best {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  background: #f5f6f8;
  color: var(--lg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: -apple-system, sans-serif;
}

/* ── Book view: meeting point ── */
.bv-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 18px;
  background: #fafbfc;
  border-top: 1px solid var(--lg-border);
  border-bottom: 1px solid var(--lg-border);
  font-size: 12px;
  color: var(--lg-muted);
  font-weight: 600;
}
.bv-mid strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  color: var(--lg-text);
  font-weight: 700;
  margin-left: 6px;
}
.bv-mid .muted { color: var(--lg-muted); font-weight: 500; }

.bv-empty {
  padding: 24px 18px;
  text-align: center;
  color: var(--lg-muted);
  font-size: 13px;
}

/* ── Book view: botões ── */
.bv-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.bv-btn {
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  letter-spacing: .3px;
  color: #fff;
  transition: background .15s;
}
.bv-btn:disabled { opacity: .5; cursor: not-allowed; }
.bv-btn-buy  { background: var(--lg-sell); }
.bv-btn-buy:hover:not(:disabled)  { background: #174a8d; }
.bv-btn-sell { background: var(--lg-buy); }
.bv-btn-sell:hover:not(:disabled) { background: #a51919; }

/* ── Responsivo ── */
@media (max-width: 640px) {
  .lg-qh, .lg-row {
    grid-template-columns: 1fr 90px 90px 24px;
  }
  .lg-qh > :nth-child(4),
  .lg-row > :nth-child(4) { display: none; }
  .bv-price { font-size: 26px; }
  .bv-stats { gap: 16px; }
}


/* ═══════════════════════════════════════════════════════════
   LegadoVivo · Mapa das áreas (aba Monitoramento)
   Prefixo: .mp-
   ═══════════════════════════════════════════════════════════ */

.mp-section .section-header-fixed { margin-bottom: 1rem; }
.mp-section .lg-filter-label { width: 68px; }
.mp-sub {
  color: var(--lg-muted);
  font-size: 14px;
  margin: 4px 0 0;
}
.mp-camada b {
  font-weight: 600;
  margin-left: 2px;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}
.mp-camada:not(.active) { color: var(--lg-muted); }
.mp-camada.active .mp-dot { box-shadow: 0 0 0 1.5px #fff; }

.mp-map {
  position: relative;
  isolation: isolate;               /* mantém os controles do Leaflet abaixo dos modais */
  height: 68vh;
  min-height: 420px;
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef3;
}
.mp-erro {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--lg-muted);
}

.mp-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  flex-shrink: 0;
}
.mp-dot-anel {
  background: #fff;
  border: 2.5px solid #1f2937;
  width: 11px;
  height: 11px;
}

.mp-traco {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 2px dashed #0f766e;
  margin-right: 6px;
}

.mp-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--lg-text);
}
.mp-leg-grupo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.mp-leg-grupo > span { display: inline-flex; align-items: center; }
.mp-leg-t {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
  color: var(--lg-muted);
}
.mp-fonte {
  margin-top: 10px;
  font-size: 11px;
  color: var(--lg-muted);
  line-height: 1.5;
}

/* Popups */
.mp-pop { font-size: 12.5px; line-height: 1.45; min-width: 220px; }
.mp-pop-t {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  color: var(--lg-text);
}
.mp-pop-s { color: var(--lg-muted); margin: 2px 0 8px; }
.mp-pop dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  margin: 0;
}
.mp-pop dt { color: var(--lg-muted); }
.mp-pop dd { margin: 0; word-break: break-word; }
.mp-pop-nota {
  margin-top: 8px;
  padding: 6px 8px;
  background: var(--lg-soft);
  border-radius: 6px;
  color: #33503f;
}
.mp-pop-alerta { background: #fff6e5; color: #7a4b00; }
.mp-pop-acoes {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.mp-pop-acoes button {
  background: var(--lg-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mp-pop-acoes button:hover { background: #17663b; }
.mp-pop-acoes a { color: var(--lg-sell); font-weight: 600; text-decoration: none; }
.mp-pop-acoes a:hover { text-decoration: underline; }

.details-btn.mp-ver-btn {
  background: #fff;
  color: var(--lg-accent);
  border: 1px solid var(--lg-accent);
}
.details-btn.mp-ver-btn:hover { background: var(--lg-soft); }

@media (max-width: 640px) {
  .mp-map { height: 60vh; min-height: 360px; border-radius: 8px; }
  .mp-section .main-title-green { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════════════════
   Topo no tom do portal Consciência Eco
   (azul-noite, Cinzel espaçada, dourado nos realces)
   ═══════════════════════════════════════════════════════════ */

.header-damnum {
  padding: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(160, 200, 255, 0.14);
  background:
    radial-gradient(1.2px 1.2px at 7% 28%, rgba(255, 255, 255, .6) 50%, transparent 52%),
    radial-gradient(1px 1px at 18% 72%, rgba(207, 224, 255, .5) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 33% 18%, rgba(255, 233, 208, .55) 50%, transparent 52%),
    radial-gradient(1px 1px at 47% 80%, rgba(255, 255, 255, .4) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 61% 34%, rgba(207, 224, 255, .55) 50%, transparent 52%),
    radial-gradient(1px 1px at 74% 66%, rgba(255, 255, 255, .45) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 86% 22%, rgba(255, 246, 230, .6) 50%, transparent 52%),
    radial-gradient(1px 1px at 94% 74%, rgba(207, 224, 255, .45) 50%, transparent 52%),
    radial-gradient(120% 180% at 50% 0%, #0a2140 0%, #040d1c 58%, #01040a 100%);
}
.header-content { padding: 22px 24px; gap: 18px 32px; }

.portal-link {
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(226, 236, 248, .58);
  margin-bottom: 6px;
  transition: color .25s;
}
.portal-link::before { content: "←"; letter-spacing: 0; margin-right: .7em; }
.portal-link:hover { color: #f0d27a; }

.brand-name {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #9cc8ff;
  text-shadow: none;
  line-height: 1.2;
}
.brand-name span { color: #8fd6a6; }
.brand-slogan {
  font-style: normal;
  font-size: .84rem;
  letter-spacing: .03em;
  color: rgba(226, 236, 248, .62);
  margin-top: 4px;
}

.nav-menu { gap: 8px 30px; }
.nav-btn {
  font-family: "Cinzel", Georgia, serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  color: rgba(226, 236, 248, .66);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 6px 0;
  transition: color .25s, border-color .25s;
}
.nav-btn:hover { background: none; transform: none; color: #f0d27a; }
.nav-btn.active {
  background: none;
  box-shadow: none;
  color: #f0d27a;
  border-bottom-color: rgba(240, 210, 122, .6);
}
.nav-btn:focus-visible { outline: 1px solid rgba(240, 210, 122, .7); outline-offset: 6px; }

/* Carrossel: funde com o cabeçalho escuro em cima e com a página embaixo. */
.carousel-container { height: 340px; margin-bottom: 1.25rem; background: #040d1c; }
.carousel-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 4, 10, .72) 0%, rgba(1, 4, 10, 0) 34%, rgba(1, 4, 10, 0) 72%, rgba(4, 13, 28, .4) 100%);
}
.carousel-indicators { z-index: 2; }
.indicator { width: 9px; height: 9px; border-width: 1px; }
.indicator.active { background: #f0d27a; border-color: #f0d27a; transform: none; }

/* Títulos e botão das seções */
.section-header-fixed { border-bottom: 1px solid #dcd8cc; padding: 1.1rem 0; margin-bottom: 1.5rem; }
.main-title-green {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: .03em;
  color: #2c5530 !important;
  text-shadow: none;
}
.section-header-fixed .primary-btn {
  background: #2c5530;
  box-shadow: none;
  border-radius: 6px;
  font-size: .95rem;
  letter-spacing: .02em;
}
.section-header-fixed .primary-btn:hover { background: #14301a; transform: none; box-shadow: none; }

.footer { background: #040d1c; color: rgba(226, 236, 248, .66); font-family: "Cinzel", Georgia, serif; letter-spacing: .12em; padding: 1.6rem; }
.footer p { font-size: .72rem; text-transform: uppercase; }
.footer a { color: #9cc8ff; text-decoration: none; }
.footer a:hover { color: #f0d27a; }

@media (max-width: 768px) {
  .header-content { padding: 18px 16px; }
  .brand-info { align-items: center; }
  .brand-name { font-size: 1.4rem; letter-spacing: .22em; margin-right: -.22em; }
  .nav-menu { justify-content: center; gap: 4px 20px; }
  .nav-btn { font-size: 11px; letter-spacing: .22em; }
  .carousel-container { height: 240px; }
  .main-title-green { font-size: 1.6rem; }
}
