.search > .atlas-nav-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.1rem;
  box-sizing: border-box;
  margin-top: 0.42rem;
  padding: 0 0.78rem;
  border: 1px solid color-mix(in srgb, var(--secondary) 24%, var(--lightgray));
  border-radius: 10px;
  color: var(--darkgray);
  background: color-mix(in srgb, var(--secondary) 7%, var(--light));
  font-weight: 700;
  text-decoration: none;
}

.search > .atlas-nav-button:hover {
  color: var(--secondary);
  border-color: color-mix(in srgb, var(--secondary) 52%, var(--lightgray));
}

body[data-slug="Атлас"] .search > .search-button,
body[data-slug="atlas"] .search > .search-button {
  display: none;
}

.search > .atlas-nav-button > svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atlas-app .atlas-empty[hidden] {
  display: none !important;
}

.atlas-app .atlas-sidebar-filters {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0.55rem;
  margin: 0.1rem 0 1rem;
}

.atlas-app .atlas-sidebar-filters-title {
  margin: 0 0 0.05rem;
  color: var(--gray);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-app .atlas-filter-dropdown {
  position: relative;
}

.atlas-app .atlas-filter-trigger,
.atlas-app .atlas-sidebar-reset,
.atlas-app .atlas-active-filter {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--dark) 8%, transparent);
  border-radius: 12px;
  color: #fff;
  background: rgba(17, 17, 17, 0.68);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.atlas-app .atlas-search-clear {
  position: absolute;
  right: 0.55rem;
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  cursor: pointer;
}

.atlas-app .atlas-search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.atlas-app .atlas-search-clear svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.atlas-app .atlas-app-search input {
  padding-right: 2.5rem;
}

.atlas-app .atlas-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.atlas-app .atlas-active-filter {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 2rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
}

.atlas-app .atlas-active-filter span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-app .atlas-active-filter svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.atlas-app .atlas-filter-trigger {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.52rem 0.72rem;
  text-align: left;
}

.atlas-app .atlas-filter-trigger:hover,
.atlas-app .atlas-filter-dropdown.is-open .atlas-filter-trigger {
  border-color: color-mix(in srgb, var(--secondary) 55%, transparent);
  background: rgba(17, 17, 17, 0.82);
}

.atlas-app .atlas-filter-trigger-text {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.atlas-app .atlas-filter-trigger small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-app .atlas-filter-trigger strong {
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-app .atlas-filter-trigger > svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.atlas-app .atlas-filter-dropdown.is-open .atlas-filter-trigger > svg {
  transform: rotate(90deg);
}

.atlas-app .atlas-filter-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  left: 0;
  display: none;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(24rem, 65vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(17, 17, 19, 0.96);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
}

.atlas-app .atlas-filter-dropdown.is-open .atlas-filter-menu {
  display: block;
}

.atlas-app .atlas-filter-option-list {
  display: grid;
  gap: 0.15rem;
  padding: 0.42rem;
}

.atlas-app .atlas-filter-local-search {
  display: block;
  padding: 0.42rem 0.42rem 0;
}

.atlas-app .atlas-filter-local-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.atlas-app .atlas-filter-option-group,
.atlas-app .atlas-filter-option-empty {
  padding: 0.4rem 0.6rem 0.2rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.atlas-app .atlas-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.58rem 0.64rem;
  border: 0;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.atlas-app .atlas-filter-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-app .atlas-filter-option small {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
}

.atlas-app .atlas-filter-option:hover,
.atlas-app .atlas-filter-option[aria-checked="true"] {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
}

.atlas-app .atlas-sidebar-reset {
  min-height: 2.45rem;
  padding: 0.55rem 0.72rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 650;
}

.atlas-app .atlas-sidebar-reset:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.42);
}

.atlas-app .atlas-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  gap: 0.4rem;
  color: var(--gray);
  text-align: center;
}

.atlas-app .atlas-empty strong {
  color: var(--darkgray);
}

@media (max-width: 1050px) {
  .atlas-app .atlas-sidebar-filters {
    display: none;
  }
}
