/* ===========Thanh tìm kiếm bank ======================== */
#searchFrom .map-search{
  padding: 0.2rem 0.2rem;
}
.map-search {
  display: flex;
  width: 100%;
  gap: 4px; /* khoảng cách giữa input và button, tùy chỉnh nếu cần */
}

.map-search input[type="text"] {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.map-search button {
  padding: 0 12px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================= */

.bank-logo-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 10px 0px;
    box-sizing: border-box;
  }
  
  #bank-scroll-content {
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
  }
  #bank-scroll-content:active {
    cursor: grabbing;
  }
  
  .bank-list {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
  }
  
  /* =================== Mỗi item =================== */
  .bank-item {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
  }
  
  /* =================== Nút ngân hàng =================== */
  .bank-logo-button {
    width: 100%;
    height: 160px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
  }
  
  .bank-logo-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* =================== Logo =================== */
  .logo-wrapper {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .logo-wrapper img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
  }
  
  /* =================== Tên ngân hàng =================== */
  .bank-name {
    background-color: #f5f5f5;
    text-align: center;
    padding: 8px 5px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    box-sizing: border-box;
  
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: 55px;
  }
  
  /* =================== Nút mũi tên điều hướng =================== */
  .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .left-arrow {
    left: 0;
  }
  .right-arrow {
    right: 0;
  }
  
#bank-scroll-content .nav {
    flex-wrap: nowrap;
}

/* .leaflet-routing-container {
  display: none !important;
} */

#bus-map{
  height: 500px;
}
#gas-map{
  height: 500px;
}
.infor-bus{
  padding: 5px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #686262;
}

.pagination-wrapper {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}
.pagination {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}
.pagination .page-item {
  margin: 0 2px;
}
.pagination .page-item .page-link {
  padding: 5px 10px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  display: block;
}
.pagination .page-item.active .page-link {
  background: #007bff;
  color: white;
}
.map-list-container.loading {
  position: relative;
  min-height: 200px;
}
.map-list-container.loading::after {
  content: "Đang tải...";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  font-size: 18px;
  z-index: 10;
}
.btn-outline-primary:hover {
  color: #fff !important;
  background-color: #365140 !important;
  border-color: #365140 !important;
}
.btn-outline-primary {
  color: #365140 !important;
  border-color: #365140 !important;
}
.spinner-grow {
  width: 1rem !important;
  height: 1rem !important;
  }
/* Thêm hiệu ứng loading cho bản đồ */
#map-primary,
#gas-map,
#bus-map,
#map {
  min-height: 500px;
  position: relative;
}

#map-primary.loading::before,
#gas-map.loading::before,
#bus-map.loading::before,
#map.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1000;
}

#map-primary.loading::after,
#gas-map.loading::after,
#bus-map.loading::after,
#map.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1001;
  
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



#modalContent img{
  height: 250px !important;
  width: 100% !important;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}
.modal-custom-content h3{
  font-size: 14px !important;
  font-weight: 600;
}
.modal-body {
  max-height: 70vh; /* hoặc 400px tùy thiết kế */
  overflow-y: auto;
}
.type-names {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

@media (max-width: 480px) {
  .type-names {
    max-width: 370px;
    /* Cho điện thoại */
  }
}

