/* Scoped CSS for Inclusive Restroom Locator */
.irl-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;
}

.irl-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.irl-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: #0f766e;
  background-color: #ccfbf1;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.irl-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.irl-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* Tabs */
.irl-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.irl-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;
}

.irl-tab:hover {
  color: #0f172a;
}

.irl-tab-active {
  color: #0d9488;
  border-bottom-color: #0d9488;
}

/* Views */
.irl-view {
  display: none;
}

.irl-view-active {
  display: block;
}

/* Cards */
.irl-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);
}

.irl-search-group {
  margin-bottom: 1rem;
}

.irl-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}

.irl-input, .irl-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;
}

.irl-input:focus, .irl-select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.irl-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .irl-filter-row {
    grid-template-columns: 1fr;
  }
}

.irl-filter-item {
  display: flex;
  flex-direction: column;
}

/* Checkboxes */
.irl-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;
}

.irl-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.irl-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #0d9488;
  cursor: pointer;
}

.irl-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.irl-stats-text {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Results Grid */
.irl-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.irl-facility-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;
}

.irl-facility-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.irl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.irl-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
}

.irl-badge-public {
  background-color: #ccfbf1;
  color: #0f766e;
}

.irl-badge-customer {
  background-color: #fef3c7;
  color: #b45309;
}

.irl-city-tag {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 600;
}

.irl-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.375rem;
}

.irl-card-address {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 0.5rem;
}

.irl-card-floor {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 1rem;
  background-color: #f8fafc;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border-left: 3px solid #0d9488;
}

.irl-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.irl-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.irl-tag-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.irl-card-actions {
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.irl-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: #0d9488;
  border: 1px solid #0d9488;
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.irl-btn:hover {
  background-color: #0f766e;
}

.irl-btn-secondary {
  background-color: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.irl-btn-secondary:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.irl-btn-sm {
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
}

/* Standards Guide */
.irl-section-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.irl-section-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.irl-standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.irl-standard-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.irl-standard-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.irl-standard-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.irl-standard-desc {
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.irl-muted-notice {
  color: #94a3b8;
  font-style: italic;
}

/* Ad slots */
.irl-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;
}

.irl-mt-4 { margin-top: 1.5rem; }
.irl-mb-4 { margin-bottom: 1.5rem; }
