/**
 * Clique Diretório - Estilos dos Cards
 * Plugin de diretório de profissionais
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ==========================================================================
   LISTA DE CARDS
   ========================================================================== */

.dir-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
}

.dir-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.dir-card {
  background: var(--dir-card-bg, linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%));
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 
    0 4px 6px -1px rgba(0,0,0,.07),
    0 2px 4px -1px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dir-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #ea580c 50%, #f59e0b 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dir-card:hover {
  box-shadow: 
    0 10px 25px -8px rgba(245, 158, 11, 0.2),
    0 4px 10px -4px rgba(234, 88, 12, 0.15);
  transform: translateY(-2px);
  border-color: #f59e0b;
}

.dir-card:hover::before {
  opacity: 1;
}

/* Card em Destaque */
.dir-card-destaque {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
  border: 2px solid #f59e0b;
  position: relative;
  box-shadow: 
    0 4px 6px -1px rgba(245, 158, 11, 0.15),
    0 2px 4px -1px rgba(245, 158, 11, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.dir-card-destaque::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  border-radius: 22px 22px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dir-card-destaque:hover {
  border-color: #d97706;
  transform: translateY(-4px);
  box-shadow: 
    0 25px 50px -12px rgba(245, 158, 11, 0.25),
    0 12px 24px -8px rgba(245, 158, 11, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.dir-card-destaque:hover::before {
  opacity: 1;
}

.dir-destaque-badge {
  position: absolute;
  top: -2px;
  right: 8px;
  background: #166534;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(22, 101, 52, 0.3);
  text-shadow: none;
  letter-spacing: 0.3px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dir-destaque-badge svg {
  fill: #fff;
}

@keyframes star-shine {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.8)) drop-shadow(0 0 8px rgba(255, 200, 0, 0.6));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 0, 1)) drop-shadow(0 0 15px rgba(255, 200, 0, 0.9));
    transform: scale(1.1);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5), 0 0 20px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.7), 0 0 30px rgba(251, 191, 36, 0.5);
  }
}

/* Header do Card */
.dir-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.dir-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.dir-avatar-logo {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  overflow: hidden;
}

.dir-avatar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dir-info {
  flex: 1;
  min-width: 0;
}

.dir-name {
  margin: 5px 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dir-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dir-name a:hover {
  color: #2563eb;
}

.dir-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  background: #fff;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  border: 1px solid #16a34a;
}

.dir-status-inline svg {
  color: #16a34a;
}

.dir-rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 5px;
  background: #fff;
  color: #92400e;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.dir-star-mini {
  color: #d1d5db;
  font-size: 8px;
  cursor: pointer;
  transition: color 0.15s;
}

.dir-star-mini:hover {
  transform: scale(1.2);
}

.dir-star-mini.active {
  color: #fbbf24;
}

.dir-star-mini.hover {
  color: #fbbf24;
}

.dir-rating-inline.voted .dir-star-mini {
  cursor: default;
}

.dir-rating-inline.voted .dir-star-mini:hover {
  transform: none;
}

.dir-rating-num {
  margin-left: 4px;
  font-size: 11px;
  color: #92400e;
  font-weight: 600;
}

/* Taxonomias (Cidade e Profissão) */
.dir-taxonomias {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 18px;
}

.dir-taxonomias-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dir-taxonomias-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.dir-tax {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  height: auto;
  box-sizing: border-box;
}

.dir-tax svg {
  flex-shrink: 0;
}

.dir-tax-profissao,
.dir-tax-cidade {
  background: #fef3c7;
  color: #92400e;
  box-shadow: none;
  transition: all 0.2s ease;
  text-shadow: none;
}

.dir-tax-profissao:hover,
.dir-tax-cidade:hover {
  background: #f59e0b;
  color: #fff;
  transform: none;
  box-shadow: none;
}

/* Badge de Profissão */
.dir-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-top: 8px;
}

/* Status Ativo */
.dir-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  margin-left: 8px;
}

.dir-status.active {
  background: #dcfce7;
  color: #166534;
}

