/* --- Masonry Grid & Layout --- */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Branch Card Container --- */
.branch-card {
  background: #F8F8F8;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 10px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  z-index: 1;
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
}

.branch-card>div {
  z-index: 1;
  position: relative;
}

.branch-card p {
  color: #000;
  font-size: 16px;
  line-height: normal;
}

/* --- Typography --- */
.branch-title {
  color: #FA752A;
  font-weight: 600;
  font-size: 18px;
}

.fw-semibold {
  font-weight: bold;
  color: #000;
  font-size: 30px;
}

/* --- Background Index Number --- */
.branch-number {
  position: absolute;
  top: 25px;
  right: 8px;
  font-size: 80px;
  color: #D9D9D9;
  font-weight: bold;
  opacity: .5;
  z-index: 0;
}

/* --- Alphabet Filter Styling --- */
.alphabet-filter {
  padding: 0 0 30px 0;
}

.alpha-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 5px 10px;
  margin: 2px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  min-width: 35px;
}

.alpha-btn:hover, 
.alpha-btn.active {
  background: #FA752A;
  color: white !important;
  border-color: #FA752A;
}

/* --- Custom Action Buttons --- */
.call-now-btn {
  background-color: #FA752A;
  color: white !important;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.call-now-btn:hover {
  background-color: #e05e19;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(250, 117, 42, 0.3);
}

.btn-location {
  background-color: #FA752A;
  border-color: #FA752A;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-location:hover {
  background-color: #e05e19;
  border-color: #e05e19;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(250, 117, 42, 0.3);
}



/* Toggle */
.switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  background: #FA752A;
  border-radius: 30px;
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 4px;
  transition: .3s;
}

input:checked+.slider::before {
  transform: translateX(22px);
}
/* Spacer */
.branches .mb-4 {
  padding-bottom: 20px;
}