/* Contextual imagery for listing-page heroes only. Detail pages and the home page are intentionally excluded. */
.ll-listing-hero {
  --ll-listing-hero-image: none;
  --ll-listing-hero-position: center;
  --ll-listing-page-surface: 255, 255, 255;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 258px;
  padding: 29px 0 44px;
  overflow: hidden;
  color: #203c36;
  background-color: #dfece7;
  background-image:
    radial-gradient(ellipse 78% 82% at 0% 100%, rgba(var(--ll-listing-page-surface), 1) 0%, rgba(var(--ll-listing-page-surface), .96) 24%, rgba(var(--ll-listing-page-surface), .72) 43%, rgba(var(--ll-listing-page-surface), .24) 61%, rgba(var(--ll-listing-page-surface), 0) 78%),
    linear-gradient(90deg, rgba(248, 251, 249, .98) 0%, rgba(248, 251, 249, .94) 31%, rgba(248, 251, 249, .76) 48%, rgba(248, 251, 249, .24) 72%, rgba(248, 251, 249, .06) 100%),
    linear-gradient(180deg, rgba(18, 55, 46, .02), rgba(18, 55, 46, .14)),
    var(--ll-listing-hero-image);
  background-position: center, center, center, var(--ll-listing-hero-position);
  background-size: cover;
  background-repeat: no-repeat;
}

.ll-listing-hero > .container { position: relative; z-index: 1; width: min(1140px, calc(100% - 44px)); }
.ll-listing-hero__content { min-width: 0; max-width: 800px; }

.ll-listing-hero .ll-listing-hero__breadcrumb,
.ll-listing-hero .breadcrumb,
.ll-listing-hero .ll-county-crumb,
.ll-listing-hero .ll-fish-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  color: #496c61;
  font-size: .76rem;
}

.ll-listing-hero .ll-listing-hero__breadcrumb a,
.ll-listing-hero .breadcrumb a,
.ll-listing-hero .ll-county-crumb a,
.ll-listing-hero .ll-fish-breadcrumb a {
  color: #356f5f;
  font-weight: 700;
}