/* Descrição do Serviço */
.dir-descricao {
  margin-top: 16px;
  padding: 16px;
  background: #fffbeb;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
}

.dir-descricao-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748b;
  margin: 0 0 8px;
}

.dir-descricao-text {
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
  margin: 0;
}

/* Info de Contato */
.dir-contact-info {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

.dir-contact-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   BOTÕES DE AÇÃO
   ========================================================================== */

.dir-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.dir-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
}

.dir-btn-inline.dir-btn-whatsapp {
  background: #fff;
  color: #075E54;
  border: 1px solid #075E54;
}

.dir-btn-inline.dir-btn-whatsapp:hover {
  background: #075E54;
  color: #fff;
}

.dir-btn-inline.dir-btn-call {
  background: #fff;
  color: #1e40af;
  border: 1px solid #1e40af;
}

.dir-btn-inline.dir-btn-call:hover {
  background: #1e40af;
  color: #fff;
}

.dir-btn-inline.dir-btn-instagram {
  background: #fff;
  color: #c13584;
  border: 1px solid #c13584;
}

.dir-btn-inline.dir-btn-instagram:hover {
  background: #c13584;
  color: #fff;
}

.dir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.5px;
  min-width: auto;
  transform: none;
  border: none;
}

.dir-btn svg {
  width: 12px;
  height: 12px;
}

/* WhatsApp */
.dir-btn-whatsapp {
  background: #075E54;
  color: #fff;
}

.dir-btn-whatsapp:hover {
  background: #064e46;
  color: #fff;
}

/* Ligar */
.dir-btn-call {
  background: #1e40af;
  color: #fff;
}

.dir-btn-call:hover {
  background: #1e3a8a;
  color: #fff;
}

/* Instagram */
.dir-btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}

.dir-btn-instagram:hover {
  background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #833ab4 100%);
  color: #fff;
}

/* Ver Detalhes */
.dir-btn-details {
  background: #fff;
  color: #475569;
  border: 2px solid #e2e8f0;
}

.dir-btn-details:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Desabilitado */
.dir-btn-disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border: 1px dashed #cbd5e1;
}

/* ==========================================================================
   GRID DE CARDS
   ========================================================================== */

.dir-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  overflow: visible;
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.dir-header {
  margin-bottom: 12px;
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
}

.dir-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
}

.dir-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   MENSAGENS
   ========================================================================== */

.dir-success-msg {
  margin: 20px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  border-radius: 14px;
  color: #166534;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* ==========================================================================
   MODAL DE AVALIAÇÃO
   ========================================================================== */

.dir-rating-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.dir-rating-modal-overlay.active {
  display: flex;
}

.dir-rating-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dir-rating-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dir-rating-modal-close:hover {
  background: #e2e8f0;
  color: #1f2937;
}

.dir-rating-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}

.dir-rating-modal-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px;
}

.dir-rating-modal-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.dir-rating-modal-star {
  font-size: 40px;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dir-rating-modal-star:hover {
  transform: scale(1.2);
}

.dir-rating-modal-star.active,
.dir-rating-modal-star.hover {
  color: #fbbf24;
}

.dir-rating-modal-current {
  font-size: 48px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 4px;
}

.dir-rating-modal-count {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.dir-rating-modal-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.dir-rating-modal-btn:hover {
  background: #1d4ed8;
}

.dir-rating-modal-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.dir-rating-modal-success {
  color: #16a34a;
  font-weight: 600;
  margin-top: 16px;
}

/* Estado Vazio */
.dir-empty {
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border-radius: 20px;
  border: 2px dashed #e2e8f0;
  grid-column: 1 / -1;
}

.dir-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.dir-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1a202c;
}

.dir-empty p {
  margin: 0;
  color: #64748b;
}

/* ==========================================================================
   PAGINAÇÃO
   ========================================================================== */

.dir-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dir-pagination a,
.dir-pagination span {
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.dir-pagination a {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.dir-pagination a:hover {
  background: #f8fafc;
  border-color: #667eea;
  color: #667eea;
}

.dir-pagination .current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
}

/* ==========================================================================
   LISTA DE CIDADES
   ========================================================================== */

.dir-cidades-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.dir-cidade-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
}

.dir-cidade-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

.dir-cidade-link:hover .dir-cidade-count {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.dir-cidade-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: #f1f5f9;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  transition: all .2s ease;
}

/* ==========================================================================
   FORMULÁRIO
   ========================================================================== */

.diretorio-form {
  display: grid;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.diretorio-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.diretorio-form input[type="text"],
.diretorio-form input[type="tel"],
.diretorio-form input[type="email"],
.diretorio-form textarea,
.diretorio-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all .2s ease;
  background: #fff;
}

.diretorio-form input:focus,
.diretorio-form textarea:focus,
.diretorio-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, .1);
}

