/* Care visit card: the signature estimator */
.visit-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2.25rem 1.25rem 1.25rem;
  overflow: hidden;
}
.visit-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.6rem;
  background: var(--brand);
  opacity: 0.9;
}
.visit-card::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1.25rem;
  border-top: 2px dashed var(--border);
}
.visit-card__paw {
  position: absolute;
  right: 1rem;
  top: 1.6rem;
  width: 3rem;
  height: 3rem;
  color: var(--brand);
  opacity: 0.35;
  transform: rotate(-14deg);
  pointer-events: none;
}
.visit-card .tool {
  margin: 0;
}
.visit-card .field input,
.visit-card .field select {
  min-width: 88px;
}
.visit-card .result-value {
  font-variant-numeric: tabular-nums;
}
.visit-card #rate-source {
  color: var(--muted);
  text-align: right;
}
.visit-card .is-hidden {
  display: none;
}
@media (min-width: 720px) {
  .visit-card {
    padding: 2.5rem 2rem 2rem;
  }
  .visit-card__paw {
    width: 4rem;
    height: 4rem;
  }
}

/* Inner page hero: left-aligned text, aligned to the top of the glance card */
.hero:not(.hero--center) {
  text-align: left;
  align-items: start;
}
.hero:not(.hero--center) > :first-child {
  align-self: start;
}
.hero:not(.hero--center) .eyebrow {
  text-align: left;
}
.hero:not(.hero--center) .actions {
  justify-content: flex-start;
}

/* Two-column content areas: left-aligned headings and accent rules */
.split .section__head,
.two-col .section__head,
.content-grid .section__head,
.detail-grid .section__head,
.split h2,
.two-col h2,
.content-grid h2,
.detail-grid h2 {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}
.split .section__head::after,
.two-col .section__head::after,
.content-grid .section__head::after,
.detail-grid .section__head::after,
.split h2::after,
.two-col h2::after,
.content-grid h2::after,
.detail-grid h2::after {
  margin-left: 0;
  margin-right: auto;
}

/* Browse by city: fill the row with equal cards and consistent photo crops */
lg-groups [class*="row"],
lg-groups [class*="list"] {
  justify-content: center;
}
@media (min-width: 720px) {
  lg-groups [class*="grid"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
lg-groups img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.05) saturate(0.9);
}

/* Phone: keep the search placeholder and select values readable */
@media (max-width: 480px) {
  lg-search input {
    font-size: 0.95rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    text-overflow: ellipsis;
  }
  .visit-card .field select {
    font-size: 0.9rem;
    padding-left: 0.6rem;
    padding-right: 1.6rem;
    text-overflow: ellipsis;
    min-width: 0;
    width: 100%;
  }
}