@charset "utf-8";

/* ============================================================
   TRAVART · K-뷰티(beauty) 섹션 전용 CSS
   - 로드 순서: _core → sub-common.css → beauty.css
   - 리스트(list.php) / 상세(detail.php) 공용
   - food.css 구조/네이밍 그대로 복제, 접두사만 beauty로 변경
   ============================================================ */

/* ============================================================
   1. LIST — 필터 칩
   ※ 등록 양식엔 명시적 "업종/카테고리" 필드가 없음. 디자인상
     자리만 잡아둔 것으로, 실사용 여부 미정(food와 동일 원칙).
   ============================================================ */
.beauty-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.beauty-filter__btn {
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--t-line);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    display: inline-flex;
    align-items: center;
}
.beauty-filter__btn.is-active {
    background: var(--t-text);
    border-color: var(--t-text);
    color: #fff;
}

/* ============================================================
   2. LIST — 카드 그리드 (메인 .place-card 재사용, 4열)
   ============================================================ */
.beauty-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}
.beauty-list-grid .place-card__tag {
    display: inline-flex;
    max-width: 100%;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-3);
    background: rgba(40, 89, 153, 0.08);
    padding: 3px 9px;
    border-radius: 999px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.place-card__meta.beauty-d1 { margin-bottom: 0; }

/* ============================================================
   3. DETAIL — 갤러리 (food-gallery와 동일 규칙)
   ============================================================ */
.beauty-detail__top { padding-top: 44px; }
.beauty-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    border-radius: var(--radius);
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
}
.beauty-gallery__thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.beauty-gallery__thumb {
    aspect-ratio: 7 / 5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity .2s ease;
	background-size:cover;
	background-position:center center;
}
.beauty-gallery__thumb.is-active,
.beauty-gallery__thumb:hover { opacity: 1; }

/* ============================================================
   4. DETAIL — 정보 블록
   ============================================================ */
.beauty-info {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}
.beauty-info__head { padding-bottom: 22px; border-bottom: 1px solid var(--t-line); }
.beauty-info__title { font-size: 28px; font-weight: 800; color: var(--t-text); }

.beauty-info__desc {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.beauty-info__table {
    margin-top: 24px;
    border-top: 1px solid var(--t-line);
}
.beauty-info__row {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--t-line);
    font-size: 14px;
    align-items: center;
}
.beauty-info__row dt {
    flex: 0 0 128px;
    color: var(--t-sub);
    font-weight: 600;
}
.beauty-info__row dd { color: #333; line-height: 1.6; }
.beauty-info__row a { color: var(--brand-3); text-decoration: underline; }

.beauty-info__row dd.webp-add	 {
  color: #333;
  line-height: 1.6;
  min-width: 0;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ============================================================
   4-1. DETAIL — 시술 메뉴 테이블 (K-뷰티 전용, food엔 없던 블록)
   ============================================================ */
.beauty-menu { margin-top: 32px; }
.beauty-menu__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--t-text);
    margin-bottom: 14px;
}
.beauty-menu__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.beauty-menu__table thead th {
    text-align: left;
    padding: 12px 14px;
    background: #f7f7f8;
    color: var(--t-sub);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--t-line);
}
.beauty-menu__table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--t-line);
    color: #333;
    vertical-align: top;
}
.beauty-menu__table tbody tr:last-child td { border-bottom: 0; }
.beauty-menu__none { color: var(--t-meta); }

/* 행 전체 클릭(예약 페이지 이동) — beauty.js에서 처리 */
.beauty-menu__row { cursor: pointer; transition: background-color .15s ease; }
.beauty-menu__row:hover,
.beauty-menu__row:focus-visible { background-color: #f7f7f8; }
.beauty-menu__cta {
    text-align: right;
    white-space: nowrap;
    color: var(--brand-3);
    font-weight: 700;
    font-size: 13px;
}
.beauty-menu__cta i { margin-left: 2px; font-size: 11px; }
.beauty-menu__table thead th:last-child { width: 90px; }
.beauty-menu__table thead th:nth-child(1),
.beauty-menu__table tbody td:nth-child(1) { font-weight: 700; width: 22%; }
.beauty-menu__table thead th:nth-child(2),
.beauty-menu__table tbody td:nth-child(2) { width: 16%; color: var(--t-sub); }
.beauty-menu__table thead th:nth-child(3),
.beauty-menu__table tbody td:nth-child(3) { width: 18%; font-weight: 700; color: var(--brand-3); }

/* ---- 사이드 요약 카드 (연락처 강조) ---- */
.beauty-side {
    align-self: start;
    background: #f7f7f8;
    border-radius: var(--radius);
    padding: 24px;
}
.beauty-side__tel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--t-text);
}
.beauty-side__tel i { color: var(--brand-3); }
.beauty-side__hint { margin-top: 6px; font-size: 13px; color: var(--t-sub); }

