/* ============================================
   Riga Dental Directory — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #E0F2FE;
  --accent: #10B981;
  --accent-light: #D1FAE5;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 200ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Focus Rings (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Layout Containers --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navbar --- */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-brand svg { flex-shrink: 0; }

.navbar-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active { color: var(--primary); }

.nav-feedback-btn {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-feedback-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0.45;
  transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
}

.lang-btn:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(2, 100, 173, 0.72), rgba(2, 132, 199, 0.78)), url('../assets/background.jpeg') center/cover no-repeat;
  color: white;
  padding: 56px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto 24px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  background: white;
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
}

.hero-search input::placeholder { color: var(--text-muted); }

.hero-search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-stats span { white-space: nowrap; }

/* --- Help Me Choose Strip --- */
.quick-picks {
  padding: 24px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.quick-picks-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-picks-inner::-webkit-scrollbar { display: none; }

.quick-pick-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.quick-pick-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.quick-pick-card .qp-icon { font-size: 1.3rem; }
.quick-pick-card .qp-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* --- Filter Bar --- */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 53px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.filter-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-section-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Filter Pills */
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Filter Selects */
.filter-select {
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
}

.filter-select:focus { border-color: var(--primary); }

.filter-time-input {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--text-primary);
}

/* Price Range Slider */
.price-range-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-range-wrapper input[type="range"] {
  width: 160px;
  accent-color: var(--primary);
}

.price-range-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Clear Filters */
.clear-filters {
  font-size: 0.82rem;
  color: var(--danger);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 50px;
  transition: background var(--transition);
}

.clear-filters:hover { background: var(--danger-light); }
.clear-filters.visible { display: inline-flex; }

/* --- Default Reviews Note --- */
.default-filter-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 4px 0;
}

.default-filter-note a {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

/* --- Split View Layout --- */
.split-view {
  display: flex;
  min-height: calc(100vh - 180px);
}

.map-column {
  width: 42%;
  position: sticky;
  top: 110px;
  height: calc(100vh - 110px);
  flex-shrink: 0;
  z-index: 1;
}

.map-column #map {
  width: 100%;
  height: 100%;
}

.list-column {
  width: 58%;
  padding: 20px 24px;
  min-height: 100%;
}

/* Map toolbar */
.map-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  display: flex;
  gap: 6px;
}

.map-toolbar button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}

.map-toolbar button:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* Mobile Tabs */
.mobile-view-tabs {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mobile-view-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.mobile-view-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --- Results Count --- */
.results-count {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 0 4px;
}

/* --- Clinic Cards --- */
.clinic-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 20px;
  transition: all 300ms ease;
  position: relative;
  animation: fadeInUp 300ms ease both;
}

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

.card.highlighted {
  border-left: 4px solid var(--primary);
}

