html {
  font-size: 16px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Focus */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

/* Base layout */
body.site-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fc;
  color: #1f2937;
}

main,
.page-content {
  flex: 1;
}

.container {
  position: relative;
  z-index: 1;
}

/* Navbar */
.main-navbar {
  min-height: 72px;
  background-color: #0d6efd !important;
}

.navbar-brand {
  letter-spacing: 0.2px;
  font-size: 1.2rem;
  font-weight: 600;
}

.navbar .nav-link {
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

  .navbar .nav-link:hover,
  .navbar .nav-link:focus {
    color: rgba(255, 255, 255, 0.9);
  }

.navbar-nav .nav-item {
  list-style: none;
}

.nav-item.dropdown .dropdown-menu {
  list-style: none;
  padding-left: 0;
}

.language-toggle {
  min-width: 48px;
  text-align: center;
  font-weight: 600;
}

.page-content {
  padding-top: 110px;
  min-height: calc(100vh - 160px);
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}

  .dropdown-item:hover {
    background-color: #f3f6fb;
  }

/* Desktop hover dropdown */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .navbar .dropdown-toggle::after {
    transition: transform 0.2s ease;
  }

  .navbar .dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Footer */
.site-footer,
footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.footer-link {
  color: #495057;
  text-decoration: none;
}

  .footer-link:hover {
    text-decoration: underline;
  }

/* Generic cards */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-card {
  height: 100%;
}

.card-icon {
  font-size: 3rem;
  color: #007bff;
}

/* ===== Home page ===== */

.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, #0d6efd 0%, #3d8bfd 50%, #6ea8fe 100%);
  color: #fff;
  padding: 72px 0 64px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 30%), radial-gradient(circle at bottom left, rgba(255,255,255,0.10), transparent 35%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-subtitle {
  max-width: 640px;
  font-size: 1.1rem;
  opacity: 0.94;
}

.hero-actions .btn {
  min-width: 170px;
  border-radius: 12px;
  font-weight: 600;
}

.hero-btn-primary {
  color: #0d6efd;
}

.hero-btn-secondary {
  border-width: 2px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-feature-item {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.hero-card-body {
  padding: 2rem;
}

.hero-card-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-card-text {
  opacity: 0.92;
  margin-bottom: 1.25rem;
}

.hero-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.5rem;
}

.hero-category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-category-pill::after {
  content: "\2192";
  font-size: 0.95rem;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-category-pill:hover {
  color: #fff;
  opacity: 0.95;
}

.hero-category-pill:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

.hero-category-pill:last-child {
  border-bottom: none;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.hero-benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.hero-benefit-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Section headings */
.section-heading {
  max-width: 760px;
  margin: 0 auto;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #0d6efd;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1.05rem;
}

/* Logos */
.trusted-section {
  padding-top: 1rem;
}

.logo-carousel-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eef1f5;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  padding: 1.25rem 0;
}

.logo-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: scroll-logos 26s linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: all 0.2s ease;
}

  .carousel-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
  }

@keyframes scroll-logos {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Categories */
.categories-section {
  padding-top: 1rem;
}

.category-card {
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

  .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
  }

.category-card-body {
  padding: 1.75rem;
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(13,110,253,0.10);
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.category-description {
  color: #6b7280;
  margin-bottom: 1.25rem;
  min-height: 72px;
}

.category-link {
  text-decoration: none;
  font-weight: 700;
  color: #0d6efd;
}

  .category-link:hover {
    color: #0a58ca;
  }

.category-link-arrow {
  margin-left: 0.35rem;
}

/* Steps */
.how-it-works-section {
  padding-top: 1rem;
}

.step-card {
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
  padding: 1.75rem;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.step-text {
  color: #6b7280;
  margin-bottom: 0;
}

/* Bottom CTA */
.bottom-cta-section {
  margin-bottom: 2rem;
}

.bottom-cta-box {
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
  padding: 2rem;
}

.bottom-cta-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.bottom-cta-text {
  color: #6b7280;
  font-size: 1.02rem;
}

/* Why choose */
.why-choose-section .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.why-choose-section .col,
.why-choose-section .col-md-4 {
  display: flex;
  justify-content: center;
}

.why-choose-card,
.why-choose-section .why-choose-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  min-height: 350px;
  flex-grow: 1;
}

  .why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .why-choose-card .card-title {
    font-size: 1.25rem;
    color: #333;
    font-weight: bold;
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .why-choose-card .card-text {
    color: #555;
    flex-grow: 2;
  }

  .why-choose-card i {
    color: #007bff;
    margin-bottom: 10px;
  }

.why-choose h2 {
  color: #333;
}

/* Business type selection */
.business-type-card {
  border: 2px solid #007bff;
  color: #007bff;
  transition: all 0.3s ease;
}

  .business-type-card.selected {
    background-color: #007bff;
    color: #fff;
    border-color: #fff;
  }

  .business-type-card h6 {
    font-size: 0.9rem;
  }

.business-subtype-card.selected {
  background-color: #007bff !important;
  color: #fff;
  border-color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 56px 0 48px;
    border-radius: 0 0 22px 22px;
  }

  .hero-card-body {
    padding: 1.5rem;
  }

  .category-description {
    min-height: auto;
  }

  .navbar-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .page-content {
    padding-top: 100px;
  }
}

@media (max-width: 767px) {
  .why-choose-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  .hero-actions .btn {
    width: 100%;
  }

  .hero-features {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-logo {
    height: 42px;
  }

  .logo-item {
    padding: 0 1.25rem;
  }
}


/* ===== Auth shell ===== */

.auth-shell {
  padding: 2rem 0 3rem;
}

.auth-shell-wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.auth-shell-row {
  min-height: calc(100vh - 180px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  background: #ffffff;
  border: 1px solid #e8edf5;
}

/* Left promo side */
.auth-promo-col {
  background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%), linear-gradient(135deg, #0d6efd 0%, #3d8bfd 48%, #6ea8fe 100%);
  color: #fff;
}

.auth-promo-panel {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.auth-promo-inner {
  width: 100%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-promo-brand {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.86);
}

.auth-promo-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.auth-promo-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.auth-promo-points {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.auth-promo-point {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
}

.auth-promo-point-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.auth-promo-mini-card {
  margin-top: 0.5rem;
  max-width: 440px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 1.25rem 1.25rem;
  backdrop-filter: blur(10px);
}

.auth-promo-mini-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.76);
  margin-bottom: 0.45rem;
}

.auth-promo-mini-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}

.auth-promo-mini-text {
  font-size: 0.96rem;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

/* Right form side */
.auth-form-col {
  background: #ffffff;
}

.auth-form-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.auth-form-header {
  margin-bottom: 1.5rem;
}

.auth-form-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0d6efd;
}

.auth-form-title {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.auth-form-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 0;
}

.auth-form-block {
  margin-top: 0.5rem;
}

.auth-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.auth-input {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid #d9e2ec;
  padding: 0.75rem 0.95rem;
  box-shadow: none;
  font-size: 0.98rem;
}

.auth-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.auth-actions {
  margin-top: 0.5rem;
}

.auth-submit-btn,
.auth-dev-btn {
  min-height: 54px;
  border-radius: 14px;
  font-weight: 700;
}

.auth-alert {
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.auth-form-links {
  margin-top: 1.5rem;
  text-align: left;
}

.auth-form-signup {
  margin-top: 1rem;
  text-align: left;
}

.auth-link {
  color: #0d6efd;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-form-back {
  margin-top: 1.5rem;
}

.auth-back-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.95rem;
}

.auth-back-link:hover {
  color: #374151;
  text-decoration: underline;
}

.auth-env-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 991.98px) {
  .auth-shell {
    padding: 1rem 0 2rem;
  }

  .auth-shell-row {
    min-height: auto;
    border-radius: 24px;
  }

  .auth-promo-inner,
  .auth-form-panel {
    padding: 2rem;
  }

  .auth-promo-title {
    font-size: 2rem;
  }

  .auth-promo-text {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .auth-promo-inner,
  .auth-form-panel {
    padding: 1.35rem;
  }

  .auth-shell-row {
    border-radius: 20px;
  }

  .auth-promo-mini-card {
    border-radius: 16px;
  }

  .auth-input,
  .auth-submit-btn,
  .auth-dev-btn {
    min-height: 50px;
  }
}

/* ===== Find a Service ===== */

.service-search-page {
  padding: 1rem 0 3rem;
}

.service-search-hero {
  margin-bottom: 1.5rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #0d6efd 0%, #3d8bfd 55%, #6ea8fe 100%);
  color: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

.service-search-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.84);
}

.service-search-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.service-search-subtitle {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 780px;
  margin-bottom: 0;
}

.service-search-summary-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.45rem;
}

.summary-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.summary-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.service-search-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.filters-card,
.map-placeholder-card {
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.filters-card {
  padding: 1.5rem;
  position: sticky;
  top: 96px;
}

.filters-card-header {
  margin-bottom: 1.2rem;
}

.filters-title,
.results-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.35rem;
}

.filters-subtitle,
.results-subtitle {
  color: #6b7280;
  margin-bottom: 0;
}

.service-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

.service-input {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #d9e2ec;
  box-shadow: none;
}

  .service-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
  }

.service-search-btn {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 700;
}

.location-box {
  background: #f8fbff;
  border: 1px solid #dbe8f7;
  border-radius: 18px;
  padding: 1rem;
}

.location-box-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.location-title {
  font-weight: 700;
  color: #111827;
}

.location-subtitle {
  color: #6b7280;
  font-size: 0.92rem;
}

.location-coordinates {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #374151;
}

  .location-coordinates span {
    color: #6b7280;
  }

.content-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.view-toggle {
  display: inline-flex;
  background: #eef4fb;
  border-radius: 14px;
  padding: 0.3rem;
  border: 1px solid #dbe7f5;
}

.view-toggle-btn {
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  min-width: 90px;
  border-radius: 10px;
  font-weight: 700;
  color: #4b5563;
  transition: all 0.2s ease;
}

  .view-toggle-btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  }

