/* ==================== TRTlocator.com — Shared Styles ==================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F4F6F9;
  --bg-white: #FFFFFF;
  --bg-warm: #E8F2FF;
  --bg-card: #FFFFFF;
  --border: #E0E0E0;
  --border-hover: #0068EF;
  --text: #1A1A2E;
  --text-secondary: #4A4A68;
  --text-muted: #767690;
  --accent: #003580;
  --accent-bright: #0068EF;
  --accent-hover: #0052C2;
  --accent-glow: rgba(0, 104, 239, 0.08);
  --red: #D32F2F;
  --red-soft: rgba(211, 47, 47, 0.08);
  --green: #00855A;
  --green-soft: rgba(0, 133, 90, 0.08);
  --amber: #E65100;
  --amber-soft: rgba(230, 81, 0, 0.08);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08), 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 16px 56px rgba(0,0,0,0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ==================== HEADER ==================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #003580;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.logo:hover { opacity: 0.8; }

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 700;
}

.logo-text em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav a {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.header-nav a:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.12);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: rgba(255,255,255,0.9);
  border-radius: 4px;
}

.mobile-menu-btn:hover {
  background: rgba(255,255,255,0.12);
}

/* Header Stats (old style kept for directory page compatibility) */
.header-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stat-pill strong {
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 0.9rem;
}

.header-stats .stat-pill + .stat-pill {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 55%,
    rgba(244, 246, 249, 0.6) 80%,
    rgba(244, 246, 249, 1) 100%
  );
}

.hero-content {
  position: relative;
  padding: 0 2rem 2rem;
  margin-top: -7rem;
  z-index: 2;
  text-align: center;
}

.hero h1, .page-hero h1, .directory-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 span, .page-hero h1 span, .directory-hero h1 span {
  color: var(--accent-bright);
  font-style: italic;
}

.hero p, .page-hero p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

.directory-hero p {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-supporting {
  margin-top: 0.5rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.01em;
}

/* ==================== SEARCH BAR ==================== */
.search-container {
  max-width: 640px;
  margin: 1.5rem auto 0;
  position: relative;
}

.search-bar {
  display: flex;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-glow);
}

.search-icon {
  display: flex;
  align-items: center;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.search-bar input {
  flex: 1;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.search-bar input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-bar button {
  padding: 0.65rem 1.6rem;
  margin: 0.35rem;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-transform: uppercase;
}

.search-bar button:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 196, 0.3);
}

/* ==================== HOME STATS ==================== */
.home-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.home-stat {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-stat strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}

.section-warm {
  background: var(--bg-warm);
}

.section-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* ==================== PAGE HERO (non-home pages) ==================== */
.page-hero, .directory-hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 660px;
}

.directory-hero {
  background: var(--bg-warm);
  padding: 5.5rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.directory-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

/* ==================== STATE GRID ==================== */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.state-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.state-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.state-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.state-card strong { display: block; }
.state-card span { display: block; font-size: 0.85rem; color: var(--text-light); margin-top: 0.2rem; }

.state-card:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.state-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.state-card-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 0.25rem;
}

.state-card-cities {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.state-card-lg .state-card-name {
  font-size: 1.25rem;
}

/* ==================== CITY LINKS ==================== */
.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.city-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.city-link:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: rgba(37, 99, 196, 0.04);
}

.city-link span {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ==================== QUICK LINKS ==================== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.quick-link-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.quick-link-card:hover {
  border-color: var(--accent-bright);
  box-shadow: 0 4px 20px rgba(0,104,239,0.12);
  transform: translateY(-2px);
}

.ql-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.quick-link-card:hover .ql-icon {
  background: var(--accent-bright);
}

.ql-content {
  flex: 1;
  min-width: 0;
}

.quick-link-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.quick-link-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ql-arrow {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-bright);
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.2s var(--ease);
}

.quick-link-card:hover .ql-arrow {
  gap: 0.5rem;
}

/* ==================== OPTIONS GRID (Homepage "Your Options") ==================== */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.option-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  min-height: 145px;
  text-decoration: none;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.option-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Corner badge — dog-eared top-right */
.option-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 58px;
  background: var(--accent-bright);
  border-radius: 0 var(--radius-lg) 0 58px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 11px 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1;
  transition: background 0.2s var(--ease);
}

.option-card:hover .option-badge {
  background: var(--accent);
}

/* SVG illustration */
.option-art {
  flex-shrink: 0;
  align-self: center;
}

/* Two-line uppercase title */
.option-text {
  display: flex;
  flex-direction: column;
  align-self: center;
}

.option-text span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-transform: uppercase;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  position: relative;
  z-index: 1;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  color: var(--border-hover);
  margin-left: 0.1rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: var(--accent-bright);
}

