.filter-card {
  margin-bottom: 7px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  clip-path: none;
}

.filter-card.is-open {
  box-shadow: none;
}

.filter-heading {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 30px;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 7px;
  padding: 3px 2px 7px;
  color: #dff7fa;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-align: left;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(106 180 191 / 52%);
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.filter-heading::before { display: none; }

.filter-heading::after {
  position: absolute;
  z-index: 0;
  inset: auto 0 -1px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), rgb(19 223 242 / 12%) 58%, transparent);
  opacity: .42;
  transition: opacity 150ms ease;
  pointer-events: none;
}

.filter-heading > span { position: relative; z-index: 2; }

.filter-card.is-open .filter-heading {
  color: #fff;
  background: transparent;
  border-bottom-color: #72dce8;
  box-shadow: none;
}

.filter-heading:hover,
.filter-heading:focus-visible {
  color: #fff;
  background: linear-gradient(90deg, rgb(15 136 157 / 16%), transparent 70%);
  border-bottom-color: #72dce8;
  box-shadow: none;
}

.filter-card.is-open .filter-heading::after,
.filter-heading:hover::after,
.filter-heading:focus-visible::after { opacity: .92; }

.filter-total { color: var(--cyan-soft); font-size: 9px; }
.chevron {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 14px;
  flex: 0 0 12px;
  color: #8ddbe4;
  background: none;
  border: 0;
  box-shadow: none;
  transition: color 150ms ease, filter 150ms ease, transform 180ms cubic-bezier(.22, .75, .22, 1);
}

.chevron::before,
.chevron::after {
  position: absolute;
  top: 50%;
  left: 1px;
  width: 7px;
  height: 1.5px;
  content: "";
  background: currentcolor;
  box-shadow: 0 0 4px rgb(72 222 238 / 52%);
  transform-origin: right center;
}

.chevron::before { transform: translateY(-50%) rotate(42deg); }
.chevron::after { transform: translateY(-50%) rotate(-42deg); }
.filter-card.is-open .chevron { color: #9df5ff; transform: rotate(90deg); }
.filter-heading:hover .chevron { color: #d8fcff; filter: brightness(1.14); }
.filter-card:not(.is-open) .filter-content {
  padding-block: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
}

.filter-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 0 1px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    height 240ms cubic-bezier(.22, .75, .22, 1),
    padding 240ms cubic-bezier(.22, .75, .22, 1),
    opacity 150ms ease,
    transform 220ms cubic-bezier(.22, .75, .22, 1);
  will-change: height, opacity, transform;
}

.filter-option-shell {
  position: relative;
  display: block;
  min-width: 0;
  isolation: isolate;
}

.filter-option-shell[hidden] { display: none; }

.filter-option-shell::after {
  position: absolute;
  z-index: 6;
  inset: -4px;
  content: "";
  background:
    linear-gradient(90deg, #a9f7ff, #a9f7ff) left top / 12px 3px no-repeat,
    linear-gradient(#a9f7ff, #a9f7ff) left top / 3px 12px no-repeat,
    linear-gradient(90deg, #a9f7ff, #a9f7ff) right top / 12px 3px no-repeat,
    linear-gradient(#a9f7ff, #a9f7ff) right top / 3px 12px no-repeat,
    linear-gradient(90deg, #a9f7ff, #a9f7ff) left bottom / 12px 3px no-repeat,
    linear-gradient(#a9f7ff, #a9f7ff) left bottom / 3px 12px no-repeat,
    linear-gradient(90deg, #a9f7ff, #a9f7ff) right bottom / 12px 3px no-repeat,
    linear-gradient(#a9f7ff, #a9f7ff) right bottom / 3px 12px no-repeat;
  filter: drop-shadow(0 0 4px rgb(83 230 244 / 58%));
  opacity: 0;
  transform: scale(.96);
  transition: opacity 140ms ease, transform 180ms cubic-bezier(.22, .75, .22, 1);
  pointer-events: none;
}

.filter-option-shell:hover::after,
.filter-option-shell:focus-within::after { opacity: 1; transform: scale(1); }

.filter-option-shell.has-subfilter.is-subfilter-open {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.filter-option-shell.has-subfilter.is-subfilter-open > .filter-option {
  grid-column: 1;
}

.subfilter-toggle {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 4px;
  display: grid;
  width: 16px;
  height: 20px;
  place-items: center;
  padding: 0;
  color: #79e9f2;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 0 3px rgb(74 221 235 / 42%));
  cursor: pointer;
}

.subfilter-toggle span {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 170ms ease;
}

.is-subfilter-open > .subfilter-toggle span { transform: rotate(225deg) translate(-1px, -1px); }
.subfilter-toggle:hover,
.subfilter-toggle:focus-visible { color: #fff; filter: drop-shadow(0 0 4px rgb(113 239 250 / 70%)); outline: 0; }

.subfilter-panel {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 7px;
  background: rgb(5 15 20 / 96%);
  border: 1px solid #45636b;
  box-shadow: inset 0 1px rgb(216 251 255 / 6%), 0 6px 16px rgb(0 0 0 / 35%);
}

.subfilter-panel[hidden] { display: none; }

.subfilter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 6px;
}

.subfilter-actions button {
  min-height: 28px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.subfilter-search {
  position: relative;
  display: block;
  margin-bottom: 6px;
}

.subfilter-search input {
  width: 100%;
  height: 31px;
  padding: 0 8px 0 31px;
  color: #eaffff;
  font: inherit;
  font-size: 10.5px;
  background: #07161c;
  border: 1px solid #456973;
  outline: 0;
  box-sizing: border-box;
}

.subfilter-search:focus-within input { border-color: #75e8f5; }
.subfilter-search .map-search-icon { left: 10px; width: 11px; height: 11px; }

.subfilter-grid {
  display: grid;
  max-height: 280px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 6px;
  overflow: auto;
  scrollbar-color: #52818b #071217;
  scrollbar-width: thin;
}

.subfilter-option {
  display: grid;
  min-width: 0;
  min-height: 36px;
  grid-template-columns: 26px minmax(0, 1fr) auto 15px;
  gap: 6px;
  align-items: center;
  padding: 3px 4px;
  color: #a9c0c5;
  text-align: left;
  background: rgb(16 33 39 / 78%);
  border: 1px solid transparent;
  cursor: pointer;
}

.subfilter-option:hover,
.subfilter-option:focus-visible {
  color: #efffff;
  background: rgb(24 54 62 / 88%);
  border-color: #5d8d96;
  outline: 0;
}

.subfilter-option.is-active { color: #efffff; background: rgb(11 70 77 / 42%); }
.subfilter-option img { width: 25px; height: 25px; object-fit: contain; filter: drop-shadow(0 1px 1px #000); }
.subfilter-option span { overflow: hidden; font-size: 9.5px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.subfilter-option small { color: #79bbc6; font-size: 7px; font-weight: 800; }
.subfilter-option i {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  background: #20282c;
  border: 1px solid #52636a;
  border-radius: 2px;
  box-sizing: border-box;
}
.subfilter-option.is-active i { color: #fff; background: #0db07d; border-color: #5ef0c2; }
.subfilter-option.is-active i::after { color: #fff; font-size: 9px; font-style: normal; font-weight: 900; content: "✓"; }

