﻿:root {
  --ink: #17211f;
  --muted: #61716d;
  --line: #dce6e1;
  --paper: #f8fbf8;
  --white: #ffffff;
  --green: #176b4d;
  --green-2: #0d8c74;
  --amber: #f2b84b;
  --coral: #de6b54;
  --blue: #2b6d9f;
  --shadow: 0 18px 50px rgba(22, 38, 34, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 251, 248, .92);
  border-bottom: 1px solid rgba(220, 230, 225, .85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-brand {
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.brand-dog {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(239, 78, 63, .28);
  border-radius: 9px;
  background: #fff8ef;
  overflow: hidden;
}

.brand-dog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-render {
  display: block;
  width: 116px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark-image {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(217, 224, 238, .9);
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; }
.brand small { color: var(--muted); font-size: .78rem; margin-top: 2px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .93rem;
  font-weight: 700;
}

.nav-actions a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav-actions .nav-instagram {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 105%, #feda75 0 18%, transparent 32%),
    linear-gradient(135deg, #833ab4 0%, #fd1d1d 48%, #fcb045 100%);
  box-shadow: 0 10px 24px rgba(225, 48, 108, .28);
}

.nav-actions .nav-instagram::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  z-index: -1;
  width: 55%;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, .32);
  transition: left .35s ease;
}

.nav-actions .nav-instagram:hover,
.nav-actions .nav-instagram:focus-visible {
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 105%, #feda75 0 18%, transparent 32%),
    linear-gradient(135deg, #6f2dbd 0%, #e91e63 45%, #ff9f1c 100%);
  box-shadow: 0 14px 30px rgba(225, 48, 108, .36);
  transform: translateY(-1px);
}

.nav-actions .nav-instagram:hover::after,
.nav-actions .nav-instagram:focus-visible::after {
  left: 120%;
}

.nav-cta {
  color: var(--white);
  background: var(--green);
}

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: end;
  padding: 56px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.search-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fbfdfb;
}

.search-row input {
  min-width: 0;
  border: 0;
  padding: 14px 14px;
  background: transparent;
  outline: none;
}

.search-row button {
  border: 0;
  border-left: 1px solid var(--line);
  background: #eef5f2;
  color: var(--green);
  font-size: 1.3rem;
  cursor: pointer;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.quick-stats span {
  padding: 10px;
  border-radius: var(--radius);
  background: #f1f7f4;
  color: var(--muted);
  font-size: .82rem;
}

.quick-stats strong {
  display: block;
  color: var(--ink);
  font-size: .95rem;
}

.filters-wrap {
  position: sticky;
  top: 71px;
  z-index: 8;
  padding: 12px 0;
  background: rgba(248, 251, 248, .95);
  border-top: 1px solid transparent;
}

.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.content { padding: 28px 0 34px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2, .join h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.business-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(22, 38, 34, .07);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8f4ef, #fff2d7);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-photo {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.card-photo img,
.gallery-photo img {
  transition: transform .18s ease;
}

.card-photo:hover img {
  transform: scale(1.03);
}

.card-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 18px;
  color: var(--green);
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.card-title-row h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.25;
}

.status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #145b3f;
  background: #e7f6ef;
  font-size: .72rem;
  font-weight: 800;
}

.card-description {
  flex: 1;
  color: var(--muted);
  line-height: 1.45;
  font-size: .94rem;
}

.card-meta {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: #45534f;
  font-size: .86rem;
  line-height: 1.35;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

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

.btn.secondary:hover, .filter-button:hover, .nav-actions a:hover { background: #eef5f2; }
.btn.primary:hover, .nav-cta:hover { background: #0f543b; }

.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 6px;
}

.pagination[hidden] {
  display: none;
}

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

.pagination-button,
.pagination-page {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.pagination-button {
  padding: 0 14px;
}

.pagination-page.active {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.pagination-button:not(:disabled):hover,
.pagination-page:not(.active):hover {
  border-color: var(--green);
  color: var(--green);
}

.join {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 18px 0 46px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #173e36;
  color: var(--white);
}

.join p { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.76); line-height: 1.55; }
.join .eyebrow { color: #8ee0c3; }
.join-button {
  flex: 0 0 auto;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--amber);
  color: #231a0b;
  font-weight: 900;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  visibility: hidden;
}

.detail-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 18, .48);
  opacity: 0;
  transition: opacity .18s ease;
}

.detail-drawer.open .drawer-backdrop { opacity: 1; }

.drawer-card {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(520px, 100%);
  overflow: auto;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .2s ease;
}

.detail-drawer.open .drawer-card { transform: translateX(0); }

.drawer-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: #eef5f2;
}

.gallery-photo {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery img,
.gallery-photo,
.gallery .gallery-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: linear-gradient(135deg, #e8f4ef, #fff2d7);
}

.gallery-photo img {
  display: block;
  height: 100%;
}

.gallery-photo:hover img {
  transform: scale(1.03);
}

.gallery img:first-child,
.gallery-photo:first-child,
.gallery .gallery-placeholder:first-child {
  grid-column: span 3;
  aspect-ratio: 16 / 10;
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--green);
  font-weight: 800;
  text-align: center;
}

.drawer-content { padding: 24px; }

.drawer-category {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #e7f6ef;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
}

.drawer-content h2 { margin-bottom: 10px; font-size: 2rem; }
.drawer-description { color: var(--muted); line-height: 1.55; }

.drawer-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: #f5faf7;
  color: #33433f;
  line-height: 1.45;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-list span {
  padding: 8px 9px;
  border-radius: 999px;
  background: #f0f4f2;
  color: #40504c;
  font-size: .82rem;
  font-weight: 800;
}

.drawer-actions {
  display: grid;
  gap: 10px;
}

.drawer-actions .btn { min-height: 48px; }

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  pointer-events: none;
  visibility: hidden;
}

.photo-lightbox.open {
  pointer-events: auto;
  visibility: visible;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, .84);
  opacity: 0;
  transition: opacity .18s ease;
}

.photo-lightbox.open .photo-lightbox-backdrop {
  opacity: 1;
}

.photo-lightbox-frame {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1040px, 100%);
  max-height: calc(100vh - 44px);
  margin: 0;
}

