/* Hounds — Explorer de mapas (tela cheia com zoom e marcadores) */

/* Explorer */
.explorer { position: fixed; inset: 0; z-index: 50; background: var(--stage); display: flex; flex-direction: column; }
.explorer[hidden] { display: none; }
.ex-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--glass); border-bottom: 1px solid var(--line); flex-wrap: wrap; z-index: 3; }
.ex-title { font-weight: 800; font-size: 15px; flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-zoom { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.ex-zoom button { border: 0; background: var(--surface); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.ex-zoom button:hover { background: var(--surface-2); }
.ex-zoom button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ex-zoom output { min-width: 52px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--surface); line-height: 34px; border-inline: 1px solid var(--line-2); }
.ex-body { flex: 1; min-height: 0; position: relative; display: flex; }
.viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; background:
  repeating-linear-gradient(0deg, transparent 0 31px, var(--stage-grid) 31px 32px),
  repeating-linear-gradient(90deg, transparent 0 31px, var(--stage-grid) 31px 32px), var(--stage); }
.viewport.dragging { cursor: grabbing; }
.viewport.placing { cursor: crosshair; }
.viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.stage { position: absolute; left: 0; top: 0; }
.stage img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.pin { position: absolute; width: 0; height: 0; border: 0; padding: 0; background: none; cursor: pointer; }
.pin-in { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.pin-head { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #0b1222; border: 2px solid #0b1222; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.pin-tip { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid #0b1222; margin-top: -3px; }
.pin-label { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--glass); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s ease; }
.pin:hover .pin-label, .pin:focus-visible .pin-label, .pin.sel .pin-label, .show-labels .pin-label { opacity: 1; }
.pin:focus-visible .pin-head { outline: 2px solid #fff; outline-offset: 2px; }
.pin.sel .pin-head { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 10px rgba(0,0,0,.6); }
.pin.draft .pin-head { animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: var(--glass); border: 1px solid rgba(245,158,11,.5); color: var(--text); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 2; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.hint[hidden] { display: none; }
.panel { width: 340px; flex: none; background: var(--rail); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 3; }
.panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-body { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--text); background: var(--surface); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--well); border: 1px solid var(--line); color: var(--muted); align-self: flex-start; }
.cat-chip i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: #0b1222; }
.desc { margin: 0; color: var(--text); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.desc.none { color: var(--faint); font-style: italic; }
.coords { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cat-opt { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--well); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.cat-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-opt:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.cat-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.cat-opt i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #0b1222; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.filter i { width: 14px; height: 14px; border-radius: 50%; }
.filter[aria-pressed="false"] { opacity: .45; }
.filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search { width: 100%; box-sizing: border-box; background: var(--well); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; color: var(--text); font-size: 14px; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 80; max-width: calc(100% - 32px); box-shadow: 0 6px 24px var(--shadow); }
.toast.bad { border-color: rgba(248,113,113,.5); }
.toast[hidden] { display: none; }
