/* Scoped CSS for Auto Body Shop Finder */
.absf-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  line-height: 1.5;
}

.absf-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.absf-hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c2410c;
  background-color: #ffedd5;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.absf-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.absf-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* Tabs */
.absf-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.absf-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.absf-tab:hover {
  color: #0f172a;
}

.absf-tab-active {
  color: #ea580c;
  border-bottom-color: #ea580c;
}

/* Views */
.absf-view {
  display: none;
}

.absf-view-active {
  display: block;
}

/* Cards */
.absf-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.absf-search-row {
  margin-bottom: 1rem;
}

.absf-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}

.absf-input, .absf-select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  background-color: #ffffff;
  color: #0f172a;
}

.absf-input:focus, .absf-select:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.absf-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .absf-filters-grid {
    grid-template-columns: 1fr;
  }
}

.absf-filter-item {
  display: flex;
  flex-direction: column;
}

.absf-checkboxes-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}

.absf-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.absf-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #ea580c;
  cursor: pointer;
}

.absf-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.absf-stats-text {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Shops Grid */
.absf-shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.absf-shop-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.absf-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.absf-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.absf-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
}

.absf-badge-icar {
  background-color: #fef3c7;
  color: #b45309;
}

.absf-badge-none {
  background-color: #f1f5f9;
  color: #64748b;
}

.absf-city-tag {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 600;
}

.absf-shop-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.absf-shop-address {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 0.25rem;
}

.absf-shop-phone {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.absf-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.absf-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.absf-card-footer {
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.absf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #ea580c;
  border: 1px solid #ea580c;
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.absf-btn:hover {
  background-color: #c2410c;
}

.absf-btn-secondary {
  background-color: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.absf-btn-secondary:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.absf-btn-sm {
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
}

.absf-btn-block {
  width: 100%;
}

/* Estimator */
.absf-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .absf-calc-grid {
    grid-template-columns: 1fr;
  }
}

.absf-calc-col {
  display: flex;
  flex-direction: column;
}

.absf-form-group {
  margin-bottom: 1rem;
}

.absf-estimate-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.absf-subhead {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem;
}

.absf-res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9375rem;
}

.absf-res-total {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 2px solid #cbd5e1;
  padding: 0.875rem 0;
}

.absf-text-success {
  color: #16a34a;
}

/* Checklist */
.absf-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.absf-check-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.absf-check-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ea580c;
  margin-bottom: 0.5rem;
}

.absf-check-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.absf-check-desc {
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.absf-section-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.absf-section-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.absf-muted-notice {
  color: #94a3b8;
  font-style: italic;
}

/* Ad slots */
.absf-ad-slot {
  min-height: 280px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.absf-mt-4 { margin-top: 1.5rem; }
.absf-mb-4 { margin-bottom: 1.5rem; }
