/*
 * FibraNet Landing Page - Premium Design System
 * Performance-focused, conversion-oriented, mobile-first
 */

/* ===================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   =================================== */
:root {
  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  /* Font Sizes - Responsive Scale */
  --fs-hero-title: clamp(2.5rem, 8vw, 5rem);
  --fs-hero-subtitle: clamp(1.125rem, 2vw, 1.5rem);
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.75rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h4: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-body: clamp(1rem, 1.5vw, 1.125rem);
  --fs-small: clamp(0.875rem, 1.2vw, 1rem);
  
  /* Color Palette - Sophisticated & Modern */
  --color-primary: #DC2626;
  --color-primary-dark: #B91C1C;
  --color-primary-light: #FEE2E2;
  
  --color-neutral-50: #FAFAFA;
  --color-neutral-100: #F5F5F5;
  --color-neutral-200: #E5E5E5;
  --color-neutral-300: #D4D4D4;
  --color-neutral-400: #A3A3A3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;
  
  --color-white: #FFFFFF;
  --color-black: #000000;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-neutral-900) 0%, var(--color-neutral-800) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  --gradient-subtle: linear-gradient(180deg, var(--color-neutral-50) 0%, var(--color-white) 100%);
  
  /* Spacing System */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-base: 200ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ===================================

/* ===================================
   COMBOS SECTION - Cards de Campanha
   =================================== */
.combos-section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: transparent;
}

.combos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.combo-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  color: inherit;
  background: var(--color-neutral-50);
  will-change: transform;
}

.combo-card:focus-visible {
  outline: 3px solid rgba(220,38,38,0.18);
  outline-offset: 4px;
}

.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.combo-card__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--color-neutral-100);
  display: block;
}

.combo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.combo-card__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.85);
  color: var(--color-neutral-900);
  padding: 0.25rem 0.6rem;
  font-size: 0.875rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 6;
}

