.listing-card-premium {
  min-height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(142, 167, 204, 0.18);
  box-shadow: 0 12px 26px rgba(18, 35, 61, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  gap: 0;
  padding: 0;
}

.listing-card-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(18, 35, 61, 0.12);
  border-color: rgba(78, 121, 196, 0.24);
}

.listing-card-featured {
  border-radius: 22px;
}

.listing-card-modern {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(249,250,253,0.98) 100%);
}

.listing-card-featured .listing-card-body {
  padding: 16px 16px 18px;
}

.listing-card-featured .listing-card-media {
  height: auto;
}

.listing-card-featured .listing-card-summary {
  font-size: 0.84rem;
  line-height: 1.5;
}

.listing-card-featured .listing-card-headline h3 {
  font-size: 1.04rem;
  font-weight: 800;
}

.listing-card-featured .listing-card-cta {
  margin-top: 0;
}

.listing-card-featured .listing-card-overlay .badge {
  background: rgba(255, 248, 230, 0.94);
  color: #9c5f00;
}

.listing-card-featured .listing-card-flag {
  display: none;
}

.listing-card-footer {
  gap: 10px;
  margin-top: auto;
}

.listing-card-footer-meta {
  display: grid;
  gap: 6px;
  min-height: 22px;
}

.listing-card-tags {
  gap: 6px;
}

.listing-card-tags span {
  padding: 2px 7px;
  font-size: 0.63rem;
  color: #7d8ca0;
  background: #fafbfd;
  border-color: rgba(142, 167, 204, 0.1);
}

.listing-card-flag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f6efe2;
  color: #8a5b08;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.listing-card-meta-line-clean {
  gap: 6px 10px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #586c8d;
}

.listing-card-meta-line-clean span:not(:last-child)::after {
  right: -8px;
}

.listing-card-summary {
  margin: 0;
  color: #5e6f86;
  font-size: 0.84rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-microcopy {
  display: none;
}

.listing-card-body {
  gap: 11px;
  padding: 16px 16px 18px;
}

.listing-card-headline {
  display: grid;
  gap: 6px;
}

.listing-card-headline h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.28;
  color: #17283f;
}

.listing-card-topline {
  gap: 6px;
  min-height: 0;
  display: none;
}

.listing-card-service-inline,
.listing-card-mode-inline,
.listing-card-quick-meta span,
.listing-card-tags span {
  font-size: 0.68rem;
}

.listing-card-service-inline {
  padding: 5px 8px;
  background: rgba(40, 94, 214, 0.07);
}

.listing-card-cta {
  min-height: 46px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-color: rgba(142, 167, 204, 0.22);
  margin-top: 2px;
}

.listing-card-cta:hover {
  background: #ffffff;
  border-color: rgba(78, 121, 196, 0.28);
}

.listing-card-stats,
.listing-card-stat,
.listing-card-stat-label,
.listing-card-insight,
.listing-card-insight strong,
.listing-card-insight p,
.listing-card-quick-meta,
.listing-card-mode-inline,
.listing-card-highlights-clean {
  display: none;
}

.detail-card,
.detail-hero-copy-card,
.detail-fact-card,
.profile-content-shell {
  border-radius: 22px;
}

.detail-hero-copy-card {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(142, 167, 204, 0.18);
  box-shadow: 0 12px 28px rgba(18, 35, 61, 0.06);
}

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

.detail-hero-fact {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fbfcff;
  border: 1px solid rgba(142, 167, 204, 0.16);
}

.detail-hero-fact span,
.detail-fact-label {
  display: block;
  margin-bottom: 5px;
  color: #70829c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-hero-fact strong,
.detail-fact-card strong {
  display: block;
  color: #20334e;
  font-size: 0.95rem;
  line-height: 1.4;
}

.detail-info-grid-smart {
  gap: 14px;
}

.detail-fact-card {
  background: #fbfcff;
  border: 1px solid rgba(142, 167, 204, 0.16);
  box-shadow: none;
}

.section-head-tight {
  margin-bottom: 18px;
}

.section-head-tight p {
  max-width: 680px;
}

@media (max-width: 900px) {
  .detail-hero-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .listing-card-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-card,
  .detail-hero-copy-card,
  .profile-content-shell {
    border-radius: 18px;
  }
}

.listing-card-media {
  position: relative;
  aspect-ratio: 4 / 2.62;
  min-height: 188px;
  border-radius: 0;
  overflow: hidden;
  background: #eef3f9;
  display: block;
}

.listing-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(18,35,61,0.03) 100%);
  pointer-events: none;
}

.listing-card-media-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: transparent;
}

.listing-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(142, 167, 204, 0.12);
  max-width: 86%;
  max-height: 72%;
}

.listing-card-premium:hover .listing-card-image {
  transform: scale(1.015);
}

