/* Page hero: template-parts/page-hero.php + services.css (#branches-hero). */

/* ── Branch card container ────────────────────────────────────────── */
.branch-card-outer {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 8.6px rgba(0,0,0,.05);
}

/* ── Info panel fade transition ───────────────────────────────────── */
#branch-info {
  transition: opacity .2s ease;
}

/* ── Interactive map (Leaflet) ───────────────────────────────────── */
.branch-leaflet-map {
  height: clamp(240px, 30vw, 360px);
  min-height: 260px;
  width: 100%;
  z-index: 1;
  background: #e8eef2;
}

.branch-map-wrap .leaflet-container {
  font-family: inherit;
  border-radius: inherit;
}

.branch-map-wrap .leaflet-popup-content-wrapper {
  direction: rtl;
  text-align: right;
  border-radius: 12px;
}

.branch-map-wrap .leaflet-popup-content {
  margin: 0.65rem 0.85rem;
  line-height: 1.45;
}

.branch-leaflet-marker-wrap {
  background: none;
  border: none;
}

.branch-leaflet-marker-pin {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  margin: 4px auto 0;
}

/* ── Map button ───────────────────────────────────────────────────── */
.branches-map-btn {
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 4px 16px 4px 16px;
  padding: .65rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity .2s;
}

.branches-map-btn:hover { opacity: .88; color: #fff; }

/* ── Branch selector ──────────────────────────────────────────────── */
.branch-selector {
  border: 1px solid var(--primary);
  border-radius: 1.25rem;
  overflow: hidden;
}

.branch-selector-header {
  border-inline-start: 1px solid var(--primary);
  border-inline-end: 1px solid var(--primary);
  border-top: 1px solid var(--primary);
  padding: 1.2rem 1.25rem;
  border-radius: 1.25rem 1.25rem 0 0;
}

.branch-selector-title {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .05em;
}

.branch-selector-body {
  display: flex;
  flex-direction: column;
}

.branch-selector-item {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: end;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: #141b34;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.branch-selector-item:not(:last-child) {
  border-bottom: 1px solid rgba(8,144,178,.15);
}

.branch-selector-item.active {
  background: linear-gradient(to left, rgba(15,161,200,.08), rgba(3,113,167,.08));
  color: var(--primary);
  border-bottom: 1px solid var(--primary) !important;
}

.branch-selector-item:hover:not(.active) { background: rgba(8,144,178,.06); }

/* ── Section heading (shared with news.css) ───────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
}

.section-line {
  flex: 1;
  height: 6px;
  background: var(--primary);
  border-radius: 100px;
}
