.filialname{
  font-size: 13px;
}

.modal {
  background: rgba(0, 0, 0, 0.5);
}

.modal-backdrop {
  display: none;
}

.modal-header {
  opacity: 1;
  background-color: #f1f1f1;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
  border-top-left-radius: var(--bs-modal-inner-border-radius);
  border-top-right-radius: var(--bs-modal-inner-border-radius);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.modal-body {
  border-radius: 0;
  background-color: #fff;
  padding: 1rem 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.list-group-modal {
  position: relative;
  display: block;
  padding: var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);
  color: var(--bs-list-group-color);
  text-decoration: none;
  background-color: var(--bs-list-group-bg);
  border: none;
}

.list-group {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 0;
  opacity: 1;
  background-color: #fff;
}

.map_info {
  margin-bottom: 30px;
}

.contact .info {
  width: 100%;
  background: transparent;
  font-size: 16px;
  font-family: Montserrat;
  font-weight: 600;
}

.list-group-item {
  border: none;
  padding: 12px 16px;
  transition: background-color 0.2s ease;
}

.list-group-item a {
  text-decoration: none;
  color: #212529;
  display: block;
  width: 100%;
}

.list-group-item:hover {
  background-color: #f0f0f0;
}

/*.btn-close {*/
/*  background: transparent;*/
/*  opacity: 0.7;*/
/*}*/

.btn-close:hover {
  opacity: 1;
}

.contact .info i {
  font-size: 18px;
  font-family: Montserrat;
  font-weight: 900;
}

.contact .info h4 {
  padding: 8px 0 0 10px;
  font-size: 16px;
  font-family: Montserrat;
  font-weight: 400;
  color: #151515;
}

.contact .info a{
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-family: Montserrat;
  font-weight: 400;
}

.btn-outline-primary.custom-hover {
  color: #002a5c;
  border-color: #002a5c;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-primary.custom-hover:hover {
  background-color: #002a5c;
  color: #fff;
  border-color: #002a5c;
}

.preview_picture {
  max-height: 150px;
  object-fit: cover;
  width: 100%;
  margin-top: 10px;
  max-width: 100%;
}

.map-wrapper {
  display: flex;
  width: 100%;
  margin-top: 20px;
  flex-direction: row;
  align-items: stretch; /* This is the key property */
}

.filialmap {
  flex: 2;
  height: auto !important; /* Let the height be determined by the content or flex container */
}

.filialmap .ymaps-2-1-79-map {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
}

.info-box {
  flex: 1;
  padding: 28px 20px 25px 40px;
  background: #f8f9fa;
  border-left: 1px solid #ddd;
  overflow-y: auto;
  height: auto;
}

.info-box .btn {
  margin-bottom: 24px;
  border-radius: 2px;
}

ul.list-group {
  margin-top: 20px;
}

ul.list-group .list-group-item {
  cursor: pointer;
}

.director-info {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.director-photo-wrapper {
  position: relative;
}

.director-photo {
  max-width: 110px;
  border-radius: 2px;
  cursor: pointer;
}

.photo-popup {
  display: none;
  position: absolute;
  top: 0;
  left: 130px;
  background: #fff;
  padding: 5px;
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 999;
}

.photo-popup img {
  max-width: 250px;
  border-radius: 3px;
}

.director-photo-wrapper:hover .photo-popup {
  display: block;
}



@media (min-width: 320px) and (max-width: 961px) {
  .contact .info .email, .contact .info .phone {
    margin-top: 40px;
  }
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
  }

  .modal-body {
    max-height: 50vh;
  }
}

@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .map-wrapper {
    flex-direction: column-reverse;
  }

  .filialmap {
    height: 400px;
  }

  .info-box {
    border-left: none;
    border-top: 1px solid #ddd;
    height: auto;
    padding: 20px;
  }

  .btn.custom-hover {
    margin-top: 15px;
  }

  .photo-popup img {
    max-width: 210px;
  }

  .photo-popup {
    left: 120px;
  }
}












