/* Robberies panel (robberies.js): the heist button on the map and its drawer. */
.robbery-btn {
  border-radius: var(--r-md); background: var(--bg-glass); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.robbery-btn[aria-expanded="true"] { color: var(--pink-soft); border-color: rgba(var(--pink-rgb), 0.55); background: var(--pink-tint); }

#drawer-robberies .drawer-body { gap: 12px; }
#drawer-robberies .drawer-body > * { flex-shrink: 0; }
.robbery-search input { width: 100%; }
.robbery-groups { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.robbery-groups::-webkit-scrollbar { display: none; }
.robbery-groups .tip-cat { flex: none; white-space: nowrap; }
.robbery-chip-count { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.7; margin-left: 2px; }
.robbery-count { font-size: 0.8rem; color: var(--text-dim); }

.robbery-section { display: flex; flex-direction: column; gap: 2px; }
.robbery-section + .robbery-section { margin-top: 10px; }
.robbery-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.robbery-card {
  border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s, background 0.18s;
}
.robbery-card.open { border-color: rgba(var(--pink-rgb), 0.45); background: rgba(var(--pink-rgb), 0.05); }
.robbery-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 56px;
  border: 0; background: transparent; color: inherit; text-align: left; border-radius: var(--r-md);
}
.robbery-head:hover { background: rgba(255, 255, 255, 0.04); }
.robbery-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.robbery-main strong { font-size: 0.92rem; font-weight: 700; line-height: 1.25; }
.robbery-main small { font-size: 0.75rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.robbery-take {
  flex: none; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--pink-soft);
  padding: 4px 8px; border-radius: 999px; background: var(--pink-tint); border: 1px solid rgba(var(--pink-rgb), 0.35);
}
.robbery-take.empty { color: var(--text-dim); background: transparent; border-color: var(--line); font-weight: 500; }

/* Group glyph: a pink tile with a symbol per kind of robbery. */
.robbery-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--pink-tint) center / 18px no-repeat;
  border: 1px solid rgba(var(--pink-rgb), 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14v12H5zM9 8V5h6v3M12 12v4'/%3E%3C/svg%3E");
}
.robbery-icon-gang { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11c2-4 16-4 18 0M5 11v2a3 3 0 0 0 6 0M13 13a3 3 0 0 0 6 0v-2M9 18h6'/%3E%3C/svg%3E"); }
.robbery-icon-bank, .robbery-icon-big-bank { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10 12 4l9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E"); }
.robbery-icon-payday { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E"); }
.robbery-icon-jewelry, .robbery-icon-high-end-jewelry, .robbery-icon-pawn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12l3 5-9 11L3 9zM3 9h18M9 4l3 16 3-16'/%3E%3C/svg%3E"); }
.robbery-icon-convenience, .robbery-icon-fast-food, .robbery-icon-liquor { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h16l-1 11H5zM8 9V6a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.robbery-icon-safe { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 8.5V7M15.5 12H17M7 20v1M17 20v1'/%3E%3C/svg%3E"); }

.robbery-detail { padding: 2px 12px 14px; display: flex; flex-direction: column; gap: 10px; animation: robbery-in 0.22s var(--ease); }
@keyframes robbery-in { from { opacity: 0; transform: translateY(-4px); } }
.robbery-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.robbery-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.84rem; }
.robbery-facts dt { color: var(--text-dim); }
.robbery-facts dd { margin: 0; text-align: right; }
.robbery-detail h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-hover); margin-top: 2px; }
.robbery-safes, .robbery-loot, .robbery-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; line-height: 1.45; }
.robbery-safes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.robbery-tips li { padding-left: 14px; position: relative; color: var(--text); }
.robbery-tips li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.robbery-code {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text);
  padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-strong); white-space: nowrap;
}
.robbery-loot-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-right: 4px; }
.robbery-security::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #4ade80; }
.robbery-security-medium::before { background: #facc15; }
.robbery-security-high::before { background: #f87171; }
.robbery-link { border: 0; background: none; padding: 0; color: var(--pink-soft); text-decoration: underline; text-underline-offset: 2px; font: inherit; }
.robbery-show { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; }
.robbery-show svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .robbery-detail { animation: none; } }
