/* ═══════════════════════════════════════════════════
   Clinics & Location Pages
   ═══════════════════════════════════════════════════ */

/* ── Location Cards ── */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.location-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.location-pin {
  color: var(--green-700);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.location-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.location-card span { font-size: 0.8rem; color: var(--gray-500); }

/* ── Clinic Listing ── */
.clinic-listing {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  gap: 24px;
  transition: var(--transition);
}

.clinic-listing:hover { box-shadow: var(--shadow-md); }

.clinic-listing.featured {
  border: 2px solid var(--green-500);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--green-700);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clinic-logo-placeholder {
  width: 80px;
  height: 80px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.clinic-info { flex: 1; }
.clinic-info h3 { margin-bottom: 6px; }
.clinic-meta { display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.clinic-meta span { font-size: 0.85rem; color: var(--gray-600); display: flex; align-items: center; gap: 4px; }

.clinic-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.clinic-tag {
  background: var(--green-100);
  color: var(--green-800);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}

.clinic-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Location Page Hero ── */
.location-hero {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--white);
  padding: 50px 20px;
}

.location-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 8px; }
.location-hero p { opacity: 0.9; font-size: 1.05rem; }

/* Alias for consistency with inline styles */
.location-page-hero {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--white);
  padding: 50px 20px;
}

.location-page-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 8px; }
.location-page-hero p { opacity: 0.9; font-size: 1.05rem; }

/* ── All Locations Index ── */
.all-locations-index { margin: 40px 0; }

.locations-alpha-section { margin-bottom: 30px; }
.locations-alpha-section h3 {
  font-size: 1.3rem;
  color: var(--green-700);
  border-bottom: 2px solid var(--green-200);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
  justify-content: center;
}

.alpha-nav a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.alpha-nav a:hover {
  background: var(--green-700);
  color: var(--white);
}

/* ── Service Category Navigation ── */
.service-category-nav {
  display: flex;
  gap: 8px;
  padding: 16px 0 0;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.category-tab:hover {
  border-color: var(--green-400);
  color: var(--green-700);
}

.category-tab.active {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}

/* ── Service Section Headers ── */
.service-section {
  margin-bottom: 16px;
}

.service-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 32px 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--green-100);
}

.service-section-header h2 {
  margin-bottom: 4px;
  font-size: 1.4rem;
}

.service-section-header p {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin: 0;
}

.service-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ── Service Listings (extends clinic-listing) ── */
.service-listings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-listing {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

.service-listing:hover {
  box-shadow: var(--shadow-md);
}

.service-listing.featured {
  border: 2px solid var(--green-500);
  position: relative;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);
}

.service-listing.featured .featured-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--green-700);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-logo-placeholder {
  width: 64px;
  height: 64px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-700);
  flex-shrink: 0;
}

.service-logo-placeholder.dispensary-logo {
  background: #E3F2FD;
  color: #1565C0;
}

.service-logo-placeholder.social-logo {
  background: #FFF3E0;
  color: #E65100;
}

.service-info {
  flex: 1;
}

.service-info h3 {
  margin-bottom: 4px;
}

.service-info h3 a {
  color: var(--green-700);
  text-decoration: none;
}

.service-info h3 a:hover {
  text-decoration: underline;
}

/* ── Service Type Badges ── */
.service-type-badge,
.service-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.clinic-badge {
  background: var(--green-100);
  color: var(--green-800);
}

.dispensary-badge {
  background: #E3F2FD;
  color: #1565C0;
}

.social-badge {
  background: #FFF3E0;
  color: #E65100;
}

.lounge-badge {
  background: #F3E5F5;
  color: #6A1B9A;
}

.cbd-badge {
  background: #E8F5E9;
  color: #2E7D32;
}

/* ── Empty State ── */
.empty-state,
.service-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  border: 2px dashed var(--gray-300);
  margin-bottom: 16px;
}

.empty-state .empty-icon,
.service-empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state h3,
.service-empty-state h3 {
  margin-bottom: 8px;
  color: var(--gray-700);
}

.empty-state p,
.service-empty-state p {
  font-size: 0.92rem;
  color: var(--gray-600);
  max-width: 480px;
  margin: 0 auto 8px;
}

.empty-state a,
.service-empty-state a {
  color: var(--green-700);
  font-weight: 600;
}

/* ── List Your Business CTA ── */
.list-business-cta {
  background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e9 100%);
  border: 2px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.list-business-cta h3 {
  color: var(--green-800);
  margin-bottom: 8px;
}

