.district-okrug-group {
  list-style: none;
}

.district-okrug-toggle {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.district-okrug-toggle .district-avatar {
  color: #fff;
  background: #13824a;
  box-shadow: 0 0 0 3px rgba(19, 130, 74, 0.12);
}

.district-chevron {
  margin-left: auto;
  color: #397056;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.district-okrug-group.is-open .district-chevron {
  transform: rotate(180deg);
}

.district-chat-children {
  display: grid;
  gap: 4px;
  padding: 3px 8px 8px 30px;
}

.district-chat-children.hidden {
  display: none;
}

.district-chat-child {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  color: #173f2a;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.district-chat-child:hover,
.district-chat-child:focus-visible {
  border-color: rgba(19, 130, 74, 0.25);
  background: #fff;
  transform: translateX(2px);
}

.district-chat-child.chat-list-item-active {
  color: #fff;
  border-color: #13824a;
  background: #13824a;
}

.district-chat-child.chat-list-item-active small {
  color: rgba(255, 255, 255, 0.76);
}

.district-child-avatar,
.conversation-district-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, #159252, #0b6337);
  border-radius: 50%;
}

.district-child-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.7rem;
}

.conversation-district-avatar {
  width: 48px;
  height: 48px;
  font-size: 0.88rem;
  box-shadow: 0 0 0 4px rgba(19, 130, 74, 0.12);
}

.district-map-chat-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 116, 62, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 249, 241, 0.98), rgba(255, 250, 235, 0.96));
  box-shadow: 0 12px 28px rgba(20, 72, 43, 0.1);
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.district-map-chat-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.district-map-chat-panel small {
  color: #49715b;
  font-weight: 700;
}

.district-map-chat-links {
  display: grid;
  gap: 7px;
}

.district-map-chat-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-radius: 12px;
  background: #117b43;
}

.district-map-chat-links a:hover,
.district-map-chat-links a:focus-visible {
  background: #095e33;
}

@media (max-width: 760px) {
  .district-chat-children {
    padding-left: 18px;
  }
}
