/* Branch Locations CSS */
.branch-locations-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.branch-locations-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.branch-locations-container.grid .branch-location-item {
  flex: 0 0 calc(25% - 30px);
  margin: 15px;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .branch-locations-container.grid .branch-location-item {
    flex: 0 0 calc(50% - 30px);
  }
}

@media (max-width: 576px) {
  .branch-locations-container.grid .branch-location-item {
    flex: 0 0 calc(100% - 30px);
  }
}

.branch-location-inner {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-location-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.branch-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.branch-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.branch-location-inner:hover .branch-image img {
  transform: scale(1.05);
}

.branch-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.branch-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333 !important;
}

.branch-address,
.branch-phone {
  display: flex;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
  align-items: center;
}

.branch-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.address-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.phone-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

/* Slider Layout */
.branch-locations-container.slider .branch-locations-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin: 0 -15px;
  padding-bottom: 20px;
}

.branch-locations-container.slider .branch-location-item {
  flex: 0 0 300px;
  margin: 0 15px;
  scroll-snap-align: start;
}

.branch-locations-container.slider
  .branch-locations-wrapper::-webkit-scrollbar {
  height: 6px;
}

.branch-locations-container.slider
  .branch-locations-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.branch-locations-container.slider
  .branch-locations-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.branch-locations-container.slider
  .branch-locations-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}