.listing-card-overlay {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.listing-card-overlay .badge {
  margin: 0;
  padding: 6px 10px;
  background: rgba(255, 250, 238, 0.96);
  color: #9c5f00;
  border: 1px solid rgba(211, 161, 70, 0.2);
  box-shadow: 0 8px 18px rgba(20, 38, 70, 0.06);
  font-size: 0.68rem;
}

.listing-card-overlay-subtitle {
  display: none;
}

.profile-visual-fallback {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(255,255,255,0.9) 0%, rgba(240,245,251,0.98) 52%, rgba(227,235,246,1) 100%);
}

.profile-visual-initials {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #1f5fd1 0%, #5b8dff 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 22px rgba(31, 95, 209, 0.16);
}

.profile-visual-service {
  font-size: 0.74rem;
  color: #5a6f8f;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.listing-card-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 16px 14px;
}

.listing-card-quick-meta,
.listing-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-card-body .listing-card-headline {
  display: grid;
  gap: 8px;
  min-height: 108px;
  align-content: start;
  align-items: start;
  justify-content: stretch;
  grid-template-rows: minmax(3.8em, auto) minmax(2.8em, auto);
}

.listing-card-body .listing-card-headline h3 {
  margin: 0;
  margin-bottom: 0;
  align-self: start;
  font-size: 1.02rem;
  line-height: 1.26;
  letter-spacing: -0.01em;
  min-height: 3.8em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #576b88;
  font-size: 0.84rem;
  font-weight: 600;
  min-height: 2.8em;
  align-content: start;
}

.listing-card-meta-line span {
  position: relative;
}

.listing-card-meta-line span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -10px;
  color: #b5c1d4;
}

.listing-card-service-inline,
.listing-card-mode-inline,
.listing-card-quick-meta span,
.listing-card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.listing-card-service-inline {
  background: rgba(40, 94, 214, 0.08);
  color: #1748a6;
  font-weight: 700;
}

.listing-card-mode-inline {
  background: #edf1f7;
  color: #536379;
}

.listing-card-quick-meta span {
  background: #f6f8fc;
  color: #5a6f8f;
  border: 1px solid rgba(142, 167, 204, 0.18);
}

.listing-card-summary {
  margin: 0;
  color: #52657f;
  font-size: 0.86rem;
  line-height: 1.55;
  min-height: 6.2em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-highlights-clean {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.listing-card-highlights-clean li {
  position: relative;
  padding: 8px 10px 8px 24px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid rgba(142, 167, 204, 0.16);
  color: #20334e;
  font-size: 0.82rem;
  line-height: 1.45;
}

.listing-card-highlights-clean li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8b2b 0%, #ffd166 100%);
}

.listing-card-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  grid-template-rows: minmax(34px, auto) auto;
}

.listing-card-footer-meta {
  min-height: 34px;
}

.listing-card-tags span {
  background: #fff;
  border: 1px solid rgba(142, 167, 204, 0.22);
  color: #415a7a;
}

.listing-card-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.grid-3 {
  align-items: stretch;
}

@media (min-width: 1200px) {
  .post-type-archive-pet_pro .container {
    width: min(1120px, calc(100% - 48px));
  }

  .post-type-archive-pet_pro .grid-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .post-type-archive-pet_pro .toolbar {
    margin-bottom: 18px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .post-type-archive-pet_pro .container {
    width: min(1080px, calc(100% - 40px));
  }

  .post-type-archive-pet_pro .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 780px) {
  .listing-card-media {
    min-height: 172px;
  }

  .listing-card-media-frame {
    padding: 12px 12px 14px;
  }

  .listing-card-image {
    border-radius: 12px;
    padding: 8px;
    max-width: 88%;
    max-height: 78%;
  }

  .listing-card-body {
    padding: 15px;
    gap: 10px;
  }

  .listing-card-headline h3 {
    font-size: 0.98rem;
  }

  .listing-card-summary {
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .listing-card-summary,
  .listing-card-microcopy {
    -webkit-line-clamp: unset;
  }
}

.hero-about-page {
  padding: 34px 0 22px;
}

.hero-grid-about-page {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
}

.hero-copy-about-page {
  max-width: 820px;
}

.hero-copy-about-page h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 760px;
}

.hero-copy-about-page p {
  max-width: 720px;
}

@media (max-width: 780px) {
  .hero-about-page {
    padding: 24px 0 16px;
  }

  .hero-copy-about-page h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
    line-height: 1.04;
  }
}

@media (max-width: 520px) {
  .grid-3 {
    gap: 14px;
  }
}

.service-grid-seamless {
  gap: 18px;
}