/* ---- 상담 연결 (카카오톡/전화/네이버예약 — 목업 없이 텍스트 링크) ---- */
.beauty-contact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.beauty-contact__link {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--t-line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}
.beauty-contact__link i { color: var(--brand-3); font-size: 15px; }

.beauty-side__back {
    margin-top: 20px;
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.beauty-gallery__thumb.is-placeholder {
    cursor: default;
    pointer-events: none; /* hover 시 opacity 변화도 같이 막힘 */
}

/* 2026-08-10 */
.beauty-menu-photo{ display:flex; flex-direction:column; gap:16px; }

.beauty-menu-photo__card{
  display:flex; gap:20px;
  padding:16px; border:1px solid var(--t-line); border-radius:var(--radius);
  cursor:pointer;
  align-items:flex-start;
}

.beauty-menu-photo__thumb{
  flex:0 0 220px; width:220px; height:auto; aspect-ratio:16/9;
  border-radius:var(--radius-sm);
  background-size:cover; background-position:center;
  background-color:var(--t-line);
}
.beauty-menu-photo__body{
  flex:1; min-width:0;
  display:flex; flex-direction:row; align-items:flex-start; gap:24px;
}

.beauty-menu-photo__text{
  flex:1; min-width:0;
  display:flex; flex-direction:column;
}

.beauty-menu-photo__name{
  font-size:17px; font-weight:600; margin-bottom:6px;
}

.beauty-menu-photo__time{
  font-size:14px; color:var(--t-text); font-weight:500;
  margin-bottom:8px;
}
.beauty-menu-photo__time-label{
  font-size:12px; color:var(--t-sub); margin-right:6px;
}

.beauty-menu-photo__desc{
  font-size:14px; color:var(--t-sub); line-height:1.5;word-break:keep-all;
}

.beauty-menu-photo__foot{
  flex:0 0 auto;
  display:flex; flex-direction:column; align-items:flex-end; gap:8px;
}

.beauty-menu-photo__price{
  font-size:22px; font-weight:700; color:var(--brand-3);
  white-space:nowrap;
}

.beauty-menu-photo__cta{
  display:inline-flex; align-items:center; gap:4px;
  padding:8px 14px; border:1px solid var(--brand); border-radius:var(--radius-sm);
  font-size:14px; font-weight:600; color:var(--brand);
  white-space:nowrap;
}

/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .beauty-list-grid { grid-template-columns: repeat(3, 1fr); }
    .beauty-info { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .beauty-list-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
    .beauty-gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
    .beauty-info__title { font-size: 22px; }

    /* 시술 메뉴 테이블 → 모바일에서 카드형으로 전환 */
    .beauty-menu__table thead { display: none; }
    .beauty-menu__table, .beauty-menu__table tbody, .beauty-menu__table tr, .beauty-menu__table td {
        display: block;
        width: auto;
    }
    /* 데스크톱용 nth-child width 지정이 특이도 때문에 위 width:auto보다 우선 적용되던 버그 수정 —
       모바일에서는 열 너비 고정을 완전히 해제해야 라벨(::before)+값이 한 줄에 나란히 붙음 */
    .beauty-menu__table tbody td:nth-child(1),
    .beauty-menu__table tbody td:nth-child(2),
    .beauty-menu__table tbody td:nth-child(3) {
        width: auto;
    }

    /* tr 자체를 카드 박스로 — 배경 없이 테두리만. border는 tr 전체(마지막 포함
       전부)에 동일하게 적용, last-child에서는 margin-bottom만 0으로 줄임 */
    .beauty-menu__table tr {
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid var(--t-line);
        border-radius: var(--radius-sm);
    }
    .beauty-menu__table tbody tr:last-child { margin-bottom: 0; }
    .beauty-menu__table tbody td {
        padding: 3px 0;
        border-bottom: 0;
    }
    .beauty-menu__table td::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 70px;
        font-size: 12px;
        color: var(--t-sub);
        font-weight: 600;
    }
    /* 예약하기 힌트 컬럼 — 라벨 없음, 구분선 없이 간격만 */
    .beauty-menu__cta::before { content: none; }
    .beauty-menu__cta {
        text-align: left;
        margin-top: 8px;
    }

	/* 2026-08-10 */
  .beauty-menu-photo__card{ flex-direction:column; }

  .beauty-menu-photo__thumb{
    width:100%; height:auto; aspect-ratio:16/9;
  }

  .beauty-menu-photo__body{
    flex-direction:column; align-items:stretch; gap:12px;
  }

  .beauty-menu-photo__foot{
	flex-direction:row;
	justify-content:space-between;
	align-items:center;
	width:100%;
  }
}
@media (max-width: 480px) {
    .beauty-list-grid { grid-template-columns: repeat(2, 1fr); }
}