/* BK Finder national search + map (landing pages only) */
.hp-hero-nat { padding-bottom: 28px; }
.nf-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; max-width: 760px; background: var(--charcoal); border: 1px solid #262626; border-radius: 12px; padding: 14px; }
.nf-search label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #a8a8a8; font-family: var(--font-display); margin-bottom: 6px; }
.nf-q { grid-column: 1 / -1; }
.nf-r { min-width: 0; }
.nf-go { align-self: end; min-height: 46px; }
.nf-loc { grid-column: 1 / -1; min-height: 44px; }
.nf-privacy { font-size: 0.78rem; color: #8a8a8a; margin-top: 10px; }
.nf-app { padding-top: 24px; }
#nf { scroll-margin-top: 76px; }
.bm-landing .hp-hero { padding: 28px 0 14px; }
.bm-landing .hp-hero-nat { padding-bottom: 8px; }
.bm-landing .hp-hero h1 { font-size: clamp(1.85rem, 5.2vw, 2.7rem); margin-bottom: 8px; }
.bm-landing .hp-lede { font-size: 1rem; max-width: 52ch; margin-bottom: 0; }
.bm-landing .hp-crumbs, .bm-landing .hp-label { display: none; }
.bm-landing .bm-stats { margin: 12px 0 0; padding-top: 10px; gap: 8px 22px; }
@media (max-width: 639px) {
  .bm-landing .bm-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    max-width: none;
  }
}
.bm-landing .nf-search { max-width: 920px; margin-top: 14px; }
.bm-landing .nf-app { padding-top: 0; padding-bottom: 28px; }
.bm-landing .nav-links a.nav-cta { margin-left: 8px; }
.bm-logo-mark {
  flex: none;
  font-family: var(--font-display, Oswald, sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid #3d3d3d;
  border-radius: 999px;
  padding: 4px 9px 3px;
  line-height: 1;
}
.bm-landing:not(.bm-has-results) .nf-head,
.bm-landing:not(.bm-has-results) .bm-chips,
.bm-landing:not(.bm-has-results) .nf-status,
.bm-landing:not(.bm-has-results) .nf-layout,
.bm-landing:not(.bm-has-results) .nf-fbar,
.bm-landing:not(.bm-has-results) .nf-filters { display: none; }
.bm-landing.bm-has-results .hp-hero { padding: 14px 0 10px; }
.bm-landing.bm-has-results .hp-hero h1,
.bm-landing.bm-has-results .hp-lede,
.bm-landing.bm-has-results .bm-stats { display: none; }
.bm-landing.bm-has-results .nf-search { margin-top: 0; }
.bm-landing.bm-has-results .nf-privacy { display: none; }
.bm-landing.bm-has-results .bm-idle-only { display: none; }
@media (min-width: 960px) {
  .bm-landing .hp-hero { padding: 32px 0 16px; }
  .bm-landing.bm-has-results .hp-hero { padding: 16px 0 12px; }
}
.nf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.nf-title { font-size: clamp(1.2rem, 4vw, 1.6rem); margin: 0; }
.nf-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nf-tools select { width: auto; min-width: 180px; }
.nf-toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 0.88rem; color: #cfcfcf; cursor: pointer; }
.nf-toggle input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: #f3f3f3; }
.nf-status { color: #cfcfcf; font-size: 0.92rem; margin: 10px 0 12px; min-height: 1.4em; }
.nf-alt { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; font-size: 0.85rem; color: #a8a8a8; align-items: center; }
.nf-alt button { background: none; border: 1px solid #333; color: var(--cream); border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; }
.nf-alt button:hover { border-color: var(--white); }
.nf-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
.nf-map { height: 320px; border-radius: 12px; overflow: hidden; border: 1px solid #222; background: #111; position: relative; }
.nf-map-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #777; font-size: 0.9rem; background: repeating-linear-gradient(45deg, #101010 0 12px, #131313 12px 24px); }
.nf-list { margin-top: 0; counter-reset: nf; }
.nf-list .hp-card { position: relative; }
.nf-dist { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--cream); white-space: nowrap; }
.nf-approx { color: #8a8a8a; font-size: 0.75rem; }
.nf-more { margin: 14px 0 0; width: 100%; min-height: 44px; }
.nf-places h3 { margin: 22px 0 6px; font-size: 1.1rem; }
.nf-place-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 0.88rem; }
.nf-place-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #1d1d1d; padding: 7px 0; }
.nf-place-list a { color: var(--cream); text-decoration: underline; text-decoration-color: #555; }
.nf-states { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; }
.nf-states a { display: flex; justify-content: space-between; border-bottom: 1px solid #1f1f1f; padding: 8px 2px; font-size: 0.92rem; }
.nf-states a span { color: #8d8d8d; }
.nf-states a:hover { color: var(--white); border-color: #555; }
.nf-pin { width: 14px; height: 14px; border-radius: 50%; background: #f3f3f3; border: 2px solid #050505; box-shadow: 0 0 0 1px #f3f3f3; }
.leaflet-container { font: inherit; background: #1a1a1a; }
.leaflet-popup-content { font-size: 0.85rem; line-height: 1.4; color: #111; }
.leaflet-popup-content a { color: #0b4fa8; text-decoration: underline; }
@media (min-width: 640px) {
  .nf-search { grid-template-columns: 1fr 150px auto auto; align-items: end; }
  .nf-q { grid-column: auto; }
  .nf-loc { grid-column: auto; }
  .nf-states { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .nf-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
  .nf-map-wrap { order: 2; position: sticky; top: 76px; }
  .nf-map { height: calc(100vh - 110px); max-height: 720px; }
  .nf-results { order: 1; }
  .nf-results .hp-grid { grid-template-columns: 1fr; }
  .nf-states { grid-template-columns: repeat(4, 1fr); }
}
/* The Ballers Map filters: desktop collapsible panel, mobile bottom sheet (spec §5.1) */
.nf-fbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.nf-fbtn { min-height: 40px; padding: 7px 16px; }
.nf-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nf-pill { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--bk-line-strong, #3d3d3d); background: var(--bk-stone, #1a1a1a); color: #f3f3f3; font: inherit; font-size: 0.82rem; cursor: pointer; }
.nf-pill:hover, .nf-pill:focus-visible { border-color: var(--bk-white, #fff); }
.nf-clear { background: none; border: 0; color: var(--bk-white, #fff); text-decoration: underline; font: inherit; font-size: 0.85rem; cursor: pointer; padding: 6px 4px; min-height: 34px; }
.nf-filters { margin: 10px 0 4px; border: 1px solid var(--bk-line, #2a2a2a); border-radius: 12px; background: rgba(18, 18, 18, 0.85); }
.nf-filters.is-collapsed { display: none; }
.nf-fhandle, .nf-fhead, .nf-ffoot { display: none; }
.nf-fbody { padding: 10px 14px 6px; display: grid; gap: 4px; }
#nf .nf-fsec .nf-fsh { font-size: 0.78rem; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bk-gray-600, #b4b4b4); margin: 8px 0 2px; font-family: var(--font-display); }
#nf .nf-fsec-sport { display: none; } /* desktop: the sport row above already shows every sport */
.nf-glabel { font-size: 0.8rem; color: var(--bk-gray-600, #b4b4b4); margin: 6px 0 0; }
.nf-gchips { flex-wrap: wrap; overflow: visible; }
.bm-chip .nf-n { color: var(--bk-gray-600, #b4b4b4); font-size: 0.78rem; }
.bm-chip[aria-pressed="true"] .nf-n { color: #f3f3f3; }
.bm-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.nf-note, .nf-cov, .nf-thin { font-size: 0.76rem; color: var(--bk-gray-400, #8a8a8a); margin: 2px 0 4px; display: block; }
.nf-recover { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nf-recover button { background: none; border: 1px solid var(--bk-line-strong, #3d3d3d); color: #f3f3f3; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.nf-recover button:hover, .nf-recover button:focus-visible { border-color: var(--bk-white, #fff); color: var(--bk-white, #fff); }
.nf-self { font-style: italic; }
.nf-unk { color: #8a8a8a; }
.nf-fback[hidden] { display: none; }
/* Cluster bubbles in grey and white. finder-national.js injects the vendor MarkerCluster.Default.css (gold, green, orange)
   at runtime, after this file, so these rules carry .leaflet-container to win on specificity whatever the load order. */
.leaflet-container .marker-cluster-small, .leaflet-container .marker-cluster-medium, .leaflet-container .marker-cluster-large { background-color: rgba(255,255,255,0.28); }
.leaflet-container .marker-cluster-small div, .leaflet-container .marker-cluster-medium div, .leaflet-container .marker-cluster-large div { background-color: rgba(255,255,255,0.92); color: #050505; font-weight: 600; }
.leaflet-container .leaflet-control-attribution a { color: #050505; }
@media (min-width: 768px) {
  .nf-fsec { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 4px 0; border-bottom: 1px solid var(--bk-line, #2a2a2a); }
  .nf-fsec:last-child { border-bottom: 0; }
  .nf-fsec > * { grid-column: 2; }
  #nf .nf-fsec > .nf-fsh { grid-column: 1; grid-row: 1 / span 9; margin-top: 14px; }
  .nf-fsec[hidden] { display: none; }
}
@media (max-width: 767px) {
  .nf-filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; margin: 0; max-height: 85vh; height: 85vh; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; background: var(--bk-charcoal, #121212); border-bottom: 0; transform: translateY(105%); visibility: hidden; transition: transform 0.22s ease, visibility 0s linear 0.22s; }
  .nf-filters.is-open { transform: none; visibility: visible; transition: transform 0.22s ease; }
  .nf-fhandle { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--bk-line-strong, #3d3d3d); margin: 8px auto 0; flex: none; }
  .nf-fhead { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 4px; flex: none; }
  .nf-fhead h2 { font-size: 1.1rem; margin: 0; }
  .nf-fclose { background: none; border: 1px solid var(--bk-line-strong, #3d3d3d); color: #f3f3f3; border-radius: 999px; width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; }
  .nf-fbody { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
  #nf .nf-fsec-sport { display: block; }
  #nf .nf-fsec-sport[hidden] { display: none; }
  .nf-ffoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bk-line, #2a2a2a); flex: none; background: var(--bk-charcoal, #121212); }
  .nf-ffoot .nf-show { flex: 1; max-width: 240px; min-height: 46px; }
  .nf-fback { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.6); }
  html.nf-sheet-open, html.nf-sheet-open body { overflow: hidden; }
}