.service-card-clean {
  border-radius: 22px;
  border: 1px solid rgba(142, 167, 204, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(249,250,253,0.98) 100%);
  box-shadow: 0 12px 26px rgba(18, 35, 61, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card-clean:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(18, 35, 61, 0.11);
  border-color: rgba(78, 121, 196, 0.22);
}

.service-card-clean-media {
  min-height: 150px;
  padding: 14px;
  background: radial-gradient(circle at top, rgba(255,255,255,0.88) 0%, rgba(243,247,252,0.96) 52%, rgba(230,237,247,1) 100%);
  border-bottom: 1px solid rgba(142, 167, 204, 0.12);
}

.service-card-clean-image {
  max-width: 100%;
  max-height: 126px;
  object-fit: contain;
  border-radius: 14px;
  padding: 6px;
  background: rgba(255,255,255,0.76);
  box-shadow: inset 0 0 0 1px rgba(142, 167, 204, 0.12);
}

.service-card-clean-body {
  grid-template-rows: auto minmax(70px, auto) auto;
  gap: 9px;
  padding: 14px 14px 15px;
}

.service-card-clean-body h3 {
  font-size: 1rem;
  line-height: 1.22;
}

.service-card-clean-body p {
  font-size: 0.83rem;
  line-height: 1.46;
  max-width: 24ch;
}

.service-card-clean-link {
  font-size: 0.82rem;
}

.home-steps-grid {
  gap: 18px;
}

.home-step-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(142, 167, 204, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(249,250,253,0.98) 100%);
  box-shadow: 0 12px 26px rgba(18, 35, 61, 0.06);
}

.home-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f6efe2;
  color: #8a5b08;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-step-card h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
  line-height: 1.24;
}

.home-step-card p {
  margin: 0;
  color: #5e6f86;
  font-size: 0.84rem;
  line-height: 1.5;
}

.home-featured-grid {
  gap: 18px;
}

.detail-card-seamless {
  border-radius: 22px;
  border: 1px solid rgba(142, 167, 204, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(249,250,253,0.98) 100%);
  box-shadow: 0 12px 26px rgba(18, 35, 61, 0.06);
}

.detail-card-seamless .detail-list li {
  color: #5e6f86;
}

.detail-card-contact.detail-card-seamless,
.detail-card-soft-blue.detail-card-seamless,
.detail-hero-copy-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(246,249,253,0.98) 100%);
}

.detail-profile-visual-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(142, 167, 204, 0.18);
  background: linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
  box-shadow: 0 12px 28px rgba(18, 35, 61, 0.07);
  padding: 10px;
}

.detail-profile-visual {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
  aspect-ratio: 16 / 12.6;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
}

.detail-hero-grid {
  gap: 18px;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.64fr);
}

.detail-card,
.profile-content-shell,
.detail-lower-card {
  padding: 16px;
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
  color: #8a5b08;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-card strong,
.detail-map-head strong {
  font-size: 0.98rem;
}

.detail-card > strong,
.detail-map-head > strong {
  margin-bottom: 6px;
}

.detail-list li {
  font-size: 0.86rem;
  line-height: 1.56;
}

.detail-hero-copy-card h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.08;
}

.detail-hero-copy-card > p,
.profile-copy,
.detail-card p,
.detail-card .subtle,
.detail-lower-card p {
  font-size: 0.86rem;
  line-height: 1.56;
}

.detail-sidebar {
  gap: 12px;
}

.detail-info-grid-smart {
  gap: 14px;
}

.detail-hero-copy-card {
  gap: 14px;
}

.detail-hero-facts {
  gap: 10px;
}

.detail-hero-facts-modern {
  grid-template-columns: 1fr;
}

.detail-hero-fact,
.detail-fact-card,
.detail-contact-row {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(142, 167, 204, 0.14);
}

.detail-contact-mini-pills span,
.detail-contact-row a,
.detail-contact-row strong,
.detail-hero-fact strong,
.detail-fact-card strong {
  font-size: 0.88rem;
}

.detail-contact-mini-pills span {
  padding: 7px 10px;
}

.detail-meta-row {
  margin-top: 6px;
}

.detail-trust-strip {
  gap: 8px;
}

.detail-trust-strip span {
  padding: 6px 9px;
  font-size: 0.74rem;
}

.detail-map-card,
.detail-map-inline-block {
  display: grid;
  gap: 10px;
}

.detail-map-inline-block {
  margin-top: 8px;
}

.detail-map-head p {
  margin: 6px 0 0;
}

.detail-map-frame {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(142, 167, 204, 0.14);
  background: #eef4fb;
  min-height: 160px;
}

.detail-map-frame iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
}

.detail-map-link {
  width: 100%;
  justify-content: center;
}

.detail-lower-grid {
  align-items: stretch;
}

.detail-lower-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(249,250,253,0.98) 100%);
}

.detail-next-step-card {
  display: grid;
  gap: 10px;
}

