.m-bar { display: none; }
@media (max-width: 900px) {
  .m-bar {
    display: flex; gap: 8px; align-items: center;
    position: sticky; top: 0; z-index: 60;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }
  .m-bar .m-q-wrap { flex: 1; min-width: 0; position: relative; }
  .m-bar .m-q {
    width: 100%; min-width: 0; position: relative;
    display: flex; align-items: center; gap: 6px;
    border: 1px solid var(--line); border-radius: 999px;
    padding: 0 12px 0 14px; height: 44px; background: var(--bg-2);
  }
  .m-bar .m-q:focus-within { border-color: var(--accent); background: var(--surface); }
  .m-bar .m-q .material-icons { font-size: 18px; color: var(--ink-4); flex-shrink: 0; }
  .m-bar .m-q input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 14px; color: var(--ink);
  }
  .m-bar .m-q input::placeholder { font-size: 12.5px; letter-spacing: -0.012em; }
  .m-bar .m-q input { text-overflow: ellipsis; }
  .m-bar .m-filtros {
    flex-shrink: 0; height: 44px; padding: 0 13px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
    display: inline-flex; align-items: center; gap: 6px; position: relative;
  }
  .m-bar .m-filtros .material-icons { font-size: 18px; }
  .m-bar .m-filtros .badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--accent-solid); color: #fff;
    font-size: 11px; font-weight: 700; display: none;
    align-items: center; justify-content: center;
  }
  .m-bar .m-filtros .badge.on { display: inline-flex; }
}

.srp { display: grid; grid-template-columns: 300px 1fr; align-items: start; max-width: var(--container); margin: 0 auto; }
@media (max-width: 900px) { .srp { grid-template-columns: 1fr; } }