.photo-lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 108px);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  object-fit: contain;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.photo-lightbox-close {
  top: -16px;
  right: -10px;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
}

.photo-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  transform: translateY(-50%);
}

.photo-lightbox-prev {
  left: 10px;
}

.photo-lightbox-next {
  right: 10px;
}

.photo-lightbox-nav[hidden] {
  display: none;
}

.photo-lightbox-frame figcaption {
  margin-top: 12px;
  color: #ffffff;
  font-size: .92rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .topbar { align-items: flex-start; padding: 12px 16px; }
  .brand small { display: none; }
  main { width: min(100% - 24px, 1180px); }
  h1 { font-size: 2.45rem; }
  .hero-text { font-size: 1rem; }
  .quick-stats { grid-template-columns: 1fr; }
  .filters-wrap { top: 67px; }
  .section-head { display: block; }
  .pagination {
    flex-wrap: wrap;
  }
  .pagination-pages {
    order: -1;
    width: 100%;
    justify-content: center;
  }
  .photo-lightbox {
    padding: 12px;
  }
  .photo-lightbox-frame img {
    max-height: calc(100vh - 96px);
  }
  .photo-lightbox-prev {
    left: -2px;
  }
  .photo-lightbox-next {
    right: -2px;
  }
  .result-count { margin-top: 8px; }
  .business-grid { grid-template-columns: 1fr; }
  .join { display: block; }
  .join-button { display: flex; justify-content: center; margin-top: 18px; }
  .card-actions { grid-template-columns: 1fr; }
}

