/* Branches — Philippines map */

.branches-page {
  padding: 2rem 0 3rem;
}

.branches-page__intro {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.branches-page__intro h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.branches-page__intro p {
  margin: 0;
  color: var(--text-silver, #c8c8c8);
  line-height: 1.7;
}

.branches-page__status {
  margin: 0 0 1rem;
  color: var(--text-silver, #c8c8c8);
  font-size: 0.95rem;
}

.branches-page__status.is-error {
  color: #f0a8a8;
}

.branches-map {
  width: 100%;
  min-height: 32rem;
  height: min(78vh, 48rem);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}

.branches-marker {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #d60000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.branches-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.branches-marker__fallback {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.branches-cluster {
  background: #d60000;
  color: #fff;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.branches-cluster--sm {
  width: 36px;
  height: 36px;
}

.branches-cluster--md {
  width: 44px;
  height: 44px;
  font-size: 0.95rem;
}

.branches-cluster--lg {
  width: 54px;
  height: 54px;
  font-size: 1.05rem;
}

.branches-popup {
  min-width: 180px;
  max-width: 240px;
}

.branches-popup__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.branches-popup__meta {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
}

.branches-popup__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.branches-popup__links a {
  color: #b00000;
  font-weight: 600;
}

.marker-cluster-branches {
  background: transparent !important;
}

.marker-cluster-branches div {
  background: transparent !important;
}

[data-branches-nav-names] .nav-dropdown__item {
  white-space: normal;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .branches-map {
    min-height: 24rem;
    height: 65vh;
  }
}
