#websima-maplist-wrap {
  display: contents; /* Allows children to participate in the wrapper's grid */
}
.popup-contents {
  font-family: var(--font-sans);
}
.popup-contents .content-box .title {
  color: var(--color-brand);
  margin-left: 12px;
}
.mapp-container .leaflet-popup-content-wrapper {
  padding: 0;

  -webkit-box-shadow: none;
  box-shadow: none;
  border: 1px solid var(--color-gray-light);
  border-radius: 16px;
}
.mapp-container .leaflet-popup-content-wrapper .title-box {
  margin-bottom: 8px;
}
.mapp-container ul li:not(:last-child) {
  margin-bottom: 4px;
}
/* Filter Column */
#websima-maplist-filter {
  grid-area: filter;
  width: 100%;
}

#websima-maplist-filter .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
}

#websima-maplist-filter .form-group .form-control {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 0 16px;
  font-size: 14px;
  color: #000000;
  outline: none;
}

#websima-maplist-filter .form-group select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 40px;
}

#websima-maplist-filter .form-group .icon {
  position: absolute;
  left: 16px;
  top: 45px;
  color: #6b7280;
  pointer-events: none;
  font-size: 10px;
  transition: transform 0.3s ease;
}

#websima-maplist-filter .form-group.active .icon {
  transform: rotate(180deg);
}

#websima-maplist-filter .form-group .form .icon,
#websima-maplist-filter .submit-filter {
  display: none;
}

/* List Column */
#websima-maplist-list {
  grid-area: list;
  background-color: #f4f5fb;
  border-radius: 24px;
  padding: 16px;
  width: 100%;
}

#websima-maplist-list .branch-list-item {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

#websima-maplist-list .branch-list-item .title-box {
  padding: 24px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
}

#websima-maplist-list .branch-list-item .title-box h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
}

#websima-maplist-list .branch-list-item.active .title-box h4 {
  color: #8e103e;
}

/* Accordion Content Box */
#websima-maplist-list .branch-list-item .content-box {
  display: none;
  padding-block: 24px;
  margin-inline: 18px;
  border-top: 1px solid #e5e3e1;
}

#websima-maplist-list .content-box ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#websima-maplist-list .content-box ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-size: 14px;
}

#websima-maplist-list .content-box ul li .title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000000;
  font-weight: 500;
}

#websima-maplist-list .content-box ul li .value {
  color: #707070;
  text-align: left;
}

/* Pagination */
.list-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Loading Overlay */
.maplist-loading {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.75);
  z-index: 999;
}
/* Dropdown Arrow in Accordion */
#websima-maplist-list .branch-list-item .title-box .accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #000;
  font-size: 22px;
  transform: rotate(180deg);
}

#websima-maplist-list .branch-list-item.active .title-box .accordion-icon {
  border-color: #8e103e;
  color: #8e103e;
  transform: rotate(0);
}
.icon-bg::before {
  content: "\e904";
  position: absolute;
  font-size: 34px;
  color: #3a3a3a42;
}
.icon-bg::after {
  content: "\e925";
  margin-left: -0.2em;
  display: inline-block;
  position: absolute;
  font-size: 34px;
  color: #f4f5fb;
  z-index: -1;
}
/* Icons */
#websima-maplist-list .content-box ul li .title .icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #1a0f0f;
  font-size: 14px;
  margin: 0;
  position: relative;
  z-index: 0;
}
/* Routing Buttons */
#websima-maplist-list .content-box ul .routing {
  background-color: #f4f5fb !important;
  border-radius: 16px;
  padding: 12px 16px;
  margin-top: 8px;
  justify-content: space-between;
}

#websima-maplist-list .content-box ul .routing .value {
  display: flex;
  gap: 8px;
}

#websima-maplist-list .content-box ul .routing a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  position: relative;
  overflow: hidden;
  padding: 0;
}

#websima-maplist-list .content-box ul .routing a.button:hover {
  transform: scale(1.1);
  background: #ffffff;
  color: transparent;
}

#websima-maplist-list .content-box ul .routing a::after {
  display: none;
}

#websima-maplist-list .content-box ul .routing a.waze {
  background-image: url("../images/waze.png");
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}
#websima-maplist-list .content-box ul .routing a.neshan {
  background-image: url("../images/neshan.png");
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}
#websima-maplist-list .content-box ul .routing a.google-map {
  background-image: url("../images/google-map.svg");
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}
/* Reset bullet list styles */
#websima-maplist-list ul,
#websima-maplist-list li,
#websima-maplist-list ul::before,
#websima-maplist-list li::before {
  list-style: none !important;
  padding: 0;
  margin: 0;
  background: none !important;
  border: none !important;
}

#websima-maplist-list .content-box ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#websima-maplist-list .content-box ul li {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
