/* Terminal Taxonomy Archive Styles */

.fl-tax-archive {
  max-width: min(1400px, 94vw);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.fl-tax-header {
  margin-bottom: 2rem;
  text-align: center;
}

.fl-tax-breadcrumb {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.fl-tax-breadcrumb a {
  color: #667eea;
  text-decoration: none;
}

.fl-tax-breadcrumb a:hover {
  text-decoration: underline;
}

.fl-tax-breadcrumb .separator {
  margin: 0 0.5rem;
}

.fl-tax-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.fl-tax-count {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.fl-tax-description {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  line-height: 1.7;
}

.fl-tax-empty {
  text-align: center;
  padding: 3rem;
  color: #64748b;
}

.fl-tax-footer {
  text-align: center;
  margin-top: 3rem;
}

.fl-tax-back-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.fl-tax-back-link:hover {
  background: #4f46e5;
}

/* Map Container - Matching archive style */
.fl-tax-map-container {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.fl-tax-map {
  height: 400px;
  width: 100%;
  z-index: 1;
}

/* Ensure grid displays properly - MATCHING ACCORDION */
.fl-tax-archive .fl-term-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  margin-bottom: 3rem;
}

/* Mobile responsive */
@media (max-width: 1200px) {
  .fl-tax-archive .fl-term-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .fl-tax-archive .fl-term-grid {
    grid-template-columns: 1fr !important;
  }
  
  .fl-tax-title {
    font-size: 2rem;
  }
  
  .fl-tax-map {
    height: 250px;
  }
}