.srp-filters {
  position: sticky; top: var(--nav-h); align-self: start;
  max-height: calc(100vh - 88px); overflow-y: auto;
  padding: 24px 22px 28px; border-right: 1px solid var(--line);
}
@media (min-width: 901px) {
  .srp-filters { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
@media (min-width: 901px) {
  .srp-filters::-webkit-scrollbar { width: 8px; }
  .srp-filters::-webkit-scrollbar-track { background: transparent; }
  .srp-filters::-webkit-scrollbar-thumb {
    background: var(--line); border-radius: 999px;
    border: 2px solid #fff; background-clip: padding-box;
  }
  @media (hover: hover) { .srp-filters::-webkit-scrollbar-thumb:hover { background: var(--ink-4); background-clip: padding-box; } }
}
.fl-head, .fl-foot { display: none; }

@media (max-width: 900px) {
  .srp-filters {
    position: fixed; inset: 0; z-index: 200;
    align-self: stretch;
    height: 100vh; height: 100dvh;
    max-height: none; overflow: hidden; padding: 0;
    border-right: 0; background: var(--surface);
    display: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .srp-filters.open { display: grid; }
  .fl-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
  }
  .fl-head b { font-size: 16px; font-weight: 600; flex: 1; }
  .fl-head button {
    border: 0; background: transparent; font: inherit; cursor: pointer;
    color: var(--ink-3); font-size: 13.5px; font-weight: 600;
    display: inline-flex; align-items: center;
  }
  .fl-head .x { width: 36px; height: 36px; justify-content: center; border-radius: 50%; color: var(--ink); }
  @media (hover: hover) { .fl-head .x:hover { background: var(--bg-2); } }
  .fl-body { overflow-y: auto; padding: 16px 16px 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .fl-foot {
    display: block; padding: 12px 16px;
    border-top: 1px solid var(--line);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .fl-foot button {
    width: 100%; height: 50px; border: 0; border-radius: var(--radius);
    background: var(--accent-solid); color: #fff; font: inherit;
    font-size: 15px; font-weight: 600; cursor: pointer;
  }
  @media (hover: hover) { .fl-foot button:hover { background: var(--accent-solid-hover); } }
}

.f-group { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.f-group:first-child { padding-top: 0; }
.f-group:last-of-type { border-bottom: 0; }
.f-label {
  font-size: 13px; color: var(--ink); font-weight: 600; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.f-label .count { font-size: 11.5px; color: var(--ink-4); font-weight: 400; }

.f-op { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.f-op button { transition: color .22s ease; }
.f-op button {
  border: 0; background: transparent; font: inherit; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  height: 36px; border-radius: 999px; transition: background .15s, color .15s;
}
.f-op { --alt-bg: var(--accent-solid); }
.f-op button.active { background: var(--accent-solid); color: #fff; }

.f-q { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; height: 42px; }
.f-q:focus-within { border-color: var(--accent); }
.f-q .material-icons { font-size: 18px; color: var(--ink-4); flex-shrink: 0; }
.f-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; }
.f-q-wrap { position: relative; }

.f-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.f-tokens:empty { display: none; }
.f-token {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 999px; padding: 4px 6px 4px 11px;
  font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.f-token button { display: flex; padding: 0; color: var(--accent); opacity: .6; }
@media (hover: hover) { .f-token button:hover { opacity: 1; } }
.f-token .material-icons { font-size: 14px; }
@media (max-width: 900px) { .f-group.only-desk { display: none; } }

.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chips button {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); min-width: 42px;
  background: var(--surface); font: inherit; font-size: 12.5px; color: var(--ink-3);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
@media (hover: hover) { .f-chips button:hover { border-color: var(--ink-3); color: var(--ink); } }
.f-chips button.active { background: var(--accent-solid); color: #fff; border-color: var(--accent); }
@media (max-width: 900px) { .f-chips { gap: 8px; } .f-chips button { padding: 10px 15px; font-size: 13.5px; min-width: 48px; } }

.f-select {
  width: 100%; padding: 10px 34px 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer;
  outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23667' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
@media (hover: hover) { .f-select:hover { border-color: var(--ink-3); } }
.f-select:focus { border-color: var(--accent); }
@media (max-width: 900px) { .f-select { font-size: 16px; padding: 12px 34px 12px 12px; } }

.f-faixa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-cap {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 500; color: var(--ink-4);
}
.fx-campo {
  display: flex; align-items: center; gap: 5px;
  padding: 0 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.fx-campo:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fx-un { flex: none; font-size: 13px; color: var(--ink-4); }
.fx-campo input {
  width: 100%; min-width: 0; padding: 10px 0;
  border: 0; outline: none; background: transparent;
  font: inherit; font-size: 13.5px; color: var(--ink);
}
.fx-campo input::placeholder { color: var(--ink-4); opacity: 1; }
@media (max-width: 900px) {
  .fx-campo input { font-size: 16px; padding: 12px 0; }
  .fx-un { font-size: 14px; }
}

.f-checks { display: flex; flex-direction: column; gap: 2px; max-height: 232px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.f-check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); padding: 8px 6px; border-radius: 8px;
}
@media (hover: hover) { .f-check:hover { background: var(--bg-2); } }
.f-check input { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; margin: 0; }
.f-check .c-count { margin-left: auto; color: var(--ink-4); font-size: 12px; flex-shrink: 0; }
@media (max-width: 900px) { .f-check { padding: 11px 6px; font-size: 14.5px; } }

 
.f-base {
  display: flex; gap: 4px; margin-top: 10px; padding: 3px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
}
.f-base[hidden] { display: none; }
.f-base button {
  flex: 1; padding: 7px 8px; border: 0; background: none; border-radius: 999px;
  font: 500 12.5px var(--font); color: var(--ink-3); cursor: pointer;
  transition: color .22s ease, font-weight .22s ease, background .15s ease;
}
@media (hover: hover) { .f-base button:hover:not(.active) { color: var(--ink); background: var(--line-2); } }
.f-base button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-base { --alt-bg: var(--accent-solid); --alt-sombra: none; }
.f-base button.active { background: var(--accent-solid); color: #fff; font-weight: 600; }
 
.f-base.alt-pronto > button.active { color: #fff; }
html[data-theme="dark"] .f-base { background: rgba(255,255,255,.06); }
@media (hover: hover) { html[data-theme="dark"] .f-base button:hover:not(.active) { background: rgba(255,255,255,.10); } }

.f-busca {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
}
.f-busca:focus-within { border-color: var(--accent); background: var(--surface); }
.f-busca .material-icons { font-size: 17px; color: var(--ink-4); flex: none; }
.f-busca input {
  border: 0; background: none; width: 100%; font-size: 13.5px; color: var(--ink);
}
.f-busca input:focus { outline: none; }
.f-vazio { margin: 10px 2px 0; font-size: 12.5px; color: var(--ink-4); }
.f-vazio[hidden] { display: none; }

.f-clear-all {
  width: 100%; padding: 11px; border-radius: var(--radius); background: var(--surface);
  font: inherit; font-size: 13px; color: var(--ink-3); text-align: center;
  border: 1px solid var(--line); margin-top: 16px; cursor: pointer;
}
@media (hover: hover) { .f-clear-all:hover { background: var(--bg-2); color: var(--ink); } }
@media (max-width: 900px) { .f-clear-all { display: none; }}

.srp-results { padding: 24px 28px 60px; min-width: 0; }
@media (max-width: 900px) { .srp-results { padding: 18px 14px 40px; } }
.resposta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 14px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 18px;
}
.resposta-marca {
  grid-column: 1; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent);
}
.resposta-marca .material-icons { font-size: 15px; }
.res-ctrl { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.res-ctrl .ac-panel { z-index: 55; }
.f-baixou { align-items: center; font-weight: 500; }
.f-baixou span:first-of-type { display: inline-flex; align-items: center; gap: 6px; }
.f-baixou .material-icons { color: var(--ok); }

.perto-aviso {
  margin: 10px 0 0; font-size: 13px; color: var(--ink-3);
  display: flex; align-items: center; gap: 7px;
}
.perto-aviso::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-solid); flex-shrink: 0;
}
.perto-aviso.ruim { color: #B3402F; }
.perto-aviso.ruim::before { background: var(--danger); }

.res-sort {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--ink-2); background: var(--surface); cursor: pointer; outline: none;
}
.res-sort:focus { border-color: var(--accent); }
.vista-modos {
  display: inline-flex; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.vista-modos button {
  border: none; background: none; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .22s ease;
}
.vista-modos button .material-icons { font-size: 16px; }
@media (hover: hover) { .vista-modos button:hover { color: var(--ink); } }
.vista-modos { --alt-bg: var(--accent-solid); }
.vista-modos button.on { background: var(--accent-solid); color: #fff; }
.resposta h1, .resposta-detalhe, .srp-resumo { grid-column: 1 / -1; }
.resposta h1 {
  font-size: 23px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em;
  margin: 12px 0 0; color: var(--ink); text-wrap: balance;
}
.resposta h1 b { font-weight: 600; color: var(--accent); }
.resposta-detalhe { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; margin: 7px 0 0; }

 
.srp-corretor {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 14px;
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.srp-corretor .foto {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--accent-solid); color: #fff; display: grid; place-items: center; font-weight: 600;
}
.srp-corretor .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.srp-corretor .txt { flex: 1; min-width: 180px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.srp-corretor .txt b { display: block; color: var(--ink); font-size: 15px; }
.srp-corretor .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.srp-corretor .acoes a {
  font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none;
}
@media (hover: hover) { .srp-corretor .acoes a:hover { border-color: var(--accent); color: var(--accent); } }

@media (max-width: 700px) {
  .resposta { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; margin-bottom: 12px; }
  .resposta h1 { font-size: 19px; margin-top: 0; }
  .res-ctrl { grid-column: 1; grid-row: auto; order: 9; margin-top: 12px; }
  .res-sort { flex: 1; min-width: 0; }
  .vista-modos { flex-shrink: 0; }
   
  .resposta-marca, .resposta-detalhe { display: none; }
}
.srp-grid > .vistos-busca { grid-column: 1 / -1; margin: 6px 0; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
 
.chips-sentinela { height: 0; }
.chips:not(:empty) {
  position: sticky; top: var(--topo-grude, var(--nav-h)); z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.chips.grudou {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 16px rgba(10, 12, 20, .05);
}
html[data-theme="dark"] .chips.grudou { box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }

 
@media (min-width: 901px) { .chips:not(:empty) { margin: -10px -28px 4px; padding: 10px 28px 12px; } }

 
@media (max-width: 900px) {
  .chips:not(:empty) { margin: -8px -14px 8px; padding: 8px 14px 10px; z-index: 50; }
  .chips.grudou {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .chips.grudou::-webkit-scrollbar { display: none; }
  .chips > * { flex: 0 0 auto; }
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 6px 8px 6px 13px; font-size: 12.5px; font-weight: 500;
}
.chip button { border: 0; background: transparent; color: var(--accent); cursor: pointer; display: grid; place-items: center; padding: 0; }
@media (hover: hover) { .chip button:hover { opacity: .65; } }
.chip-clear { border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--ink-3); cursor: pointer; padding: 6px 4px; text-decoration: underline; }
@media (hover: hover) { .chip-clear:hover { color: var(--ink); } }

.srp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1200px) { .srp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .srp-grid { grid-template-columns: 1fr; } }
@media (min-width: 1600px) { .srp-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 2000px) { .srp-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 2400px) { .srp-grid { grid-template-columns: repeat(6, 1fr); } }

.carrega-lar {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 60px 20px; min-height: 260px; text-align: center;
}
.cl-casa { width: 88px; height: 118px; color: var(--accent); }
.cl-traco path {
  fill: none; stroke: currentColor; stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.cl-fumaca use { fill: var(--fav); opacity: 0; }
.cl-frase {
  margin: 0; font-size: 15px; color: var(--ink-2);
  max-width: 300px; line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  .carrega-lar { animation: cl-entra .35s ease-out .15s both; }
  @keyframes cl-entra { from { opacity: 0; } to { opacity: 1; } }

  .cl-traco path {
    stroke-dasharray: 1 2; stroke-dashoffset: 1;
    animation: cl-risca .55s ease-out both;
  }
  .cl-p1 { animation-delay: .20s; }
  .cl-p2 { animation-delay: .55s; }
  .cl-p3 { animation-delay: .90s; }
  .cl-p4 { animation-delay: 1.15s; }
  @keyframes cl-risca { to { stroke-dashoffset: 0; } }

  .cl-fumaca use { animation: cl-sobe 2.4s ease-out infinite both; }
  .cl-c1 { animation-delay: 1.5s; }
  .cl-c2 { animation-delay: 2.3s; }
  .cl-c3 { animation-delay: 3.1s; }
  @keyframes cl-sobe {
    0%   { opacity: 0; transform: translate(46px, 16px) scale(.28); }
    12%  { opacity: .9; }
    72%  { opacity: .6; }
    100% { opacity: 0; transform: translate(41px, -13px) scale(.66); }
  }
}


.srp-empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; color: var(--ink-4); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.srp-empty .material-icons { font-size: 36px; color: var(--line); display: block; margin: 0 auto 10px; }
.srp-empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }

.srp-resumo { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.srp-resumo-linha, .srp-resumo-det {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  font-size: 12.5px; color: var(--ink-4); line-height: 1.5;
}
.srp-resumo-det { margin-top: 9px; }
.srp-num strong {
  font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.srp-num + .srp-num::before {
  content: '·'; margin-right: 18px; margin-left: -18px; color: var(--line);
}
.srp-mais {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--accent);
  padding: 0; text-underline-offset: 3px;
}
@media (hover: hover) { .srp-mais:hover { text-decoration: underline; } }
@media (max-width: 700px) {
  .srp-resumo { margin-top: 8px; padding-top: 0; border-top: 0; }
  .srp-resumo:not(.aberto) .srp-resumo-linha .srp-num { display: none; }
  .srp-resumo:not(.aberto) .srp-mais { margin-left: 0; font-size: 13px; }
  .srp-resumo.aberto { padding-top: 10px; border-top: 1px solid var(--line); }
}
.srp-resumo-nota { color: var(--ink-4); font-size: 11.5px; }
@media (max-width: 700px) {
  .srp-mais { margin-left: 0; }
  .srp-num + .srp-num::before { content: none; }
}

body.no-scroll { overflow: hidden; }


.vistos-busca .vistos-trilho { margin-right: -28px; padding-right: 28px; scroll-padding-right: 28px; }
@media (max-width: 900px) { .vistos-busca .vistos-trilho { margin-right: -14px; padding-right: 14px; scroll-padding-right: 14px; } }
@media (max-width: 700px) { .vistos-busca .vistos-trilho { margin: 0 -14px; padding: 0 14px 4px; scroll-padding: 0 14px; } }

 
.srp-carregando #count-sub { display: none; }
.srp-carregando .srp-resumo[hidden] { display: block !important; visibility: hidden; height: 1lh; }
.srp-carregando #chips:empty { min-height: 50px; }
 
.srp-carregando .srp-grid { min-height: 100vh; align-content: start; }
 
.srp-resumo-reserva:empty { min-height: 34px; }
@media (max-width: 700px) { .srp-resumo-reserva:empty { min-height: 19.5px; } }
@media (max-width: 700px) {
  .srp-carregando #res-title { min-height: 2lh; }
}
