.branch-detail-page {
  min-height: 100vh;
  background: var(--xlh-page-bg);
  padding-bottom: 24px;
}

.branch-detail-page__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.branch-detail-state {
  color: #6b7280;
  font-size: 12px;
}

.branch-detail-state.is-error {
  color: #ef4444;
}

.branch-detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px 18px;
  background: linear-gradient(135deg, #123e7c 0%, #0f6b63 100%);
  text-align: center;
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(18, 62, 124, 0.18);
}

.branch-detail-hero__bubble {
  display: none;
}

.branch-detail-hero__bubble--top {
  top: -56px;
  right: -56px;
  width: 128px;
  height: 128px;
}

.branch-detail-hero__bubble--bottom {
  left: -40px;
  bottom: -40px;
  width: 96px;
  height: 96px;
}

.branch-detail-hero__subtitle {
  position: relative;
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.5;
}

.branch-detail-hero__title {
  position: relative;
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.branch-detail-hero__score {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 700;
}

.branch-detail-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px 10px;
  border: 1rpx solid #d7e2f1;
  box-shadow: 0 8rpx 18rpx rgba(18, 62, 124, 0.04);
}

.branch-detail-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.branch-detail-stats__value {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.branch-detail-stats__label {
  margin-top: 6px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.4;
}

.branch-detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-detail-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.branch-detail-section__title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}

.branch-detail-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.branch-detail-tabs__item {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 12px;
  line-height: 1;
  transition: transform 120ms ease, background 120ms ease;
}

.branch-detail-tabs__item:active,
.branch-detail-card:active,
.branch-detail-card__action:active {
  transform: scale(0.985);
}

.branch-detail-tabs__item.is-active {
  border-color: #bdd6f4;
  background: #edf5ff;
  color: #123e7c;
  box-shadow: none;
}

.branch-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-detail-empty {
  color: #9ca3af;
  font-size: 12px;
}

.branch-detail-card {
  display: flex;
  gap: 12px;
  border-radius: 18px;
  border: 1rpx solid #d7e2f1;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8rpx 18rpx rgba(18, 62, 124, 0.04);
  transition: transform 120ms ease, background 120ms ease;
}

.branch-detail-card__media {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branch-detail-card__image {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  background: #e5e7eb;
}

.branch-detail-card__count {
  border-radius: 8px;
  background: #f9fafb;
  padding: 6px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.branch-detail-card__count-value {
  display: block;
  margin-top: 2px;
  color: #374151;
  font-weight: 700;
}

.branch-detail-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.branch-detail-card__title {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.branch-detail-card__meta {
  margin-top: 6px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
}

.branch-detail-card__action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 10px;
}

.branch-detail-card__action {
  min-width: 88px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  line-height: 30px;
}

.branch-detail-card__action.is-primary {
  background: #123e7c;
  color: #ffffff;
  box-shadow: 0 8rpx 18rpx rgba(18, 62, 124, 0.18);
}

.branch-detail-card__action::after {
  border: none;
}
