/* ================================
   ORAL CLÍNICA - UNIDADES CSS
   Página de Unidades com Mapas
   ================================ */

/* ================================
   1. HERO/TÍTULO DA PÁGINA
   ================================ */

.unidades-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.95) 0%, rgba(212, 175, 55, 0.9) 100%);
  text-align: center;
}

@media (max-width: 767px) {
  .unidades-hero {
    padding: 60px 0;
  }
}

.unidades-hero .hero-title {
  font-size: 40px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.unidades-hero .hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .unidades-hero .hero-title {
    font-size: 32px;
  }

  .unidades-hero .hero-subtitle {
    font-size: 18px;
  }
}

/* ================================
   2. SEÇÃO DE UNIDADE
   ================================ */

.unidade-section {
  padding: 80px 0;
  background: white;
  scroll-margin-top: 80px; /* Compensar header fixo ao fazer scroll */
}

.unidade-section.unidade-alt {
  background: var(--bg-secondary);
}

@media (max-width: 767px) {
  .unidade-section {
    padding: 60px 0;
  }
}

/* ================================
   3. TÍTULO DA UNIDADE
   ================================ */

.unidade-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-neutral-dark);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.unidade-title .location-icon {
  width: 32px;
  height: 32px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .unidade-title {
    font-size: 26px;
    justify-content: center;
    text-align: center;
  }

  .unidade-title .location-icon {
    width: 28px;
    height: 28px;
  }
}

/* ================================
   4. LAYOUT DE 2 COLUNAS (DESKTOP)
   ================================ */

.unidade-content {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1023px) {
  .unidade-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ================================
   5. GOOGLE MAPS EMBED
   ================================ */

.mapa-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mapa-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .mapa-wrapper {
    height: 300px;
  }
}

/* ================================
   6. INFORMAÇÕES DA UNIDADE
   ================================ */

.unidade-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================================
   7. ITEM DE INFORMAÇÃO
   ================================ */

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-neutral-dark);
  margin-bottom: 8px;
  margin-top: 0;
}

.info-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-neutral-medium);
  margin: 0;
}

.info-text strong {
  font-weight: 600;
  color: var(--color-neutral-dark);
}

.info-text a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-text a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ================================
   8. BOTÃO VER ROTAS
   ================================ */

.btn-rotas {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.btn-rotas .btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ================================
   9. CTA DE AGENDAMENTO
   ================================ */

.cta-agendamento-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  text-align: center;
}

@media (max-width: 767px) {
  .cta-agendamento-section {
    padding: 60px 20px;
  }
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .cta-title {
    font-size: 26px;
  }
}

.cta-subtitle {
  font-size: 18px;
  color: white;
  margin-bottom: 32px;
  opacity: 0.95;
  line-height: 1.5;
}

/* ================================
   10. BOTÕES CTA
   ================================ */

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
}

.btn-cta {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-cta .btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

.btn-cta-primary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
}

.btn-cta-secondary:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .btn-cta {
    width: 100%;
    min-width: auto;
  }
}

/* ================================
   11. SMOOTH SCROLL
   ================================ */

html {
  scroll-behavior: smooth;
}

/* ================================
   12. ACESSIBILIDADE
   ================================ */

.btn-rotas:focus-visible,
.btn-cta:focus-visible,
.info-text a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ================================
   13. ESTADOS HOVER ADICIONAIS
   ================================ */

.info-item {
  transition: transform 0.2s ease;
}

.info-item:hover .info-icon {
  background: rgba(212, 175, 55, 0.25);
}

/* ================================
   14. AJUSTES PARA TABLET
   ================================ */

@media (min-width: 768px) and (max-width: 1023px) {
  .unidade-content {
    grid-template-columns: 1fr;
  }

  .mapa-wrapper {
    height: 400px;
  }

  .unidade-title {
    justify-content: flex-start;
    text-align: left;
  }
}

/* ================================
   15. LOADING STATE PARA MAPAS
   ================================ */

.mapa-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  z-index: -1;
}

/* ================================
   16. UTILITÁRIOS ESPECÍFICOS
   ================================ */

.unidade-section * {
  box-sizing: border-box;
}

/* Garantir que links tenham área de toque adequada em mobile */
@media (max-width: 767px) {
  .info-text a {
    display: inline-block;
    padding: 4px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
