/* 오시는 길 지역 안내: 기존 밝은 섹션 배경과 검색 도구는 유지합니다. */
#directions-region-directory .region-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}
#directions-region-directory .region-card {
  min-width: 0;
  padding: 24px;
}
#directions-region-directory .region-card-title strong {
  font-size: 20px;
}
/* 기존 제목 링크의 전체 카드 클릭 영역과 CTA의 z-index: 2를 유지합니다. */
#directions-region-directory .region-phone.region-page-link {
  font-size: 15px;
  line-height: 1.6;
}

/* 전체 지점 전화연결: 승인된 지역 페이지의 3열 카드 스타일을 사용합니다. */
#directions-branch-contacts .branch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  border-top: 0;
}
#directions-branch-contacts .branch-row {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 164px;
  padding: 22px 16px;
  background: #f8f6f1;
  border: 1px solid #d4ccbd;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}
#directions-branch-contacts .branch-name {
  justify-content: center;
  gap: 6px;
  color: #26282b;
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
#directions-branch-contacts .branch-name .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #917a59;
}
#directions-branch-contacts .branch-row > a {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}
#directions-branch-contacts .branch-row > a > strong {
  color: #26282b;
  font-size: 22px;
  white-space: nowrap;
  line-height: 1.5;
  overflow: visible;
  text-overflow: clip;
}
#directions-branch-contacts .branch-row > a > span {
  justify-content: center;
  color: #786244;
  font-size: 11px;
}
#directions-branch-contacts .branch-row > a:hover > strong {
  color: #786244;
}
/* 실제 tel 링크만 확장하므로 전화 연결 대상은 바뀌지 않습니다. */
#directions-branch-contacts .branch-row > a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 4px;
}
#directions-branch-contacts .branch-row > a:focus-visible {
  outline: none;
}
#directions-branch-contacts .branch-row > a:focus-visible::after {
  outline: 2px solid #917a59;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  #directions-region-directory .region-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
  #directions-region-directory .region-card {
    padding: 16px 8px;
    min-width: 0;
  }
  #directions-region-directory .region-card-title {
    justify-content: center;
    gap: 0;
  }
  #directions-region-directory .region-card-title > span {
    justify-content: center;
    gap: 0;
  }
  #directions-region-directory .region-card-title strong {
    font-size: clamp(14px, 4vw, 18px);
    white-space: nowrap;
  }
  #directions-region-directory .region-card-title .icon {
    display: none;
  }
  #directions-region-directory .region-card > p {
    margin-top: 10px;
    color: var(--muted);
    font-size: clamp(10px, 2.5vw, 12px);
    line-height: 1.6;
    text-align: center;
  }
  #directions-region-directory .region-phone.region-page-link {
    justify-content: center;
    margin-top: 12px;
    gap: 0;
    font-size: clamp(10px, 3.2vw, 13px);
    line-height: 1.6;
    letter-spacing: -.04em;
    white-space: nowrap;
    text-align: center;
  }
  #directions-region-directory .region-phone.region-page-link .icon {
    display: none;
  }
  #directions-region-directory .region-branch-count {
    margin-top: 6px;
    padding-left: 0;
    font-size: clamp(9px, 2.3vw, 11px);
    line-height: 1.6;
    text-align: center;
  }

  #directions-branch-contacts .branch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
  #directions-branch-contacts .branch-row {
    min-height: 142px;
    padding: 14px 8px;
    gap: 10px;
  }
  #directions-branch-contacts .branch-name {
    display: block;
    font-size: clamp(10px, 3.1vw, 13px);
    min-height: 3.2em;
  }
  #directions-branch-contacts .branch-name .icon {
    display: none;
  }
  #directions-branch-contacts .branch-row > a {
    align-items: center;
    gap: 5px;
  }
  #directions-branch-contacts .branch-row > a > strong {
    font-size: clamp(10px, 3vw, 14px);
    letter-spacing: -.04em;
  }
  #directions-branch-contacts .branch-row > a > span {
    font-size: 10px;
  }
  #directions-branch-contacts .branch-row > a > span .icon {
    display: none;
  }
}

/* Directions branch cards: static phone numbers on desktop, tel links on mobile. */
@media (min-width: 769px) {
  #directions-branch-contacts .branch-row {
    cursor: default;
  }

  #directions-branch-contacts .branch-name {
    font-size: 19px;
  }

  #directions-branch-contacts .branch-row > a.branch-phone-mobile {
    display: none;
  }

  #directions-branch-contacts .branch-phone-desktop {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    margin-top: auto;
  }

  #directions-branch-contacts .branch-phone-desktop > strong {
    color: #26282b;
    font-size: 22px;
    white-space: nowrap;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  #directions-branch-contacts .branch-row > a.branch-phone-mobile {
    display: flex;
  }

  #directions-branch-contacts .branch-phone-desktop {
    display: none;
  }
}

/* 지점명 바로 아래 번호를 배치하고 고정 높이의 빈 공간을 없앱니다. */
#directions-branch-contacts .branch-row {
  justify-content: flex-start;
  min-height: 0;
  gap: 8px;
}
#directions-branch-contacts .branch-row > .branch-phone-desktop,
#directions-branch-contacts .branch-row > a.branch-phone-mobile {
  margin-top: 0;
}
@media (max-width: 768px) {
  #directions-branch-contacts .branch-name {
    min-height: 0;
  }
}