.detail-next-step-card-single {
  max-width: 780px;
}

.detail-lower-card .section-head {
  margin-bottom: 10px;
}

.detail-lower-card .profile-form-actions {
  gap: 10px;
}

.detail-lower-card .btn {
  min-height: 42px;
}

.detail-card-contact .listing-card-tags {
  margin-top: 12px !important;
}

.detail-card-contact .listing-card-tags span {
  padding: 3px 8px;
}

.detail-sidebar .detail-card {
  gap: 0;
}

.detail-action-card {
  gap: 12px !important;
}

.detail-quick-facts {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.detail-quick-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(142, 167, 204, 0.14);
}

.detail-quick-fact span {
  color: #6e7f95;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-quick-fact strong {
  font-size: 0.88rem;
  line-height: 1.4;
}

.detail-contact-mini-compact {
  margin-top: 2px;
}

.detail-side-actions {
  margin-top: 6px;
}

.detail-overview-head {
  margin-bottom: 16px;
}

.detail-grid-sidebar-only {
  grid-template-columns: minmax(0, 360px);
  justify-content: end;
}

.detail-hero-description {
  margin-top: 2px;
}

.detail-hero-description p:first-child {
  margin-top: 0;
}

.detail-highlights-embedded {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(142, 167, 204, 0.14);
}

.detail-list-plain {
  padding-left: 18px;
  margin: 8px 0 0;
}

.detail-list-plain li {
  color: #53657d;
}

.detail-highlights-card .detail-list {
  margin-top: 12px;
}

