/**
 * Findar V46146 — City archive results guard.
 * Final taxonomy-only cascade. No data or route mutation.
 */

body.fmp-taxonomy-results {
  --f46-blue:#1857ff;
  --f46-ink:#071327;
  --f46-muted:#607089;
  --f46-line:#dfe6f0;
  --f46-soft:#f5f7fb;
}

/* The city filter bar must paint immediately and must never reserve ghost space. */
body.fmp-taxonomy-results .fmp-taxonomy-page > .fmp-filter-shell,
body.fmp-taxonomy-results .fmp-taxonomy-page > .fmp-filter-shell[hidden] {
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  pointer-events:auto!important;
  background:rgba(255,255,255,.985)!important;
  border-top:0!important;
  border-bottom:1px solid var(--f46-line)!important;
  box-shadow:0 9px 24px rgba(7,19,39,.045)!important;
}

body.fmp-taxonomy-results .fmp-taxonomy-page > .fmp-filter-shell > .findar-container {
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  visibility:visible!important;
  opacity:1!important;
}

body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-hub,
body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-hub[hidden] {
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  gap:10px!important;
  margin:0!important;
  padding:14px 0 13px!important;
  overflow:visible!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  pointer-events:auto!important;
}

body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-searchline,
body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-toolbar {
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  pointer-events:auto!important;
}

body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-searchline {
  display:grid!important;
  grid-template-columns:minmax(280px,720px) auto!important;
  justify-content:start!important;
  gap:8px!important;
  width:100%!important;
}

body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-toolbar {
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:46px!important;
  margin:0!important;
  padding:0!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-width:none;
}

body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-toolbar::-webkit-scrollbar {
  display:none;
}

/* The city is already fixed by the archive URL; duplicate city chips add noise. */
body.fmp-taxonomy-results .fmp-taxonomy-page > .fmp-filter-shell .fmp-location-chips {
  display:none!important;
}

body.fmp-taxonomy-results .fmp-taxonomy-page > .fmp-results-shell {
  min-height:0!important;
  margin:0!important;
  padding:24px 0 62px!important;
  background:var(--f46-soft)!important;
}

body.fmp-taxonomy-results .fmp-taxonomy-page > .fmp-results-shell .fmp-results-head {
  margin-top:0!important;
  margin-bottom:18px!important;
}

/* Existing server/parent-theme popular links, made useful without becoming a wall. */
body.fmp-taxonomy-results .fmp-v46146-popular-block {
  box-sizing:border-box!important;
  width:min(1280px,calc(100% - 40px))!important;
  max-width:1280px!important;
  min-height:0!important;
  max-height:none!important;
  margin:38px auto!important;
  padding:25px 28px 26px!important;
  overflow:hidden!important;
  border:1px solid rgba(205,215,228,.88)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 16px 42px rgba(7,19,39,.055)!important;
}

body.fmp-taxonomy-results .fmp-v46146-popular-block :is(h1,h2) {
  margin:8px 0 18px!important;
  color:var(--f46-ink)!important;
  font-size:clamp(25px,2.5vw,34px)!important;
  line-height:1.08!important;
  letter-spacing:-.04em!important;
}

body.fmp-taxonomy-results .fmp-v46146-popular-block :is(h3,h4) {
  margin:0 0 11px!important;
  color:var(--f46-ink)!important;
  font-size:15px!important;
  line-height:1.3!important;
}

body.fmp-taxonomy-results .fmp-v46146-popular-block :is(ul,ol) {
  margin:0!important;
  padding:0!important;
}

body.fmp-taxonomy-results .fmp-v46146-popular-block :is(li,a,p) {
  font-size:13px!important;
  line-height:1.42!important;
}

body.fmp-taxonomy-results .fmp-v46146-popular-block a {
  min-height:0!important;
  margin:0!important;
  padding-block:4px!important;
}

body.fmp-taxonomy-results .fmp-v46146-popular-block .fmp-v46146-popular-group {
  min-height:0!important;
}

body.fmp-taxonomy-results .fmp-v46146-popular-block .fmp-v46146-popular-extra {
  display:none!important;
}

@media (max-width:768px) {
  body.fmp-taxonomy-results .fmp-taxonomy-page > .fmp-filter-shell {
    box-shadow:0 6px 18px rgba(7,19,39,.045)!important;
  }

  body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-hub {
    gap:9px!important;
    padding:10px 0 9px!important;
  }

  body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-searchline {
    grid-template-columns:minmax(0,1fr) 48px!important;
    gap:7px!important;
  }

  body.fmp-taxonomy-results .fmp-taxonomy-page > .fmp-results-shell {
    padding:16px 0 42px!important;
  }

  body.fmp-taxonomy-results .fmp-v46146-popular-block {
    width:calc(100% - 24px)!important;
    margin:24px auto!important;
    padding:20px 18px!important;
    border-radius:18px!important;
  }

  body.fmp-taxonomy-results .fmp-v46146-popular-block :is(h1,h2) {
    margin:6px 0 16px!important;
    font-size:24px!important;
  }

  body.fmp-taxonomy-results .fmp-v46146-popular-block .fmp-v46146-popular-group {
    margin-bottom:14px!important;
  }
}

@media (max-width:390px) {
  body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-toolbar {
    margin-inline:-12px!important;
    padding-inline:12px!important;
  }
}

[dir="rtl"] body.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-searchline,
body.fmp-tp-rtl.fmp-taxonomy-results .fmp-filter-shell .fmp-filter-searchline {
  justify-content:start!important;
}

@media (prefers-reduced-motion:reduce) {
  body.fmp-taxonomy-results .fmp-filter-shell *,
  body.fmp-taxonomy-results .fmp-v46146-popular-block * {
    scroll-behavior:auto!important;
  }
}
