@charset "utf-8";
/* dm-sub (2026-11-11): 서브 페이지 다듬기 — 코스 목록 · 상품 페이지.
   head.lib.php 에서 style_mob.css 다음에 읽으므로 같은 선택자면 여기가 이긴다(PC·태블릿·휴대폰 공통 + 아래 화면별 규칙). */

:root{
  --dm-y:#F0DC46;
  --dm-film:saturate(.86) contrast(1.04) sepia(.1) brightness(.97);
}

/* 분류 표시(몽골 · 고비사막 등): 큰 노란 칸 → 얇은 테두리 */
.package_detail_box .badge_group .badge,
.product_payment_wrap .badge{height:26px; padding:0 11px; border-radius:999px; background:transparent; border:1px solid #d4d4d4; color:#666; font-size:12px; font-weight:500; letter-spacing:.01em;}

/* 코스 목록 머리말·상품 제목도 메인과 같은 제목 글꼴 */
.item_list_wrap .intro_wrap h3{font-family:var(--dm-title-font); font-weight:400; letter-spacing:-0.01em; color:#000;}
.item_list_wrap .intro_wrap p{color:#666; line-height:1.7; word-break:keep-all;}
.product_detail_wrap .package_detail_box .title_area h3{font-family:var(--dm-title-font); font-weight:400; font-size:30px; line-height:1.35; color:#000;}
.product_payment_wrap .package_title{font-family:var(--dm-title-font); font-weight:400; font-size:22px; color:#000;}

/* ───────── 코스 목록 ───────── */
.dm-list .item_link .img_wrap{overflow:hidden; border-radius:6px; background:#eee;}
.dm-list .item_link .img_wrap img{filter:var(--dm-film); transition:transform .8s cubic-bezier(.2,.7,.2,1);}
.dm-list .item_link:hover .img_wrap img{transform:scale(1.035);}
.dm-list .package_detail_box .title_area h3{font-family:var(--dm-title-font); font-weight:400; font-size:26px; line-height:1.4; color:#000; letter-spacing:-0.01em;}
.dm-list .dm-route{margin-top:8px; font-size:14px; line-height:1.65; color:#777; word-break:keep-all;}
.dm-list .dm-route i{font-style:normal; color:#bbb; padding:0 .3em;}
.dm-list .package_detail_box .price_area .price_label{margin-bottom:6px; font-size:13px; color:#888;}
.dm-list .package_detail_box .price_area .price.dm-fare-big{font-size:18px; font-weight:500; color:#000;}
.dm-list .package_detail_box .price_area .price.dm-fare-big strong{font-size:28px; font-weight:700; letter-spacing:-0.5px; margin-right:2px;}
.dm-list .dm-deposit{margin-top:8px; font-size:13px; color:#888;}
.dm-list .package_detail_box .package_desc p{color:#555;}

/* ───────── 상품 페이지: 인원별 요금 ───────── */
.dm-fare{margin-top:36px; padding-top:30px; border-top:1px solid #eee;}
.dm-fare-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px;}
.dm-fare-head h4{font-size:19px; font-weight:700; color:#000;}
.dm-fare-head p{font-size:13px; color:#888;}
.dm-fare-table{width:100%; border-collapse:collapse; table-layout:fixed; font-size:15px; text-align:center; font-variant-numeric:tabular-nums;}
.dm-fare-table thead th{height:44px; background:#000; color:#fff; font-size:13px; font-weight:600;}
.dm-fare-table thead th:first-child{border-radius:6px 0 0 0;}
.dm-fare-table thead th:last-child{border-radius:0 6px 0 0;}
.dm-fare-table thead th span{font-weight:400; color:rgba(255,255,255,.62);}
.dm-fare-table tbody th, .dm-fare-table tbody td{height:44px; border-bottom:1px solid #eee; color:#444;}
.dm-fare-table tbody th{font-weight:600; color:#000;}
.dm-fare-table tbody td b{font-weight:700; color:#000;}
.dm-fare-table tbody tr:nth-child(even){background:#fafafa;}
.dm-fare-notes{margin-top:16px; display:flex; flex-direction:column; gap:6px;}
.dm-fare-notes li{position:relative; padding-left:12px; font-size:14px; line-height:1.65; color:#666; word-break:keep-all;}
.dm-fare-notes li:before{content:''; position:absolute; left:0; top:.72em; width:4px; height:4px; border-radius:50%; background:#bbb;}
.dm-fare-notes li b{margin-right:8px; font-weight:700; color:#222;}
.dm-fare-up{margin-top:24px; padding:20px 22px; border-radius:8px; background:#f7f7f7;}
.dm-fare-up h5{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; font-size:16px; font-weight:700; color:#000;}
.dm-fare-up h5 span{font-size:13px; font-weight:400; color:#888;}
.dm-fare-up ul{margin-top:12px; display:grid; grid-template-columns:repeat(2, minmax(0, 300px)); gap:8px 40px;}
.dm-fare-up li{display:flex; justify-content:space-between; gap:12px; font-size:14px; line-height:1.6; color:#444; word-break:keep-all;}
.dm-fare-up li b{flex:none; font-weight:700; color:#000; font-variant-numeric:tabular-nums;}
/* 2026-11-12 (GPT 검토 반영): 요금표 위 한 줄 · 포함/불포함 이름표와 내용 칸 분리 · 업그레이드가 선택 사항임을 문장으로 */
.dm-fare-lead{margin:-4px 0 14px; font-size:14px; line-height:1.6; color:#666; word-break:keep-all;}
.dm-fare-notes li.dm-inc{display:grid; grid-template-columns:3.4em minmax(0, 1fr); column-gap:4px;}
.dm-fare-notes li.dm-inc b{margin-right:0;}
.dm-fare-up .dm-up-note{margin-top:6px; font-size:13px; line-height:1.6; color:#777; word-break:keep-all;}

/* 오른쪽 고정 칸: 2인 기준 1인 요금 */
.product_payment_wrap .dm-side-fare{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-top:20px; padding-bottom:14px; border-bottom:1px solid #eee;}
.product_payment_wrap .dm-side-fare span{font-size:14px; color:#777;}
.product_payment_wrap .dm-side-fare b{font-size:24px; font-weight:800; letter-spacing:-0.5px; color:#000;}
.product_payment_wrap a.dm-side-link{display:inline-block; margin-top:10px; font-size:13px; color:#555; text-decoration:underline; text-underline-offset:3px;}
.product_payment_wrap a.dm-side-link:hover{color:#000;}

/* ───────── 휴대폰 ───────── */
@media screen and (max-width:767px){
  .dm-list .item_link .img_wrap{height:auto; aspect-ratio:16 / 10;}
  .dm-list .package_detail_box .title_area h3{font-size:22px;}
  .dm-list .dm-route{font-size:13px;}
  .dm-list .package_detail_box .price_area{flex-wrap:wrap; row-gap:2px;}
  .dm-list .package_detail_box .price_area .price.dm-fare-big strong{font-size:24px;}
  .dm-list .dm-deposit{width:100%; margin-top:2px; text-align:right;}

  /* 상품 설명 글씨가 12px 로 너무 작던 것 */
  .package_detail_box .package_desc p{font-size:15px; line-height:1.7;}
  .package_detail_box .title_area h3{font-size:20px;}

  /* 상품 제목이 오른쪽에 붙던 것 → 왼쪽, 금액만 오른쪽 */
  .product_detail_wrap .package_detail_box .title_price_row{align-items:stretch;}
  .product_detail_wrap .package_detail_box .title_area h3{font-size:24px; text-align:left;}

  .dm-fare{margin-top:28px; padding-top:24px;}
  .dm-fare-head h4{font-size:17px;}
  .dm-fare-table{font-size:14px;}
  .dm-fare-table thead th{font-size:12px; height:42px;}
  .dm-fare-table thead th span{display:block; font-size:11px; line-height:1.2;}
  .dm-fare-table tbody th, .dm-fare-table tbody td{height:42px;}
  .dm-fare-notes li{font-size:13px;}
  .dm-fare-lead{margin-top:-6px; font-size:13px;}
  .dm-fare-up{padding:16px;}
  .dm-fare-up ul{grid-template-columns:1fr; gap:6px;}
  .dm-fare-up li{font-size:13px;}
}

/* ───────── 게시판: 머리말 + 여행후기·이벤트 사진 카드 (skin/bbs/basic_white_wide_2022/list.skin.php) ───────── */
.dm-board-head{padding:56px 0 40px; text-align:center;}
.dm-board-head h2{font-family:var(--dm-title-font); font-weight:400; font-size:36px; line-height:1.3; color:#000; letter-spacing:-0.01em;}
.dm-board-head p{margin-top:12px; font-size:16px; line-height:1.6; color:#777; word-break:keep-all;}
.dm-cards{display:grid; grid-template-columns:repeat(3, 1fr); gap:48px 28px; padding-bottom:24px;}
.dm-cards-bbs11{grid-template-columns:repeat(4, 1fr);}
.dm-cards li a{display:block; color:#111;}
.dm-cards figure{margin:0; aspect-ratio:4 / 3; overflow:hidden; border-radius:6px; background:#ececec;}
.dm-cards-bbs11 figure{aspect-ratio:4 / 5; background:#151515;}
.dm-cards figure img{width:100%; height:100%; object-fit:cover; filter:var(--dm-film); transition:transform .8s cubic-bezier(.2,.7,.2,1);}
.dm-cards-bbs11 figure img{object-position:center top; filter:none;}
.dm-cards li a:hover figure img{transform:scale(1.035);}
.dm-cards figure.dm-noimg{display:flex; align-items:center; justify-content:center; background:#111;}
.dm-cards figure.dm-noimg span{font-family:var(--dm-title-font); font-size:15px; letter-spacing:.2em; color:rgba(240,220,70,.75);}
.dm-card-txt{padding-top:16px;}
.dm-card-txt h3{font-family:var(--dm-title-font); font-weight:400; font-size:19px; line-height:1.45; color:#000; word-break:keep-all; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}
.dm-card-txt h3 em{margin-left:6px; font-style:normal; font-family:var(--dm-body-font); font-size:12px; color:#999;}
.dm-card-ex{margin-top:8px; font-size:14px; line-height:1.65; color:#666; word-break:keep-all; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;}
.dm-card-meta{display:flex; gap:12px; margin-top:12px; font-size:13px; color:#999; font-variant-numeric:tabular-nums;}
.dm-cards-empty{grid-column:1 / -1; padding:80px 0; text-align:center; font-size:15px; color:#888;}
@media screen and (max-width:1200px){
  .dm-cards{grid-template-columns:repeat(2, 1fr);}
  .dm-cards-bbs11{grid-template-columns:repeat(3, 1fr);}
}
@media screen and (max-width:767px){
  .dm-board-head{padding:32px 0 26px;}
  .dm-board-head h2{font-size:28px;}
  .dm-board-head p{font-size:14px;}
  .dm-cards{grid-template-columns:1fr; gap:36px;}
  .dm-cards-bbs11{grid-template-columns:repeat(2, 1fr); gap:28px 12px;}
  .dm-card-txt h3{font-size:18px;}
  .dm-cards-bbs11 .dm-card-txt h3{font-size:16px;}
  .dm-card-ex{font-size:14px;}
}

/* 서브 페이지 큰 제목(로그인·예약조회·결제하기·FAQ)을 메인과 같은 제목 글꼴로 */
.sub_login_wrap .form_wrap > h2,
.inquiry_form_wrap .inquiry_title,
.sub_faq_wrap > h2{font-family:var(--dm-title-font); font-weight:400; letter-spacing:-0.01em; color:#000;}

/* 여행후기: 사진 없는 글은 흰 글 카드로 (대부분의 후기가 글만 있음) */
.dm-cards-bbs31{align-items:stretch;}
.dm-cards-bbs31 li a{height:100%; border-radius:10px; background:#fff; overflow:hidden; transition:box-shadow .3s;}
.dm-cards-bbs31 li a:hover{box-shadow:0 10px 30px rgba(0,0,0,.06);}
.dm-cards-bbs31 figure{border-radius:0;}
.dm-cards-bbs31 .dm-card-txt{padding:22px 24px 24px;}
.dm-cards-bbs31 li.dm-textcard .dm-card-txt{padding:30px 28px 28px;}
.dm-cards-bbs31 li.dm-textcard .dm-card-ex{-webkit-line-clamp:5; font-size:15px; line-height:1.75; color:#555;}
.dm-cards-bbs31 .dm-card-meta{margin-top:16px;}
@media screen and (max-width:767px){
  .dm-cards-bbs31{gap:14px;}
  .dm-cards-bbs31 li.dm-textcard .dm-card-txt{padding:24px 22px 22px;}
  .dm-cards-bbs31 li.dm-textcard .dm-card-ex{-webkit-line-clamp:4; font-size:14px;}
}

/* 상품 페이지: 본문 쪽 2인 기준 요금(휴대폰에서는 오른쪽 칸이 없어서 여기만 보임) */
.package_detail_box .price_area .dm-main-fare{display:flex; align-items:baseline; justify-content:flex-end; gap:8px; margin-bottom:12px;}
.package_detail_box .price_area .dm-main-fare span{font-size:13px; color:#888;}
.package_detail_box .price_area .dm-main-fare b{font-size:22px; font-weight:800; letter-spacing:-0.5px; color:#000;}
@media screen and (min-width:1201px){ .product_detail_wrap .package_detail_box .price_area .dm-main-fare{display:none;} }
/* 2026-11-12: 휴대폰·태블릿 상품 첫 화면 → 인원별 요금표 바로가기(오른쪽 칸 '인원별 요금 보기'와 같은 이름·모양, 아래 화살표만 더함). PC 는 오른쪽 칸에 있어 숨김. GPT 3차 검토 */
.package_detail_box .price_area a.dm-fare-jump{display:inline-flex; align-items:center; gap:7px; margin-top:8px; padding:6px 0; font-size:13px; color:#555; text-decoration:underline; text-underline-offset:3px;}
.package_detail_box .price_area a.dm-fare-jump::after{content:""; flex:none; width:5px; height:5px; margin-top:-4px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg);}
@media screen and (min-width:1201px){ .product_detail_wrap .package_detail_box .price_area a.dm-fare-jump{display:none;} }

/* 결제하기 칸: 예약 순서 */
.dm-steps{display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin:4px 0 32px; counter-reset:none;} /* 2026-11-12: 아래 여백 22→32 (예약 순서와 총 인원 칸 구분) */
.dm-steps li{display:flex; align-items:flex-start; gap:8px; padding:12px; border-radius:8px; background:#f6f6f6; font-size:13px; line-height:1.5; color:#444; word-break:keep-all;}
.dm-steps li b{flex:none; display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:#000; color:#fff; font-size:11px; font-weight:700; line-height:1;}
.people_price a.dm-kakao-link{color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:3px;}
.dm-steps li span{text-wrap:balance;}
/* 2026-11-12: 태블릿 세로(결제 칸 안쪽 폭 600px 이하)에서 예약 순서 네 칸이 서너 줄로 꺾이던 것 → 두 칸씩 */
.pay_people_box{container-type:inline-size;}
@container (max-width:600px){ .dm-steps{grid-template-columns:1fr 1fr;} }
@media screen and (max-width:767px){
  .dm-steps{grid-template-columns:1fr 1fr; gap:6px; margin-bottom:28px;}
  /* 2026-11-12: 맨 아래까지 내려도 떠 있는 카톡·TOP 버튼(아래 136px)이 하단 정보 마지막 줄을 가리지 않게 */
  body #footer{padding-bottom:150px;}
  .dm-steps li{padding:10px; font-size:13px;}
  /* 2026-11-12: '지금 결제하실 예약금' 이 길어져 한 줄에 안 들어감 → 이름을 금액 위에 */
  .pay_people_box .pay_bottom .total_box{flex-direction:column; align-items:flex-end; gap:2px;}
  /* 2026-11-12: 총 인원 +/- 버튼(32px) — 모양은 그대로, 손가락이 닿는 범위만 44px 로 */
  body .pay_people_box .qty_btn{position:relative;}
  body .pay_people_box .qty_btn::after{content:""; position:absolute; inset:-6px; border-radius:50%;}
}

/* ───────── 게시판 글 보기 · 버튼 · 검색 (skin.css 보다 뒤에 읽힘) ───────── */
.basic_board_view .bbs_view{border-top:1px solid #000;}
.basic_board_view .bbs_view .tit{padding:28px 0;}
.basic_board_view .bbs_view .tit .left em{font-family:var(--dm-title-font); font-weight:400; font-size:26px; line-height:1.4; color:#000; word-break:keep-all;}
.basic_board_view .bbs_view .tit .left p{margin-top:12px; font-size:14px; color:#888;}
.basic_board_view .bbs_view .tit .right{border-left-color:#eee;}
.basic_board_view .bbs_view .tit .right p{font-size:12px; color:#999;}
.basic_board_view .bbs_view .tit .right em{margin-top:4px; font-size:20px; color:#000; font-variant-numeric:tabular-nums;}
.basic_board_view .bbs_view td{padding:36px 20px; font-size:16px; line-height:1.85; color:#333;}
.admin_btn a{display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:96px; height:42px; padding:0 22px; border:1px solid #ccc; border-radius:999px; background:#fff; color:#222; font-size:14px; font-weight:600; line-height:1;}
.admin_btn a:hover{border-color:#000;}
.admin_btn a.black_btn{background:#000; border-color:#000; color:#fff;}
.bbs_search_wrap{margin-top:48px; padding:24px 0; border:0; border-top:1px solid #e6e6e6; background:transparent;}
.bbs_search_wrap .bbs_search .input_txt, .bbs_search_wrap .bbs_search select{height:40px; border-radius:6px; border-color:#ddd; background:#fff;}
.bbs_search_wrap .bbs_search select:focus, .bbs_search_wrap .bbs_search .input_txt:focus{border-color:#000; outline:none;}
.bbs_search_wrap .search_btn{height:40px; line-height:40px; border-radius:6px; background:#000;}
.basic_board_list{border-top:1px solid #000;}
.basic_board_list td.left a{color:#222;}
@media screen and (max-width:767px){
  .basic_board_view .bbs_view .tit{padding:20px 0;}
  .basic_board_view .bbs_view .tit .left em{font-size:20px;}
  .basic_board_view .bbs_view .tit .left p{font-size:13px;}
  .basic_board_view .bbs_view td{padding:24px 8px; font-size:15px; line-height:1.8;}
  .admin_btn a{min-width:80px; height:38px; padding:0 16px; font-size:13px;}
  .bbs_search_wrap{margin-top:32px; padding:18px 0;}
  .bbs_search_wrap .bbs_search .input_txt, .bbs_search_wrap .bbs_search select, .bbs_search_wrap .search_btn{height:38px; line-height:38px;}
}

/* 태블릿: 오른쪽 좁은 칸에서 요금이 두 줄로 꺾이던 것 → 그 칸의 요금 줄은 숨기고(본문 쪽에 같은 정보) 제목만 작게 */
@media screen and (max-width:1200px){
  .product_payment_wrap .dm-side-fare, .product_payment_wrap a.dm-side-link{display:none;}
  .product_payment_wrap .package_title{font-size:18px;}
}

/* ───────── 상품 페이지: 날짜별 숙소 (2026-11-12, item.skin.php · dm_stay.inc.php) ───────── */
.dm-stay{margin-top:36px; padding-top:30px; border-top:1px solid #eee;}
.dm-stay-table{width:100%; border-collapse:collapse; table-layout:fixed; font-size:14px; line-height:1.5; text-align:left; word-break:keep-all;}
.dm-stay-table col.c1{width:32%;}
.dm-stay-table col.c2{width:36%;}
.dm-stay-table col.c3{width:32%;}
.dm-stay-table thead th{height:44px; padding:0 14px; background:#000; color:#fff; font-size:13px; font-weight:600;}
.dm-stay-table thead th:first-child{border-radius:6px 0 0 0;}
.dm-stay-table thead th:last-child{border-radius:0 6px 0 0;}
.dm-stay-table tbody th, .dm-stay-table tbody td{padding:12px 14px; border-bottom:1px solid #eee; color:#444; vertical-align:top;}
.dm-stay-table tbody tr:nth-child(even){background:#fafafa;}
.dm-stay-table tbody th{font-weight:400;}
.dm-stay-table tbody th b{display:block; font-size:12px; font-weight:600; color:#888;}
.dm-stay-table tbody th span{display:block; font-weight:700; color:#000;}
.dm-stay-table em{display:block; margin-top:3px; font-style:normal; font-size:12px; line-height:1.45; color:#888;}
@media screen and (max-width:767px){
  .dm-stay{margin-top:28px; padding-top:24px;}
  .dm-stay-table{font-size:13px;}
  .dm-stay-table thead th{height:42px; padding:0 10px; font-size:12px;}
  .dm-stay-table tbody th, .dm-stay-table tbody td{padding:10px;}
  .dm-stay-table em{font-size:11px;}
}
