.attraction-card{
  display:flex;
  gap:16px;
  margin-bottom:20px;
}
/* pc 관광지 사이즈조절*/
.attraction-card img{
  width:500px;
  height:200px;
  object-fit:cover;
  border-radius:10px;
}

.attraction-text p{
  margin:6px 0 4px;
  font-size:14px;
  color:#555;
}

.attraction-text small{
  color:#888;
}

/* 모바일 */
@media (max-width:768px){
  .attraction-card{
    flex-direction:column;
  }
  .attraction-card img{
    width:100%;
    height:180px;
  }
}

.tourist-title{
  font-family: 'UhBeeSeulvely', 'NanumSquareRound', sans-serif;
  font-size: 22px;
  font-weight: normal;
  color: #1f2937;
  margin-bottom: 8px;
}
/* =============================
   힐링 코스 섹션
============================= */


.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
}

.section-desc {
  margin-top: 10px;
  color: #666;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.course-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #2c7a7b;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 20px;
}

.course-title {
  font-size: 20px;
  font-weight: 600;
}

.course-summary {
  margin: 8px 0 16px;
  color: #555;
}

.course-info {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 14px;
}

.course-info li {
  margin-bottom: 6px;
}

.course-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* =====================================================
   Tourist page – Attraction list modernize (override)
   기존 구조 유지 + 카드형 그리드로 통일
   ===================================================== */

.attraction-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* 카드 자체를 '세로 카드'로 변경 */
.attraction-card{
  display:flex;
  flex-direction: column;   /* ✅ 가로배치 → 세로배치 */
  gap: 0;
  margin: 0;                /* grid가 gap을 담당 */
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* 이미지: 고정 500 제거, 카드 상단 커버로 */
.attraction-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;         /* 카드가 라운드 */
}

/* 본문 패딩 */
.attraction-text{
  padding: 14px 16px 16px;
}

/* 제목 크기: 조금 줄여서 통일감 */
.tourist-title{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

/* 설명: 너무 길어지면 ‘리스트’ 느낌 깨져서 3~4줄 정도만 */
.attraction-text p{
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color:#555;

  display: -webkit-box;
  -webkit-line-clamp: 4;    /* ✅ PC에서 깔끔 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 거리/시간 메타 */
.meta-row small{
  color:#6b7280;
  font-weight: 700;
}

/* 반응형 */
@media (max-width: 900px){
  .attraction-grid{
    grid-template-columns: 1fr;
  }
  .attraction-card img{
    height: 200px;
  }
}
/* =====================================================
   Tourist – one-page solution (card + expand)
   ===================================================== */

/* 그리드 */
.attraction-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 1100px){
  .attraction-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .attraction-grid{ grid-template-columns: 1fr; }
}

/* 카드 */
.attraction-card{
  display:flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.attraction-card img{
  width:100%;
  height: 200px;
  object-fit: cover;
}

/* 본문 */
.attraction-text{
  padding: 14px 16px 16px;
}

.tourist-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.attraction-summary{
  margin: 0 0 10px;
  color: #555;
  line-height: 1.65;
  font-size: 13.5px;

  display:-webkit-box;
  -webkit-line-clamp: 2;      /* 처음엔 2줄만 */
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.meta-row small{
  color:#6b7280;
  font-weight: 700;
}

/* 액션 */
.attraction-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-map,
.btn-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration:none;
  cursor:pointer;
}

.btn-map{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #111;
}

.btn-more{
  border: 1px solid rgba(0,0,0,.12);
  background: #f8fafc;
  color: #111;
}

/* 펼쳐진 상세 */
.attraction-more{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,.12);
}

.attraction-more p{
  margin: 0;
  color:#444;
  font-size: 13.5px;
  line-height: 1.7;
}
/* ✅ 관광지 카드: 2개씩 3줄(PC) */
.attraction-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start; /* ✅ stretch 해제: 각 카드 높이 독립 */
}

