/* ===== ONDE ESTAMOS PAGE ===== */

.main-content {
  min-height: 100vh;
}

/* Hero Section */
.onde-hero {
  background: #004968;
  padding: 4rem 0 3rem;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-title i {
  font-size: 3rem;
  color: #f97316;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
}

/* Mapa Section */
.mapa-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.mapa-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 700px;
}

/* Sidebar */
.cidades-sidebar {
  background: #f9fafb;
  border-right: 2px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 2px solid #e5e7eb;
  background: white;
}

.sidebar-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #004968;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-header h3 i {
  font-size: 1.5rem;
  color: #f97316;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.cidades-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

/* Regional Cards */
.regional-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.regional-card:hover {
  border-color: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.regional-card.active {
  border-color: #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.regional-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: #004968;
  color: white;
}

.regional-info {
  flex: 1;
}

.regional-nome {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.regional-subtitle {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
}

.regional-logo {
  width: 50px;
  height: 50px;
  background: rgba(249, 115, 22, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.regional-logo i {
  font-size: 1.75rem;
  color: #f97316;
}

.regional-telefone {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.regional-telefone i {
  font-size: 1.25rem;
  color: #f97316;
}

.regional-telefone span {
  font-weight: 700;
  color: #004968;
  font-size: 1rem;
}

.regional-cidades {
  padding: 1rem 1.25rem;
}

.regional-cidades strong {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.75rem;
}

.cidades-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cidade-tag {
  background: #eff6ff;
  color: #004968;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #dbeafe;
}

.regional-hidden {
  display: none;
}

/* Mapa Container */
.mapa-container {
  position: relative;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Card Popup da Cidade */
.cidade-card-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  z-index: 2000;
  overflow: hidden;
}

.card-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-close-btn:hover {
  background: white;
  transform: scale(1.1);
}

.card-close-btn i {
  font-size: 1.25rem;
  color: #374151;
}

.card-logo {
  padding: 2rem;
  text-align: center;
}

.card-logo img {
  max-width: 120px;
  height: auto;
}

.card-header {
  background: #f97316;
  padding: 1.25rem 1.5rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.card-directions-btn {
  background: white;
  color: #f97316;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.card-directions-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-directions-btn i {
  font-size: 1rem;
}

.card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-info-item i {
  font-size: 1.5rem;
  color: #f97316;
  flex-shrink: 0;
}

.card-info-item span {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-info-item a {
  color: #004968;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.card-info-item a:hover {
  color: #f97316;
}

.map-info-card {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 300px;
  z-index: 1000;
}

.map-info-card i {
  font-size: 1.5rem;
  color: #004968;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.map-info-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
  margin: 1rem;
  font-family: inherit;
}

.popup-content {
  min-width: 180px;
}

.popup-cidade {
  font-size: 1.1rem;
  font-weight: 700;
  color: #004968;
  margin: 0 0 0.5rem;
}

.popup-regional {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.popup-telefone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f97316;
}

.popup-telefone i {
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content i {
  font-size: 4rem;
  color: #f97316;
  margin-bottom: 1rem;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #004968;
  margin: 0 0 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: #374151;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  color: white;
}

.btn-cta i {
  font-size: 1.5rem;
}

/* Scrollbar customization */
.cidades-list::-webkit-scrollbar {
  width: 8px;
}

.cidades-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cidades-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.cidades-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .mapa-wrapper {
    grid-template-columns: 350px 1fr;
  }

  .map-info-card {
    max-width: 250px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .onde-hero {
    padding: 3rem 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-title i {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .mapa-section {
    padding: 3rem 0;
  }

  .mapa-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }

  .cidades-sidebar {
    border-right: none;
    border-bottom: 2px solid #e5e7eb;
    max-height: 400px;
  }

  .mapa-container {
    height: 500px;
  }

  .map-info-card {
    display: none;
  }

  .cidade-card-popup {
    width: 95%;
    max-width: none;
  }

  .card-logo {
    padding: 1.5rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }

  .card-header h3 {
    font-size: 1.1rem;
  }

  .card-directions-btn {
    width: 100%;
    justify-content: center;
  }

  .card-info {
    padding: 1.25rem;
  }

  .regional-header {
    padding: 1rem;
  }

  .regional-nome {
    font-size: 1rem;
  }

  .regional-subtitle {
    font-size: 0.8rem;
  }

  .regional-logo {
    width: 45px;
    height: 45px;
  }

  .regional-logo i {
    font-size: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .onde-hero {
    padding: 2rem 0 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .mapa-section {
    padding: 2rem 0;
  }

  .sidebar-header {
    padding: 1.5rem 1rem 1rem;
  }

  .sidebar-header h3 {
    font-size: 1.1rem;
  }

  .mapa-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }

  .cidades-sidebar {
    max-height: 350px;
  }

  .mapa-container {
    height: 400px;
  }

  .regional-card {
    margin-bottom: 0.75rem;
  }

  .cidades-tags {
    gap: 0.375rem;
  }

  .cidade-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .cta-content i {
    font-size: 3rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .btn-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}
