/* ========== 시그니처 투어 섹션: 2열(모바일 1열) 레이아웃 ========== */

/* 섹션 제목 스타일 */
.section-title {
  margin-bottom: 24px;
}

.section-title h2.hscroll {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color, #1f2937);
  margin-bottom: 8px;
}

.section-title .muted {
  font-size: 14px;
  color: var(--muted-color, #6b7280);
}

/* 그리드 컨테이너: 기본 1열(모바일) */
.popular-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

/* 태블릿 이상 (768px~): 2열 */
@media (min-width: 768px) {
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* 카드 기본 스타일 */
.popular-grid .card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #ffffff);
  border: 1px solid #efe7db;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 카드 호버 효과 (데스크톱만) */
@media (hover: hover) and (pointer: fine) {
  .popular-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
  }
}

/* 썸네일 */
.popular-grid .card .thumb {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 태블릿 이상: 썸네일 높이 조정 */
@media (min-width: 768px) {
  .popular-grid .card .thumb {
    height: 220px;
  }
}

/* aspect-ratio 지원 브라우저 */
@supports (aspect-ratio: 16 / 9) {
  .popular-grid .card .thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* 카드 본문 */
.popular-grid .card .body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 배지 */
.popular-grid .card .badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  background: var(--accent-color, #ebaf3b);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
}

/* 제목 */
.popular-grid .card .title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color, #222);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
  
  /* 2줄 이상 말줄임 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 메타 정보 */
.popular-grid .card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
  margin-top: auto;
}

.popular-grid .card .meta span {
  display: inline-block;
}

/* 가격 */
.popular-grid .card .price {
  color: var(--secondary-color, #eb6439);
  font-weight: 700;
  font-size: 15px;
}

/* 데스크톱 대형 화면 (1200px~): 3열로 변경 가능 (선택사항) */
@media (min-width: 1200px) {
  .popular-grid {
    /* 필요시 3열로 변경: grid-template-columns: repeat(3, 1fr); */
  }
}

/* 반응형: 작은 모바일 (400px 미만) */
@media (max-width: 399px) {
  .section-title h2.hscroll {
    font-size: 24px;
  }
  
  .popular-grid {
    gap: 16px;
  }
  
  .popular-grid .card .body {
    padding: 12px;
  }
  
  .popular-grid .card .title {
    font-size: 15px;
  }
}


/* ========== TOUR HELLO MOMENT 섹션 (완전 수정 버전) ========== */

/* ====== 지역 변수 ====== */
:root{
  --th-blue:#28497c;
  --container-max:1200px;
  --bg-height:452px;        /* 배경 영역 고정 높이 */
  --card-h:543px;           /* 카드 전체 높이 */
  --card-radius:16px;
  --gap:28px;
  --shadow:0 12px 28px rgba(0,0,0,.15);
  --font-title:'Poppins', system-ui, -apple-system, 'Noto Sans KR', sans-serif;
}

/* 전체 섹션 컨테이너 */
.th-moment{
  position:relative;
  text-align:center;        /* 모든 것 가운데 정렬 */
  overflow:visible;
  background: #ffffff;
}

/* 상단 파란 배경 블록 */
.th-moment__bg{
  background:var(--th-blue);
  height:var(--bg-height);
  color:#fff;
  display:flex;
 
  justify-content:center;
}
.th-moment__container{
  width:100%;
  max-width:var(--container-max);
  padding:5% 20px;
}
.th-moment__title{
  margin:0 0 8px;
  font-family:var(--font-title);
  font-weight:700;
  font-size:26px;
  letter-spacing:.2px;
}
.th-moment__desc{
  margin:0;
  font-size:14px;
  opacity:.9;
}

/* 카드 행: 배경 하단에 '반쯤' 걸치도록 음수 마진 */
.th-moment__cards{
  
  margin: -170px auto 50px;     /* ← 겹침 정도(=반쯤) 조절 포인트 */
  padding:0 20px;
  display:flex;
  justify-content:center;       /* 항상 가운데 정렬 */
  gap:var(--gap);
  align-items:stretch;
  flex-wrap:wrap;
}

/* 카드 */
.th-card{
  position:relative;
  width: 31%;
  min-width:300px;
  
  background:#f4f4f4;
  border-radius:var(--card-radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  transition:transform .25s ease;
}
.th-card:hover{ transform:translateY(-6px); }

/* 썸네일은 16:9 고정 */
.th-card__thumb{
  width:100%;
  aspect-ratio:16/9;
  background-size:cover;
  background-position:center;
  position:relative;
}

/* 중앙 텍스트(메인 카드에만 사용) */
.th-card__centertext{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.55);
  font-family:var(--font-title);
  gap:6px;
}
.th-card__centertext strong{ font-size:22px; font-weight:700; }
.th-card__centertext span{ font-size:14px; font-weight:500; opacity:.95; }

/* 본문 */
.th-card__body{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:16px 18px;
  color:#222;
}
.th-card__title{
  font-size:17px;
  margin:0 0 8px;
  font-weight:600;
}
.th-card__tags{
  font-size:13px;
  color:#4b4b4b;
  margin:0;
}

/* 가운데 메인 카드: 살짝 더 강조(넓이만 +1~2%) */
.th-card--main{ width:32%; }

/* 카드 전체 클릭 영역(접근성) */
.th-card__link{
  position:absolute; inset:0;
}

/* 시각적 숨김 (접근성 보조) */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* 반응형 보정 */
@media (max-width: 1200px){
  .th-card, .th-card--main{ width:31.5%; }
}
@media (max-width: 992px){
  .th-moment__cards{ gap:22px; margin:-110px auto 40px; }
  .th-card, .th-card--main{ width:45%; }
}
@media (max-width: 680px){
  :root{ --card-h:500px; }
  .th-moment__cards{ margin:-90px auto 36px; }
  .th-card, .th-card--main{ width:100%; min-width:0; }
}