@media (max-width: 780px) {
  .service-card-clean-body,
  .home-step-card {
    padding: 13px;
  }

  .service-card-clean-media {
    min-height: 140px;
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .detail-card,
  .profile-content-shell,
  .detail-lower-card {
    padding: 12px;
  }

  .detail-map-frame {
    min-height: 132px;
  }

  .detail-map-frame iframe {
    height: 132px;
  }

  .detail-hero-facts-modern {
    grid-template-columns: 1fr;
  }

  .detail-profile-visual {
    aspect-ratio: 16 / 13;
    max-height: 220px;
  }

  .detail-hero-grid,
  .detail-grid-sidebar-only {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-kicker {
    font-size: 0.66rem;
  }
}

/* profile-tightening-v4: shorter, cleaner profile pages */
.profile-template-v2 {
  padding-top: 22px;
}

.profile-template-v2 .detail-hero-shell {
  padding-bottom: 14px;
}

.profile-template-v2 .detail-hero-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.profile-template-v2 .profile-main-card .detail-profile-visual {
  min-height: 400px;
  padding: 28px;
}

.profile-template-v2 .profile-main-card .profile-visual-fallback {
  min-height: 400px;
}

.profile-template-v2 .detail-hero-copy-card {
  padding: 28px;
}

.profile-template-v2 .detail-hero-description {
  margin-top: 14px;
  line-height: 1.62;
}

.profile-template-v2 .profile-snapshot-grid {
  margin: 18px 0;
  gap: 12px;
}

.profile-template-v2 .profile-snapshot-card {
  min-height: 82px;
  padding: 14px;
}

.profile-template-v2 .detail-highlights-embedded {
  margin-top: 12px;
  padding: 14px;
}

.profile-template-v2 .profile-booking-panel {
  padding: 20px;
}

.profile-template-v2 .detail-contact-mini-pills span,
.profile-template-v2 .detail-contact-mini-pills a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe7f6;
  background: #f8fbff;
  color: #1d4f8f;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 7px 10px;
  text-decoration: none;
}

.profile-template-v2 .detail-contact-mini-pills a:hover {
  border-color: #8fb5e7;
  background: #eef6ff;
}

.profile-template-v2 .detail-map-inline-block {
  margin-top: 10px;
}

.profile-template-v2 .detail-map-frame,
.profile-template-v2 .detail-map-frame iframe {
  min-height: 150px;
  height: 150px;
}

.profile-template-v2 + section {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .profile-template-v2 .profile-main-card .detail-profile-visual,
  .profile-template-v2 .profile-main-card .profile-visual-fallback {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .profile-template-v2 .detail-hero-grid {
    gap: 14px;
  }

  .profile-template-v2 .detail-hero-copy-card,
  .profile-template-v2 .profile-booking-panel {
    padding: 18px;
  }

  .profile-template-v2 .profile-main-card .detail-profile-visual,
  .profile-template-v2 .profile-main-card .profile-visual-fallback {
    min-height: 220px;
    padding: 20px;
  }
}

/* sitewide-card-mobile-polish-v5 */
.listing-card-media-frame {
  background: linear-gradient(135deg, #f5f8fd 0%, #eaf1fb 100%);
}

.listing-card-image.has-image {
  object-fit: contain;
  padding: 18px;
  background: transparent;
}

.listing-card-profile-link {
  align-self: center;
  color: #6b7d95;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.listing-card-profile-link:hover {
  color: #1d4f8f;
  text-decoration: underline;
}

.listing-card-footer {
  align-items: center;
}

.listing-card-footer .listing-card-cta {
  flex: 1 1 auto;
  justify-content: center;
}

.profile-template-v2 .profile-main-card .detail-profile-visual.has-image {
  object-fit: contain;
  background: transparent;
}

.profile-template-v2 .profile-status-row span:empty,
.profile-template-v2 .detail-contact-mini:empty,
.profile-template-v2 .detail-contact-mini-pills:empty,
.profile-template-v2 .listing-card-footer-meta:empty {
  display: none;
}

@media (max-width: 900px) {
  .profile-template-v2 .detail-hero-shell,
  .profile-template-v2 + section .container {
    width: min(100% - 28px, 1480px);
  }

  .profile-template-v2 .detail-hero-grid,
  .profile-main-card {
    grid-template-columns: 1fr;
  }

  .profile-template-v2 .profile-booking-panel {
    position: static;
  }

  .profile-template-v2 .detail-title-row {
    gap: 12px;
  }

  .profile-template-v2 .detail-hero-copy-card h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: -0.045em;
  }
}

@media (max-width: 640px) {
  .listing-card-image.has-image {
    padding: 14px;
  }

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

  .listing-card-profile-link {
    justify-self: center;
  }

  .profile-template-v2 .profile-status-row {
    gap: 6px;
  }

  .profile-template-v2 .profile-status-row span {
    font-size: 0.74rem;
    padding: 6px 8px;
  }

  .profile-template-v2 .detail-contact-mini-pills {
    gap: 6px;
  }

  .profile-template-v2 .detail-contact-mini-pills span,
  .profile-template-v2 .detail-contact-mini-pills a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* logo-matched-colour-pass-v9: BookMyGroomer blue + orange, clean white footer */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #edf5ff;
  --text: #102238;
  --muted: #52647a;
  --line: #d6e2ef;
  --primary: #0759a6;
  --primary-dark: #003b74;
  --accent: #ff8a00;
  --accent-soft: #fff2df;
  --success: #157347;
  --success-soft: #ebf7f0;
  --shadow: 0 18px 42px rgba(0, 59, 116, 0.12);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(7, 89, 166, 0.10), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(255, 138, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 48%, #f7f9fc 100%);
}

.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(7, 89, 166, 0.14);
  box-shadow: 0 10px 26px rgba(0, 59, 116, 0.07);
}

.brand,
.nav-links a:hover,
.nav-links a.active,
.section-head h2,
.detail-hero-copy-card h1,
.listing-card-headline h3 {
  color: #003b74;
}

.nav-links {
  color: #40566e;
}

.nav-links a:hover,
.nav-links a.active {
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(7, 89, 166, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, #0872d4 0%, #004b93 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(7, 89, 166, 0.23);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0759a6 0%, #003b74 100%);
  box-shadow: 0 18px 34px rgba(7, 89, 166, 0.28);
}

.btn-secondary,
.listing-card-cta {
  background: #ffffff;
  color: #0759a6;
  border-color: rgba(7, 89, 166, 0.24);
}

.btn-secondary:hover,
.listing-card-cta:hover {
  background: #edf5ff;
  border-color: rgba(7, 89, 166, 0.34);
}

.hero-home::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 245, 255, 0.96) 62%, rgba(255, 242, 223, 0.72) 100%);
  border-color: rgba(7, 89, 166, 0.14);
  box-shadow: 0 28px 72px rgba(0, 59, 116, 0.10);
}

.profile-template-v2 {
  background:
    radial-gradient(circle at 16% 0%, rgba(7, 89, 166, 0.09), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 58%, #f7f9fc 100%);
}

.listing-card-premium,
.profile-main-card,
.profile-template-v2 .profile-booking-panel,
.detail-card,
.detail-hero-copy-card,
.service-card-clean,
.panel,
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: rgba(7, 89, 166, 0.18);
  box-shadow: 0 18px 42px rgba(0, 59, 116, 0.09);
}

.listing-card-premium:hover,
.service-card-clean:hover,
.card:hover {
  box-shadow: 0 26px 56px rgba(0, 59, 116, 0.14);
  border-color: rgba(255, 138, 0, 0.32);
}

