/* ==========================================================================
   RestoreNearMe - Custom Modern CSS
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Core Colors */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --brand-950: #020617; /* Used for heavy contrasts & dark UI */
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --rose-100: #ffe4e6;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  
  /* Icon Box Backgrounds */
  --icon-bg-blue: var(--blue-100);
  --icon-color-blue: var(--blue-600);
  --icon-bg-red: var(--rose-100);
  --icon-color-red: var(--rose-600);
  --icon-bg-green: #dcfce7;
  --icon-color-green: #16a34a;
  --icon-bg-purple: #f3e8ff;
  --icon-color-purple: #9333ea;
  --icon-bg-cyan: #cffafe;
  --icon-color-cyan: #0891b2;
  --icon-bg-orange: #ffedd5;
  --icon-color-orange: #ea580c;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1280px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- Resets & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--slate-50);
  color: var(--slate-900);
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--slate-900);
  color: white;
  padding: 12px 28px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background-color: #000;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-emergency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--rose-600);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
  gap: 8px;
}

.btn-emergency:hover {
  color: var(--rose-700);
  background-color: var(--rose-100);
  border-radius: var(--border-radius-full);
}

/* --- Navbar (Floating Pill) --- */
.navbar {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  transition: top 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.4);
  position: relative;
}

.navbar.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--slate-900);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--blue-600);
}

.font-normal {
  font-weight: 400;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
}

.nav-link:hover {
  color: var(--slate-900);
}

/* --- Dropdown Menus --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-trigger svg {
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background-color: var(--slate-50);
  color: var(--blue-600);
}

.dropdown-icon {
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--slate-100);
  margin: 4px 0;
}

.dropdown-view-all {
  color: var(--blue-600);
  font-weight: 600;
  justify-content: space-between;
}

.dropdown-view-all:hover {
  background-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1000;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--blue-600);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Hamburger to X animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  padding: 180px 24px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at top center, #e0e7ff 0%, var(--slate-50) 50%);
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  padding: 6px 16px;
  border-radius: var(--border-radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--slate-200);
}

.pulse {
  width: 8px;
  height: 8px;
  background-color: var(--blue-600);
  border-radius: 50%;
  position: relative;
}

.pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--blue-600);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--slate-600);
  margin-bottom: 48px;
  max-width: 650px;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 560px;
  background: white;
  border-radius: var(--border-radius-full);
  padding: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  border: 1px solid var(--slate-200);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search-form:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-600);
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.search-icon {
  color: var(--slate-400);
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--slate-900);
}

.search-input-wrapper input::placeholder {
  color: var(--slate-400);
}

.search-btn {
  padding: 16px 32px;
  font-size: 16px;
}

.hero-links {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--blue-600);
  font-weight: 500;
  margin-bottom: 48px;
}

.hero-links a:hover {
  text-decoration: underline;
}

.divider {
  color: var(--slate-300);
}

.trust-indicators {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--slate-600);
  font-weight: 500;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  color: var(--blue-600);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 600px;
}

.text-center p {
  margin: 0 auto;
}

/* --- Search Results Section --- */
.search-results-container {
  padding: 80px 0;
  background-color: white;
}

.search-results-container h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.search-results-container p {
  color: var(--slate-500);
  margin-bottom: 40px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.provider-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.provider-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.provider-rating {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--slate-600);
}

.star-icon {
  color: #fbbf24;
}

.provider-desc {
  font-size: 14px;
  color: var(--slate-600);
  margin-bottom: 20px;
  flex-grow: 1;
}

.provider-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-tag {
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.provider-actions {
  display: flex;
  gap: 12px;
}

.provider-actions .btn-primary, 
.provider-actions .btn-secondary {
  flex: 1;
  padding: 10px;
}

.provider-actions .btn-secondary {
  background-color: white;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.provider-actions .btn-secondary:hover {
  background-color: var(--slate-50);
}


/* --- How it Works --- */
.how-it-works {
  padding: 100px 0;
  background-color: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background-color: var(--slate-50);
  padding: 40px 32px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--slate-200);
  position: relative;
}

.step-number {
  background-color: var(--blue-600);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--slate-600);
  font-size: 16px;
}

/* --- Bento Box / Services --- */
.services {
  padding: 100px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background-color: white;
  padding: 32px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-wrapper.blue { background-color: var(--icon-bg-blue); color: var(--icon-color-blue); }
.icon-wrapper.red { background-color: var(--icon-bg-red); color: var(--icon-color-red); }
.icon-wrapper.green { background-color: var(--icon-bg-green); color: var(--icon-color-green); }
.icon-wrapper.purple { background-color: var(--icon-bg-purple); color: var(--icon-color-purple); }
.icon-wrapper.cyan { background-color: var(--icon-bg-cyan); color: var(--icon-color-cyan); }
.icon-wrapper.orange { background-color: var(--icon-bg-orange); color: var(--icon-color-orange); }

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--slate-600);
  font-size: 15px;
}