.card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.card-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.card-logo-placeholder img {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

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

.card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-name a {
  color: inherit;
  text-decoration: none;
}

.card-name a:hover { color: var(--primary); }

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-rating {
  background: var(--warning-light);
  color: #92400E;
}

.badge-rating.rating-high {
  background: var(--accent-light);
  color: #065F46;
}

.badge-rating.rating-low {
  background: #F1F5F9;
  color: var(--text-muted);
}

.badge-reviews {
  background: #F1F5F9;
  color: var(--text-secondary);
}

.badge-open {
  background: var(--accent-light);
  color: #065F46;
}

.badge-closed {
  background: var(--danger-light);
  color: #991B1B;
}

.badge-price {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-popular {
  background: #FEF3C7;
  color: #92400E;
}

.badge-few-reviews {
  background: #F1F5F9;
  color: var(--text-muted);
}

/* Card Address */
.card-address {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Card Prices */
.card-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  color: #166534;
  white-space: nowrap;
}

.price-tag.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Card Review Summary */
.card-review-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.card-review-summary.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-review-summary.expanded {
  display: block;
}

.read-more-toggle {
  color: var(--primary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Compare Button */
.compare-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.compare-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.compare-btn.added {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Stars */
.stars {
  display: inline-flex;
  gap: 1px;
  vertical-align: middle;
}

.stars svg {
  width: 14px;
  height: 14px;
}

.star-filled { color: #FBBF24; fill: #FBBF24; }
.star-half { color: #FBBF24; fill: url(#half-star-gradient); }
.star-empty { color: #D1D5DB; fill: #D1D5DB; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-light);
}

/* --- Comparison Tray --- */
.comparison-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 12px 24px;
  transform: translateY(100%);
  transition: transform 300ms ease;
}

.comparison-tray.visible {
  transform: translateY(0);
}

.comparison-tray-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comparison-tray-items {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow-x: auto;
}

.comparison-tray-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.comparison-tray-item img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
}

.comparison-tray-item .remove-compare {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 2px;
  line-height: 1;
}

.comparison-tray-item .remove-compare:hover { color: var(--danger); }

.comparison-tray-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  opacity: 0.4;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* --- Profile Page --- */
.profile-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.profile-header-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.profile-logo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.profile-logo-placeholder {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.profile-logo-placeholder img { width: 48px; height: 48px; opacity: 0.5; }

.profile-info { flex: 1; }

.profile-name {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

.profile-meta a { color: var(--text-secondary); }
.profile-meta a:hover { color: var(--primary); }

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 53px;
  z-index: 50;
}

.tab {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.tab:hover { color: var(--text-primary); }

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
  padding: 24px 0;
}

.tab-content.active { display: block; }

/* Profile Hours Table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td { padding: 10px 16px; }
.hours-table td:first-child {
  font-weight: 600;
  width: 140px;
}

.hours-table tr.today {
  background: var(--primary-light);
}

/* Profile Price Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.price-table tr:hover { background: var(--bg); }

.price-cheaper { color: var(--accent); font-weight: 600; }
.price-average { color: var(--text-secondary); }
.price-pricier { color: var(--danger); font-weight: 600; }

.service-info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: help;
  margin-left: 6px;
  position: relative;
}

.service-info-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 24px;
  top: -8px;
  background: var(--text-primary);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  white-space: nowrap;
  z-index: 100;
  font-weight: 400;
}

/* Review Cards */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.review-summary-card {
  background: var(--primary-light);
  border: 1px solid #BAE6FD;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary);
  position: relative;
}

.review-summary-card::before {
  content: '"';
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}

/* Profile Location */
.profile-map-embed {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  z-index: 200;
  padding: 12px 16px;
  gap: 12px;
}

.mobile-bottom-bar .btn { flex: 1; padding: 14px; justify-content: center; font-size: 1rem; }

/* --- Compare Page --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
  vertical-align: top;
}

.compare-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-secondary);
  position: sticky;
  top: 53px;
  z-index: 10;
}

.compare-table .row-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.82rem;
  white-space: nowrap;
  background: var(--bg);
  width: 160px;
}

.compare-table .section-header {
  background: #F1F5F9;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.compare-cell-cheapest {
  background: var(--accent-light);
  font-weight: 600;
}

.compare-cell-best {
  background: var(--accent-light);
  font-weight: 600;
}

.compare-cell-na { color: var(--text-muted); }

.compare-header-cell {
  text-align: center;
}

.compare-header-cell img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  margin: 0 auto 8px;
}

.compare-header-cell .compare-remove {
  font-size: 0.78rem;
  color: var(--danger);
  cursor: pointer;
  background: none;
  border: none;
  margin-top: 4px;
}

/* Compare Add Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}

.modal-search {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.modal-results {
  max-height: 300px;
  overflow-y: auto;
}

.modal-result-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.modal-result-item:hover { background: var(--bg); }

/* --- Map Popup --- */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
  min-width: 240px;
}

.leaflet-popup-tip-container { margin-top: -1px; }

.map-popup {
  padding: 14px 14px 10px;
  font-family: var(--font);
  line-height: 1.4;
}

.map-popup a { text-decoration: none; }

/* User location marker */
.user-location-marker {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.1); }
  100% { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3); }
}

/* Marker pulse on hover */
.marker-pulse {
  animation: marker-bounce 600ms ease;
}

@keyframes marker-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-suggest {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: color var(--transition);
}

.footer-suggest:hover { color: var(--primary-dark); }

/* --- Feedback Modal --- */
.feedback-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.feedback-overlay.open { display: flex; }

.feedback-modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 250ms ease both;
}

.feedback-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
}

