/* ---- Hero ---- */
/* Extra room at the bottom so the search card can overlap the photo */
.photo-hero--home .photo-hero__content { padding-bottom: calc(var(--space-xl) + 56px); }
.photo-hero--home h1 { max-width: 16ch; margin-bottom: var(--space-md); }

/* Search card pulled up over the bottom of the hero */
.hero-search { position: relative; margin-top: -56px; }
.hero-search .search-bar { margin-top: 0; }

/* ---- Results header (after a search): breadcrumbs + "Tow companies near X" ---- */
.results-header { padding: var(--space-md) 0 0; }
.results-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: var(--space-xs); }

/* ---- Search bar ---- */
.search-bar {
  display: grid; gap: 12px; margin-top: var(--space-md); padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--red); box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
}
@media (min-width: 768px) { .search-bar { grid-template-columns: 1.5fr 1fr auto auto; } }
.filters { margin: var(--space-md) 0 var(--space-lg); }

/* ---- Results: list on the left, map on the right ---- */
.results { display: grid; gap: var(--space-md); }
@media (min-width: 960px) { .results { grid-template-columns: 5fr 6fr; } }

.results__list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.results__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px var(--space-md); border-bottom: 1px solid var(--line); }
.results__head strong { font-size: 1.05rem; display: block; }
.results__sort { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.results__scroll { padding: 20px; display: grid; gap: 16px; align-content: start; }
@media (min-width: 960px) { .results__scroll { max-height: 640px; overflow-y: auto; } }
.results__empty { padding: 56px var(--space-md); text-align: center; color: var(--muted); }

/* While Turbo is loading new results, fade them slightly */
turbo-frame[busy] .results { opacity: 0.55; transition: opacity 0.2s; }

/* ---- County grid ---- */
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.county-grid a {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; text-decoration: none; font-weight: 500; font-size: 0.9rem;
}
.county-grid a:hover { border-color: var(--ink); }
.county-grid small { display: block; color: var(--muted); font-weight: 400; }

/* ---- Navy "Run a tow business?" banner ---- */
/* ---- "Run a tow truck?" band: red box, photo fading in on the right ---- */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: #fff; border-radius: 20px; }

/* Photo: dimmed behind the text on phones... */
.cta-band__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
/* ...on wider screens it fills the right 60% and fades to red on its left edge */
@media (min-width: 900px) {
  .cta-band__photo {
    left: auto; width: 60%; opacity: 1;
    mask-image: linear-gradient(to right, transparent, #000 45%);
  }
}

.cta-band__content { position: relative; max-width: 40rem; padding: clamp(36px, 5vw, 64px); }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.cta-band p { margin-top: 14px; }

/* Eyebrow label with a short white bar in front */
.cta-band .cta-band__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.cta-band__eyebrow::before { content: ""; width: 22px; height: 4px; background: #fff; border-radius: 2px; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-md); }
.cta-band .btn--ghost-light { border-color: #fff; }