/* Make bottom row two wider cards if needed, originally it was 3x2 grid */
/* --- CTA Section --- */
.cta-section {
  padding: 40px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container-cta {
  background-color: var(--brand-950);
  border-radius: 32px;
  padding: 80px 64px;
  color: white;
  display: flex;
  align-items: center;
  gap: 64px;
  overflow: hidden;
  position: relative;
}

/* Subtle glow effect behind the box */
.container-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  flex: 1;
  z-index: 10;
}

.cta-badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.cta-content h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.cta-content p {
  font-size: 18px;
  color: var(--slate-300);
  margin-bottom: 40px;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
}

.cta-buttons .btn-primary {
  background-color: var(--blue-600);
}

.cta-buttons .btn-primary:hover {
  background-color: var(--blue-700);
}

.cta-image {
  flex: 1;
  display: flex;
  justify-content: center;
  z-index: 10;
}

/* Dashboard Mockup in CSS */
.notification-mockup {
  background-color: #1e293b;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
}

.container-cta:hover .notification-mockup {
  transform: rotate(0deg) translateY(-10px);
}

.notif-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.notif-icon {
  background-color: var(--rose-600);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.notif-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-text strong {
  font-size: 16px;
  font-weight: 600;
}

.notif-text span {
  font-size: 13px;
  color: var(--slate-400);
}

.notif-skeleton {
  height: 32px;
  background-color: var(--slate-700);
  border-radius: 8px;
  margin-bottom: 12px;
}

.notif-skeleton.short {
  width: 80%;
  margin-bottom: 24px;
}

.notif-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--blue-600);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.notif-btn:hover {
  background-color: var(--blue-700);
}

/* --- FAQ Section --- */
.faq-section {
  padding: 100px 0;
  background-color: var(--slate-50);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--border-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-900);
  background: white;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: var(--slate-50);
}

.faq-icon {
  color: var(--blue-600);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--slate-600);
}

.faq-item.active .faq-answer {
  padding: 0 24px 24px;
  max-height: 300px; /* arbitrary height to allow animation */
}

/* --- Footer --- */
.footer {
  background-color: white;
  padding-top: 80px;
  border-top: 1px solid var(--slate-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.logo-footer .logo-icon {
  color: var(--blue-600);
}

.footer-slogan {
  margin-top: 16px;
  color: var(--slate-600);
  font-size: 14px;
  max-width: 300px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
  color: var(--slate-400);
}

.social-links a:hover {
  color: var(--blue-600);
}

.footer-links h3, .footer-contact h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--slate-600);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--blue-600);
}

.mt-xl {
  margin-top: 32px;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-600);
  font-size: 14px;
}

.footer-contact a:hover {
  color: var(--blue-600);
}

.footer-bottom {
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
}

.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-500);
  font-size: 14px;
}

.legal-links {
  display: flex;
  gap: 24px;
}

.legal-links a:hover {
  color: var(--slate-900);
}

/* =========================================================================
   Browse Grid & City Directory Styles
   ========================================================================= */

.browse-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.browse-hero, .city-hero {
  background: linear-gradient(135deg, var(--slate-50) 0%, #e0e7ff 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate-600);
  background: white;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 32px;
}

.breadcrumbs a {
  color: var(--slate-600);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a:hover {
  color: var(--blue-600);
}

.breadcrumbs .separator {
  color: var(--slate-400);
  font-size: 12px;
}

.browse-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.browse-title .text-blue {
  color: var(--blue-600);
}

.browse-subtitle {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.browse-stats {
  display: inline-flex;
  gap: 24px;
  background: white;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 600;
  font-size: 15px;
}

.stat-item svg {
  color: var(--blue-600);
}

/* Map Placeholder Element */
.map-placeholder {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--slate-100);
}

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

.map-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--slate-900);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--slate-600);
}

.legend-swatches {
  display: flex;
  gap: 4px;
}

.swatch {
  width: 20px;
  height: 8px;
  border-radius: 4px;
}

/* Interactive US Map Styles */
.us-map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.us-map-container svg {
  width: 100%;
  height: auto;
}

.us-map-container .borders {
  stroke: #ffffff;
  stroke-width: 1px;
}

.us-map-container .state path, 
.us-map-container .state circle {
  fill: #e2e8f0; /* slate-200 default */
  transition: fill 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 1px;
}

.us-map-container .state path:hover,
.us-map-container .state circle:hover {
  fill: #2563eb !important; /* blue-600 */
  filter: brightness(1.1);
  outline: none;
}

.us-map-container .active-map-state {
  fill: #2563eb !important; /* blue-600 */
}

