/* 시술 찾기 화면 — 분류별 시술 목록과 검색 */

/* 이 화면은 목록이 주인공이라 제목 여백을 줄여 한 화면에 최대한 담는다 */
.tm-page .txtCon { padding-bottom: 60px; }
.tm-page .txtCon .sub_title { margin: 34px 0 20px; }
.tm-page .txtCon .sub_title h2 { font-size: 32px; }
.tm-page .txtCon .sub_title p { margin-top: 10px; }

.tm-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 14px;
}
.tm-search .xi-search {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #2E546E;
  pointer-events: none;
}
.tm-search input {
  width: 100%;
  height: 48px;
  padding: 0 52px;
  border: 1px solid #d7dde3;
  border-radius: 29px;
  background: #fff;
  font-size: 17px;
  color: #222;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 10px rgba(46, 84, 110, .06);
  -webkit-appearance: none;
  appearance: none;
}
.tm-search input::-webkit-search-cancel-button { display: none; }
.tm-search input:focus {
  outline: none;
  border-color: #2E546E;
  box-shadow: 0 0 0 3px rgba(46, 84, 110, .12);
}
.tm-search input::placeholder { color: #9aa5ae; }
.tm-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef1f4;
  color: #55606a;
  cursor: pointer;
  font-size: 15px;
  line-height: 34px;
  padding: 0;
}
.tm-search button:hover { background: #e2e7ec; }

.tm-count {
  text-align: center;
  font-size: 14px;
  color: #7b858e;
  margin-bottom: 18px;
}
.tm-count strong { color: #2E546E; font-weight: 600; }
.tm-count .tm-sub { color: #9aa5ae; }

/* 분류 카드를 세로로 촘촘히 채운다 (칸마다 높이가 달라 생기는 빈 공간을 줄인다) */
.tm-grid {
  column-count: 6;
  column-gap: 16px;
}
@media screen and (max-width: 1400px) { .tm-grid { column-count: 4; } }
@media screen and (max-width: 1180px) { .tm-grid { column-count: 3; } }
@media screen and (max-width: 960px) { .tm-grid { column-count: 2; } }
@media screen and (max-width: 680px) { .tm-grid { column-count: 1; } }

.tm-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 16px;
  border: 1px solid #e6eaee;
  border-radius: 12px;
  background: #fff;
  padding: 15px 14px 6px;
}
.tm-group.is-off { display: none; }
.tm-group h3 {
  font-family: serif;
  font-size: 18px;
  color: #2E546E;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid #eef1f4;
}
.tm-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.tm-item { border-bottom: 1px solid #f4f6f8; order: 2; }
.tm-item.is-name { order: 1; } /* 이름이 맞는 시술을 분류 안에서 위로 */
.tm-item:last-child { border-bottom: 0; }
.tm-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 5px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.tm-item a:hover,
.tm-item a:focus-visible {
  background: #f3f7fa;
  color: #2E546E;
}
.tm-item a i { color: #c3ccd4; font-size: 16px; }
.tm-item a:hover i { color: #2E546E; }
.tm-item mark {
  background: #fdf0b8;
  color: inherit;
  padding: 0 1px;
  border-radius: 3px;
}
.tm-item.is-dim { display: none; }
.tm-item.is-kw a { color: #8a949d; } /* 이름 대신 설명·키워드가 맞은 관련 시술 */

.tm-empty {
  text-align: center;
  font-size: 17px;
  color: #7b858e;
  padding: 60px 20px;
}
.tm-empty a { color: #2E546E; text-decoration: underline; }

@media screen and (max-width: 960px) {
  .tm-group { padding: 16px 16px 6px; margin-bottom: 14px; }
  .tm-group h3 { font-size: 19px; }
  .tm-item a { padding: 10px 6px; font-size: 16px; }
  .tm-search input { height: 50px; font-size: 16px; }
}
