.rex-popup {
  padding: 12px;
  text-align: center;
}

.rex-popup .rex-popup-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  word-wrap: break-word;
  max-width: 270px;
  line-height: 1.4;
}

/* Leaflet control legend */
.leaflet-control-legend .legend-btn:hover,
.leaflet-control-legend .legend-btn:focus,
.leaflet-control-legend .legend-btn:focus-visible {
  background-color: #fff !important;
}

.leaflet-control-legend .legend-rex-user-pin {
  width: 30px;
  height: 32px !important;
  object-fit: contain;
}

.leaflet-control-legend .legend-rex-pin {
  width: 34px;
  height: 36px !important;
  object-fit: contain;
}

/* Active legend state */
.leaflet-bottom.legend-active .legend-btn {
  border: 0px !important;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  outline-style: none;
}

.leaflet-bottom.legend-active .legend-btn .icon-bordered-arrow-up-white {
  transform: rotate(180deg);
}

.leaflet-bottom.legend-active .legend-list {
  margin-bottom: 1px;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
}

#organization-structure-card .card-body {
    background: #fff;
    border-radius: 10px;
    padding: 20px 15px;
    box-shadow: 0 0.5rem 0.375rem rgba(15, 17, 17, 0.1) !important;
}

#organization-structure-card .list-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#organization-structure-card .list-item > li {
    flex: 1;
    min-width: 220px;
}

#organization-structure-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

#organization-structure-card hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 6px 0 10px;
}

.org-company-name {
    font-size: 12px !important;
    font-weight: 600;
    color: #1F2023;
}

.org-address {
    font-size: 12px;
    color: #1F2023;
}

.org-list-item {
    margin-bottom: 8px;
}

.org-list-text {
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}

.rexUser-pin-link {
    margin-left: auto;
    color: #2c7a7b;
    font-size: 13px;
    text-decoration: none;
}

.rexUser-pin-link img {
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    filter: brightness(0) saturate(100%) invert(40%) sepia(11%) saturate(1854%) hue-rotate(143deg) brightness(92%) contrast(93%);
}

.rexUser-pin-link:hover {
    color: #1a5c5e;
}

.org-card {
    background: transparent;
    border: none;
}

.org-card-body {
    padding: 0 5px;
}

@media (max-width: 767px) {
    #organization-structure-card .list-item {
        flex-direction: column;
    }
}

.map-title {
  font-size: 28px;
  line-height: 40px;
  font-weight: 800;
  color: #0F1111;
  margin-bottom: 20px;
  word-break: break-word;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
    color: #306E7B;
    font-weight: 700;
}

.swiper-slide-active {
    padding: 0 !important;
}

@media (max-width: 767px) {
  .leaflet-sidebar-wrapper {
      width: 84% !important;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .leaflet-sidebar-wrapper {
      width: 95% !important;
  }
}

.side-user-block-header {
    margin-top: 0px !important;
}

.participation-cdc {
  background-color: #EF6000;;
  border-color: #EF6000;;
}

.filiale-cdc {
  background-color: #1A8CB6;;
  border-color: #1A8CB6;;
}

.user-cdc-tag-block {
  display: inline-flex;
  padding: 8px 16px 8px 16px;
  border-radius: 16px 16px 0 16px;
  max-height: 34px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-left: 20px;
 @media (max-width: 767px) {
    margin-bottom: 5px;
  }
  &:first-of-type .d-flex-container &, &:first-child .d-flex-container &  {
    margin: 0 !important;
  }
}


@media (max-width: 1280px) {
  .map-user-tags-block .user-tag-container .user-cdc-tag-block {
    margin-left: 10px;
  }

  .map-user-tags-block .user-tag-container .user-cdc-tag-block:first-child {
    margin-left: 0;
  }
}

.map-user-tags-block .user-tag-container {
  margin-top: 3px !important;
  margin-bottom: 4px;
  gap: 8px;
  flex-direction: column;
  align-items: flex-start;
}

.experience-template-default .available-offers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.experience-template-default .available-offers .available-offers-numbers {
  background-color: #306e7a;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 16px;
  letter-spacing: 0%;
}

.experience-template-default .available-offers .available-offers-text {
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0px;
  color: #0F1111;
}

.map-user-tags-block .btn-like {
  border: none;
}

.leaflet-sidebar.bottomright.active ~ .leaflet-control-zoom,
.leaflet-sidebar.bottomright.active ~ .leaflet-bar.leaflet-control {
  display: none !important;
}

.leaflet-control-legend  .icon-bordered-arrow-up-white {
  background-image: url(/assets/images/arrow-up-white.41c55a2d.svg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: contain;
  filter: brightness(0) saturate(100%) invert(40%) sepia(11%) saturate(1854%) hue-rotate(143deg) brightness(92%) contrast(93%);
}

.map-popup-swiper .swiper-horizontal > .swiper-pagination-bullets,
.map-popup-swiper .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 20px !important;
}
