/* PC와 모바일 분기 */
.pc-only { display: block; }
.mobile-only { display: none; }

/*테마여행 카테고리 start*/
/* 기본 카테고리 래퍼 */
.category-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

.category-card {
    flex: 1 1 calc(20% - 16px); /* PC: 5개 */
    background-color: #f5f5f5;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    background-color: #e6f0ff;
    color: #F69832;
    transform: translateY(-3px);
}

.category-card.active {
    background-color: #F69832;
    color: #fff;
    box-shadow: 0 4px 12px rgba(246, 152, 50, 0.4);
    transform: translateY(-4px);
    border: 2px solid #e6791e;
}

.category-card.active .title {
    color: #fff;
}



/* 반응형 처리 */
@media (max-width: 1199px) {
    .category-card {
        flex: 1 1 calc(33.333% - 16px); /* 태블릿: 3개 */
    }
}
@media (max-width: 768px) {
    .category-card {
        flex: 1 1 calc(50% - 10px); /* 모바일: 2개 */
        font-size: 15px;
        padding: 25px 15px;
    }
}
@media (max-width: 480px) {
    .category-card {
        flex: 1 1 100%; /* 좁은 모바일: 1개 */
        padding: 20px 12px;
        font-size: 14px;
    }
}

/* 레이어 관련 */
.category-layer {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.category-layer.active {
    display: flex;
}

.layer-inner {
    background: #fff;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-sizing: border-box;
}

.layer-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.layer-category-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.layer-category-group {
    flex: 1 1 calc(25% - 20px); /* PC: 4개 */
    min-width: 200px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 10px;
    background: #fdfdfd;
    box-sizing: border-box;
}

/* 태블릿 대응 */
@media (max-width: 1024px) {
    .layer-category-group {
        flex: 1 1 calc(50% - 20px); /* 태블릿: 2개 */
    }
}

/* 모바일 대응 */
@media (max-width: 640px) {
    .layer-inner {
        padding: 20px;
    }

    .layer-category-group {
        flex: 1 1 100%; /* 모바일: 1개 */
    }

    .layer-child-wrap {
        justify-content: flex-start;
    }
}

.layer-parent {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
}

.layer-child-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.layer-child {
    background: #f3f3f3;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}


/* 반응형: 태블릿 */
@media (max-width: 1024px) {
    .layer-category-group {
        flex: 1 1 calc(50% - 20px); /* 2개씩 */
    }
}

/* 반응형: 모바일 */
@media (max-width: 640px) {
    .layer-inner {
        padding: 20px;
    }

    .layer-category-group {
        flex: 1 1 100%; /* 한 줄에 하나 */
    }

    .layer-child-wrap {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .layer-category-group {
        flex: 1 1 100%; /* 모바일에서는 세로로 */
    }
}


@media (max-width: 1024px) {
    .category-card {
        flex: 1 1 calc(50% - 10px); /* 태블릿: 2개 */
    }
}

@media (max-width: 600px) {
    .category-card {
        flex: 1 1 100%; /* 모바일: 1개 */
    }
}

.category-slider .swiper-slide a {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 20px;
	background: #f1f1f1;
	color: #333;
	font-size: 14px;
	white-space: nowrap;
	margin-right: 10px;
}

 
.swiper-free-mode > .swiper-wrapper {
  transition-timing-function: ease-out;
  margin: 0 auto;
  height: 50px; /* 모바일 슬라이드 높이 통일 */
}

.mobile-only.category-slider {
  border-top: 1px solid #ddd;
  margin-top: 10px; /* 아래 여백도 필요하면 */
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px; /* 아래 여백도 필요하면 */
}

.category-slider .swiper-slide {
  width: auto !important;
  height: auto;
  display: flex;
  align-items: center;
}

.category-slider .swiper-slide a {
  height: 34px;
  line-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.category-slider .swiper-slide a {
  display: block;
  padding: 6px 12px;
  margin: 0 5px;
  background: #f1f1f1;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  white-space: nowrap;
  border: 1px solid #ddd;
  height: 34px;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
}

/* 활성화된 슬라이드 링크 스타일 */
.category-slider .swiper-slide a.active,
.category-slider .swiper-slide a[style*="background:#F69832"] {
  background: #F69832;
  color: #fff;
  border-color: #F69832;
}
/*테마여행 카테고리 end*/



/*지역별 카테고리*/
.area_category-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    padding: 0 0;
    box-sizing: border-box;
}

.area_category-card {
    flex: 1 1 calc(16.66% - 15px); /* PC: 6개 */
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 20px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    box-sizing: border-box;
}

.area_category-card:hover {
    background-color: #e6f0ff;
    color: #F69832;
    transform: translateY(-2px);
}

.area_category-card.active {
    background-color: #F69832;
    color: #fff;
}

.area_category-card.active .title {
    color: #fff;
}


@media (max-width: 768px) {
  .pc-only { display: none; }
  .mobile-only { display: block; }
}
/* 모바일 슬라이드 스타일 개선 */

.swiper-free-mode > .swiper-wrapper {
  transition-timing-function: ease-out;
  margin: 0 auto;
  height: 50px; /* 모바일 슬라이드 높이 통일 */
}

.mobile-only.area_category-slider {
  border-top: 1px solid #ddd;
  margin-top: 10px; /* 아래 여백도 필요하면 */
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px; /* 아래 여백도 필요하면 */
}

.area_category-slider .swiper-slide {
  width: auto !important;
  height: auto;
  display: flex;
  align-items: center;
}

.area_category-slider .swiper-slide a {
  height: 34px;
  line-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.area_category-slider .swiper-slide a {
  display: block;
  padding: 6px 12px;
  margin: 0 5px;
  background: #f1f1f1;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  white-space: nowrap;
  border: 1px solid #ddd;
  height: 34px;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
}

/* 활성화된 슬라이드 링크 스타일 */
.area_category-slider .swiper-slide a.active,
.area_category-slider .swiper-slide a[style*="background:#F69832"] {
  background: #F69832;
  color: #fff;
  border-color: #F69832;
}


/* 슬라이드 좌우 화살표 색상 지정*/
.wrap_m0604 .event-slider .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;       /* 원형 */
  background-color: #F69832; /* ✅ 주황색 */
  color: #fff;              /* 아이콘 흰색 */
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 좌우 각각 위치 */
.wrap_m0604 .event-slider .slick-prev {
  left: -20px;
}
.wrap_m0604 .event-slider .slick-next {
  right: -20px;
}

/* 화살표 아이콘 (FontAwesome 기준) */
.wrap_m0604 .event-slider .slick-prev::before {
  content: '\f104'; /* ← 아이콘 */
  font-family: FontAwesome;
  color: #fff;
  font-size: 20px;
}
.wrap_m0604 .event-slider .slick-next::before {
  content: '\f105'; /* → 아이콘 */
  font-family: FontAwesome;
  color: #fff;
  font-size: 20px;
}

/* 슬라이드 좌우 화살표 색상 지정*/


/* ▣ 슬라이더 본체 */
.event-slider {
  width: 100%;
}

.slider-item {
  padding: 0 10px;
  box-sizing: border-box;
}

/* ▣ 카드 스타일 */
.card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-3px);
}

.slider-item {
  margin-bottom: 10px;
}

/* ▣ 카드 썸네일 */
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 220;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ▣ 좋아요 버튼 */
.card-thumb .btn-like {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ▣ 카드 내부 텍스트 */
.card-info {
  padding: 15px;
  flex: 1;
}
.tour-title {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}
.creator-info {
  font-size: 13px;
  color: #555;
}
.creator-info span {
  display: block;
  margin-bottom: 4px;
}
.creator-info i {
  margin-right: 5px;
  color: #999;
}
.card .tour-tags {
  height: auto !important;
  margin-top: 8px;
  font-size: 13px;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end; /* ✅ 오른쪽 정렬 핵심 */
  margin-right: 5px;          /* ✅ 오른쪽 여백 */
  margin-bottom: 12px;        /* ✅ 카드 하단과의 거리 확보 */
}

.tour-tags span {
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .tour-tags span {
    font-size: 11px;
    padding: 3px 6px;
  }
}


/* ▣ 이미지 없을 경우 blank 처리 */
.blank {
  background: #eee url('/img/logo-black.png') center center no-repeat;
  background-size: 60%;
  width: 100%;
  height: 100%;
}


/* 전체 섹션 공통 정렬 */
.title_cont.title_position {
  max-width: 1440px;
  margin: 0 auto 15px;
  padding: 0 20px;
}

@media(max-width:1500px){
.area_category-wrap{ padding:0 20px; max-width:100%} 	
	}
@media (max-width: 768px) {
    .wrap_m0605 .slider-item {
        width: calc(50% - 30px); /* 여백 축소 */
    }
}