/* 태블릿/모바일은 1열로 */
@media (max-width: 900px){
  .attraction-grid{
    grid-template-columns: 1fr;
  }
}
/* 카드 내부 정렬: 버튼을 항상 아래로 */
.attraction-text{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.attraction-actions{
  margin-top: auto;   /* ✅ 핵심: 버튼을 맨 아래로 */
  padding-top: 10px;
}
.attraction-card img{
  height: 210px;      /* 200~230 사이 취향 */
  object-fit: cover;
}
/* =====================================================
   ✅ 힐링 코스 모달 (new)
   ===================================================== */
.course-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.course-modal.is-open{
  display: block;
}

.course-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.course-modal__dialog{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 28px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}

.course-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.course-modal__head{
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.course-modal__badge{
  display: inline-flex;
  align-items:center;
  justify-content:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #2c7a7b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.course-modal__title{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.course-modal__subtitle{
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.course-modal__body{
  padding: 18px 20px 20px;
}

.course-modal__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.course-modal__box{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: #fafafa;
}

.course-modal__boxTitle{
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #111;
}

.course-modal__route,
.course-modal__meta{
  margin: 0;
  padding-left: 18px;
  color: #444;
  font-size: 13.5px;
  line-height: 1.65;
}

.course-modal__desc{
  margin-top: 8px;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
}

.course-modal__actions{
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.course-modal__btn{
  display: inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #111;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.course-modal__btn--primary{
  background: #111;
  color: #fff;
  border-color: #111;
}

@media (max-width: 640px){
  .course-modal__grid{
    grid-template-columns: 1fr;
  }
}
/* ===== 모달 썸네일(상단 이미지) ===== */
.course-modal__media{
  position: relative;
  height: 170px;          /* 160~190 취향 */
  overflow: hidden;
  background: #f3f4f6;    /* 이미지 로딩 전 */
}

.course-modal__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-modal__mediaShade{
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,0) 55%);
}

/* 헤더 패딩 살짝 보정(이미지 붙었으니 상단 여백 줄이기) */
.course-modal__head{
  padding-top: 16px;
}
/* =========================
   힐링 코스 섹션 강조
   ========================= */

/* 섹션 배경을 살짝 분리(PC에서 더 효과) */
.course-section{
  position: relative;
}

.course-section::before{
  content:"";
  position:absolute;
  inset: -18px -18px -10px -18px;   /* 패널 안에서 살짝 번지는 느낌 */
  background: radial-gradient(700px 260px at 30% 0%, rgba(44,122,123,.12), transparent 60%),
              radial-gradient(700px 260px at 70% 0%, rgba(0,0,0,.06), transparent 60%);
  border-radius: 18px;
  pointer-events: none;
  z-index: 0;
}

.course-section > *{
  position: relative;
  z-index: 1;
}


/* =========================
   힐링 코스 카드: 클릭 가능한 느낌
   ========================= */
.course-card{
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}


/* hover(PC) */
@media (hover:hover){
  .course-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0,0,0,.12);
    border-color: rgba(44,122,123,.35);
  }

}

/* 클릭/터치 피드백 */
.course-card:active{
  transform: translateY(-1px);
}

/* 키보드 포커스(접근성) */
.course-card:focus{
  outline: none;
}
.course-card:focus-visible{
  box-shadow: 0 0 0 3px rgba(44,122,123,.25), 0 18px 34px rgba(0,0,0,.10);
  border-color: rgba(44,122,123,.45);
}
.course-card h3{
  transition: color .15s ease;
}

@media (hover:hover){
  .course-card:hover h3{
    color: #2c7a7b; /* 이미 쓰는 추천 컬러 */
  }
}
#courseModalBadge[hidden] { display: none !important; }


.section-title{
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;

  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 14px;
}
.course-modal__hint{
  margin-top: 6px;
  font-size: 12px;
  color: #777;
  text-align: right;
}

/* =========================
   모달 코스/정보 박스 고급화
   ========================= */

.course-modal__grid{
  gap: 14px;
}

.course-modal__box{
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.course-modal__boxTitle{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.2px;
  color: #111;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* 제목 왼쪽 포인트 */
.course-modal__boxTitle::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, .18);
  border: 2px solid rgba(10, 132, 255, .35);
}

