/* ==========================================================================
   ACCORDION MENU - CUSTOM STYLES
   Main Color: #00746b | Hover: #01524c | Text: #fff5d6
   ========================================================================== */

/* 1. ОСНОВНИ НАСТРОЙКИ ЗА СПИСЪКА */
.menu--accordion, 
.menu--accordion ul {
  list-style: none !important;
  padding-left: 0;
  margin: 0;
}

.menu--accordion li {
  list-style-type: none !important;
  position: relative;
  /* Основен фон и разделителна линия */
  background-color: #00746b; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Хоризонтална черта между елементите */
  transition: background-color 0.3s ease;
}

/* Ховър ефект върху целия ред */
.menu--accordion li:hover {
  background-color: #01524c;
}

/* Премахва последната черта на най-долния елемент */
.menu--accordion > li:last-child {
  border-bottom: none;
}

/* 2. КОНТЕЙНЕР ЗА ЛИНКА И БУТОНА */
.menu-item__wrapper {
  display: flex;
  justify-content: space-between; /* Избутва бутона (toggle) в крайно дясно положение */
  align-items: center;
  width: 100%;
  padding: 12px 20px;            /* Вътрешно пространство за по-добър вид */
  box-sizing: border-box;
}

/* 3. СТИЛ ЗА ЛИНКА */
.menu-item__wrapper a {
  flex-grow: 1;                  /* Линка заема цялото налично пространство */
  display: block;
  text-decoration: none !important;
  color: #fff5d6 !important;     /* Основен цвят на текста */
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Цвят при ховър или активен елемент */
.menu-item__wrapper a:hover,
.menu-item--active-trail > .menu-item__wrapper a {
  color: #ffffff !important;     /* По-светъл цвят за акцент */
}

/* Фон за активния път в менюто */
.menu-item--active-trail > .menu-item__wrapper {
  background-color: #01524c;
}

/* 4. БУТОНЪТ (ПУСЪКЪТ НА АКОРДЕОНА) */
.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;
  color: #fff5d6;                /* Цвят на иконата плюс/минус */
  transition: transform 0.3s ease;
}

/* Иконите (плюс/минус) чрез псевдоелементи */
.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: 14px;
  height: 2px;
}

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

/* Анимация при отворено състояние (Плюсът става Минус) */
.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);
}

/* 5. ПОДМЕНЮТА */
.menu--accordion .menu__sub {
  display: none;                 /* Важно: Скрити по подразбиране за JS анимацията */
  background-color: rgba(0, 0, 0, 0.1); /* Малко по-тъмен фон за вложените нива */
  padding-left: 0;
}

/* Стил за линковете в подменютата */
.menu__sub .menu-item__wrapper {
  padding-left: 35px;            /* Визуално отместване навътре за подменюто */
}

.menu__sub .menu-item__wrapper a {
  text-transform: none;          /* Подменютата не са с изцяло главни букви */
  font-size: 0.95em;
  letter-spacing: normal;
}

/* Премахване на дефолтни маркери (за всеки случай) */
.menu--accordion li::marker,
.menu--accordion ul::marker {
  content: none !important;
}