.view-panel {
  display: none;
}

  .view-panel.active {
    display: block;
  }

.results-grid {
  display: grid;
  gap: 1rem;
}

.result-card {
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  padding: 1.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

  .result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

.result-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.result-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.25rem;
}

.result-card-category {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.result-distance {
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.result-card-description {
  color: #6b7280;
  margin-bottom: 0.85rem;
}

.result-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.result-meta-item {
  font-size: 0.9rem;
  color: #4b5563;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.empty-state {
  background: #fff;
  border: 1px dashed #d9e2ec;
  border-radius: 24px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #0d6efd;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.45rem;
}

.empty-state-text {
  color: #6b7280;
  margin-bottom: 0;
}

.map-placeholder-card {
  padding: 1.25rem;
}

.map-placeholder-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.map-placeholder-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.35rem;
}

.map-placeholder-subtitle {
  color: #6b7280;
  margin-bottom: 0;
}

.map-badge {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.map-stage {
  position: relative;
  min-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  border: 1px solid #dbe7f5;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(13,110,253,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13,110,253,0.06) 1px, transparent 1px);
  background-size: 38px 38px;
}

.map-user-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.92rem;
}

.map-user-pill-label {
  color: #6b7280;
  margin-right: 0.35rem;
}

.map-markers {
  position: absolute;
  inset: 0;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
}

.map-marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d6efd;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.28);
  margin: 0 auto;
}

