/* 모델 목록 페이지 전용 스타일 */

/* model-page: 헤더 뒤에서 시작 (투명 헤더 대응) */
.model-page { padding-top: 0; }

/* ── PAGE HERO ─────────────────── */
.page-hero {
  background: var(--dark);
  padding: calc(var(--header-h) + 60px) 0 0;  /* inner-hero와 동일한 상단 패딩 */
}
.page-hero-inner { padding-bottom: 70px; }  /* inner-hero bottom(70px)과 동일 */

/* PC에서는 헤더 이미지를 컨테이너에 fit, 좌우는 검정으로 처리 */
@media (min-width: 769px) {
  .page-hero {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #000 !important;
  }
}
.breadcrumb { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.15em; color: rgba(255,255,255,0.35); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb span { opacity: 0.4; }
.page-title { font-family: 'Bebas Neue', var(--font-en); font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 400; color: var(--white); letter-spacing: 0.04em; line-height: 1; margin-bottom: 12px; }
.page-desc { font-size: 15px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }

/* ── CATEGORY TABS (WOMEN/MEN/KOREAN) ── */
.cat-tabs {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
  box-sizing: border-box;
}
.cat-tab {
  padding: 16px 32px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.cat-tab:hover { color: rgba(255,255,255,0.8); }
.cat-tab.active { color: var(--white); border-bottom-color: var(--accent); }

/* ── AGE GROUP TABS (KIDS/ADULT/SENIOR) ── */
.age-tabs-wrap {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.age-tabs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.age-tabs {
  display: flex;
  gap: 0;
}
.age-tab {
  padding: 16px 28px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  transition: all 0.2s;
  text-transform: uppercase;
}
.age-tab:hover { color: var(--dark); }
.age-tab.active { color: var(--dark); border-bottom-color: var(--dark); font-weight: 700; }

/* 검색창 */
.age-search {
  position: relative;
}
.age-search input {
  padding: 8px 36px 8px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 20px;
  font-size: 12px;
  outline: none;
  width: 180px;
  transition: border-color 0.2s, width 0.3s;
  font-family: var(--font-ko);
}
.age-search input:focus { border-color: var(--accent); width: 220px; }
.age-search svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--gray);
  fill: none;
  stroke-width: 2;
}

/* ── FILTERS (상태/부킹) ────────── */
.model-filters {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.filter-row { display: flex; align-items: center; gap: 20px; padding: 12px 0; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--gray); white-space: nowrap; }
.filter-group select { padding: 7px 12px; border: 1px solid rgba(0,0,0,0.12); border-radius: 6px; font-size: 12px; font-family: var(--font-ko); color: var(--dark); background: var(--white); outline: none; cursor: pointer; }
.filter-count { margin-left: auto; font-family: var(--font-en); font-size: 13px; color: var(--gray); font-weight: 500; }

/* ── MODEL GRID (목록 페이지) ──── */
.model-list-section { padding: 48px 0 100px; }
.model-list-section .model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

/* ── MODEL CARD (링크로 쓸 때) ── */
a.model-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ── 호버 오버레이 ─────────────── */
.model-hover-info {
  position: absolute;
  inset: 0;
  z-index: 3;          /* img(z-index:1) 위 */
  background: rgba(201, 169, 110, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.model-card:hover .model-hover-info {
  opacity: 1;
  transform: translateY(0);
}

.hover-id {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hover-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.hover-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3.5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hover-label {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  white-space: nowrap;
}

.hover-val {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: right;
}

.hover-portfolio {
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── 카드 보조 요소 ─────────────── */
.model-loading { grid-column:1/-1; text-align:center; padding:80px 0; color:var(--gray); font-size:14px; }
.model-empty   { text-align:center; padding:80px 0; color:var(--gray); font-size:15px; }

.model-no-photo { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#ececec,#ddd); color:#bbb; }
.model-no-photo svg { width:36px; height:36px; }

.departed-badge { position:absolute; bottom:8px; right:8px; padding:3px 8px; background:rgba(239,68,68,0.85); color:#fff; font-size:10px; font-weight:700; border-radius:4px; z-index:2; }

/* 홈 모델 섹션 */
.model-grid .model-loading { grid-column:1/-1; text-align:center; padding:60px 0; color:var(--gray); }
.model-grid .model-empty   { grid-column:1/-1; text-align:center; padding:60px 0; color:var(--gray); }

/* 모델 카드 추가 정보 */
.model-sub-info { display:flex; gap:8px; padding:0 0 10px; font-size:11px; color:var(--gray); }
.model-sub-info span + span::before { content:'/'; margin-right:8px; opacity:0.4; }

.gnb-link.active-nav { color: var(--accent) !important; }

@media (max-width: 768px) {
  .model-list-section .model-grid { grid-template-columns:repeat(2,1fr); gap:16px; }
  .age-tabs-inner { flex-direction:column; align-items:flex-start; gap:8px; padding:8px 24px; }
  .age-search input { width:140px; }
  .cat-tabs { padding: 0 24px; }
  .cat-tab { padding:14px 20px; font-size:11px; }
  .hover-label { font-size:8px; }
  .hover-val { font-size:10px; }
  .hover-id { font-size:15px; margin-bottom:8px; }
  .page-hero { padding-top: calc(var(--header-h) + 32px); }
  .page-hero-inner { padding-bottom: 48px; }
}
@media (max-width: 480px) {
  .model-list-section .model-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
}