.breadcrumbs span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== STICKY FILTER BAR ==================== */
.filters-wrapper {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 3px solid var(--accent-bright);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2rem 0.75rem;
}

.filters {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.2rem;
}

.pill {
  padding: 0.4rem 0.9rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: rgba(37, 99, 196, 0.04);
}

.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.4rem;
}

select.filter-select {
  padding: 0.4rem 2rem 0.4rem 0.9rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239C9590' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: all 0.2s var(--ease);
}

select.filter-select:hover, select.filter-select:focus {
  border-color: var(--accent-bright);
  outline: none;
}

.results-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-count strong {
  color: var(--accent-bright);
  font-weight: 700;
}

/* ==================== CLINIC GRID ==================== */
.clinics-section {
  max-width: 1320px;
  margin: 1.5rem auto 0;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 1;
}

.clinics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 0.875rem;
}

/* ==================== CLINIC CARD ==================== */
.clinic-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  animation: fadeInUp 0.35s var(--ease) both;
  min-height: 320px;
}

.clinic-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.clinic-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.clinic-monogram {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.clinic-card-heading {
  flex: 1;
  min-width: 0;
}

.clinic-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.clinic-specialty {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.status-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
}

.status-badge-lg {
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
}

.status-open { background: var(--green-soft); color: var(--green); border: 1px solid rgba(39,134,74,0.15); }
.status-coming-soon { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(184,134,11,0.15); }
.status-closed { background: var(--red-soft); color: var(--red); border: 1px solid rgba(192,57,43,0.15); }

.clinic-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.clinic-facts .fact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.clinic-facts .fact svg {
  flex-shrink: 0;
  color: var(--accent-bright);
}

.clinic-card-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.tag {
  padding: 0.22rem 0.55rem;
  background: var(--bg);
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-lg {
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
}

.tag.tag-peptide {
  background: rgba(230, 81, 0, 0.08);
  color: var(--amber);
}

.tag.tag-sms {
  background: rgba(0, 104, 239, 0.08);
  color: var(--accent-bright);
}

.clinic-card-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease);
}

.clinic-card-cta svg {
  transition: transform 0.2s var(--ease);
}

.clinic-card:hover .clinic-card-cta {
  background: var(--accent-bright);
}

.clinic-card:hover .clinic-card-cta svg {
  transform: translateX(3px);
}

/* Horizontal scroll-snap carousel for featured clinic rows */
.clinics-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  padding: 0.5rem 1rem 1rem;
  margin: 0 -1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.clinics-row > .clinic-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  min-height: 340px;
}

.clinics-row::-webkit-scrollbar { height: 8px; }
.clinics-row::-webkit-scrollbar-track { background: transparent; }
.clinics-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.clinics-row::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ==================== CLINIC DETAIL ==================== */
.clinic-detail {
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
}

.clinic-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.clinic-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.clinic-detail-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.clinic-detail-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.detail-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:first-child { padding-top: 0; }
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }

.detail-row svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.detail-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.detail-row a, .detail-row span {
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.detail-row a:hover {
  color: var(--accent-bright);
}

.clinic-detail-services {
  margin-top: 1.5rem;
}

.clinic-detail-services h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Sidebar */
.clinic-detail-sidebar {
  position: sticky;
  top: 80px;
}

.clinic-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 4px 12px rgba(37, 99, 196, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==================== CONTENT PAGES ==================== */
.content-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.content-container h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 4rem;
  margin-bottom: 1.25rem;
}

.content-container h2:first-child {
  margin-top: 0;
}

.content-container p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.content-container ul {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}

.content-container li {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.content-section {
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.65rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.content-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul, .content-section ol {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.content-section ul:last-child, .content-section ol:last-child {
  margin-bottom: 0;
}

.content-section li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

.content-section li:last-child {
  margin-bottom: 0;
}

.content-section a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(37, 99, 196, 0.3);
  transition: all 0.15s;
}

.content-section a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.content-section strong {
  font-family: 'Montserrat', -apple-system, sans-serif;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

/* ==================== PAGINATION ==================== */
.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  padding: 0.75rem 2.5rem;
  background: var(--bg-white);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.load-more-btn:hover {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.25);
  transform: translateY(-1px);
}

/* ==================== NO RESULTS ==================== */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ==================== FOOTER ==================== */
footer {
  border-top: none;
  background: #003580;
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  color: #FFFFFF;
  text-decoration: none;
}

.footer-logo em {
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

.footer-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ==================== DEAL BUTTON (Priceline orange CTA) ==================== */
.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #FF6600;
  color: #FFFFFF;
  border: 2px solid #FF6600;
  border-radius: var(--radius);
  padding: 0.8rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: 0;
}
.btn-yellow:hover {
  background: #E55B00;
  border-color: #E55B00;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,102,0,0.35);
}

/* ==================== FOR CLINICS CTA SECTION ==================== */
.for-clinics-cta {
  background: #003580;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.for-clinics-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,104,239,0.35) 0%, transparent 65%);
  pointer-events: none;
}
.for-clinics-cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.for-clinics-cta-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.for-clinics-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.for-clinics-cta ul {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.for-clinics-cta ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.for-clinics-cta ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4DBFFF;
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.for-clinics-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.for-clinics-stat {
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  width: 100%;
}
.for-clinics-stat strong {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #4DBFFF;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.for-clinics-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ==================== STATE ACCORDION (Zocdoc-style) ==================== */
.state-accordion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.state-accordion-item {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.state-accordion-item:nth-child(4n) { border-right: none; }
.state-accordion-item summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
}
.state-accordion-item summary::-webkit-details-marker { display: none; }
.state-accordion-item summary:hover { background: rgba(0,104,239,0.06); }
.state-accordion-item[open] summary {
  background: rgba(0,104,239,0.08);
  border-bottom: 1px solid var(--border);
}
.state-acc-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}
.state-acc-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.state-accordion-item[open] .state-acc-chevron { transform: rotate(180deg); }
.state-acc-body {
  padding: 0.6rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #F8FAFD;
}
.state-acc-body a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.22rem 0;
  transition: color 0.15s;
  display: block;
}
.state-acc-body a:hover { color: var(--accent-bright); }
.state-acc-all {
  margin-top: 0.5rem;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--accent-bright) !important;
  border-top: 1px solid var(--border);
  padding-top: 0.45rem !important;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  color: #FFFFFF;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .clinic-detail-grid {
    grid-template-columns: 1fr;
  }
  .clinic-detail-sidebar {
    position: static;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .state-accordion-grid { grid-template-columns: repeat(3, 1fr); }
  .state-accordion-item:nth-child(4n) { border-right: 1px solid var(--border); }
  .state-accordion-item:nth-child(3n) { border-right: none; }
  .for-clinics-cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  header { padding: 0 1rem; }

  .header-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #003580;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-stats { display: none; }
  .hero-image-wrapper { height: 340px; }
  .hero-content { margin-top: -5rem; padding: 0 1rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 0.9rem; }
  .filters-wrapper { padding: 0.6rem 1rem; top: 64px; }
  .clinics-section { padding: 0 1rem 3rem; }
  .clinics-grid { grid-template-columns: 1fr; }
  .results-count { margin-left: 0; width: 100%; margin-top: 0.5rem; }
  .filter-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .home-stats { gap: 1.5rem; }
  .home-stat strong { font-size: 2rem; }
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .quick-links { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .option-card { padding: 1.5rem 1.75rem; gap: 1.5rem; min-height: 120px; }
  .option-text span { font-size: 1.7rem; }
  .breadcrumbs { padding: 0.5rem 1rem; }
  .state-accordion-grid { grid-template-columns: repeat(2, 1fr); }
  .state-accordion-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .state-accordion-item:nth-child(2n) { border-right: none; }
  .for-clinics-stats { flex-direction: row; flex-wrap: wrap; }
  .for-clinics-stat { flex: 1; min-width: 140px; }
}

@media (max-width: 480px) {
  .search-bar { flex-direction: column; border-radius: var(--radius); }
  .search-icon { display: none; }
  .search-bar input { padding: 0.9rem 1rem; }
  .search-bar button { margin: 0.35rem; border-radius: 6px; }
  .quick-links { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .option-card { padding: 1.5rem 1rem; min-height: 130px; }
  .option-card { padding: 1.25rem 1.5rem; gap: 1.25rem; min-height: 100px; }
  .option-text span { font-size: 1.4rem; }
  .option-art { width: 52px; height: 65px; }
  .home-stats { flex-direction: column; gap: 0.75rem; }
  .state-accordion-grid { grid-template-columns: 1fr 1fr; }
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: -120px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transition: bottom 0.35s var(--ease);
}

.cookie-banner.visible {
  bottom: 0;
}

.cookie-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0;
  flex: 1;
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.cookie-btn:hover { opacity: 0.85; }

.cookie-btn-accept {
  background: var(--accent-bright);
  color: #fff;
}

.cookie-btn-decline {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ==================== COMPARE TABLE ==================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table thead {
  background: var(--accent);
  color: #fff;
}
.compare-table th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.compare-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.5;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:nth-child(even) {
  background: var(--bg);
}
.compare-table tbody tr:hover {
  background: rgba(30, 58, 95, 0.04);
}
@media (max-width: 640px) {
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.75rem; }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