.map-marker-label {
  margin-top: 0.4rem;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.map-empty-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: #6b7280;
  text-align: center;
}

.map-footer-note {
  margin-top: 0.85rem;
  color: #6b7280;
  font-size: 0.92rem;
}

@media (max-width: 991.98px) {
  .service-search-layout {
    grid-template-columns: 1fr;
  }

  .filters-card {
    position: static;
    top: auto;
  }

  .content-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .view-toggle {
    align-self: flex-start;
  }
}

@media (max-width: 575.98px) {
  .service-search-hero {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .filters-card,
  .map-placeholder-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .result-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .result-card-top {
    flex-direction: column;
  }

  .map-stage {
    min-height: 420px;
  }

  .location-box-header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Find a Service v2 ===== */

.service-search-page-v2 {
  padding: 1rem 0 3rem;
}

.search-top-panel {
  min-height: 30vh;
  margin-bottom: 1.5rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #0d6efd 0%, #3d8bfd 55%, #6ea8fe 100%);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.search-top-panel__content {
  padding: 2rem;
  color: #fff;
}

.search-top-panel__intro {
  margin-bottom: 1.4rem;
  max-width: 820px;
}

.search-top-panel__filters {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.search-filters-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.5fr 0.7fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: end;
}

.search-field {
  min-width: 0;
}

.search-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-location-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.search-location-box__title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
}

.search-location-box__status {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.search-location-box__coords {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.search-toolbar__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-primary-btn,
.search-secondary-btn {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 700;
  min-width: 140px;
}

/* workspace */
.services-workspace {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

  .services-workspace.layout-list-only {
    grid-template-columns: 1fr;
  }

  .services-workspace.layout-map-only {
    grid-template-columns: 1fr;
  }

  .services-workspace.layout-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  }

.workspace-pane {
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
  min-width: 0;
}

  .workspace-pane.is-hidden {
    display: none;
  }

.workspace-pane__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.workspace-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.35rem;
}

.workspace-subtitle {
  color: #6b7280;
  margin-bottom: 0;
}

.pane-close-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #dde7f2;
  background: #fff;
  border-radius: 12px;
  font-size: 1.35rem;
  line-height: 1;
  color: #4b5563;
  cursor: pointer;
  flex-shrink: 0;
}

  .pane-close-btn.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

/* cards */
.business-cards-grid {
  display: grid;
  gap: 1rem;
}

.business-card {
  border: 1px solid #e9eef5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

  .business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  }

.business-card__top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
}