.ll-listing-hero .ll-listing-hero__breadcrumb a:hover,
.ll-listing-hero .breadcrumb a:hover,
.ll-listing-hero .ll-county-crumb a:hover,
.ll-listing-hero .ll-fish-breadcrumb a:hover { color: #194f40; }

.ll-listing-hero .ll-listing-hero__kicker,
.ll-listing-hero .overline,
.ll-listing-hero .ll-detail-kicker,
.ll-listing-hero .ll-fish-kicker {
  display: inline-block;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(57, 111, 93, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  color: #286f59;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em;
  backdrop-filter: blur(7px);
}

.ll-listing-hero h1,
.page-banner.ll-listing-hero h1,
.ll-fish-index .ll-listing-hero h1 {
  max-width: 800px;
  margin: 10px 0 12px;
  color: #153f34;
  font: 800 clamp(2.3rem, 3.75vw, 3.55rem)/1.06 Manrope, 'DM Sans', sans-serif;
  letter-spacing: -.06em;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .68);
}

.ll-listing-hero p,
.page-banner.ll-listing-hero p,
.ll-fish-index .ll-listing-hero p {
  max-width: 730px;
  margin: 0;
  color: #43635a;
  font-size: .96rem;
  line-height: 1.62;
}

.ll-listing-hero .ll-county-heading { align-items: flex-start; }
.ll-listing-hero .ll-county-heading-main { max-width: 800px; }
.ll-listing-hero .ll-detail-icon-action {
  flex: none;
  border-color: rgba(86, 123, 111, .24);
  background: rgba(255, 255, 255, .82);
  color: #315f52;
  backdrop-filter: blur(6px);
}

.ll-listing-hero--states { --ll-listing-hero-image: url('/images/heroes/states-great-lakes.webp'); --ll-listing-hero-position: center 48%; }
.ll-listing-hero--counties { --ll-listing-hero-image: url('/images/heroes/counties-aerial-lakes.webp'); --ll-listing-hero-position: center 52%; }
.ll-listing-hero--lakes { --ll-listing-hero-image: url('/images/heroes/lakes-aerial-explorer.webp'); --ll-listing-hero-position: center 50%; }
.ll-listing-hero--fish { --ll-listing-hero-image: url('/images/heroes/fish-freshwater-shore.webp'); --ll-listing-hero-position: center 54%; }
.ll-listing-hero--boat-ramps { --ll-listing-hero-image: url('/images/heroes/boat-ramps-launch.webp'); --ll-listing-hero-position: center 58%; }
.ll-listing-hero--depth-maps { --ll-listing-hero-image: url('/images/heroes/depth-maps-bathymetry.webp'); --ll-listing-hero-position: center 50%; }

.ll-fish-index { padding-top: 0; }
.ll-fish-index .ll-listing-hero .ll-fish-header { max-width: 800px; margin: 0; }
.ll-fish-index-content { padding-top: 36px; }
.page-banner.ll-listing-hero + .section { padding-top: 58px; }

/* Search controls bridge the hero and results as one premium, continuous composition. */
.ll-listing-hero + .ll-county-page.ll-listing-content {
  position: relative;
  z-index: 4;
  margin-top: -27px;
  padding-top: 0;
}

.ll-listing-content > .ll-county-search,
.ll-listing-content > .boat-ramp-filter-shell.directory-explorer {
  margin: 0 0 26px;
  padding: 12px 14px;
  border: 1px solid rgba(211, 222, 231, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(32, 60, 51, .12), 0 2px 8px rgba(32, 60, 51, .05);
  backdrop-filter: blur(12px);
}

.ll-listing-content > .ll-county-search { border-bottom-color: rgba(211, 222, 231, .9); }
.ll-listing-content > .ll-county-search .ll-county-search-field { background: #f5f7f9; }
.ll-listing-content > .boat-ramp-filter-shell.directory-explorer { padding-bottom: 12px; border-bottom: 1px solid rgba(211, 222, 231, .9); }
.ll-listing-content > .boat-ramp-filter-shell .directory-filter-bar { background: transparent; }

/* The main lake explorer starts directly below the sticky site header.
   Its full-width toolbar scrolls with the page instead of becoming sticky. */
.directory-page.directory-explorer > .directory-filter-bar {
  position: relative;
  top: auto;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e4eaf2;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(39, 61, 89, .04);
  backdrop-filter: none;
}

.directory-page.directory-explorer .directory-explorer-back {
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex: 0 0 44px;
}

@media (max-width: 680px) {
  .directory-page.directory-explorer .directory-explorer-back {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

@media (max-width: 680px) {
  .ll-listing-hero {
    min-height: 236px;
    padding: 23px 0 34px;
    background-image:
      radial-gradient(ellipse 105% 76% at 0% 100%, rgba(var(--ll-listing-page-surface), 1) 0%, rgba(var(--ll-listing-page-surface), .94) 27%, rgba(var(--ll-listing-page-surface), .58) 50%, rgba(var(--ll-listing-page-surface), 0) 76%),
      linear-gradient(90deg, rgba(248, 251, 249, .94) 0%, rgba(248, 251, 249, .86) 52%, rgba(248, 251, 249, .48) 100%),
      linear-gradient(180deg, rgba(18, 55, 46, .02), rgba(18, 55, 46, .16)),
      var(--ll-listing-hero-image);
  }

  .ll-listing-hero > .container { width: min(1140px, calc(100% - 32px)); }
  .ll-listing-hero .ll-listing-hero__breadcrumb,
  .ll-listing-hero .breadcrumb,
  .ll-listing-hero .ll-county-crumb,
  .ll-listing-hero .ll-fish-breadcrumb { margin-bottom: 18px; }
  .ll-listing-hero h1,
  .page-banner.ll-listing-hero h1,
  .ll-fish-index .ll-listing-hero h1 { font-size: clamp(2rem, 9.5vw, 2.65rem); text-wrap: wrap; }
  .ll-listing-hero p,
  .page-banner.ll-listing-hero p,
  .ll-fish-index .ll-listing-hero p { font-size: .89rem; line-height: 1.58; }
  .ll-listing-hero .ll-county-heading { gap: 12px; }
  .ll-listing-hero .ll-detail-icon-action { width: 38px; height: 38px; }
  .ll-listing-hero--fish { --ll-listing-hero-position: 36% center; }
  .ll-listing-hero--boat-ramps { --ll-listing-hero-position: 52% center; }
  .ll-fish-index-content { padding-top: 28px; }
  .page-banner.ll-listing-hero + .section { padding-top: 46px; }
  .ll-listing-hero + .ll-county-page.ll-listing-content { margin-top: -18px; padding-top: 0; }
  .ll-listing-content > .ll-county-search,
  .ll-listing-content > .boat-ramp-filter-shell.directory-explorer { margin-bottom: 20px; padding: 10px; border-radius: 15px; }
}

@media (prefers-contrast: more) {
  .ll-listing-hero {
    background-image:
      radial-gradient(ellipse 78% 82% at 0% 100%, rgba(var(--ll-listing-page-surface), 1) 0%, rgba(var(--ll-listing-page-surface), .96) 25%, rgba(var(--ll-listing-page-surface), .68) 47%, rgba(var(--ll-listing-page-surface), 0) 76%),
      linear-gradient(90deg, rgba(252, 254, 253, .98), rgba(252, 254, 253, .86)),
      linear-gradient(180deg, rgba(18, 55, 46, .02), rgba(18, 55, 46, .12)),
      var(--ll-listing-hero-image);
  }
}