/* Professional marketplace layout */
body {
  background:
    linear-gradient(180deg, #f3f8f5 0, #f8fbf8 360px),
    var(--paper);
}

.topbar {
  padding-inline: clamp(16px, 5vw, 72px);
}

main {
  width: min(1240px, calc(100% - 32px));
}

.hero {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 22px;
  padding: 42px 0 18px;
}

.hero-copy {
  max-width: 980px;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 1;
}

.hero-text {
  max-width: 820px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(180px, .65fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  box-shadow: 0 18px 42px rgba(20, 49, 42, .13);
}

.search-field {
  display: grid;
  gap: 7px;
}

.search-field label,
.sort-label {
  color: #40504c;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.search-field input,
.search-field select,
.sort-label select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fbfdfb;
  color: var(--ink);
  outline: none;
}

.search-field input:focus,
.search-field select:focus,
.sort-label select:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(13, 140, 116, .12);
}

.search-submit {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.quick-stats {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
}

.content {
  padding-top: 18px;
}

.section-head {
  align-items: center;
}

.result-tools {
  display: flex;
  align-items: end;
  gap: 16px;
}

.sort-label {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.sort-label select {
  min-height: 40px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.filter-block,
.filter-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(22, 38, 34, .06);
}

.filter-block h3 {
  margin-bottom: 12px;
  font-size: .95rem;
}

.filters,
.checks {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 0;
}

.filter-button,
.check-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fbfdfb;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.filter-button.active,
.check-button.active {
  border-color: var(--green);
  background: #e7f6ef;
  color: var(--green);
}

.filter-note {
  display: grid;
  gap: 5px;
  background: #173e36;
  color: var(--white);
}

.filter-note span {
  color: rgba(255,255,255,.76);
  line-height: 1.45;
}

.results-column {
  display: grid;
  gap: 12px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-strip span {
  border: 1px solid #cfe3dc;
  border-radius: 999px;
  padding: 8px 10px;
  background: #eef8f3;
  color: #255f4f;
  font-size: .82rem;
  font-weight: 800;
}

.business-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.business-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 260px;
}

.card-media {
  aspect-ratio: auto;
  height: 100%;
}

.card-body {
  padding: 18px;
}

.card-title-row {
  align-items: start;
}

.card-title-row h3 {
  font-size: 1.35rem;
}

.card-sector {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.score-box {
  flex: 0 0 auto;
  display: grid;
  min-width: 78px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #cfe3dc;
  text-align: center;
}

.score-box strong {
  padding: 7px 9px;
  background: var(--green);
  color: var(--white);
  font-size: .82rem;
}

.score-box span {
  padding: 6px 8px;
  background: #eef8f3;
  color: #255f4f;
  font-size: .72rem;
  font-weight: 800;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.mini-tags span {
  border-radius: 999px;
  padding: 6px 8px;
  background: #f0f4f2;
  color: #40504c;
  font-size: .78rem;
  font-weight: 800;
}

.card-meta {
  grid-template-columns: 1fr;
  margin: 10px 0 14px;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.btn {
  min-width: 136px;
}

.drawer-card {
  width: min(620px, 100%);
}

.drawer-actions {
  grid-template-columns: 1fr 1fr;
}

.drawer-actions .btn:first-child {
  grid-column: 1 / -1;
}

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

  .search-submit {
    grid-column: 1 / -1;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .filter-note {
    grid-column: 1 / -1;
  }

  .filters,
  .checks {
    display: flex;
    overflow-x: auto;
  }

  .filter-button,
  .check-button {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 24px, 1240px);
  }

  .search-panel,
  .quick-stats,
  .filter-sidebar {
    grid-template-columns: 1fr;
  }

  .section-head,
  .result-tools {
    display: grid;
    gap: 10px;
  }

  .sort-label {
    min-width: 0;
  }

  .business-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .card-media {
    aspect-ratio: 16 / 10;
  }

  .card-title-row {
    gap: 12px;
  }

  .score-box {
    min-width: 72px;
  }

  .card-actions,
  .drawer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    min-width: 0;
  }
}

/* Retail energy pass */
:root {
  --ink: #18213a;
  --muted: #5d667b;
  --line: #d9e0ee;
  --paper: #f5f7fb;
  --green: #008c45;
  --green-2: #00a76f;
  --amber: #ffd228;
  --coral: #ef3340;
  --blue: #0956b5;
  --shadow: 0 18px 48px rgba(9, 36, 91, .16);
}

body {
  background:
    radial-gradient(circle at 15% 0, rgba(255, 210, 40, .35), transparent 26%),
    radial-gradient(circle at 85% 8%, rgba(239, 51, 64, .18), transparent 28%),
    linear-gradient(180deg, #eef5ff 0, #fff 420px, #f5f7fb 100%);
}

.brand-mark {
  background: linear-gradient(135deg, var(--coral), #ff7a00);
  color: var(--white);
}

.nav-cta,
.search-submit,
.btn.primary {
  background: var(--coral);
  border-color: var(--coral);
}

.nav-cta:hover,
.search-submit:hover,
.btn.primary:hover {
  background: #c91f2c;
}

.hero {
  position: relative;
}

.search-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.search-clear {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.search-clear:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.hero::before {
  display: none;
}

.hero-copy {
  max-width: 980px;
}

.hero-identity {
  display: inline-grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-identity img {
  width: 86px;
  height: 86px;
  border: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(9, 36, 91, .12);
}

.hero-identity h1,
.hero-identity span {
  display: block;
}

.hero-identity h1 {
  color: #10214a;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
}

.hero-identity span {
  margin-top: 6px;
  color: var(--coral);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--coral);
}

h1 {
  color: #10214a;
}

.search-panel {
  border: 3px solid var(--amber);
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.quick-stats span {
  background: #fff4ba;
  color: #62480a;
}

.quick-stats strong {
  color: #132c67;
}

.promo-showcase,
.map-section {
  margin: 18px 0;
}

.promo-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.promo-head h2,
.map-copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: #10214a;
}

.promo-live {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--amber);
  color: #402800;
  font-size: .86rem;
  font-weight: 900;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

.promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 190px;
  border: 1px solid #d9e0ee;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(9, 36, 91, .13);
}

.promo-card-large {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.promo-image {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, #fff4ba, #e8f7ee);
  overflow: hidden;
}

.promo-image img,
.promo-image .card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.promo-card-large .promo-image img,
.promo-card-large .promo-image .card-placeholder {
  min-height: 300px;
}

.deal-ribbon {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--coral);
  color: var(--white);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-info {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 15px;
}

.promo-info p {
  margin: 0;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-info h3 {
  margin: 0;
  font-size: 1.18rem;
  color: #10214a;
}

.promo-info strong {
  color: #26324e;
  line-height: 1.25;
}

.promo-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.promo-actions a,
.promo-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 11px;
  font-weight: 900;
  cursor: pointer;
}

.promo-actions a {
  background: var(--green);
  color: var(--white);
}

.promo-actions button {
  background: var(--amber);
  color: #402800;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(240px, .35fr) minmax(0, .65fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid #d9e0ee;
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(9, 36, 91, .1);
}

.map-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.local-map {
  position: relative;
  min-height: 340px;
  border: 2px solid #b9cbe7;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(255,255,255,.7) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(135deg, #dff3e7, #dbeaff 55%, #fff4ba);
}

.map-road {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 2px dashed rgba(9, 86, 181, .32);
  color: #24406f;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.road-main {
  right: -8%;
  top: 20%;
  width: 76%;
  padding: 12px;
  transform: rotate(-14deg);
}

.road-center {
  left: 10%;
  top: 48%;
  width: 70%;
  padding: 12px;
  transform: rotate(6deg);
}

.road-bottom {
  left: -6%;
  bottom: 18%;
  width: 72%;
  padding: 10px;
  transform: rotate(-4deg);
}

.map-pin {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 3px solid var(--white);
  border-radius: 999px 999px 999px 8px;
  background: var(--coral);
  box-shadow: 0 8px 20px rgba(9, 36, 91, .2);
  transform: translate(-50%, -50%) rotate(-45deg);
  cursor: pointer;
}

.map-pin::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.map-pin span,
.map-pin small {
  position: absolute;
  left: 34px;
  min-width: 160px;
  transform: rotate(45deg);
  text-align: left;
  pointer-events: none;
}

.map-pin span {
  top: -4px;
  border-radius: 8px 8px 0 0;
  padding: 7px 9px 2px;
  background: var(--white);
  color: #10214a;
  font-size: .78rem;
  font-weight: 900;
}

.map-pin small {
  top: 20px;
  border-radius: 0 0 8px 8px;
  padding: 0 9px 7px;
  background: var(--white);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.filter-button.active,
.check-button.active {
  border-color: var(--blue);
  background: #e8f0ff;
  color: var(--blue);
}

.filter-note {
  background: linear-gradient(135deg, var(--blue), #10214a);
}

.trust-strip span {
  border-color: #ffe071;
  background: #fff5c7;
  color: #604600;
}

.business-card {
  border: 2px solid #e2e7f2;
}

.badge {
  background: var(--amber);
  color: #402800;
}

.score-box strong {
  background: var(--blue);
}

/* Compact utility-first hero */
.hero {
  padding: 28px 0 14px;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  max-width: 900px;
}

.hero-text {
  max-width: 760px;
}

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

  .promo-card-large {
    grid-column: 1 / -1;
  }

  .map-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-identity {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 14px;
  }

  .hero-identity img {
    width: 72px;
    height: 72px;
  }

  .hero-identity h1 {
    font-size: clamp(1.65rem, 9vw, 2.4rem);
  }

  .promo-head {
    display: grid;
    align-items: start;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-card,
  .promo-card-large {
    grid-template-columns: 1fr;
  }

  .promo-card-large .promo-image img,
  .promo-card-large .promo-image .card-placeholder,
  .promo-image img,
  .promo-image .card-placeholder {
    min-height: 220px;
  }

  .local-map {
    min-height: 460px;
  }

  .map-pin span,
  .map-pin small {
    min-width: 132px;
    font-size: .68rem;
  }
}

/* Growth-ready responsive safeguards */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.booking-layout,
.filter-sidebar,
.filter-block,
.filter-note,
.results-column,
.business-grid,
.business-card,
.card-body,
.map-section,
.local-map {
  min-width: 0;
}

.detail-drawer {
  overflow: hidden;
}

.drawer-card {
  max-width: 100vw;
}

@media (max-width: 720px) {
  .filter-sidebar,
  .results-column,
  .business-grid,
  .business-card,
  .filter-block,
  .filter-note {
    width: 100%;
    max-width: 100%;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-pin span,
  .map-pin small {
    left: 28px;
    min-width: 118px;
    max-width: 38vw;
    white-space: normal;
  }
}

/* Softer local directory palette */
:root {
  --ink: #132238;
  --muted: #5d6977;
  --line: #d8e3dd;
  --paper: #f5f8f3;
  --green: #166b4f;
  --green-2: #2a9470;
  --amber: #f1c85c;
  --coral: #d95f4f;
  --blue: #2f6f8d;
  --shadow: 0 18px 44px rgba(19, 34, 56, .12);
}

body {
  background:
    radial-gradient(circle at 12% 0, rgba(241, 200, 92, .24), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(42, 148, 112, .16), transparent 28%),
    linear-gradient(180deg, #f7f2df 0, #f8fbf6 360px, #f5f8f3 100%);
}

.topbar {
  background: rgba(248, 251, 246, .94);
}

.brand-mark-image,
.hero-identity img {
  border-color: #d9b84e;
}

.nav-cta,
.search-submit,
.btn.primary {
  background: var(--green);
  border-color: var(--green);
}

.nav-cta:hover,
.search-submit:hover,
.btn.primary:hover {
  background: #10553e;
}

.eyebrow,
.hero-identity span,
.promo-info p {
  color: var(--green-2);
}

.search-panel {
  border-color: #ead27b;
  background: rgba(255, 255, 255, .9);
}

.quick-stats span,
.trust-strip span {
  border-color: #cfe4db;
  background: #edf7f1;
  color: #2d5f4e;
}

.quick-stats strong {
  color: var(--ink);
}

.promo-live,
.promo-actions button,
.badge {
  background: #f5d878;
  color: #49370b;
}

.deal-ribbon,
.brand-mark {
  background: var(--green);
}

.promo-actions a,
.score-box strong {
  background: var(--green);
}

.filter-button.active,
.check-button.active {
  border-color: var(--green);
  background: #e7f4ed;
  color: var(--green);
}

.filter-note {
  background: linear-gradient(135deg, #166b4f, #132238);
}

.map-pin {
  background: var(--green);
}

.map-pin::before {
  background: var(--amber);
}

/* Hero balance pass */
.hero {
  padding: 24px 0 12px;
}

.hero-copy {
  display: grid;
  gap: 12px;
}

.hero-identity {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  margin-bottom: 0;
}

.hero-identity img {
  width: 74px;
  height: 74px;
  border-width: 2px;
  box-shadow: 0 10px 24px rgba(19, 34, 56, .1);
}

.hero-identity h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  letter-spacing: 0;
}

.hero-identity span {
  color: #197456;
  font-size: .75rem;
}

.hero-text {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.55;
}

.search-panel {
  border: 1px solid #d9e5dd;
  border-top: 4px solid var(--green);
  box-shadow: 0 14px 34px rgba(19, 34, 56, .1);
}

@media (max-width: 720px) {
  .hero {
    padding-top: 18px;
  }

  .hero-identity {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .hero-identity img {
    width: 64px;
    height: 64px;
  }

  .hero-identity h1 {
    font-size: clamp(1.95rem, 8vw, 2.35rem);
  }
}

/* Clear Labranza - Temuco map orientation */
.local-map {
  background:
    linear-gradient(90deg, rgba(255,255,255,.52) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(0deg, rgba(255,255,255,.58) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, #e3f2e9 0, #e9f4ef 58%, #e8eef7 100%);
}

.map-city {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(22, 107, 79, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 22px rgba(19, 34, 56, .08);
}

.map-city strong {
  color: var(--ink);
  font-size: .92rem;
}

.map-city span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.city-labranza {
  left: 7%;
  top: 9%;
}

.city-temuco {
  right: 7%;
  top: 9%;
  border-color: rgba(47, 111, 141, .24);
}

.road-main {
  left: 9%;
  right: 9%;
  top: 38%;
  width: auto;
  padding: 12px 18px;
  transform: none;
  border-color: rgba(22, 107, 79, .34);
  color: #245845;
}

.road-main::after {
  content: "→";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 1.1rem;
}

.road-center {
  left: 14%;
  top: 58%;
  width: 52%;
  transform: rotate(-3deg);
  border-color: rgba(47, 111, 141, .24);
}

.road-bottom {
  left: 7%;
  bottom: 14%;
  width: 58%;
  transform: rotate(4deg);
  border-color: rgba(47, 111, 141, .2);
}

.map-road {
  color: rgba(19, 34, 56, .72);
  font-size: .7rem;
}

@media (max-width: 720px) {
  .city-labranza {
    left: 6%;
    top: 5%;
  }

  .city-temuco {
    right: 6%;
    top: 5%;
  }

  .road-main {
    top: 30%;
    padding-right: 42px;
  }

  .road-center {
    top: 50%;
    width: 68%;
  }

  .road-bottom {
    bottom: 18%;
    width: 70%;
  }
}

/* Expert homepage redesign: search-first, calmer and more useful */
body {
  background:
    linear-gradient(180deg, #f7f5ea 0, #f8fbf6 320px, #f3f7f2 100%);
}

main {
  width: min(1180px, calc(100% - 32px));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px) 0 24px;
}

.hero-copy {
  display: block;
  max-width: 720px;
}

.hero .eyebrow {
  margin-bottom: 12px;
  color: var(--green);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 14px;
  color: #10214a;
  font-size: clamp(2.55rem, 5.7vw, 5rem);
  line-height: .96;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 18px;
  color: #4d5b67;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-points span {
  border: 1px solid #cfe4db;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .68);
  color: #245845;
  font-size: .82rem;
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-self: end;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8e3dd;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 46px rgba(19, 34, 56, .12);
}

.search-panel .search-field:first-child,
.search-panel .quick-stats {
  grid-column: 1 / -1;
}

.search-field label,
.sort-label {
  color: #263a45;
}

.search-field input,
.search-field select,
.sort-label select {
  border-color: #cfded6;
  background: #fbfdfb;
}

.search-submit {
  align-self: end;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid #cfded6;
  background: #eef6f1;
  color: var(--green);
}

.search-submit:hover {
  background: #e2f0e9;
}

.quick-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.quick-stats span {
  background: #edf7f1;
}

.promo-showcase {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 26px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 4rem);
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    gap: 12px;
  }

  .brand strong {
    font-size: .95rem;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-points {
    display: flex;
    flex-wrap: wrap;
  }

  .quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-stats span {
    padding: 9px 8px;
    font-size: .74rem;
  }

  .quick-stats strong {
    font-size: .86rem;
  }
}

/* Catalog/comparison pass inspired by dense marketplace patterns */
body {
  background: #f3f5f7;
}

.topbar {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #d9e0e7;
  box-shadow: 0 1px 0 rgba(19, 34, 56, .03);
}

main {
  width: min(1220px, calc(100% - 28px));
}

.hero {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 18px 0 12px;
}

.hero-copy {
  max-width: 940px;
}

.hero .eyebrow {
  margin-bottom: 8px;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: .98rem;
}

.hero-points span {
  padding: 6px 9px;
  background: #ffffff;
  font-size: .78rem;
}

.search-panel {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, .42fr) auto;
  align-items: end;
  padding: 14px;
  border-top: 1px solid #d8e3dd;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(19, 34, 56, .08);
}

.search-panel .search-field:first-child {
  grid-column: auto;
}

.search-panel .quick-stats {
  grid-column: 1 / -1;
}

.search-field input,
.search-field select,
.sort-label select {
  min-height: 42px;
}

.search-submit {
  min-height: 42px;
}

.promo-showcase {
  margin: 10px 0 18px;
}

.promo-head {
  align-items: center;
}

.promo-head h2,
.map-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.promo-live {
  background: #ffffff;
  border: 1px solid #d8e3dd;
  color: var(--green);
}

.promo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.promo-card,
.promo-card-large {
  grid-template-columns: 1fr;
  grid-row: auto;
  min-height: 0;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(19, 34, 56, .08);
}

.promo-image img,
.promo-image .card-placeholder,
.promo-card-large .promo-image img,
.promo-card-large .promo-image .card-placeholder {
  min-height: 136px;
  height: 136px;
}

.promo-info {
  align-content: start;
  min-height: 148px;
  padding: 12px;
}

.promo-info h3 {
  font-size: 1rem;
}

.promo-actions {
  margin-top: auto;
}

.promo-actions a,
.promo-actions button {
  padding: 8px 9px;
  font-size: .82rem;
}

.section-head {
  padding: 14px 0 10px;
  border-top: 1px solid #dfe6ec;
}

.booking-layout {
  grid-template-columns: 250px minmax(0, 1fr);
}

.filter-block,
.filter-note,
.business-card {
  border-radius: 6px;
  box-shadow: 0 5px 16px rgba(19, 34, 56, .06);
}

.filter-block h3 {
  color: #263a45;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.filter-button,
.check-button {
  padding: 9px 10px;
  font-size: .9rem;
}

.business-card {
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 190px;
}

.card-body {
  padding: 14px;
}

.card-title-row h3 {
  font-size: 1.18rem;
}

.card-description {
  margin-bottom: 6px;
}

.card-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: .82rem;
}

.mini-tags {
  margin: 8px 0;
}

.card-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  min-width: 118px;
  min-height: 38px;
  padding: 8px 10px;
}

.drawer-actions .btn:first-child {
  grid-column: auto;
}

.promo-actions {
  flex-wrap: wrap;
}

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

  .search-panel .search-field:first-child,
  .search-panel .quick-stats,
  .search-submit {
    grid-column: 1 / -1;
  }

  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 20px, 1220px);
  }

  .hero {
    padding-top: 12px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .hero-points {
    display: none;
  }

  .search-panel,
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .business-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 0;
  }

  .card-media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .card-title-row {
    display: grid;
  }

  .score-box {
    display: none;
  }

  .card-meta {
    grid-template-columns: 1fr;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Header search layout */
.topbar {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
}

.topbar-search {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .36fr) auto;
  gap: 8px;
  width: 100%;
  max-width: 820px;
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topbar-search .search-field {
  gap: 0;
}

.topbar-search .search-field label,
.topbar-search .quick-stats {
  display: none;
}

.topbar-search .search-field input,
.topbar-search .search-field select {
  min-height: 40px;
  background: #ffffff;
}

.topbar-search .search-submit {
  min-height: 40px;
  padding-inline: 14px;
  background: #ffffff;
}

.hero {
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 0;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
  }

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

  .topbar-search .search-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .topbar-search .search-actions .search-submit {
    grid-column: auto;
  }

  .hero { padding: 0; }
}

/* Google Maps location module */
.local-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .38fr);
  gap: 10px;
  min-height: 390px;
  border: 0;
  background: transparent;
}

.google-map-shell {
  position: relative;
  min-height: 390px;
  border: 1px solid #ccd8e2;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f7;
}

.google-map-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
}

.map-selected {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(204, 216, 226, .8);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px rgba(19, 34, 56, .16);
}

.map-selected strong,
.map-selected span {
  display: block;
}

.map-selected strong {
  color: var(--ink);
  font-size: .95rem;
}

.map-selected span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.map-selected a {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--green);
  color: #ffffff;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
}

.map-marker-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
}

.map-marker-item {
  width: 100%;
  border: 1px solid #d7e2dc;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.map-marker-item::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--green);
  vertical-align: 1px;
}

.map-marker-item strong,
.map-marker-item span {
  display: block;
}

.map-marker-item strong {
  margin-top: -14px;
  padding-left: 17px;
  font-size: .86rem;
}

.map-marker-item span {
  margin-top: 3px;
  padding-left: 17px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.3;
}

.map-marker-item.active {
  border-color: var(--green);
  background: #eef8f2;
  box-shadow: inset 4px 0 0 var(--green);
}

.card-location {
  display: inline-block;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drawer-meta a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .local-map {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .google-map-shell,
  .google-map-shell iframe {
    min-height: 360px;
  }

  .map-marker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 560px) {
  .google-map-shell,
  .google-map-shell iframe {
    min-height: 320px;
  }

  .map-selected {
    align-items: stretch;
    flex-direction: column;
  }

  .map-selected a {
    text-align: center;
  }

  .map-marker-list {
    grid-template-columns: 1fr;
  }
}

/* Smooth featured carousel and clearer mobile cover images */
.promo-grid {
  transition: transform .28s ease, opacity .28s ease;
  will-change: transform, opacity;
}

.promo-grid.promo-exit-next {
  transform: translateX(-36px);
  opacity: 0;
}

.promo-grid.promo-exit-prev {
  transform: translateX(36px);
  opacity: 0;
}

.promo-grid.promo-enter-next {
  transform: translateX(36px);
  opacity: 0;
  transition: none;
}

.promo-grid.promo-enter-prev {
  transform: translateX(-36px);
  opacity: 0;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .promo-grid {
    transition: none;
  }
}

/* Compact rotating featured cards */
.promo-showcase {
  margin: 8px 0 14px;
}

.promo-head {
  align-items: center;
}

.promo-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d8e3dd;
  border-radius: 8px;
  background: #ffffff;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.promo-nav:hover,
.promo-nav:focus-visible {
  border-color: var(--green);
  background: #eef8f2;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(var(--promo-columns, 3), minmax(0, 1fr));
  gap: 10px;
}

.promo-card,
.promo-card-large {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(0, .58fr);
  min-height: 156px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(19, 34, 56, .08);
}

.promo-card-large {
  grid-row: auto;
}

.promo-image img,
.promo-image .card-placeholder,
.promo-card-large .promo-image img,
.promo-card-large .promo-image .card-placeholder {
  height: 156px;
  min-height: 156px;
}

.promo-info {
  align-content: start;
  min-height: 0;
  padding: 12px;
}

.promo-info h3 {
  font-size: 1rem;
}

.promo-info strong {
  display: -webkit-box;
  min-height: 2.65em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.promo-actions {
  margin-top: auto;
}

.promo-actions a,
.promo-actions button {
  padding: 8px 9px;
  font-size: .82rem;
}

@media (max-width: 980px) {
  .promo-grid {
    grid-template-columns: repeat(var(--promo-columns, 2), minmax(0, 1fr));
  }

  .promo-card,
  .promo-card-large {
    grid-template-columns: 1fr;
  }

  .promo-image img,
  .promo-image .card-placeholder,
  .promo-card-large .promo-image img,
  .promo-card-large .promo-image .card-placeholder {
    height: 142px;
    min-height: 142px;
  }
}

@media (max-width: 620px) {
  .promo-head {
    display: grid;
    gap: 10px;
  }

  .promo-tools {
    justify-content: space-between;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-card,
  .promo-card-large {
    grid-template-columns: minmax(108px, .42fr) minmax(0, .58fr);
  }

  .promo-image img,
  .promo-image .card-placeholder,
  .promo-card-large .promo-image img,
  .promo-card-large .promo-image .card-placeholder {
    height: 148px;
    min-height: 148px;
  }
}

/* Recommended palette: rendered logo */
:root {
  --ink: #202832;
  --muted: #6d747d;
  --line: #eadfda;
  --paper: #fbf7f1;
  --white: #ffffff;
  --green: #ef4e3f;
  --green-2: #f36a4c;
  --amber: #f5b732;
  --coral: #ef4e3f;
  --blue: #26313d;
  --shadow: 0 18px 44px rgba(32, 40, 50, .12);
}

body {
  background: linear-gradient(180deg, #fff8ef 0, #fbf7f1 280px, #f7f0ea 100%);
  color: var(--ink);
}

.topbar {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: #eadfda;
  box-shadow: 0 1px 0 rgba(32, 40, 50, .05);
}

.brand-mark,
.brand-mark-image {
  background: #fff7df;
  border-color: var(--amber);
}

.brand strong,
.section-head h2,
.promo-head h2,
.join h2,
.card-title-row h3,
.drawer-title {
  color: var(--ink);
}

.brand small,
.section-head p,
.result-count,
.card-description,
.drawer-description,
.filter-note,
.trust-strip span {
  color: var(--muted);
}

.eyebrow,
.drawer-category,
.card-location,
.drawer-meta a {
  color: var(--green);
}

.nav-cta,
.search-submit,
.btn.primary,
.join-button {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.nav-cta:hover,
.search-submit:hover,
.btn.primary:hover,
.join-button:hover {
  background: #d83f32;
  border-color: #d83f32;
}

.topbar-search,
.filter-sidebar,
.business-card,
.promo-card,
.promo-card-large,
.drawer-card,
.empty-state,
.search-panel {
  background: rgba(255, 255, 255, .96);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(32, 40, 50, .08);
}

.search-field,
.filter-button,
.check-button,
.sort-label select,
.btn.secondary,
.promo-nav {
  background: #ffffff;
  border-color: #eadfda;
  color: var(--ink);
}

.filter-button.active,
.check-button.active,
.btn.secondary:hover,
.filter-button:hover,
.check-button:hover,
.promo-nav:hover,
.promo-nav:focus-visible {
  background: #fff0ec;
  border-color: var(--green);
  color: var(--green);
}

.quick-stats div,
.trust-strip,
.mini-tags span,
.tag-list span,
.card-meta span,
.promo-live {
  background: #fff0ec;
  color: #9f2f25;
}

.badge,
.deal-ribbon {
  background: var(--coral);
  color: #ffffff;
}

.score-box,
.join .eyebrow {
  color: #f5b732;
}

.join {
  background: linear-gradient(135deg, #202832, #111922);
  color: #ffffff;
}

.join h2 {
  color: #ffffff;
}

.join p {
  color: rgba(255, 255, 255, .86);
}

.join-button {
  background: var(--amber);
  border-color: var(--amber);
  color: #382a09;
}

.join-button:hover {
  background: #e8b83f;
  border-color: #e8b83f;
  color: #382a09;
}

.join-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.join-instagram {
  border: 1px solid rgba(255, 255, 255, .52);
  background: transparent;
  color: #ffffff;
}

.join-instagram:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #202832;
}

/* Brand sizing refinement */
.brand {
  min-width: 210px;
  gap: 12px;
}

.brand strong {
  font-size: 1.18rem;
  line-height: .98;
  font-weight: 900;
}

.brand-word {
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0;
}

.brand-word span:first-child {
  color: var(--ink);
}

.brand-word span:last-child {
  color: var(--green);
}

.brand small {
  margin-top: 3px;
  font-size: .62rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  color: #5f6f7d;
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    font-size: .56rem;
  }
}

/* Footer */
.site-footer {
  position: relative;
  margin: 38px calc(50% - 50vw) 0;
  padding: 64px var(--page-pad) 34px;
  background: #202832;
  color: #ffffff;
}

.footer-up {
  position: absolute;
  top: 64px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.footer-up:hover {
  background: rgba(255, 255, 255, .08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) repeat(3, minmax(130px, .72fr));
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
}

.footer-dog {
  width: 46px;
  height: 46px;
  border-color: rgba(245, 184, 50, .45);
  background: rgba(255, 248, 239, .98);
}

.footer-logo-render {
  display: block;
  width: 156px;
  height: auto;
}

.footer-logo .brand-mark {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer-logo .brand-word span:first-child {
  color: #ffffff;
}

.footer-logo .brand-word span:last-child {
  color: var(--amber);
}

.footer-logo small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .72);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.footer-brand p {
  max-width: 260px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.75;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 13px;
  padding-top: 36px;
}

.footer-column h3 {
  margin: 0 0 1px;
  color: #ffffff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
  font-weight: 700;
}

.footer-column a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  max-width: 1120px;
  margin: 46px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #ffffff;
  font-size: .84rem;
  font-weight: 900;
  text-align: center;
}

.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: 18px;
  bottom: 18px;
  width: min(430px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid #e1d8cf;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(31, 39, 48, .2);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.5;
}

.analytics-consent div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.analytics-consent .btn {
  min-height: 40px;
  padding: 9px 13px;
}

@media (max-width: 860px) {
  .footer-up {
    top: 30px;
    right: var(--page-pad);
    left: auto;
    transform: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-brand p {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 58px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-column {
    padding-top: 0;
  }

  .footer-bottom {
    margin-top: 30px;
    text-align: left;
  }

  .join-actions {
    flex-direction: column;
    margin-top: 18px;
  }

  .join-actions .join-button {
    justify-content: center;
    margin-top: 0;
  }

  .analytics-consent div {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

/* Final mobile media framing */
@media (max-width: 620px) {
  .promo-showcase {
    overflow: hidden;
  }

  .promo-grid {
    grid-template-columns: 1fr;
    touch-action: pan-y;
  }

  .promo-card,
  .promo-card-large {
    grid-template-columns: 1fr;
  }

  .promo-image {
    background: #f3eee8;
  }

  .promo-image img,
  .promo-card-large .promo-image img {
    width: 100%;
    height: min(68vw, 280px);
    min-height: 220px;
    object-fit: contain;
  }

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

  .card-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    background: #f3eee8;
  }

  .card-media img {
    object-fit: contain;
  }
}

/* Header CTA fixes */
.topbar .nav-actions .nav-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 105%, #feda75 0 18%, transparent 32%),
    linear-gradient(135deg, #833ab4 0%, #fd1d1d 48%, #fcb045 100%);
  box-shadow: 0 10px 24px rgba(225, 48, 108, .3);
  font-weight: 900;
  white-space: nowrap;
}

.topbar .nav-actions .nav-instagram:hover,
.topbar .nav-actions .nav-instagram:focus-visible {
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 105%, #feda75 0 18%, transparent 32%),
    linear-gradient(135deg, #6f2dbd 0%, #e91e63 45%, #ff9f1c 100%);
  box-shadow: 0 14px 30px rgba(225, 48, 108, .38);
}

.topbar-search .search-actions .search-submit {
  min-width: 86px;
  border: 0;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 107, 79, .22);
  font-weight: 900;
}

.topbar-search .search-actions .search-submit:hover,
.topbar-search .search-actions .search-submit:focus-visible {
  background: #d83f32;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(216, 63, 50, .26);
}

@media (max-width: 620px) {
  .topbar .nav-actions {
    gap: 8px;
  }

  .topbar .nav-actions .nav-instagram,
  .topbar .nav-actions .nav-cta {
    min-height: 38px;
    padding: 9px 11px;
    font-size: .82rem;
  }
}

/* Mobile header: prevent the brand and CTAs from overlapping */
@media (max-width: 620px) {
  .topbar {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px 12px;
  }

  .logo-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    max-width: 100%;
  }

  .brand-dog {
    width: 38px;
    height: 38px;
  }

  .brand-logo-render {
    width: 108px;
  }

  .topbar .nav-actions {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .topbar .nav-actions a {
    width: 100%;
    text-align: center;
  }

  .topbar-search {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
  }
}

/* Guided business intake */
.business-intake {
  margin: 40px 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8e8 100%);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

.intake-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.intake-heading h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.04;
}

.intake-heading > div > p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.intake-steps {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intake-steps li {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 92px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
}

.intake-steps strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff0ec;
  color: var(--green);
  font-size: .9rem;
}

.open-intake-button {
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(239, 78, 63, .2);
}

.open-intake-button:hover,
.open-intake-button:focus-visible {
  background: #d83f32;
}

.intake-dialog {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: min(92vh, 920px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 30px 90px rgba(17, 25, 34, .34);
}

.intake-dialog::backdrop {
  background: rgba(17, 25, 34, .72);
  backdrop-filter: blur(5px);
}

.intake-dialog-shell {
  max-height: min(92vh, 920px);
  padding: 0 28px 30px;
  overflow-y: auto;
  background: #fbf7f1;
}

.intake-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 -28px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}

.intake-dialog-header span {
  color: var(--green);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.intake-dialog-header h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.intake-dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.intake-dialog-close:hover,
.intake-dialog-close:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.intake-form {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.intake-form[hidden],
.intake-result[hidden] {
  display: none;
}

.intake-form fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfa;
}

.intake-form legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.intake-grid {
  display: grid;
  gap: 16px;
}

.intake-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intake-form label,
.intake-choice-group > span {
  display: grid;
  gap: 7px;
  color: #37404a;
  font-size: .84rem;
  font-weight: 800;
}

.intake-form input:not([type="checkbox"]),
.intake-form select,
.intake-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #d9dfe4;
  border-radius: 9px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.intake-form textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.5;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(239, 78, 63, .13);
}

.intake-form label > small,
.fieldset-help,
.intake-privacy {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.45;
}

.optional {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.intake-choice-group {
  display: grid;
  gap: 10px;
}

.intake-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.intake-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #e1d8cf;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.intake-checks label:has(input:checked) {
  border-color: var(--green);
  background: #fff0ec;
  color: #9f2f25;
}

.intake-checks input,
.consent-check input {
  accent-color: var(--green);
}

.field-error {
  margin: 0;
  color: #b1271d;
  font-size: .78rem;
  font-weight: 800;
}

.photo-note {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid #f2d8a2;
  border-radius: 12px;
  background: #fff7df;
  color: #634812;
  font-size: .82rem;
  line-height: 1.5;
}

.consent-fieldset {
  background: #f8faf9 !important;
}

.consent-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px !important;
  line-height: 1.55;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.intake-submit {
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(239, 78, 63, .22);
}

.intake-submit:hover,
.intake-submit:focus-visible {
  background: #d83f32;
}

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

.intake-result {
  margin-top: 24px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #f2d8a2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdf8, #fff5d8);
  outline: none;
}

.intake-result h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.intake-result > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.intake-result textarea {
  width: 100%;
  min-height: 280px;
  padding: 16px;
  border: 1px solid #e1d8cf;
  border-radius: 10px;
  background: #ffffff;
  color: #37404a;
  font: 600 .82rem/1.55 Inter, sans-serif;
  resize: vertical;
}

.intake-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.intake-dialog-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .intake-heading {
    grid-template-columns: 1fr;
  }

  .intake-steps {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .business-intake {
    margin-inline: -4px;
    padding: 22px 16px;
    border-radius: 18px;
  }

  .intake-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .intake-form fieldset {
    padding: 18px 14px;
    background: #ffffff;
  }

  .intake-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intake-steps li {
    min-width: 0;
  }

  .intake-dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .intake-dialog-shell {
    height: 100%;
    max-height: 100%;
    padding: 0 14px 22px;
  }

  .intake-dialog-header {
    margin: 0 -14px;
    padding: 14px;
  }

  .intake-result-actions {
    display: grid;
  }

  .intake-result-actions .btn {
    justify-content: center;
  }
}