.combo-card__cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  color: var(--color-neutral-900);
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Small button variant consistent with site tokens */
.btn-custom.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: calc(var(--radius-md) * 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* When using site button inside combo card, keep it compact and glass-like */
.combo-card__cta.btn-custom {
  background: rgba(255,255,255,0.88);
  color: var(--color-neutral-900);
  padding: 0.35rem 0.6rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 6;
}

/* garantir contraste e visibilidade do botão primário dentro do card */
.combo-card__cta.btn-custom.btn-primary {
  background: linear-gradient(90deg, rgba(220,38,38,0.95), rgba(220,38,38,0.9));
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(220,38,38,0.18);
  z-index: 8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ícone menor para o contexto do card */
.combo-card__cta.btn-custom i {
  font-size: 1rem;
  line-height: 1;
}

/* Ajuste específico para o card Kids (folder3) para melhorar legibilidade (menos crop) */
.combo-card.combo-kids .combo-card__media img {
  object-position: center 28%; /* desloca o corte para cima, mostrando mais conteúdo inferior */
}

/* Small screens: single column */
@media (max-width: 991px) {
  .combos-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet / small desktop: maintain 2 columns but allow a single column if needed */
@media (min-width: 992px) and (max-width: 1199px) {
  .combos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Accessibility: ensure links have visible focus inside */
.combo-card:focus .combo-card__cta {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Ensure images don't cause layout shift if aspect-ratio not supported */
.combo-card__media img[width][height] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================
  TYPOGRAPHY FOUNDATION
  =================================== */
body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-neutral-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-neutral-900);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* ===================================
   HERO SECTION - First Impression
   =================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-primary);
}

/* Video Background - Desktop Only */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

/* Mobile: Hide video, show optimized image */
@media (max-width: 991px) {
  .hero-video {
    display: none;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/media/fibra/hero-mobile.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(220, 38, 38, 0.15) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
}

.hero-logo {
  width: clamp(120px, 15vw, 200px);
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-size: var(--fs-hero-title);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: var(--fs-hero-subtitle);
  color: var(--color-neutral-200);
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ===================================
   BUTTON SYSTEM
   =================================== */
.btn-custom {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 1rem 2rem;
  font-size: var(--fs-body);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--color-white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: var(--color-white);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-neutral-900);
}

/* ===================================
   PRICING CARDS - Premium Design
   =================================== */
.pricing-section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: var(--gradient-subtle);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* Featured Plan Highlight */
.pricing-card.featured {
  background: var(--gradient-primary);
  border: 3px solid var(--color-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.ki-outline{
  font-size: 2rem;
  color: var(--bs-border-color);
}
/* Featured Text Colors */
.pricing-card.featured .pricing-name,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-currency,
.pricing-card.featured .pricing-amount,
.pricing-card.featured .pricing-period,
.pricing-card.featured .pricing-feature,
.pricing-card.featured .pricing-feature span {
  color: var(--color-white);
}

.pricing-card.featured .pricing-ideal-for,
.pricing-card.featured .pricing-note {
  color: rgba(255, 255, 255, 0.75);
}

/* Featured Combo Selector */
.pricing-card.featured .combo-option {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pricing-card.featured .combo-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card.featured .combo-option.active {
  background: rgba(220, 38, 38, 0.18);
  border-color: var(--color-primary);
}

.pricing-card.featured .combo-info strong,
.pricing-card.featured .combo-info span,
.pricing-card.featured .combo-price {
  color: var(--color-white);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.pricing-icon {
  margin-bottom: var(--spacing-xs);
}

.pricing-name {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-neutral-900);
}

.pricing-ideal-for {
  font-size: var(--fs-small);
  color: var(--color-neutral-500);
  margin-bottom: var(--spacing-md);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: var(--spacing-lg);
}

.pricing-currency {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-neutral-900);
}

.pricing-amount {
  font-size: var(--fs-hero-title);
  font-weight: 800;
  line-height: 1;
  color: var(--color-neutral-900);
}

.pricing-period {
  font-size: var(--fs-small);
  color: var(--color-neutral-500);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg);
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-neutral-700);
}

.pricing-feature-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* ===================================
   COMBO SELECTOR
   =================================== */
.combo-selector {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.combo-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: var(--color-neutral-50);
  cursor: pointer;
  transition: all 0.2s ease;
}

.combo-option input {
  display: none;
}

.combo-option:hover {
  border-color: rgba(0, 0, 0, 0.20);
}

.combo-option.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.combo-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-neutral-900);
}

.combo-info span {
  font-size: 0.8rem;
  color: var(--color-neutral-600);
}

.combo-price {
  font-weight: 800;
  color: var(--color-neutral-900);
  white-space: nowrap;
}

/* ===================================
   BENEFITS SECTION
   =================================== */
.benefits-section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  text-align: center;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: var(--color-neutral-50);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: 4rem;
}

.benefit-title {
  font-size: var(--fs-h4);
  margin-bottom: var(--spacing-sm);
  color: var(--color-neutral-900);
}

.benefit-description {
  color: var(--color-neutral-600);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq-section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: var(--gradient-subtle);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-neutral-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 var(--spacing-lg) var(--spacing-md);
  color: var(--color-neutral-600);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ===================================
   FLOATING ACTION BUTTON (WhatsApp)
   =================================== */
.fab-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl);
}

.fab-whatsapp i {
  font-size: 2rem;
  color: var(--color-white);
}

/* Mobile: Bottom Sheet Instead of Fixed Buttons */
@media (max-width: 767px) {
  .fab-whatsapp {
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
  }
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
}