.diretorio-form textarea {
  resize: vertical;
  min-height: 100px;
}

.diretorio-form button[type="submit"] {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.diretorio-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(102, 126, 234, .4);
}

.diretorio-form .form-note {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   SEÇÃO DE CADASTRO
   ========================================================================== */

.dir-cadastro-section {
  margin-top: 48px;
  margin-bottom: 80px;
  padding: 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.dir-cadastro-section h3 {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 700;
  color: #1a202c;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 640px) {
  .dir-card {
    padding: 18px;
  }

  .dir-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dir-avatar {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .dir-name {
    font-size: 20px;
  }

  .dir-status {
    margin-left: 0;
    margin-top: 8px;
  }

  .dir-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .dir-btn-inline {
    font-size: 8px;
    padding: 4px 6px;
  }

  .dir-btn {
    min-width: 100%;
  }

  .dir-contact-info {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .dir-header h1 {
    font-size: 28px;
  }

  .dir-header p {
    font-size: 16px;
  }
}

/* ==========================================================================
   AVALIAÇÃO POR ESTRELAS
   ========================================================================== */

.dir-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.dir-rating-stars {
  display: flex;
  gap: 2px;
}

.dir-star {
  font-size: 14px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
}

.dir-star:hover,
.dir-star.hover {
  color: #fbbf24;
  transform: none;
}

.dir-star.active {
  color: #f59e0b;
}

.dir-rating-info {
  font-size: 11px;
  color: #6b7280;
}

.dir-rating-avg {
  font-weight: 600;
  color: #f59e0b;
}

.dir-rating.voted .dir-star {
  cursor: default;
}

.dir-rating.voted .dir-star:hover {
  transform: none;
}

.dir-rating-msg {
  font-size: 12px;
  color: #10b981;
  margin-left: 8px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FILTRO POR PROFISSÃO
   ========================================================================== */

.dir-filtro-profissao {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.dir-filtro-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dir-filtro-btn:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f0f4ff;
}

.dir-filtro-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dir-filtro-btn.active:hover {
  background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
  color: #fff;
}

/* ==========================================================================
   FILTRO DE SERVIÇO (DROPDOWN) - Estilo Card Destaque
   ========================================================================== */

.dir-filtros-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 0;
}

.dir-filtros-card {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 
    0 4px 6px -1px rgba(245, 158, 11, 0.25),
    0 2px 4px -1px rgba(245, 158, 11, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.4);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dir-filtros-logo {
  text-align: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.dir-filtros-logo img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #d97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.dir-filtros-subtitulo {
  display: none;
}

.dir-filtros-subtitulo strong {
  color: #b45309;
}

.dir-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
  justify-content: center;
}

.dir-location-badge:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.dir-location-badge svg {
  width: 18px;
  height: 18px;
  color: #d97706;
}

/* ==========================================================================
   POP-UP DE LOCALIZAÇÃO
   ========================================================================== */

.dir-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.dir-popup-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: dirPopupIn 0.3s ease;
}

@keyframes dirPopupIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dir-popup-header {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dir-popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.dir-popup-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dir-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dir-popup-body {
  padding: 24px;
}

.dir-popup-field {
  margin-bottom: 20px;
}

.dir-popup-field:last-child {
  margin-bottom: 0;
}

.dir-popup-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.dir-popup-field select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.dir-popup-field select:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.dir-popup-footer {
  padding: 0 24px 24px;
}

.dir-popup-btn-filtrar {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.dir-popup-btn-filtrar:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.dir-filtros-titulo {
  display: none;
}

.dir-filtros-titulo span {
  color: #d97706;
  font-weight: 800;
}

.dir-filtro-servico {
  margin-bottom: 0;
  flex: 1;
  min-width: 150px;
}

.dir-filtro-servico-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.dir-filtro-servico-icon {
  position: absolute;
  left: 14px;
  width: 24px;
  height: 24px;
  color: #92400e;
  z-index: 2;
  pointer-events: none;
}

.dir-filtro-servico select {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid #d97706;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
  background: linear-gradient(135deg, #fff9e6 0%, #fef3c7 100%);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%2392400e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 24px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.dir-filtro-servico select:focus {
  outline: none;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

.dir-filtro-servico select option {
  background: #fff;
  color: #1f2937;
  padding: 12px;
}

/* ==========================================================================
   DROPDOWN ESTILO GUIAFIX - Cores Amarelas
   ========================================================================== */

.dir-filtro-dropdown {
  margin-bottom: 16px;
  width: 100%;
}

.dir-filtro-dropdown-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
  overflow: hidden;
}

.dir-filtro-dropdown-icon {
  position: absolute;
  left: 16px;
  font-size: 24px;
  z-index: 2;
  pointer-events: none;
}

.dir-filtro-dropdown select {
  width: 100%;
  padding: 18px 50px 18px 54px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.dir-filtro-dropdown select:focus {
  outline: none;
}

.dir-filtro-dropdown select option {
  background: #d97706;
  color: #fff;
  padding: 14px;
  font-weight: 600;
}

.dir-filtro-dropdown-arrow {
  position: absolute;
  right: 18px;
  font-size: 16px;
  color: #fff;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.dir-filtro-dropdown-inner:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

.dir-filtro-dropdown-inner:hover .dir-filtro-dropdown-arrow {
  transform: translateY(2px);
}

/* Dropdown de Cidade - fundo mais claro */
.dir-filtro-dropdown-cidade {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.dir-filtro-dropdown-cidade:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Dropdown de Profissão - fundo ainda mais escuro */
.dir-filtro-dropdown-profissao {
  background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
}

.dir-filtro-dropdown-profissao:hover {
  background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
}

/* Espaçamento entre dropdowns */
.dir-filtro-dropdown + .dir-filtro-dropdown {
  margin-top: 10px;
}

/* ==========================================================================
   BARRA DE FILTROS ACIMA DOS CARDS
   ========================================================================== */

.dir-filtros-bar {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.15);
  border: 2px solid #f59e0b;
}

.dir-filtros-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.dir-filtro-item {
  flex: 1;
  min-width: 200px;
}

.dir-filtro-item label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}

.dir-filtro-item select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid #d97706;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #92400e;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%2392400e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.dir-filtro-item select:hover {
  border-color: #b45309;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.dir-filtro-item select:focus {
  outline: none;
  border-color: #92400e;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.3);
}

.dir-filtro-item select option {
  background: #fff;
  color: #1f2937;
  padding: 12px;
}

@media (max-width: 600px) {
  .dir-filtros-bar {
    padding: 16px;
  }
  
  .dir-filtros-bar-inner {
    flex-direction: column;
  }
  
  .dir-filtro-item {
    width: 100%;
    min-width: 100%;
  }
}

.dir-filtros-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 0;
  flex-shrink: 0;
}

.dir-anunciantes-count {
  display: none;
}

/* Título da seção de profissionais */
.dir-titulo-secao {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 20px 0 16px 0;
  text-align: center;
}

.dir-anunciantes-count svg {
  width: 16px;
  height: 16px;
  color: #f59e0b;
}

.dir-anunciantes-count strong {
  color: #b45309;
}

.dir-cadastre-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  border: 2px solid #d97706;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.dir-cadastre-btn:hover {
  background: #d97706;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* ==========================================================================
   SEÇÃO DE CADASTRO - Mesmas cores do filtro (amarelo/dourado claro)
   ========================================================================== */

.dir-cadastro-section {
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 32px;
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border-radius: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #f59e0b;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.25);
}

.dir-cadastro-section h3 {
  margin-top: 0;
  font-size: 26px;
  font-weight: 800;
  color: #92400e;
  text-align: center;
}

/* ==========================================================================
   FORMULÁRIO DE CADASTRO - Estilo amarelo/dourado
   ========================================================================== */

.diretorio-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #92400e;
  font-size: 14px;
}

.diretorio-form input,
.diretorio-form textarea,
.diretorio-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #d97706;
  border-radius: 12px;
  font-size: 15px;
  transition: all .2s ease;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.diretorio-form input::placeholder,
.diretorio-form textarea::placeholder {
  color: #9ca3af;
}

.diretorio-form input:focus,
.diretorio-form textarea:focus,
.diretorio-form select:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3), 0 4px 12px rgba(0,0,0,0.15);
  background: #fff;
}

.diretorio-form textarea {
  min-height: 100px;
  resize: vertical;
}

.diretorio-form button[type="submit"] {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #1f2937;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.diretorio-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
}

.diretorio-form .form-note {
  font-size: 13px;
  color: #92400e;
  margin: 0;
  text-align: center;
}

/* ==========================================================================
   POP-UP DE SELEÇÃO DE LOCALIZAÇÃO
   ========================================================================== */

.dir-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dir-popup-content {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(217, 119, 6, 0.4);
  animation: dirPopupIn 0.3s ease;
}

@keyframes dirPopupIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dir-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: #92400e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.dir-popup-close:hover {
  background: #d97706;
  color: #fff;
  transform: rotate(90deg);
}

.dir-popup-title {
  margin: 0 0 24px 0;
  font-size: 22px;
  font-weight: 800;
  color: #92400e;
  text-align: center;
}

.dir-popup-filtros {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dir-popup-campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dir-popup-campo label {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.dir-popup-campo select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #d97706;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%2392400e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 24px;
}

.dir-popup-campo select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.dir-popup-campo select:hover {
  border-color: #b45309;
}

/* ==========================================================================
   HEADER DA PÁGINA - Título e Breadcrumb lado a lado
   ========================================================================== */

/* Wrapper flex para conteúdo da página */
.content-page article.article-full,
.content-page article.content-thin,
.content-loop .content-area {
  display: block;
}

/* Cria container flex para título e breadcrumb */
.content-page article.article-full > .breadcrumb-trail,
.content-page article.content-thin > .breadcrumb-trail,
.content-page article > div.breadcrumb-trail {
  float: right;
  margin: 0;
  padding-top: 8px;
}

.content-page article.article-full > h1,
.content-page article.content-thin > h1,
.content-page article > h1 {
  display: inline-block;
  margin: 0 0 20px 0;
  max-width: 60%;
}

/* Limpa float após o header */
.content-page article.article-full > .breadcrumb-trail + h1 + *,
.content-page article > h1 + .the-content,
.content-page article > h1 + .entry-content {
  clear: both;
}

/* Clearfix */
.content-page article::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .content-page article.article-full > .breadcrumb-trail,
  .content-page article.content-thin > .breadcrumb-trail,
  .content-page article > div.breadcrumb-trail {
    float: none;
    display: block;
    margin-bottom: 10px;
  }
  
  .content-page article.article-full > h1,
  .content-page article.content-thin > h1,
  .content-page article > h1 {
    display: block;
    max-width: 100%;
  }
}

/* Responsivo para filtro horizontal */
@media (max-width: 500px) {
  .dir-filtros-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .dir-filtro-servico {
    width: 100%;
    min-width: 100%;
  }
  
  .dir-filtros-footer {
    width: 100%;
    justify-content: center;
  }
  
  .dir-anunciantes-count {
    display: none;
  }
}

/* ==========================================================================
   FORMULÁRIO - LAYOUT OTIMIZADO (DESKTOP E MOBILE)
   ========================================================================== */

/* Estrutura base do formulário */
.diretorio-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
  width: 100%;
  padding: 0;
}