.business-card__media {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f6fb;
  border: 1px solid #e7edf5;
}

.business-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.business-card__main {
  min-width: 0;
}

.business-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.business-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.45rem;
}

.business-card__badges {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.business-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.10);
  color: #0d6efd;
  font-size: 0.82rem;
  font-weight: 700;
}

.business-card__badge--light {
  background: #f6f8fb;
  color: #4b5563;
}

.business-card__meta-top {
  text-align: right;
  white-space: nowrap;
}

.business-card__distance {
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.2rem;
}

.business-card__rating {
  color: #6b7280;
  font-size: 0.92rem;
}

.business-card__description {
  color: #6b7280;
  margin-bottom: 0.85rem;
}

.business-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.business-card__address {
  color: #4b5563;
  font-size: 0.95rem;
}

.business-card__toggle {
  border-radius: 12px;
  font-weight: 700;
}

.business-card__details {
  display: none;
  border-top: 1px solid #eef2f7;
  padding: 1rem 1.15rem 1.15rem;
  background: #fbfcfe;
}

.business-card.is-expanded .business-card__details {
  display: block;
}

.business-card__details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.business-card__detail-block {
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e9eef5;
}

.business-card__detail-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.business-card__detail-text {
  margin: 0;
  color: #6b7280;
  line-height: 1.55;
}

/* map */
.map-shell {
  min-height: 720px;
}

.map-shell__stage {
  position: relative;
  min-height: 720px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  border: 1px solid #dbe7f5;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(13,110,253,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13,110,253,0.06) 1px, transparent 1px);
  background-size: 38px 38px;
}

.map-user-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.92rem;
}

.map-user-pill-label {
  color: #6b7280;
  margin-right: 0.35rem;
}

.map-markers {
  position: absolute;
  inset: 0;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
}

.map-marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d6efd;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.28);
  margin: 0 auto;
}

.map-marker-label {
  margin-top: 0.4rem;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.map-empty-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: #6b7280;
  text-align: center;
}

/* common reused page typography */
.service-search-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.84);
}

.service-search-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 0.75rem;
  color: #fff;
}

.service-search-subtitle {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 800px;
  margin-bottom: 0;
}

.service-label {
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #fff;
}

.service-input {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

  .service-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.16);
  }

.empty-state {
  background: #fff;
  border: 1px dashed #d9e2ec;
  border-radius: 24px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #0d6efd;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.45rem;
}

.empty-state-text {
  color: #6b7280;
  margin-bottom: 0;
}

@media (max-width: 1199.98px) {
  .search-filters-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-workspace.layout-split {
    grid-template-columns: 1fr;
  }

  .workspace-pane--map {
    order: 2;
  }

  .map-shell,
  .map-shell__stage {
    min-height: 520px;
  }
}

@media (max-width: 767.98px) {
  .search-top-panel__content {
    padding: 1.35rem;
  }

  .search-top-panel__filters {
    padding: 1rem;
    border-radius: 20px;
  }

  .search-filters-grid {
    grid-template-columns: 1fr;
  }

  .search-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-location-box {
    align-items: flex-start;
  }

  .search-toolbar__actions {
    width: 100%;
  }

  .search-primary-btn,
  .search-secondary-btn {
    flex: 1 1 0;
  }

  .workspace-pane {
    padding: 1rem;
    border-radius: 20px;
  }

  .business-card__top {
    grid-template-columns: 1fr;
  }

  .business-card__media {
    width: 84px;
    height: 84px;
  }

  .business-card__head {
    flex-direction: column;
  }

  .business-card__meta-top {
    text-align: left;
  }

  .business-card__details-grid {
    grid-template-columns: 1fr;
  }
}