.listing-card-media-frame,
.profile-template-v2 .profile-main-card .detail-profile-visual-wrap {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(135deg, #e8f3ff 0%, #ffffff 58%, #fff2df 100%);
}

.badge,
.listing-card-overlay .badge,
.profile-verified-badge,
.listing-card-flag {
  background: linear-gradient(135deg, #ff9b22 0%, #ff7a00 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(255, 138, 0, 0.22);
}

.service-tags span,
.listing-card-tags span,
.profile-status-row span,
.profile-snapshot-card,
.profile-template-v2 .detail-contact-mini-pills span,
.profile-template-v2 .detail-contact-mini-pills a {
  background: #edf5ff;
  border-color: rgba(7, 89, 166, 0.16);
  color: #064f94;
}

.profile-template-v2 .detail-highlights-embedded,
.detail-trust-box,
.note-box,
.info-strip {
  background: linear-gradient(135deg, #fff2df 0%, #ffffff 100%);
  border-color: rgba(255, 138, 0, 0.22);
}

.detail-map-frame {
  border-color: rgba(7, 89, 166, 0.20);
  background: #edf5ff;
}

input,
select,
textarea {
  background-color: #ffffff;
  border-color: rgba(7, 89, 166, 0.24);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(7, 89, 166, 0.13);
  border-color: #0759a6;
}

.site-footer-premium {
  margin-top: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border-top: 1px solid rgba(7, 89, 166, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.footer-premium {
  padding: 38px 0 22px;
}

.footer-premium-logo {
  height: 50px;
  filter: drop-shadow(0 8px 18px rgba(0, 59, 116, 0.08));
}

.footer-premium-brand p,
.footer-premium-column a,
.footer-premium-column span,
.footer-premium-bottom,
.footer-disclaimer {
  color: #52647a;
}

.footer-premium-column strong {
  color: #003b74;
}

.footer-premium-column a:hover {
  color: #ff7a00;
}

.footer-premium-bottom {
  border-top-color: rgba(7, 89, 166, 0.14);
}

.footer {
  background: transparent;
  color: #52647a;
}

.footer a,
.footer strong {
  color: #003b74;
}

/* footer-polish-v1: tighter, balanced footer layout */
.site-footer-premium {
  margin-top: 44px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
  border-top: 1px solid rgba(7, 89, 166, 0.12);
}

.footer-premium {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.55fr);
  gap: 48px;
  align-items: start;
  padding: 34px 0 24px;
}

.footer-premium-brand {
  max-width: 390px;
}

.footer-premium-logo {
  height: 44px;
  margin-bottom: 12px;
}

.footer-premium-brand p {
  line-height: 1.55;
}

.footer-premium-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-premium-column {
  gap: 8px;
}

.footer-premium-column strong {
  margin-bottom: 6px;
  line-height: 1.25;
}

.footer-premium-column a,
.footer-premium-column span {
  line-height: 1.4;
  text-decoration: none;
}

.footer-premium-bottom {
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0 30px;
}

.footer-premium-bottom > div:first-child {
  max-width: 780px;
}

.footer-disclaimer {
  margin-top: 10px;
  max-width: 760px;
  line-height: 1.55;
}

.footer-country {
  margin-left: auto;
  white-space: nowrap;
  line-height: 1.4;
}

.footer-flag {
  font-weight: 700;
  color: #0759a6;
}

@media (max-width: 900px) {
  .footer-premium {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-premium-brand {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .site-footer-premium {
    margin-top: 28px;
  }

  .footer-premium {
    padding: 28px 0 18px;
  }

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

  .footer-premium-bottom {
    padding: 16px 0 26px;
  }

  .footer-country {
    margin-left: 0;
  }
}

/* footer-premium-redesign-v2 */
.site-footer-premium {
  margin-top: 56px;
  padding: 0 0 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 0, 0.10), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fd 100%);
  border-top: 1px solid rgba(7, 89, 166, 0.12);
}

.footer-premium-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.55fr);
  gap: 44px;
  align-items: stretch;
  padding: 34px 34px 30px;
  transform: translateY(-18px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(7, 89, 166, 0.12);
  border-radius: 28px;
  box-shadow: 0 22px 55px rgba(0, 59, 116, 0.10);
  backdrop-filter: blur(8px);
}

.footer-premium-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
}

.footer-premium-logo {
  width: 210px;
  height: auto;
  max-height: none;
  margin: 0 0 14px;
  filter: drop-shadow(0 10px 18px rgba(0, 59, 116, 0.08));
}

.footer-premium-brand p {
  margin: 0;
  max-width: 360px;
  color: #52647a;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-premium-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-premium-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(7, 89, 166, 0.08);
}

.footer-premium-column strong {
  margin: 0 0 4px;
  color: #003b74;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-premium-column a {
  color: #52647a;
  font-size: 0.96rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-premium-column a:hover {
  color: #0759a6;
  transform: translateX(2px);
}

.footer-premium-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px;
  border-top: 0;
  color: #52647a;
  font-size: 0.9rem;
}

.footer-bottom-copy {
  max-width: 760px;
}

.footer-disclaimer {
  margin-top: 7px;
  color: #68798c;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.footer-bottom-links a {
  color: #52647a;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #0759a6;
}

.footer-country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  color: #003b74;
  font-weight: 600;
}

.footer-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(7, 89, 166, 0.09);
  color: #0759a6;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .footer-premium-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-premium-brand {
    max-width: 680px;
  }

  .footer-premium-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-footer-premium {
    margin-top: 42px;
    padding-bottom: 24px;
  }

  .footer-premium-shell {
    width: calc(100% - 24px);
    padding: 26px 20px 24px;
    border-radius: 24px;
    transform: translateY(-14px);
  }

  .footer-premium-logo {
    width: 185px;
  }

  .footer-premium-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-premium-column {
    padding: 16px;
  }

  .footer-premium-bottom {
    width: calc(100% - 24px);
    flex-direction: column;
    gap: 14px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    white-space: normal;
  }
}

