/* Compact side panel / mobile drawer (owner 2026-10-12: "še filtre in ostale zadeve v sidebaru bolj kompaktno").
   Loaded after app.css. Filters: smaller chips (34 px) with an invisible 44 px touch area on phones, quieter group headings,
   tighter rhythm. Results / saved / search lists: shorter rows. Nothing changes the markup or the order. */

/* ---- headings + rhythm ---- */
.view__head { min-height: 40px; margin-bottom: 2px; }
.view__title { font-size: 19px; }
.view .view__sub { margin: 14px 0 6px; gap: 6px; font-size: 11.5px; letter-spacing: .06em; }
.view .view__sub-ico { width: 20px; height: 20px; border-radius: 6px; }
.view .view__sub-ico .ic { width: 12px; height: 12px; }

/* ---- chips (filters view, drawer quick chips) ---- */
.view--filters .chips, .chips--quick { gap: 6px; }
.view--filters .chip {
    position: relative; min-height: 34px; padding: 4px 11px; gap: 6px; border-radius: 17px; font-size: 13.5px; line-height: 1.2; white-space: nowrap;
}
.view--filters .chip .ic { width: 15px; height: 15px; }
.view--filters .chips--top { margin-top: 0; }
@media (max-width: 1023px) {
    .view--filters .chip { min-height: 34px; }
    /* 44 px hit area around the 34 px chip (the visible pill stays small), same trick as the map's quick chips */
    .view--filters .chip::before { content: ""; position: absolute; inset: -5px -2px; border-radius: inherit; }
    .chips--quick .chip { min-height: 34px; padding: 4px 11px; }
}
@media (max-width: 359px) { .view--filters .chip { padding: 4px 9px; font-size: 13px; } }
.view--filters .view__actions { margin-top: 10px; }

/* ---- result / saved / search lists ---- */
.view .list .card__main { padding: 9px 0; gap: 3px; }
.view .list .card__name { font-size: 15px; }
.view .list .card__meta { font-size: 12.5px; gap: 2px 8px; }
.view__head--results { padding-top: 2px; padding-bottom: 2px; }

/* ---- collapsible filter groups (owner 2026-10-12): the top row stays open; each group is one row with a count of active filters ---- */
.view--filters .fgrp { border-top: 1px solid var(--fb-border); }
.view--filters .fgrp:last-of-type { border-bottom: 1px solid var(--fb-border); }
.view--filters .fgrp > .view__sub { margin: 0; }
.fgrp__head {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
    color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left;
}
.fgrp__head:focus-visible { outline: none; box-shadow: var(--fb-focus); border-radius: 8px; }
.fgrp__name { flex: 1 1 auto; min-width: 0; }
.fgrp__count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--fb-blue-500); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.fgrp__val { color: var(--fb-text-secondary); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.fgrp__chev { width: 16px; height: 16px; flex: 0 0 auto; transition: transform var(--fb-dur) var(--fb-ease); }
.fgrp__head[aria-expanded="true"] .fgrp__chev { transform: rotate(180deg); }
.view--filters .fgrp > .chips { padding: 2px 0 12px; }
@media (prefers-reduced-motion: no-preference) {
    .view--filters .fgrp > .chips { animation: fb-fgrp-in .2s var(--fb-ease-out); }
}
@keyframes fb-fgrp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.view--filters .chips--top { margin-bottom: 12px; }