.section-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--spacing-md);
  color: var(--color-neutral-900);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-neutral-600);
  font-weight: 400;
  line-height: 1.7;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   LAZY LOADING UTILITIES
   =================================== */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
  opacity: 1;
}
/* Map specific lazy load (handled separately) */
.map.lazy-load {
  opacity: 1; /* Map has its own loading system */
}
/* ===================================
   ACCESSIBILITY
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */
@media (max-width: 767px) {
  :root {
    --spacing-3xl: 3rem;
    --spacing-2xl: 2.5rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .btn-custom {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile: evitar que botões dentro dos combo-cards ocupem toda a imagem */
@media (max-width: 767px) {
  .combo-card__cta.btn-custom {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem !important;
    right: 8px !important;
    bottom: 8px !important;
    border-radius: 8px !important;
    white-space: nowrap;
    z-index: 12 !important;
  }

  .combo-card .combo-card__chip {
    top: 8px;
    left: 8px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */
.will-animate {
  will-change: transform, opacity;
}

/* ===================================
   ENHANCED MAP SYSTEM - FIBRANET
   Performance + UX + Conversion focused
   =================================== */

/* Map Container */
.map-container {
  position: relative;
  width: 100%;
  height: 500px;
  min-height: 400px;
  overflow: hidden;
  border-radius: 12px;
}

/* Map Element */
.map {
  width: 100%;
  height: 100%;
  display: block !important;
  background: var(--color-neutral-100);
  position: relative;
  transition: opacity 0.3s ease;
}

.map.loaded {
  opacity: 1;
}

/* ===================================
   SKELETON LOADER
   =================================== */
.map-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-neutral-100) 0%, var(--color-neutral-50) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.skeleton-header {
  height: 40px;
  background: linear-gradient(90deg, var(--color-neutral-200) 25%, var(--color-neutral-100) 50%, var(--color-neutral-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton-content {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.skeleton-marker {
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, var(--color-primary-light) 25%, #fee2e2 50%, var(--color-primary-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 50%;
  position: relative;
}

.skeleton-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.7;
  animation: skeleton-pulse 2s infinite;
}

.skeleton-footer {
  text-align: center;
  padding: 1rem;
  color: var(--color-neutral-500);
  font-weight: 500;
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes skeleton-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.4; }
}

/* ===================================
   CUSTOM MAP CONTROLS
   =================================== */
.map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-control-btn {
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--color-neutral-700);
}

.map-control-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
  transform: translateY(-1px);
}

.map-control-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================================
   INTERACTIVE POPUP
   =================================== */
.map-popup {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-neutral-200);
  max-width: 300px;
  min-width: 280px;
  overflow: hidden;
  z-index: 1001;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-content {
  position: relative;
  padding: 1.5rem;
}

.popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-neutral-500);
}

.popup-close:hover {
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
}

.popup-header {
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.popup-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.popup-description {
  color: var(--color-neutral-600);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.coverage-status {
  background: #f0f9f5;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #065f46;
}

.popup-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.popup-actions .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  font-weight: 500;
}

.popup-actions .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.popup-actions .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.popup-actions .btn-outline-secondary {
  background: transparent;
  border: 1px solid var(--color-neutral-300);
  color: var(--color-neutral-700);
}

.popup-actions .btn-outline-secondary:hover {
  background: var(--color-neutral-100);
  border-color: var(--color-neutral-400);
}

/* ===================================
   COVERAGE FALLBACK (Acessibilidade)
   =================================== */
.coverage-fallback {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--color-neutral-50);
  border-radius: 12px;
  border: 1px solid var(--color-neutral-200);
}

.coverage-fallback h3 {
  color: var(--color-neutral-900);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.coverage-city {
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: 10px;
  border: 1px solid var(--color-neutral-200);
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  align-items: center;
  min-height: 80px;
}

.coverage-city:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.coverage-city strong {
  color: var(--color-neutral-900);
  font-weight: 600;
}

.coverage-city small {
  color: var(--color-neutral-500);
  font-size: 0.8rem;
}

/* ===================================
   MAP ERROR STATE
   =================================== */
.map-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
  color: var(--color-neutral-600);
}

.map-error h5 {
  color: var(--color-neutral-900);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
  .map-container {
    height: 400px;
    min-height: 350px;
  }
  
  .map-controls {
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .map-control-btn {
    width: 36px;
    height: 36px;
  }
  
  .map-popup {
    max-width: 280px;
    min-width: 260px;
  }
  
  .popup-content {
    padding: 1.25rem;
  }
  
  .popup-actions {
    flex-direction: column;
  }
  
  .popup-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .skeleton-content {
    gap: 1.5rem;
  }
  
  .skeleton-marker {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .map-container {
    height: 350px;
    min-height: 300px;
  }
  
  .coverage-fallback {
    padding: 1.5rem;
  }
  
  .coverage-city {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */
@media (prefers-reduced-motion: reduce) {
  .map-skeleton *,
  .map-popup,
  .map-control-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .map-control-btn {
    border-width: 2px;
  }
  
  .map-popup {
    border-width: 2px;
  }
  
  .coverage-city {
    border-width: 2px;
  }
}

/* Focus styles for keyboard navigation */
.map-control-btn:focus,
.popup-close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.popup-actions .btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


