/* 목록 상단 히어로 — 2026-11-01 Figma «03.venue/place» hero(1288:67873). 조각 _inc/list-hero.php.
   PC·태블릿: 웨딩홀 = 영상(4:3) 2 : 제목 1 · 플레이스 = 사진(3:4) 1 : 제목 1. 제목 칸 안에서 제목 묶음은 오른쪽 3/4(웨딩홀) · 2/3(플레이스).
   제목 묶음의 줄마다 «8 : 1» 격자(오른쪽 1칸 = ® 자리) — 글자 크기는 묶음 폭(cqw)을 따라간다.
   1023px 이하 = Figma «device=*_mobile» 판(2026-11-02 값 반영 — 아래 미디어쿼리). */
.list-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--color-neutral-300, #cbcbcb);
  box-sizing: border-box;
}

.list-hero--place {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #cfcfcf;
}

.list-hero--place .list-hero__media {
  aspect-ratio: 3 / 4;
}

.list-hero__media > img,
.list-hero__media > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-hero__sound {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.list-hero__sound img {
  width: 14px;
}

.list-hero__credit {
  position: absolute;
  right: 9px;
  bottom: 6px;
  color: rgba(242, 242, 242, 0.6);
  font-family: Pretendard, var(--font-family-base, "Noto Sans KR", sans-serif);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.list-hero__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding-left: 25%;
  container-type: inline-size;
}

.list-hero--place .list-hero__title {
  padding-left: 33.3333%;
}

.list-hero__brand,
.list-hero__logo,
.list-hero__label {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 1fr);
  column-gap: 4px;
  margin: 0;
}

/* «MYWEDDINGSTORY» + 분류 단어(민트) — Figma 는 글자 그림(Noto Sans 계열) · 폭 = 줄의 8/9 */
.list-hero__brand {
  display: block;
  width: calc((100% - 4px) * 8 / 9);
  color: #1a1a1a;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 7.15cqw;
  font-weight: 500;
  /* 2026-11-09 Figma 대조 — 줄 높이 = Figma 글자 그림(358.93×22.22) 비율(390 에서 12.6 · 예전 17.9) */
  height: calc((100cqw - 4px) * 8 / 9 * 22.2234 / 358.9259);
  line-height: calc((100cqw - 4px) * 8 / 9 * 22.2234 / 358.9259);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.list-hero__brand em {
  margin-left: 0.18em;
  color: #81d8d0;
  font-style: normal;
  font-weight: 700;
}

.list-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.list-hero__logo .list-hero__mark {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left top;
}

/* 분류명 — 글자마다 양 끝 정렬(Figma 글자 그림 · 회색 #949494 · 가는 획) */
.list-hero__label {
  display: flex;
  justify-content: space-between;
  width: calc((100% - 4px) * 8 / 9);
  color: #949494;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 6.4cqw;
  font-weight: 300;
  line-height: 1;
  /* 2026-11-09 Figma 대조 — 분류명 줄 높이 = 글자 그림 높이(묶음 폭의 10.36% — 390 에서 21.1) */
  height: calc((100cqw - 4px) * 8 / 9 * 0.1036);
  align-items: center;
}

.list-hero__label span {
  display: block;
}

/* 2026-11-02 Figma hero «device=*_mobile»(1288:67882 플레이스 · 1288:67897 웨딩홀, 768 판) — 1023px 이하:
   사진·영상이 폭 전체(웨딩홀 4:3 · 플레이스 3:4), 그 아래 제목 칸 = 여백 위 40 · 양옆 20 · 아래 80,
   안쪽 폭의 왼쪽 1/3 은 비우고 오른쪽 2/3 에 제목 묶음(768 에서 485px). */
@media (max-width: 1023px) {
  .list-hero,
  .list-hero--place {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-hero__title,
  .list-hero--place .list-hero__title {
    padding: 40px 20px 80px calc(20px + (100% - 40px) / 3);
  }
}

/* 히어로는 머리말 바로 아래(Figma body y=0) — 목록 본문의 위 여백(20)을 걷는다.
   홈은 히어로 아래 첫 섹션까지 Figma 80(섹션 자체 위 여백 60 + 20) · 플레이스 홈 20. 필터·특가는 칩 필터가 바로 붙는다(0). */
main:has(> .list-hero) {
  padding-top: 0;
}

.list-hero + .venue-home-recommend,
.list-hero + .venue-home-content,
.venue-home-main:not(.venue-home-filter-main) > .list-hero + * {
  margin-top: 20px; /* 2026-11-02 — 홈에서 히어로 다음 섹션이 무엇이든(추천이 없으면 «가까운 베뉴») 붙지 않게 */
}