/* footer-clean-redesign-v3: flatter, tighter, less bulky */
.site-footer-premium {
  margin-top: 42px;
  padding: 34px 0 30px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  border-top: 1px solid rgba(7, 89, 166, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.footer-premium-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.45fr);
  gap: 42px;
  align-items: start;
  padding: 0 0 26px;
  transform: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.footer-premium-brand {
  max-width: 430px;
  justify-content: flex-start;
}

.footer-premium-logo {
  width: 210px;
  height: auto;
  margin: 0 0 12px;
  filter: none;
}

.footer-premium-brand p {
  max-width: 390px;
  margin: 0;
  color: #52647a;
  font-size: 1rem;
  line-height: 1.55;
}

.footer-premium-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-premium-column {
  padding: 0;
  gap: 9px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.footer-premium-column strong {
  margin: 0 0 7px;
  color: #003b74;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-premium-column a {
  width: fit-content;
  color: #52647a;
  font-size: 0.96rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-premium-column a:hover {
  color: #ff7a00;
  transform: none;
}

.footer-premium-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(7, 89, 166, 0.12);
  color: #52647a;
  font-size: 0.9rem;
}

.footer-bottom-copy {
  max-width: 780px;
}

.footer-disclaimer {
  margin-top: 8px;
  max-width: 740px;
  color: #68798c;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.footer-bottom-links a {
  color: #52647a;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #ff7a00;
}

.footer-country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 2px;
  color: #003b74;
  font-weight: 700;
}

.footer-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(7, 89, 166, 0.09);
  color: #0759a6;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .footer-premium-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-premium-nav {
    gap: 24px;
  }

  .footer-premium-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-footer-premium {
    margin-top: 30px;
    padding: 28px 0 26px;
  }

  .footer-premium-shell,
  .footer-premium-bottom {
    width: calc(100% - 24px);
  }

  .footer-premium-logo {
    width: 185px;
  }

  .footer-premium-nav {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom-links {
    gap: 11px;
    white-space: normal;
  }
}

/* directory-hero-tighten-v4 */
.nav-links {
  padding: 5px;
  gap: 4px;
}

.nav-links a,
.nav-links a:nth-child(2) {
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-directory-page {
  padding: 22px 0 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 122, 0, 0.08), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.hero-directory-page::before {
  opacity: 0.35;
  transform: translateY(28px) scale(0.92);
}

.hero-directory-page .hero-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.hero-directory-page .hero-copy {
  padding: 0;
}

.hero-directory-page .eyebrow {
  margin-bottom: 12px;
  padding: 8px 13px;
  font-size: 0.82rem;
}

.hero-directory-page .hero-copy h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 4.2vw, 3.3rem);
  line-height: 1.04;
}

.hero-directory-page .hero-copy p {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-directory-page .hero-mini-points {
  gap: 9px;
  max-width: 560px;
}

.hero-directory-page .hero-mini-points span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(7, 89, 166, 0.12);
  color: #075081;
  font-size: 0.86rem;
  box-shadow: none;
}

.hero-directory-page .hero-search-card {
  max-width: 430px;
  justify-self: end;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(0, 59, 116, 0.11);
}

.hero-directory-page .hero-search-card h2 {
  margin: 0 0 6px;
  font-size: 1.38rem;
  line-height: 1.15;
}

