body.network-page {
  background: #ffffff;
  color: var(--text-black, #1d1d1f);
}

.network-hero {
  position: relative;
  min-height: 520px;
  padding: var(--header-height) var(--side-padding) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.38), rgba(8, 10, 12, 0.56)),
    url("https://cdn.mcbots.org/page-assets/map/network-branch-hero.webp") center / cover;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}

.network-hero-inner {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  margin: 0 auto;
  text-align: center;
}

.network-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
}

.network-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.branch-shell {
  width: 100%;
  max-width: none;
  padding: 0 var(--side-padding) var(--sp-section-y, 140px);
}

.branch-section-bar {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 88px 0 48px;
  text-align: center;
}

.branch-section-bar h2 {
  max-width: 1120px;
  margin: 0 auto;
  color: #1d1d1f;
  font-size: 48px;
  font-weight: 650;
  line-height: 1.18;
  word-break: keep-all;
}

.branch-map-layout {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.branch-map-panel {
  position: relative;
  overflow: visible;
}

.branch-kakao-map-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 680px;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
}

.branch-kakao-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.branch-map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.84));
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.branch-marker {
  position: relative;
  z-index: 1;
  transform: translate(-50%, -100%);
}

.branch-plus {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--main-color, #ff7a18);
  box-shadow: 0 14px 32px rgba(255, 122, 24, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.branch-plus::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  border: 1px solid rgba(255, 122, 24, 0.28);
  animation: branchPulse 1.9s ease-out infinite;
}

.branch-plus span:first-child {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-1px);
}

.branch-marker-label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(13, 17, 23, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: opacity 0.18s ease;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.branch-marker:hover .branch-plus,
.branch-marker:focus-within .branch-plus {
  transform: scale(1.08);
  box-shadow: 0 18px 38px rgba(255, 122, 24, 0.42);
}

.branch-marker:hover .branch-marker-label,
.branch-marker:focus-within .branch-marker-label {
  opacity: 0;
}

.branch-popover {
  position: absolute;
  left: calc(100% + 18px);
  top: 50%;
  width: 290px;
  padding: 20px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  z-index: 20;
  transform: translate(8px, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

.branch-marker:hover .branch-popover,
.branch-marker:focus-within .branch-popover {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.branch-region {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--main-color, #ff7a18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.branch-popover strong {
  display: block;
  margin: 0;
  color: #1d1d1f;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.24;
}

.branch-popover p,
.branch-popover address,
.branch-tel span {
  margin: 10px 0 0;
  color: #67727e;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
}

.branch-tel {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(29, 29, 31, 0.1);
}

.branch-tel span {
  margin: 0;
  color: #1d1d1f;
  font-weight: 650;
}

.branch-directory {
  padding: 84px 0 0;
  background: #ffffff;
}

.branch-search-bar {
  width: min(640px, 100%);
  margin: 0 auto 44px;
}

.branch-search-bar input {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(29, 29, 31, 0.14);
  border-radius: 999px;
  color: #1d1d1f;
  background: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.branch-search-bar input::placeholder {
  color: #8a949f;
}

.branch-search-bar input:focus {
  border-color: var(--main-color, #ff7a18);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.1);
}

.branch-directory-grid {
  margin-top: 0;
}

.branch-mag-card .mag-card-title {
  font-size: clamp(24px, 2vw, 32px);
}

.branch-mag-card .mag-card-info p {
  min-height: 92px;
}

.branch-pagination {
  margin-top: 56px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes branchPulse {
  0% {
    opacity: 0.7;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@media (max-width: 768px) {
  .network-hero {
    min-height: 430px;
  }

  .network-hero h1 {
    font-size: 40px;
    line-height: 1.18;
  }

  .network-hero p {
    font-size: 16px;
  }

  .branch-shell {
    padding-bottom: var(--sp-25, 88px);
  }

  .branch-section-bar {
    padding: 52px 0 32px;
  }

  .branch-section-bar h2 {
    font-size: 34px;
  }

  .branch-map-panel {
    min-height: 0;
  }

  .branch-kakao-map-wrap {
    height: 520px;
  }

  .branch-marker-label {
    display: none;
  }

  .branch-popover {
    width: min(280px, calc(100vw - 52px));
    left: 50%;
    top: auto;
    bottom: calc(100% + 16px);
    transform: translate(-50%, 8px);
  }

  .branch-marker:hover .branch-popover,
  .branch-marker:focus-within .branch-popover {
    transform: translate(-50%, 0);
  }

  .branch-directory {
    padding-top: 56px;
  }

  .branch-search-bar {
    margin-bottom: 32px;
  }
}