/* Cada grupo de campo */
.diretorio-form > div,
.diretorio-form > p,
.diretorio-form .form-group,
.diretorio-form .form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Labels SEMPRE em cima dos campos */
.diretorio-form label {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #78350f;
  letter-spacing: 0.3px;
  order: 1;
}

/* Campos de input 100% largura TOTAL */
.diretorio-form input[type="text"],
.diretorio-form input[type="tel"],
.diretorio-form input[type="email"],
.diretorio-form input[type="url"],
.diretorio-form input[type="number"],
.diretorio-form input,
.diretorio-form textarea,
.diretorio-form select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box;
  padding: 18px 20px;
  font-size: 17px;
  border: 2px solid #d97706;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  order: 2;
  min-height: 60px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Texto de ajuda/descrição abaixo do campo */
.diretorio-form small,
.diretorio-form .description,
.diretorio-form .form-hint,
.diretorio-form span.description {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
  color: #92400e;
  font-style: italic;
  order: 3;
}

/* Textarea mais alto */
.diretorio-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* Select com seta */
.diretorio-form select {
  padding-right: 45px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%2392400e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 24px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Focus nos campos */
.diretorio-form input:focus,
.diretorio-form textarea:focus,
.diretorio-form select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* Botão de submit */
.diretorio-form button[type="submit"] {
  width: 100%;
  padding: 18px 24px;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #1f2937;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.diretorio-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Seção de cadastro - LARGURA MÁXIMA */
.dir-cadastro-section {
  padding: 28px 16px;
  margin: 30px 0 60px;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

.dir-cadastro-section h3 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

/* ==========================================================================
   CARDS DE PLANO - MAIOR E MAIS LARGO
   ========================================================================== */

.dir-planos,
.dir-pricing,
.pricing-cards,
.planos-container,
[class*="plano"],
[class*="pricing"] {
  width: 100% !important;
  max-width: 100% !important;
}

.dir-plano-card,
.pricing-card,
.plano-item,
[class*="plano-card"],
[class*="pricing-card"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 280px;
  padding: 24px 20px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-sizing: border-box;
}

/* Cards de plano no mobile */
@media (max-width: 768px) {
  .dir-plano-card,
  .pricing-card,
  .plano-item,
  [class*="plano-card"],
  [class*="pricing-card"] {
    width: 100% !important;
    padding: 20px 16px;
    margin: 0 0 16px 0;
  }
}

/* ==========================================================================
   MOBILE - BOTÃO CADASTRE-SE MAIOR
   ========================================================================== */

@media (max-width: 768px) {
  .dir-cadastre-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
  }
}

/* ==========================================================================
   MOBILE - CARDS DE PROFISSIONAL (MAIS LARGOS)
   ========================================================================== */

@media (max-width: 768px) {
  .dir-lista,
  .dir-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    margin: 0 !important;
  }
  
  /* Card mais largo - ocupa toda a tela */
  .dir-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px 16px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }
  
  /* Botões em GRID 2x2 */
  .dir-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 10px !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
  }
  
  /* Linha 1: Avaliação (esquerda) + Instagram (direita) */
  .dir-rating-inline {
    order: 1 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-content: center !important;
    padding: 12px 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }
  
  .dir-btn-inline.dir-btn-instagram {
    order: 2 !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  
  /* Linha 2: WhatsApp (esquerda) + Telefone (direita) */
  .dir-btn-inline.dir-btn-whatsapp {
    order: 3 !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  
  .dir-btn-inline.dir-btn-call {
    order: 4 !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  
  .dir-btn-inline {
    width: 100% !important;
    padding: 14px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .dir-btn {
    width: 100% !important;
    padding: 14px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
}

/* ==========================================================================
   BOTÃO CADASTRAR MEU ANÚNCIO
   ========================================================================== */

.dir-btn-abrir-cadastro {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  padding: 18px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dir-btn-abrir-cadastro:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

@media (max-width: 768px) {
  .dir-btn-abrir-cadastro {
    max-width: 100%;
    margin: 24px 16px;
    width: calc(100% - 32px);
    padding: 16px 20px;
    font-size: 16px;
  }
}

/* ==========================================================================
   POP-UP DE CADASTRO
   ========================================================================== */

.dir-cadastro-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  overflow-y: auto;
  padding: 20px;
}

.dir-cadastro-popup-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.dir-cadastro-popup {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  padding: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease;
  position: relative;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dir-cadastro-popup-header {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  padding: 20px 24px;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dir-cadastro-popup-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.dir-cadastro-popup-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dir-cadastro-popup-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.dir-cadastro-popup-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Cards de preço dentro do popup */
.dir-preco-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.dir-preco-card {
  background: #fff;
  border: 3px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dir-preco-card:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
}

.dir-preco-card.selected {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.dir-preco-card-valor {
  font-size: 28px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 4px;
}

.dir-preco-card-periodo {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.dir-preco-card-nome {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.dir-preco-card-destaque {
  border-color: #f59e0b;
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
}

.dir-preco-card-destaque .dir-preco-card-valor {
  color: #d97706;
}

/* ==========================================================================
   POP-UP DE QR CODE PAGAMENTO
   ========================================================================== */

.dir-qrcode-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100000;
  padding: 20px;
}

.dir-qrcode-popup-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dir-qrcode-popup {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: popupSlideIn 0.3s ease;
  position: relative;
}

.dir-qrcode-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dir-qrcode-popup-close:hover {
  background: #e2e8f0;
  color: #1f2937;
}

.dir-qrcode-popup h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}

.dir-qrcode-popup .valor-pagamento {
  font-size: 36px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 20px;
}

.dir-qrcode-img {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dir-qrcode-img img {
  max-width: 180px;
  max-height: 180px;
}

.dir-qrcode-instrucoes {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.dir-qrcode-instrucoes strong {
  color: #1f2937;
}

/* ==========================================================================
   FORMULÁRIO MOBILE - AJUSTES EXTRAS
   ========================================================================== */

@media (max-width: 768px) {
  .dir-cadastro-section {
    padding: 24px 16px;
    margin: 20px 0 50px;
    border-radius: 16px;
  }
  
  .dir-cadastro-section h3 {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .diretorio-form {
    gap: 22px;
  }
  
  .diretorio-form label {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .diretorio-form input,
  .diretorio-form textarea,
  .diretorio-form select {
    padding: 18px 16px;
    font-size: 17px;
    min-height: 58px;
    border-radius: 14px;
  }
  
  .diretorio-form textarea {
    min-height: 140px;
  }
  
  .diretorio-form button[type="submit"] {
    padding: 20px 24px;
    font-size: 18px;
    border-radius: 14px;
  }
  
  .diretorio-form small,
  .diretorio-form .description {
    font-size: 14px;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .dir-cadastro-section {
    padding: 20px 14px;
    margin: 16px 0 40px;
  }
  
  .dir-cadastro-section h3 {
    font-size: 20px;
  }
  
  .diretorio-form {
    gap: 20px;
  }
  
  .diretorio-form label {
    font-size: 15px;
  }
  
  .diretorio-form input,
  .diretorio-form textarea,
  .diretorio-form select {
    padding: 16px 14px;
    font-size: 16px;
    min-height: 54px;
  }
  
  .diretorio-form button[type="submit"] {
    padding: 18px 20px;
    font-size: 17px;
  }
}

/* ==========================================================================
   POP-UP MOBILE OTIMIZADO
   ========================================================================== */

@media (max-width: 768px) {
  .dir-popup-content {
    padding: 24px 16px;
    margin: 12px;
    width: calc(100% - 24px);
  }
  
  .dir-popup-title {
    font-size: 20px;
  }
  
  .dir-popup-campo {
    display: flex;
    flex-direction: column;
  }
  
  .dir-popup-campo label {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .dir-popup-campo select {
    width: 100%;
    padding: 16px 14px;
    font-size: 16px;
  }
}