.hero-directory-page .hero-search-card .subtle {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.hero-directory-page .search-form .field-grid {
  gap: 13px;
}

.hero-directory-page .field-group label {
  margin-bottom: 7px;
  color: #0f2a44;
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-directory-page .field,
.hero-directory-page select.field {
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 0.94rem;
}

.hero-directory-page .field-help {
  margin-top: 7px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.directory-search-actions {
  margin-top: 15px;
  gap: 10px;
  align-items: center;
}

.hero-directory-page .directory-search-actions .btn {
  width: auto;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.92rem;
}

.hero-directory-page .directory-reset-link {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #52647a;
}

.hero-directory-page .directory-reset-link:hover {
  background: rgba(7, 89, 166, 0.06);
  color: #0759a6;
}

.hero-directory-page + section {
  padding-top: 28px;
}

.hero-directory-page + section .toolbar h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

@media (max-width: 1020px) {
  .hero-directory-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-directory-page .hero-search-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .hero-directory-page {
    padding: 24px 0 26px;
  }

  .hero-directory-page .hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .hero-directory-page .hero-mini-points span {
    font-size: 0.82rem;
  }

  .hero-directory-page .hero-search-card {
    padding: 20px;
  }

  .hero-directory-page .directory-search-actions .btn {
    width: 100%;
  }
}

/* directory-balance-v5: less giant hero, calmer search, tighter listings */
.hero-directory-page {
  padding: 28px 0 28px !important;
  min-height: 0 !important;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%) !important;
}

.hero-directory-page::before {
  opacity: 0.16 !important;
  width: 360px !important;
  height: 360px !important;
  right: 14% !important;
  top: 72px !important;
  transform: none !important;
}

.hero-directory-page .hero-grid,
.hero-directory-page .hero-grid-home {
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px) !important;
  gap: 48px !important;
  align-items: center !important;
}

.hero-directory-page .hero-copy,
.hero-directory-page .hero-copy-home {
  padding: 0 !important;
  align-self: center !important;
}

.hero-directory-page .eyebrow {
  margin-bottom: 14px !important;
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
}

.hero-directory-page .hero-copy h1 {
  max-width: 720px !important;
  margin: 0 0 14px !important;
  font-size: clamp(2.45rem, 3.2vw, 3.05rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
}

.hero-directory-page .hero-copy p {
  max-width: 670px !important;
  margin: 0 0 18px !important;
  font-size: 1.03rem !important;
  line-height: 1.55 !important;
}

.hero-directory-page .hero-mini-points {
  gap: 8px !important;
}

.hero-directory-page .hero-mini-points span {
  padding: 7px 11px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

.hero-directory-page .hero-search-card {
  max-width: 440px !important;
  justify-self: end !important;
  padding: 22px 24px 24px !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 36px rgba(0, 59, 116, 0.10) !important;
}

.hero-directory-page .hero-search-card h2 {
  margin-bottom: 5px !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.025em !important;
}

.hero-directory-page .hero-search-card .subtle {
  margin-bottom: 14px !important;
  font-size: 0.9rem !important;
}

.hero-directory-page .search-form .field-grid,
.hero-directory-page .field-grid.two-col-form {
  gap: 12px 14px !important;
}

.hero-directory-page .field-group label {
  margin-bottom: 6px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.01em !important;
}

.hero-directory-page .field,
.hero-directory-page select.field {
  min-height: 42px !important;
  padding: 10px 13px !important;
  border-radius: 13px !important;
  font-size: 0.92rem !important;
}

.hero-directory-page .field-help {
  margin-top: 6px !important;
  font-size: 0.76rem !important;
}

.hero-directory-page .directory-search-actions {
  margin-top: 14px !important;
}

.hero-directory-page .directory-search-actions .btn {
  min-height: 42px !important;
  padding: 10px 17px !important;
  font-size: 0.9rem !important;
}

.hero-directory-page + section {
  padding-top: 24px !important;
}

.hero-directory-page + section .toolbar {
  margin-bottom: 18px !important;
}

.hero-directory-page + section .toolbar h2 {
  margin-bottom: 4px !important;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem) !important;
  letter-spacing: -0.035em !important;
}

.directory-trust-strip {
  gap: 12px !important;
  margin: 16px 0 24px !important;
}

.directory-trust-strip > div {
  padding: 15px 18px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: none !important;
}

.directory-trust-strip strong {
  margin-bottom: 4px !important;
  font-size: 0.98rem !important;
}

.directory-trust-strip span {
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

@media (max-width: 1020px) {
  .hero-directory-page .hero-grid,
  .hero-directory-page .hero-grid-home {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .hero-directory-page .hero-search-card {
    max-width: none !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 720px) {
  .hero-directory-page {
    padding: 24px 0 24px !important;
  }

  .hero-directory-page .hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.55rem) !important;
  }

  .hero-directory-page .hero-search-card {
    padding: 20px !important;
  }
}

/* directory-search-card-gap-v6 */
.hero-directory-page .hero-search-card {
  margin-top: 22px !important;
}

@media (max-width: 1020px) {
  .hero-directory-page .hero-search-card {
    margin-top: 0 !important;
  }
}

/* listing-card-clean-v7: remove clutter pills from directory cards */
.listing-card .listing-card-footer {
  margin-top: auto;
  padding-top: 18px;
  gap: 12px;
}

.listing-card .listing-card-cta {
  width: 100%;
}