.list-business-cta p {
  color: var(--gray-700);
  font-size: 0.95rem;
  max-width: 550px;
  margin: 0 auto 20px;
}

/* ── Responsive: Clinics & Service Listings ── */
/* ═══════════════════════════════════════════════════
   Clinics Directory Index Page
   ═══════════════════════════════════════════════════ */

/* ── Directory Hero — compact, clean ── */
.dir-hero {
  background: linear-gradient(135deg, #1a5c1f 0%, #2E7D32 50%, #388E3C 100%);
  color: #fff;
  padding: 44px 0 48px;
  text-align: center;
}
.dir-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: #fff !important;
}
.dir-hero .hero-sub {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.5;
  color: #fff !important;
}
.dir-hero .search-count {
  color: rgba(255,255,255,0.7) !important;
}

/* ── Search inside hero ── */
.hero-search {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
  transition: background 0.2s;
  box-sizing: border-box;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.6); }
.hero-search input:focus { background: rgba(255,255,255,0.25); }
.hero-search-wrap {
  position: relative;
}
.hero-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.55;
  pointer-events: none;
}
.search-count {
  text-align: center;
  margin-top: 10px;
  font-size: 0.82rem;
}

/* ── Toolbar — filters sit on a white bar below hero ── */
.dir-toolbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 0;
  position: sticky;
  top: 56px;
  z-index: 20;
}
.toolbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toolbar-divider {
  width: 1px;
  height: 28px;
  background: #e0e0e0;
}
.toolbar-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Filter Section — removed, merged into toolbar ── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}

/* ── Nation Tabs — compact pill style ── */
.nation-tabs {
  display: flex;
  gap: 4px;
}
.nation-tab {
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  color: #666;
}
.nation-tab:hover {
  border-color: #2E7D32;
  color: #2E7D32;
}
.nation-tab.active {
  background: #2E7D32;
  border-color: #2E7D32;
  color: #fff;
}
.nation-tab .tab-count {
  font-size: 0.75rem;
  opacity: 0.65;
  margin-left: 2px;
}

/* ── Service Filter Buttons — compact ── */
.svc-filters {
  display: flex;
  gap: 4px;
}
.svc-filter-btn {
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}
.svc-filter-btn:hover {
  border-color: var(--btn-color, #2E7D32);
  color: var(--btn-color, #2E7D32);
}
.svc-filter-btn.active {
  background: var(--btn-color, #2E7D32);
  border-color: var(--btn-color, #2E7D32);
  color: #fff;
}

/* ── Location Cards Grid ── */
.alpha-group {
  margin-bottom: 32px;
}
.alpha-letter {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2E7D32;
  padding: 8px 0;
  border-bottom: 2px solid #e8f5e9;
  margin-bottom: 16px;
}
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* ── Location Card ── */
.loc-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  background: #fff;
}
.loc-card:hover {
  border-color: #2E7D32;
  box-shadow: 0 2px 12px rgba(46,125,50,0.1);
  transform: translateY(-1px);
}
.loc-card.hidden {
  display: none;
}
.loc-card-header {
  margin-bottom: 10px;
}
.loc-card-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #1a1a1a;
}
.loc-county {
  font-size: 0.85rem;
  color: #777;
}
.loc-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}
.svc-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.loc-card-arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 1.1rem;
  color: #ccc;
  transition: color 0.2s;
}
.loc-card:hover .loc-card-arrow {
  color: #2E7D32;
}

/* ── No Results ── */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  display: none;
}
.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #555;
}

/* ── Quick Jump ── */
.quick-jump {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 8px;
}
.quick-jump a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f5f5f5;
  color: #2E7D32;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.quick-jump a:hover {
  background: #2E7D32;
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   Responsive: Clinics & Service Listings
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Directory page */
  .dir-hero { padding: 32px 0 36px; }
  .dir-hero h1 { font-size: 1.5rem; }
  .loc-grid { grid-template-columns: 1fr; }
  .toolbar-inner { gap: 10px; }
  .toolbar-group { flex-wrap: wrap; }
  .toolbar-divider { display: none; }
  .nation-tabs, .svc-filters { flex-wrap: wrap; }

  /* Individual clinic pages */
  .clinic-listing {
    flex-direction: column;
  }

  .service-listing {
    flex-direction: column;
    gap: 12px;
  }

  .service-section-header {
    gap: 12px;
  }

  .service-category-nav {
    gap: 6px;
  }

  .category-tab {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .location-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .alpha-nav a {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}
