/* ─────────────────────────────────────────────
   PREMIUM v5 - MAP, EXIT-INTENT & CURRENCY
───────────────────────────────────────────── */

/* 1. MAPA INTERATIVO */
.pm-map-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.pm-map-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pm-map-sub {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.pm-map-container {
  width: 100%;
  max-width: 1200px;
  height: 500px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

/* Custom Leaflet Dark Theme Overrides */
.leaflet-container {
  background: var(--bg-base) !important;
  font-family: inherit !important;
}
.leaflet-popup-content-wrapper {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 8px !important;
}
.leaflet-popup-tip {
  background: var(--bg-surface) !important;
  border-top: 1px solid var(--gold) !important;
  border-left: 1px solid var(--gold) !important;
}
.leaflet-popup-content h3 { margin: 0 0 5px; color: var(--gold); font-size: 1.1rem; }
.leaflet-popup-content p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }

/* 2. EXIT INTENT MODAL */
.pm-exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter removed for 60fps performance */
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, visibility;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pm-exit-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pm-exit-modal {
  background: var(--bg-base);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.pm-exit-overlay.active .pm-exit-modal {
  transform: translateY(0) scale(1);
}

.pm-exit-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.pm-exit-close:hover { color: var(--text-primary); }

.pm-exit-modal h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pm-exit-modal p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.pm-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366; /* WhatsApp Green */
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pm-exit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* 3. CURRENCY TOGGLE */
.pm-currency-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 4px;
}

.pm-curr-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pm-curr-btn.active {
  background: var(--gold);
  color: #0d1e30;
}
