/* Directory-specific styles */

.alphabet-quick-nav {
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
}

.alphabet-quick-nav .btn {
  min-width: 40px;
  font-weight: 600;
}

.alphabet-quick-nav .btn:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.directory-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.directory-section .card {
  border: none;
  border-radius: 15px;
}

.directory-section .badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
}

/* Responsive alphabet navigation */
@media (max-width: 768px) {
  .alphabet-quick-nav {
    text-align: center;
  }

  .alphabet-quick-nav .btn {
    min-width: 35px;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin: 0.1rem;
  }
}

/* Directory page specific styles */
.business-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 12px;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.business-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  padding: 5px;
  background: white;
}

.business-logo-placeholder {
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.5rem;
}

.contact-preview {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #0d6efd;
}

/* Alphabet grid for main directory page */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin: 0;
}

.alphabet-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  text-decoration: none;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
}

.alphabet-link.active {
  border-color: #0d6efd;
  color: #0d6efd;
}

.alphabet-link.active:hover {
  background: #0d6efd;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.alphabet-link.disabled {
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.5;
}

.alphabet-link .letter {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.alphabet-link .count {
  font-size: 0.8rem;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .alphabet-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .alphabet-link {
    padding: 10px 5px;
  }

  .alphabet-link .letter {
    font-size: 1.2rem;
  }

  .business-logo,
  .business-logo-placeholder {
    width: 50px;
    height: 50px;
  }
}