.feedback-modal-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.feedback-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.feedback-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  transition: color var(--transition);
}

.feedback-close:hover { color: var(--danger); }

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feedback-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.feedback-form-group input,
.feedback-form-group select,
.feedback-form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 0.93rem;
  transition: border-color var(--transition);
  font-family: inherit;
}

.feedback-form-group input:focus,
.feedback-form-group select:focus,
.feedback-form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.feedback-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  justify-content: center;
}

.feedback-success {
  padding: 12px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  color: #166534;
  font-size: 0.88rem;
  line-height: 1.5;
}

.feedback-error {
  padding: 12px 14px;
  background: var(--danger-light);
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.88rem;
}

.feedback-status { margin-top: 4px; }

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:nth-child(1) { animation-delay: 0ms; }
.card:nth-child(2) { animation-delay: 40ms; }
.card:nth-child(3) { animation-delay: 80ms; }
.card:nth-child(4) { animation-delay: 120ms; }
.card:nth-child(5) { animation-delay: 160ms; }
.card:nth-child(6) { animation-delay: 200ms; }
.card:nth-child(7) { animation-delay: 240ms; }
.card:nth-child(8) { animation-delay: 280ms; }

.fade-out {
  opacity: 0;
  transition: opacity 150ms ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 300ms ease;
}

/* --- Leaflet Cluster Override --- */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(14, 165, 233, 0.2) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* --- Mobile Filter Trigger Bar --- */
.mobile-filter-trigger-bar { display: none; }
.filter-drawer-header { display: none; }
.filter-drawer-footer { display: none; }

.filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 295;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.filter-drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 900px) {
  .map-column { display: none; }
  .list-column { width: 100%; }

  .mobile-view-tabs { display: flex; }

  .split-view.show-map .map-column {
    display: block;
    width: 100%;
    height: calc(100vh - 180px);
    position: relative;
    z-index: 1;
  }

  .split-view.show-map .list-column { display: none; }

  /* --- Mobile Filter Trigger Bar --- */
  .mobile-filter-trigger-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 53px;
    z-index: 92;
    box-shadow: var(--shadow-sm);
  }

  .mobile-filter-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
  }

  .mobile-filter-open-btn:hover,
  .mobile-filter-open-btn.has-filters {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
  }

  .mobile-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-filter-badge:empty { display: none; }

  .mobile-trigger-sort {
    flex-shrink: 0;
    font-size: 0.82rem;
  }

  /* --- Filter Bar as Bottom Sheet --- */
  .filter-bar {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 300;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.18);
    padding: 0;
    border-bottom: none;
  }

  .filter-bar.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .filter-bar .container {
    padding: 0 20px 20px;
  }

  /* Drawer handle bar */
  .filter-bar .container::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 12px auto 0;
  }

  /* Drawer header */
  .filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 5;
  }

  .filter-drawer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .filter-drawer-close {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
  }

  .filter-drawer-close:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
  }

  /* Vertical layout inside drawer */
  .filter-sections {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 0;
    padding-bottom: 0;
  }

  .filter-section {
    flex-shrink: 1;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .filter-section:last-child {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .filter-section-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Drawer footer */
  .filter-drawer-footer {
    display: block;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    position: sticky;
    bottom: 0;
    background: var(--surface);
    z-index: 5;
  }

  .filter-drawer-done {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
  }

  .filter-drawer-done:hover {
    background: var(--primary-dark);
  }

  /* Overlay visibility */
  .filter-drawer-overlay {
    display: block;
    pointer-events: none;
  }

  .filter-section { flex-shrink: 0; }

  .profile-header-inner { flex-direction: column; }
  .profile-name { font-size: 1.4rem; }

  .mobile-bottom-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 72px; }

  /* Compare page mobile */
  .compare-table { display: none; }
  .compare-cards-mobile { display: block; }
}

