#map {
  height: 500px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.map-preview {
  padding: 0;
}

.leaflet-control-zoom-out span,
.leaflet-control-zoom-in span {
  color: #1d255e;
}

.leaflet-container a {
  color: white;
}

.state-tooltip {
  font-size: 12px;
  font-weight: bold;
  background: rgba(44, 62, 80, 0.9);
  color: white;
  border-radius: 4px;
  padding: 4px 8px;
}

.search-container {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.search-box {
  flex: 1;
  padding: 12px;
  border: 2px solid #3498db;
  border-radius: 5px;
  font-size: 16px;
}
.search-type {
  padding: 12px;
  border: 2px solid #27ae60;
  border-radius: 5px;
  background: white;
  font-weight: bold;
}
.location-list {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  background: white;
}
.location-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s;
}
.location-item:hover {
  background: #e3f2fd;
  transform: translateX(5px);
}
.contact-info {
  color: #27ae60;
  font-weight: bold;
  direction: ltr;
}
.nepali-text {
  font-size: 18px;
  color: #2c3e50;
}
.english-text {
  font-size: 14px;
  color: #7f8c8d;
  font-style: italic;
}
.copy-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}
.copy-btn:hover {
  background: #219653;
}
.directions-btn {
  display: block;
  margin-top: 10px;
  background: #3498db;
  color: white;
  text-align: center;
  padding: 8px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.directions-btn:hover {
  background: #2980b9;
}

/* ============ BRANCH SECTION ============ */
.branches {
  background: var(--soft-bg);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.branches::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 8, 134, 0.12), transparent 60%);
  top: -160px;
  right: -140px;
  pointer-events: none;
}

.branch-grid {
  margin-top: 26px;
}

.branch-card {
  height: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 12px 22px rgba(12, 8, 134, 0.06);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.branch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(12, 8, 134, 0.1);
  border-color: rgba(12, 8, 134, 0.15);
}
.branch-card.is-active {
  border-color: rgba(12, 8, 134, 0.32);
  box-shadow: 0 22px 40px rgba(12, 8, 134, 0.14);
}
.branch-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.branch-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #1d255e;
}
.branch-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-navy);
  background: rgba(12, 8, 134, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.branch-card .card-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.branch-meta {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.meta-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.meta-row i {
  width: 18px;
  margin-top: 3px;
  color: var(--brand-red);
}
.branch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.branch-actions .mini-btn {
  flex: 1 1 auto;
  min-width: 130px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.branch-actions .mini-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(12, 8, 134, 0.1);
  border-color: rgba(12, 8, 134, 0.18);
}
.branch-actions .mini-btn.primary {
  background: var(--brand-navy);
  color: #fff;
  border-color: transparent;
}

/* toast */
.toast-mini {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 9999;
}
.toast-mini.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 576px) {
  #map {
    height: 350px;
  }
  .contact-hero {
    min-height: 40vh;
  }
  .hero-overlay {
    bottom: 14px;
    padding: 12px;
  }
  .hero-overlay .pin {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .search-container {
    flex-direction: column;
  }
}