/* State Grid Section */
.browse-content {
  padding: 60px 0 100px;
  background: var(--slate-50);
}

.section-divider {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--slate-200);
  z-index: 1;
}

.section-divider span {
  position: relative;
  z-index: 2;
  background: var(--slate-50);
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: 1px;
}

.search-bar-wrapper {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--slate-400);
}

.state-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--slate-200);
  border-radius: 100px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.state-search-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.state-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.state-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1);
  border-color: var(--blue-200);
}

.state-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 16px;
}

.state-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.state-abbr {
  font-size: 14px;
  color: var(--slate-500);
  font-weight: 500;
}

.provider-badge {
  background: #eff6ff;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.city-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.city-link {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  padding: 8px 0;
  color: var(--slate-700);
  font-size: 15px;
  transition: color 0.2s;
}

.city-link:hover {
  color: var(--blue-600);
}

.city-name {
  font-weight: 500;
}

.city-count {
  color: var(--slate-500);
  font-size: 14px;
}

.more-cities {
  font-size: 14px;
  color: var(--slate-400);
  padding: 8px 0;
  font-weight: 500;
}

.browse-providers-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 15px;
  padding: 12px;
  background: var(--slate-50);
  border-radius: 8px;
  transition: background 0.2s;
}

.browse-providers-link:hover {
  background: #eff6ff;
}

/* --- City Directory Layout --- */
.city-hero {
  text-align: left;
  padding-bottom: 40px;
}

.city-hero .browse-subtitle {
  margin: 0 0 24px;
}

.city-hero .browse-stats {
  margin-bottom: 0;
}

.city-content {
  background: var(--slate-50);
  padding: 40px 0 100px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr minmax(500px, 1fr);
  gap: 40px;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.provider-card-h {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid var(--slate-100);
  transition: transform 0.2s, box-shadow 0.2s;
}

.provider-card-h:hover {
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1);
  border-color: var(--blue-200);
  transform: translateY(-2px);
}

.provider-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 800;
  flex-shrink: 0;
}

.provider-info {
  flex: 1;
}

.provider-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.provider-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.star-icon {
  color: #f59e0b;
}

.rating-val {
  font-weight: 700;
  color: var(--slate-900);
}

.review-count {
  color: var(--slate-500);
}

.trust-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--slate-300);
}

.years-biz {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-600);
  font-weight: 500;
}

.provider-address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
  margin-bottom: 12px;
}

.provider-bio {
  color: var(--slate-600);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.provider-tags .tag {
  background: #eff6ff;
  color: var(--blue-600);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.provider-tags .tag-more {
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.provider-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn.compact {
  padding: 10px 20px;
  font-size: 15px;
}

.view-profile-link {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.view-profile-link:hover {
  text-decoration: underline;
}

.map-column {
  position: relative;
}

.sticky-map {
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1);
  border: 4px solid white;
}

.sticky-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {

  .hero-title {
    font-size: 48px;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .bento-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .container-cta {
    flex-direction: column;
    padding: 64px 40px;
    text-align: center;
  }
  
  .cta-content p {
    margin: 0 auto 40px;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  /* Browse Page Adjustments */
  .state-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .split-layout {
    grid-template-columns: 1fr;
  }
  .sticky-map {
    position: relative;
    top: 0;
    height: 400px;
    margin-top: 24px;
    border-radius: 12px;
  }
}

/* --- Tools Page --- */
.tools-hero {
  background-color: var(--slate-50);
  background-image: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--slate-200);
}

.tools-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tools-subtitle {
  font-size: 20px;
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.tools-section {
  padding: 80px 0;
  background-color: var(--slate-50);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tool-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:not(.disabled):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tool-content {
  flex-grow: 1;
  margin-bottom: 24px;
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.tool-card p {
  color: var(--slate-600);
  line-height: 1.6;
  font-size: 15px;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--slate-100);
  color: var(--slate-500);
  padding: 12px 24px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: 14px;
  cursor: not-allowed;
  border: 1px solid var(--slate-200);
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
    gap: 20px;
    text-align: center;
  }
  
  .dropdown {
    width: 100%;
  }

  .dropdown-trigger {
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding: 12px 0 0 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown-item {
    justify-content: center;
    padding: 10px 16px;
  }

  .nav-links.active {
    display: flex;
  }
  
  .nav-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 140px 16px 60px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .search-form {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 12px;
    border: none;
  }
  
  .search-input-wrapper {
    background: white;
    padding: 12px 16px;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
  }
  
  .search-btn {
    width: 100%;
  }

  .bento-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .bottom-flex {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  /* Browse Page Adjustments */
  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .browse-title {
    font-size: 36px;
  }
  .search-bar-wrapper {
    max-width: 100%;
  }
  .provider-card-h {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .state-grid {
    grid-template-columns: 1fr;
  }
}