/* ===== 코스 경로: 타임라인 스텝 ===== */
.course-modal__route{
  list-style:none;
  padding: 2px 0 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.course-modal__route li{
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: #222;
  line-height: 1.35;
}

/* 점 */
.course-modal__route li::before{
  content:"";
  position:absolute;
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
}

/* 연결선 */
.course-modal__route li::after{
  content:"";
  position:absolute;
  left: 9px;
  top: 16px;
  width: 2px;
  height: calc(100% - 6px);
  background: rgba(0,0,0,.08);
}
.course-modal__route li:last-child::after{
  display:none;
}

/* ===== 정보: 칩 느낌 ===== */
.course-modal__meta{
  list-style:none;
  padding: 2px 0 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.course-modal__meta li{
  font-size: 13px;
  color: #222;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.05);
}

/* 모달 설명 문단도 살짝 정리 */
.course-modal__desc{
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #333;
}
/* ===== 미세 튜닝: 리스트가 입력창처럼 보이지 않게 ===== */

/* 박스: 그림자 조금 줄이고 테두리 정돈 */
.course-modal__box{
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.07);
}

/* 제목 포인트: 파란 점 너무 도드라지면 톤 다운 */
.course-modal__boxTitle::before{
  background: rgba(46, 125, 94, .14);   /* ✅ 은은한 그린 */
  border: 2px solid rgba(46, 125, 94, .28);
}

/* ===== 코스 경로: 타임라인이 더 "경로" 같게 ===== */
.course-modal__route li{
  padding-left: 26px;
}

.course-modal__route li::before{
  left: 7px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: rgba(46, 125, 94, .55);   /* ✅ 점을 경로 느낌 */
  box-shadow: 0 0 0 3px rgba(46, 125, 94, .12);
}

.course-modal__route li::after{
  left: 11px;
  top: 18px;
  width: 2px;
  background: rgba(46, 125, 94, .18);   /* ✅ 세로 라인 보이게 */
}

/* ===== 정보: "입력칸" 느낌 제거 + 카드칩 느낌 ===== */
.course-modal__meta li{
  background: rgba(46, 125, 94, .06);   /* ✅ 연그린 배경 */
  border: 1px solid rgba(46, 125, 94, .10);
  border-radius: 14px;
  padding: 9px 12px;
}

/* 정보 칩 사이 간격 약간만 줄여서 더 촘촘하게 */
.course-modal__meta{
  gap: 7px;
}

.course-modal__route li:first-child{
  font-weight: 600;
}
.course-modal__route li:first-child::before{
  background: #2e7d5e;
}


/* =========================
   모바일 모달 이미지 비율 조정
   ========================= */
@media (max-width: 768px){
  .course-modal__media{
    max-height: 180px;           /* ✅ 핵심 */
    overflow: hidden;
  }

  .course-modal__media img{
    width: 100%;
    height: 180px;
    object-fit: cover;           /* 비율 유지 + 크롭 */
  }
}
/* =========================
   모바일 모달 이미지 높이 줄이기 (현재 구조: div 배경이미지)
   ========================= */
@media (max-width: 768px){
  .course-modal__dialog{
    max-height: 92vh;
    overflow: hidden;
  }

  .course-modal__media{
    height: 170px;            /* ✅ 원하는 높이로 조절 (160~190 추천) */
    max-height: 170px;
    overflow: hidden;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* 내용은 스크롤로 */
  .course-modal__body{
    max-height: calc(92vh - 170px - 90px); /* 170:이미지, 90:헤더/여백 대략 */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* 모바일 모달창 버튼 폰트 사이즈*/
  .course-modal__btn{
	font-size : 11px;
  }

/* =========================
   FIX: 힐링 코스(course-card) 모바일 정렬 깨짐
   ========================= */
@media (max-width: 768px){

  /* ✅ (원인 제거) 카드 오른쪽 밀림 방지 */
  .course-card{
    right: auto !important;
    left: auto !important;
  }

  /* ✅ 모바일은 1열로 고정해서 삐뚤어짐/넘침 방지 */
  .course-list{
    grid-template-columns: 1fr !important;
  }

  /* ✅ 패딩 포함 폭 계산(간혹 1~2px 튐 방지) */
  .course-card{
    width: 100%;
    box-sizing: border-box;
  }

  /* (선택) 이중 container로 좌우가 답답하면 완화 */
  .course-section > .container{
    padding-left: 0;
    padding-right: 0;
  }
}
/* =========================
   Dark mode: course-card 테두리/분리감 보강
   ========================= */

/* 1) 자동 다크(브라우저/OS) */
@media (prefers-color-scheme: dark){
  .course-card{
    border-color: rgba(255,255,255,.14) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
  }

  /* hover 테두리도 다크에서 너무 안 튀면 보강 */
  @media (hover:hover){
    .course-card:hover{
      border-color: rgba(44,122,123,.55) !important;
      box-shadow: 0 18px 34px rgba(0,0,0,.45);
    }
  }
}

/* 2) (혹시 수동 다크 클래스/속성 쓰는 경우까지 커버) */
body.dark .course-card,
html.dark .course-card,
[data-theme="dark"] .course-card,
.theme-dark .course-card{
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

/* === FORCE: Dark border for course-card (파일 맨 끝에) === */
@media (prefers-color-scheme: dark){
  .course-card{
    border: 1px solid rgba(255,255,255,1) !important;
    box-shadow:
      0 10px 26px rgba(0,0,0,.35),
      inset 0 0 0 1px rgba(255,255,255,.06);
  }
  /* 모달 전체 배경(내용 영역) */
  .course-modal{
    color: rgba(255,255,255,.92);
  }

  /* 모달 콘텐츠(만약 래퍼가 따로 있으면 같이 먹음) */
  .course-modal__body{
    background: rgba(0,0,0,.55) !important;
  }

  /* grid 안 박스(코스 경로/정보 박스) */
  .course-modal__box{
    background: rgba(0,0,0,.35) !important;
    border: 1px solid rgba(255,255,255,1) !important; /* 카드처럼 확실하게 */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  }

  /* 박스 안 제목/라벨 텍스트 대비 */
  .course-modal__box h3,
  .course-modal__box .ttl,
  .course-modal__box strong{
    color: rgba(255,255,255,.95) !important;
  }

  .course-modal__box p,
  .course-modal__box li,
  .course-modal__box span{
    color: rgba(255,255,255,.80) !important;
  }

  /* 정보 줄(칩/라인)들이 있다면 경계 보강 */
  .course-modal__box .info-row,
  .course-modal__box .info-item{
    border-color: rgba(255,255,255,.22) !important;
  }

  /* 설명 영역 */
  .course-modal__desc{
    color: rgba(255,255,255,.85) !important;
  }

  /* 액션 영역(버튼 라인/구분선) */
  .course-modal__actions{
    border-top: 1px solid rgba(255,255,255,.22) !important;
  }

  /* 닫기 버튼(아이콘/테두리) */
  .course-modal__close{
    color: rgba(255,255,255,.92) !important;
    border-color: rgba(255,255,255,.35) !important;
  }
}