/* Mobile */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .hero-search input { padding: 14px 16px 14px 44px; font-size: 0.95rem; }

  /* Quick picks: 2x2 grid on mobile */
  .quick-picks-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    gap: 10px;
  }

  .quick-pick-card {
    flex-shrink: 1;
    white-space: normal;
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .quick-pick-card .qp-desc { font-size: 0.75rem; }

  .card { padding: 16px; }
  .card-logo, .card-logo-placeholder { width: 44px; height: 44px; }
  .card-name { font-size: 1rem; }
  .compare-btn { padding: 5px 8px; font-size: 0.72rem; }

  .filter-pill { padding: 5px 10px; font-size: 0.78rem; }

  .tab { padding: 12px 16px; font-size: 0.85rem; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .navbar-links { gap: 12px; }
  .navbar-links a { font-size: 0.82rem; }
}

/* Very small */
@media (max-width: 375px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 1.4rem; }
  .card-header { gap: 10px; }
}

/* Compare cards mobile fallback */
.compare-cards-mobile { display: none; }

@media (min-width: 901px) {
  .compare-cards-mobile { display: none !important; }
}

.compare-mobile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.compare-mobile-card h3 { margin-bottom: 12px; }

.compare-mobile-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.compare-mobile-row:last-child { border-bottom: none; }

.compare-mobile-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Booking Button --- */
.btn-booking {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white !important;
  border-color: #059669;
  font-weight: 600;
}

.btn-booking:hover {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #047857;
  color: white !important;
}

/* --- Booking Modal --- */
.booking-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.booking-overlay.open { display: flex; }

.booking-modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 250ms ease both;
}

.booking-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
}

.booking-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.booking-modal-header h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.booking-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.booking-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: color var(--transition);
}

.booking-close:hover { color: var(--danger); }

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.booking-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.booking-form-group input,
.booking-form-group select,
.booking-form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color var(--transition);
  resize: vertical;
  font-family: inherit;
}

.booking-form-group input:focus,
.booking-form-group select:focus,
.booking-form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.booking-discount-note {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #166534;
  line-height: 1.5;
}

.booking-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  justify-content: center;
}

.booking-success {
  padding: 12px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  color: #166534;
  font-size: 0.88rem;
  line-height: 1.5;
}

.booking-error {
  padding: 12px 14px;
  background: var(--danger-light);
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  color: #991B1B;
  font-size: 0.88rem;
}

.booking-status { margin-top: 4px; }

/* --- Hamburger Menu --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.hamburger-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-nav-overlay.visible {
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--surface);
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-header img {
  height: 40px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}

.mobile-nav-close:hover { color: var(--danger); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
}

.mobile-nav-feedback-btn {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all var(--transition);
}

.mobile-nav-feedback-btn:hover {
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mobile-nav-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.mobile-nav-lang span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .navbar-links { display: none !important; }
}

/* --- Top 100 Page --- */
.top100-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0284C7 100%);
  color: white;
  padding: 56px 0 48px;
  text-align: center;
}

.top100-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 10px;
}

.top100-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 28px;
}

.top100-basis-box {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
}

