/* Скриваме всички подменюта в акордеона по подразбиране */
.menu--accordion .menu__sub {
  display: none;
}
/* Контейнерът за линка и бутона */
.menu-item__wrapper {
  display: flex;
  justify-content: space-between; /* Избутва бутона вдясно */
  align-items: center;           /* Центрира ги вертикално */
  width: 100%;                   /* Заема цялата широчина на <li> */
  gap: 10px;                     /* Разстояние между текста и бутона */
}

/* Стил за самия линк, за да не избутва бутона */
.menu-item__wrapper a {
  flex-grow: 1;                  /* Позволява на линка да заеме останалото място */
  display: block;
  text-decoration: none;
}

/* Стил за бутона - фиксираме размерите, за да не се свива */
.menu-item__toggle {
  flex-shrink: 0;                /* Предотвратява свиването на бутона */
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Иконите (плюс/минус) */
.menu-item__toggle::before,
.menu-item__toggle::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Хоризонтална линия */
.menu-item__toggle::before {
  width: 12px;
  height: 2px;
}

/* Вертикална линия */
.menu-item__toggle::after {
  width: 2px;
  height: 12px;
}

/* Анимация при отваряне */
.is-open > .menu-item__wrapper .menu-item__toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.is-open > .menu-item__wrapper .menu-item__toggle::before {
  transform: rotate(180deg);
}

/* Премахва черните триъгълници/точки от списъка */
.menu--accordion, 
.menu--accordion ul {
  list-style: none !important;
  padding-left: 0;
}

.menu--accordion li {
  list-style-type: none !important;
}

/* Ако триъгълникът идва от HTML5 <details> или специфичен маркер на браузъра */
.menu--accordion li::marker {
  content: none;
}

ul.menu a.is-active {
    color: unset!important;
}
