.filter-option {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 4px 32px 4px 8px;
  overflow: hidden;
  color: #f1f6f7;
  font-size: 10.5px;
  font-weight: 620;
  line-height: 1.15;
  text-align: left;
  background: linear-gradient(180deg, rgb(23 35 41 / 98%), rgb(10 19 24 / 99%));
  border: 1px solid #60747b;
  border-radius: 0;
  box-shadow:
    inset 0 1px rgb(224 247 250 / 8%),
    inset 0 -1px rgb(0 5 8 / 60%),
    2px 3px 0 rgb(0 0 0 / 42%);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, filter 150ms ease, transform 150ms ease;
}

.filter-option > span:not(.count-pill) {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  color: #f4fbfc;
  font-size: 10.5px;
  font-weight: 720;
  line-height: 1.08;
  text-shadow: 0 1px 2px rgb(0 0 0 / 72%);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.layers-panel:not(.is-compact) .filter-option[data-layer="eagleStatue"] > span:not(.count-pill) {
  display: block;
  overflow: visible;
  font-size: 10px;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.filter-option img {
  position: absolute;
  z-index: 2;
  right: 2px;
  bottom: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 72%));
  transform-origin: right bottom;
  transition: transform 150ms ease, filter 150ms ease;
}

body.app-map-page .filter-option img {
  display: block;
  visibility: visible;
  opacity: 1;
}

.filter-option.is-active {
  color: #fff;
  background: linear-gradient(180deg, #079fe9, #087eb4);
  border-color: #83e7ff;
  box-shadow: inset 0 1px rgb(230 252 255 / 25%), inset 0 -3px rgb(0 68 108 / 25%), 2px 3px 0 rgb(0 0 0 / 42%);
}

.filter-option:not(:disabled):hover,
.filter-option:focus-visible {
  background: linear-gradient(180deg, rgb(29 47 55 / 99%), rgb(11 25 31 / 99%));
  border-color: #b7eef4;
  box-shadow:
    inset 0 0 0 1px rgb(207 250 255 / 14%),
    inset 0 1px rgb(240 255 255 / 15%),
    0 0 9px rgb(31 205 226 / 12%),
    2px 3px 0 rgb(0 0 0 / 42%);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.filter-option.is-active:not(:disabled):hover,
.filter-option.is-active:focus-visible { background: linear-gradient(180deg, #0aa9ed, #087fb7); }
.filter-option:not(:disabled):hover img { transform: scale(1.08); filter: drop-shadow(0 2px 4px rgb(0 0 0 / 80%)); }
.filter-option:focus-visible,
.filter-heading:focus-visible { outline: 0; }

.map-buttons button:focus-visible,
.layers-fab:focus-visible,
.drawer-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.world-tab:focus-visible { outline: 1px solid #9df5ff; outline-offset: -2px; }

.filter-option:disabled {
  color: #76909c;
  background: #10171a;
  border-color: #3b494e;
  cursor: not-allowed;
  opacity: .42;
}

.count-pill {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 0;
  color: #8fb9c3;
  font-size: 7px;
  font-weight: 850;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .055em;
  background: none;
  border: 0;
  border-radius: 0;
}

.count-pill::after {
  color: currentcolor;
  font-size: 7px;
  font-weight: 700;
  content: " ubicaciones";
  opacity: .82;
}

.count-pill--label::after { display: none; }

.filter-option.is-active .count-pill { color: #c4f8ff; background: none; border-color: transparent; }

.layers-panel.is-compact .filter-content {
  gap: 6px;
  padding: 6px 0 2px;
}

.layers-panel.is-compact .filter-option-shell::after { display: none; }

.layers-panel.is-compact .filter-option-shell.has-subfilter > .filter-option {
  grid-template-columns: 28px minmax(0, 1fr);
  padding-right: 24px;
}

.layers-panel.is-compact .filter-option-shell.has-subfilter > .filter-option::before {
  display: none;
}

.layers-panel.is-compact .filter-option-shell.has-subfilter > .subfilter-toggle {
  top: 10px;
  right: 4px;
}