.top100-basis-box strong { color: #93C5FD; }

.top100-stats-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.top100-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.top100-stat-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.top100-stat-label { font-size: 0.8rem; opacity: 0.75; }

.top100-section {
  padding: 40px 0;
}

.top100-section-header {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.top100-section-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.top100-section-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 700px;
}

.top100-excluded-section {
  background: #FFFBEB;
  border-top: 1px solid #FDE68A;
  border-bottom: 1px solid #FDE68A;
  padding: 40px 0;
}

.top100-excluded-section .top100-section-header h2 {
  color: #92400E;
}

/* Ranking Table */
.ranking-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
}

.ranking-table th {
  background: #F8FAFC;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.ranking-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.ranking-table tr:last-child td { border-bottom: none; }

.ranking-table tr:hover td { background: #F8FAFC; }

.rank-num {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  min-width: 36px;
  text-align: center;
}

.rank-medal { font-size: 1.3rem; text-align: center; min-width: 36px; }

.clinic-name-cell { font-weight: 600; color: var(--text-primary); }
.clinic-name-cell a { color: var(--text-primary); }
.clinic-name-cell a:hover { color: var(--primary); }

.clinic-address-cell {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.stars-cell { white-space: nowrap; }

.rating-val {
  font-weight: 700;
  font-size: 0.95rem;
}

.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tier-Elite    { background: #FEF3C7; color: #92400E; }
.tier-Excellent { background: #EDE9FE; color: #5B21B6; }
.tier-Great    { background: #D1FAE5; color: #065F46; }
.tier-Good     { background: #E0F2FE; color: #0369A1; }
.tier-Fair     { background: #FEF9C3; color: #713F12; }
.tier-Poor     { background: #FEE2E2; color: #991B1B; }

.score-cell {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

/* Excluded table (simpler) */
.excluded-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #FDE68A;
}

.excluded-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
}

.excluded-table th {
  background: #FEF3C7;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #FDE68A;
  white-space: nowrap;
}

.excluded-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #FEF3C7;
  vertical-align: middle;
}

.excluded-table tr:last-child td { border-bottom: none; }
.excluded-table tr:hover td { background: #FFFBEB; }

/* Methodology Section */
.methodology-section {
  background: var(--surface);
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}

.methodology-section h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.methodology-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 32px;
}

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
}

.method-step {
  display: flex;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.method-step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.method-step-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.method-step-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
  max-width: 800px;
}

.tier-card {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.method-caveats {
  max-width: 800px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
}

.method-caveats h3 {
  font-size: 1rem;
  color: #9A3412;
  margin-bottom: 8px;
}

.method-caveats p {
  font-size: 0.88rem;
  color: #7C3019;
  line-height: 1.65;
}

/* Top100 Mobile */
@media (max-width: 768px) {
  .top100-hero h1 { font-size: 1.6rem; }
  .top100-hero { padding: 36px 0 32px; }
  .top100-stat-num { font-size: 1.5rem; }
  .ranking-table th:nth-child(5),
  .ranking-table td:nth-child(5),
  .ranking-table th:nth-child(6),
  .ranking-table td:nth-child(6) { display: none; }
  .method-step { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .ranking-table th:nth-child(4),
  .ranking-table td:nth-child(4) { display: none; }
}

/* --- SEO Content Section --- */
.seo-content {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.seo-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-align: center;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.seo-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.seo-item p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .seo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .seo-content { padding: 32px 0 28px; }
}

/* --- Print Stylesheet --- */
@media print {
  .navbar, .filter-bar, .mobile-view-tabs, .mobile-bottom-bar,
  .comparison-tray, .map-column, .quick-picks, .hero-search,
  .card-actions, .compare-btn, .map-toolbar, .profile-tabs,
  .footer, .btn, .modal-overlay, .seo-content { display: none !important; }

  body { background: white; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .split-view { display: block; }
  .list-column { width: 100%; padding: 0; }
  .profile-header { padding: 16px 0; }
  .tab-content { display: block !important; padding: 16px 0; }
  .tab-content h2 { margin-bottom: 8px; }
}
