/* Pagina de busca. Reaproveita .ss-suggest da inicial. */

.search-page { padding-top: 20px; }
.search-bar { position: relative; display: flex; gap: 8px; padding: 8px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.sb-what { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; min-width: 0; }
.sb-what ion-icon { color: var(--accent-text); font-size: 21px; }
.sb-what input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 600; min-height: 48px; }
.sb-where { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; min-height: 48px; padding: 0 14px; border-radius: 15px; border: 0; background: var(--soft); cursor: pointer; font-weight: 700; color: var(--text); }
.sb-where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-where ion-icon { color: var(--accent-text); }
.ss-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; padding: 8px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.ss-suggest button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; text-align: left; }
.ss-suggest button:hover, .ss-suggest button.on { background: var(--soft); }
.ss-suggest ion-icon { color: var(--accent-text); font-size: 18px; }
.ss-suggest mark { background: none; color: var(--accent-text); font-weight: 800; }
.ss-suggest .kind { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 700; }
@media (max-width: 719px) {
  .search-bar { flex-wrap: wrap; }
  .sb-what { flex: 1 1 100%; }
  .sb-where { flex: 1; max-width: none; }
}

.search-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }

/* Barra de filtros acima dos resultados (computador). Cada balao abre o grupo. */
.fbar { position: sticky; top: calc(var(--header-h) + 10px); z-index: 25; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.fbar-pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.fbar-clear { flex-shrink: 0; }
.fpill-wrap { position: relative; }
.fpill { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; max-width: 260px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--text); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.fpill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpill ion-icon { flex-shrink: 0; color: var(--accent-text); font-size: 17px; }
.fpill .chev { font-size: 14px; color: var(--muted); transition: transform .2s; }
.fpill:hover { border-color: var(--accent); }
.fpill.on { background: var(--soft); border-color: var(--accent); color: var(--accent-text); }
.fpill-wrap.open .fpill { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.fpill-wrap.open .chev { transform: rotate(180deg); }
.fpop { position: absolute; left: 0; top: calc(100% + 10px); z-index: 40; width: 320px; display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: drop .16s ease; }
.fpill-wrap:nth-last-child(-n+2) .fpop { left: auto; right: 0; }
.fpop > .label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fpop .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fpop .chip { min-height: 36px; padding: 0 12px; font-size: 13px; }
.fpop .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fpop .input { min-height: 44px; padding: 10px 12px; }
.fpop-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 12px; }
@media (max-width: 1023px) { .fbar { display: none; } }

.fgroup { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > .label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fgroup .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup .chip { min-height: 34px; padding: 0 12px; font-size: 13px; }
.fgroup .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fgroup .input { min-height: 44px; padding: 10px 12px; }
.only-mobile { display: none; }
@media (max-width: 1023px) { .only-mobile { display: inline-flex; } }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.8px; line-height: 1.15; }
.results-head p { margin: 4px 0 0; }
.results-tools { display: flex; gap: 8px; align-items: center; }
.sort select { min-height: 40px; padding: 8px 12px; border-radius: 13px; font-weight: 700; font-size: 13.5px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters:empty { display: none; }
.active-filters .chip { min-height: 32px; font-size: 12.5px; }
.active-filters .chip ion-icon { font-size: 15px; }

/* Resultados da busca: cartoes com cantos levemente arredondados (igual ao app). */
#results .vt-card, #results .pro-card { border-radius: 12px; }
#results .skeleton.vt-sk { border-radius: 12px; }

/* Vitrine Destaque acima dos resultados (stories.js). */
.search-stories { margin: 4px 0 18px; }
