
/* =====================================================
   ОБЩИНСКИ СЪВЕТ – БУРГАС
   МЕНЮ "БЪРЗИ ВРЪЗКИ"
   ДИЗАЙН ПО ПРЕДОСТАВЕНАТА СНИМКА
   ===================================================== */

/* Основен контейнер */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) {
  width: 100%;
  box-sizing: border-box;

  background: #ffffff;
  border: 1px solid #d7e7f5;
  border-radius: 14px;

  box-shadow: 0 2px 10px rgba(0, 61, 112, 0.07);

  padding: 12px 12px 10px;
  overflow: hidden;
}

/* Скриваме старите Show / Hide връзки
   и запазваме менюто видимо */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > .menu-toggle,
#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > .menu-toggle-target {
  display: none !important;
}

/* Списък с връзки */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > ul.menu {
  display: block !important;

  list-style: none !important;

  margin: 0 !important;
  padding: 0 !important;

  width: 100%;
}

/* Един ред от менюто */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > ul.menu > li.menu-item {
  display: block !important;
  list-style: none !important;

  margin: 0 !important;
  padding: 0 !important;

  border-bottom: 1px solid #dae7f1;
}

/* Последният ред без разделител */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > ul.menu > li.menu-item:last-child {
  border-bottom: 0 !important;
}

/* Връзки */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > ul.menu > li.menu-item > a {
  display: flex !important;
  align-items: center !important;

  gap: 12px !important;

  width: 100% !important;
  min-height: 49px !important;

  box-sizing: border-box !important;

  margin: 0 !important;
  padding: 9px 3px !important;

  color: #102b50 !important;
  background: transparent !important;

  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;

  text-decoration: none !important;
  text-transform: none !important;
  text-align: left !important;

  border: 0 !important;
  border-radius: 5px !important;

  transition: background 0.2s ease;
}

/* Hover */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > ul.menu > li.menu-item > a:hover {
  background: #f0f8ff !important;
  color: #005ba1 !important;
}

/* Лява икона */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > ul.menu > li.menu-item > a::before {
  content: "" !important;

  display: block !important;

  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;

  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

/* Икона за външен линк вдясно */

#council-sidebar-content:has(
  > #show-block-bartik-brzivrzki
) > ul.menu > li.menu-item > a::after {
  content: "" !important;

  display: block !important;

  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;

  margin-left: auto !important;

  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005ba1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 5h6v6M19 5l-9 9'/%3E%3Cpath d='M19 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E")
    center / contain no-repeat !important;
}

/* =====================================================
   ИКОНИ ЗА ШЕСТТЕ ВРЪЗКИ
   ===================================================== */

/* 1. ОБЩИНА БУРГАС – институция */

#council-sidebar-content:has(> #show-block-bartik-brzivrzki)
> ul.menu > li:nth-child(1) > a::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005ba1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18M4 7l8-4 8 4M5 20V10m5 10V10m4 10V10m5 10V10M2 21h20'/%3E%3C/svg%3E") !important;
}

/* 2. ЕЛЕКТРОНЕН РЕГИСТЪР – монитор */

#council-sidebar-content:has(> #show-block-bartik-brzivrzki)
> ul.menu > li:nth-child(2) > a::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005ba1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='15' rx='1'/%3E%3Cpath d='M8 22h8M12 18v4'/%3E%3C/svg%3E") !important;
}

/* 3. ОБЛАСТНА АДМИНИСТРАЦИЯ – сграда */

#council-sidebar-content:has(> #show-block-bartik-brzivrzki)
> ul.menu > li:nth-child(3) > a::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005ba1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1'/%3E%3Cpath d='M9 7h2m3 0h2M9 11h2m3 0h2M9 15h2m3 0h2M10 21v-4h4v4'/%3E%3C/svg%3E") !important;
}

/* 4. АДМИНИСТРАТИВЕН СЪД – везни */

#council-sidebar-content:has(> #show-block-bartik-brzivrzki)
> ul.menu > li:nth-child(4) > a::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005ba1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M4 7h16M8 7l-5 8h10L8 7m8 0-5 8h10l-5-8M7 21h10'/%3E%3C/svg%3E") !important;
}

/* 5. МИНИСТЕРСКИ СЪВЕТ – сграда */

#council-sidebar-content:has(> #show-block-bartik-brzivrzki)
> ul.menu > li:nth-child(5) > a::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005ba1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-6 9 6M4 10h16M6 10v9m4-9v9m4-9v9m4-9v9M3 20h18'/%3E%3C/svg%3E") !important;
}

/* 6. НАРОДНО СЪБРАНИЕ – колони */

#council-sidebar-content:has(> #show-block-bartik-brzivrzki)
> ul.menu > li:nth-child(6) > a::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005ba1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9h20M4 6l8-4 8 4M5 10v9m5-9v9m4-9v9m5-9v9M2 21h20'/%3E%3C/svg%3E") !important;
}

/* =====================================================
   МОБИЛЕН ИЗГЛЕД
   ===================================================== */

@media (max-width: 767px) {

  #council-sidebar-content:has(
    > #show-block-bartik-brzivrzki
  ) {
    padding: 10px;
    border-radius: 12px;
  }

  #council-sidebar-content:has(
    > #show-block-bartik-brzivrzki
  ) > ul.menu > li.menu-item > a {
    font-size: 12px !important;
    min-height: 46px !important;
    gap: 9px !important;
  }
}
