/* =====================================================
   속초피크 메인 리뉴얼 — main_new.css
   Aesthetic: 에디토리얼 매거진 × 속초 해양감성
   Typography: Bebas Neue (display) + Noto Sans KR (body)
   Palette: Ink black × Warm fog × Brand red × Ocean navy
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+KR:wght@300;400;500;600;700;900&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

/* ══ CSS 변수 ══ */
:root {
  --red:       #e8392a;
  --red-dk:    #c0281b;
  --ink:       #111111;
  --ink-soft:  #222222;
  --fog:       #f5f4f0;
  --fog-2:     #eceae4;
  --steel:     #888888;
  --steel-lt:  #bbbbbb;
  --white:     #ffffff;
  --ocean:     #0b3d5a;
  --ocean-lt:  #d0eaf5;
  --seafoam:   #00b4d8;
  --sand:      #f9f3ea;

  --f-display: 'Bebas Neue', cursive;
  --f-serif:   'Playfair Display', Georgia, serif;
  --f-body:    'Noto Sans KR', sans-serif;

  --r:     10px;
  --r-lg:  18px;
  --t:     .28s cubic-bezier(.4,0,.2,1);
  --sh:    0 2px 18px rgba(0,0,0,.07);
  --sh-lg: 0 10px 42px rgba(0,0,0,.13);

  --max-w: 1280px;
  --gap:   24px;
}

/* ══ 리셋 ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); background: var(--fog); color: var(--ink); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font-family: var(--f-body); cursor: pointer; border: none; background: none; }

/* ══ 공통 wrapper ══ */
.main-wrap { position: relative; }

.inner,
.sec-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ══════════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════════ */
.main_slider { position: relative; width: 100%; }

.mainSwiper {
  height: 100svh;
  min-height: 540px;
  max-height: 920px;
}

/* 슬라이드 이미지 + Ken Burns */
.swiper-slide .slider_img {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  overflow: hidden;
}
.swiper-slide .slider_img > img,
.swiper-slide .slider_img > a > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform 7s ease;
  pointer-events: none;
}
.swiper-slide-active .slider_img > img,
.swiper-slide-active .slider_img > a > img {
  transform: scale(1);
}

/* 그라디언트 오버레이 */
.swiper-slide .slider_img::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 70%),
    linear-gradient(to top,   rgba(0,0,0,.5) 0%, transparent 60%);
  pointer-events: none;
}

/* ── 슬라이드 타이틀 ── */
.swiper-slide .title {
  position: absolute;
  bottom: 13%; left: 7%;
  z-index: 10;
  max-width: 640px;
}

/* 이벤트 배지 */
.swiper-slide .title .event {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--f-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.swiper-slide .title .event img {
  display: inline; vertical-align: middle; height: 14px; margin-left: 4px;
}

/* H1 타이틀 */
.swiper-slide .title h1 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5.5vw, 5.8rem);
  line-height: 1.0;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s .25s ease, transform .75s .25s ease;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.swiper-slide .title h1 img {
  display: inline-block; height: .75em; vertical-align: middle; filter: brightness(10);
}
.swiper-slide-active .title h1 { opacity: 1; transform: translateY(0); }

/* 서브 텍스트 */
.swiper-slide .title span:not(.event) {
  display: block;
  font-size: clamp(.82rem, 1.3vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s .5s ease, transform .75s .5s ease;
}
.swiper-slide-active .title span:not(.event) { opacity: 1; transform: translateY(0); }

/* ── [수정] 메인 슬라이더 CTA 버튼 — 그누보드 전역 스타일과 충돌 격리 ── */
.main_slider .swiper-slide .title a:not(.scroll-btn) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 24px !important;
  padding: 13px 28px !important;
  background: var(--white) !important;
  color: var(--ink) !important;
  font-size: .8rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.2) !important;
  transition: background var(--t), color var(--t), transform var(--t) !important;
  text-decoration: none !important;
  line-height: normal !important;
  /* 그누보드 button/a 기본 리셋 */
  outline: none;
}
.main_slider .swiper-slide .title a:not(.scroll-btn):hover {
  background: var(--red) !important;
  color: var(--white) !important;
  transform: translateY(-2px) !important;
}

/* SCROLL DOWN 버튼 */
.scroll {
  position: absolute; bottom: 6%; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .6rem; font-weight: 600; letter-spacing: .2em;
  animation: scrollAnim 2.2s ease-in-out infinite;
  cursor: pointer;
}
.scroll-btn span { display: block; }
.scroll-btn img  { width: 18px; filter: invert(1) brightness(3); }
@keyframes scrollAnim {
  0%,100% { opacity: .7; transform: translateY(0); }
  50%     { opacity: 1;  transform: translateY(9px); }
}

/* ── 메인 슬라이더 전용 nav 버튼
   전역 .swiper-button 대신 .main_slider 안으로 선택자를 좁혀
   다른 Swiper 인스턴스와 충돌 방지 + 슬라이더 밖으로 절대 안 나감 */
.main_slider .swiper-button-next,
.main_slider .swiper-button-prev {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;          /* Swiper 기본 margin-top 제거 */
  z-index: 10;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  background: rgba(255,255,255,.14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white) !important;
  transition: background var(--t), transform var(--t);
  /* PC 기본: 숨김 — JS toggleNav로 제어 */
  display: none;
}
.main_slider .swiper-button-prev { left: 24px !important; right: auto !important; }
.main_slider .swiper-button-next { right: 24px !important; left: auto !important; }

.main_slider .swiper-button-next:hover,
.main_slider .swiper-button-prev:hover {
  background: rgba(255,255,255,.28) !important;
  transform: translateY(-50%) scale(1.1) !important;
}
.main_slider .swiper-button-next::after,
.main_slider .swiper-button-prev::after {
  font-size: 12px !important;
  font-weight: 900;
}

.swiper-pagination-bullet {
  background: rgba(255,255,255,.5) !important;
  opacity: 1 !important; width: 8px; height: 8px;
}
.swiper-pagination-bullet-active {
  background: var(--white) !important;
  width: 28px !important; border-radius: 4px !important;
  transition: width .35s;
}

/* ══════════════════════════════════════════════
   섹션 공통 헤더 (.title)
══════════════════════════════════════════════ */
section { padding: 88px 0; }

/* WHERE 섹션 타이틀 */
#place .title,
#food .title,
#accomodation .title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

#place .title h2,
#food .title h2,
#accomodation .title h2 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--ink);
}

#place .title span,
#food .title span,
#accomodation .title span {
  font-size: .82rem;
  color: var(--steel);
  font-weight: 300;
  margin-top: 6px;
  display: block;
}

/* MORE 링크 */
#food .title .right a,
#accomodation .title .right a:not(.left_button):not(.right_button) {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: color var(--t), border-color var(--t);
}
#food .title .right a:hover { color: var(--red); border-color: var(--red); }

/* ══════════════════════════════════════════════
   WHERE 섹션
══════════════════════════════════════════════ */
#place {
  background: var(--white);
}

/* 카테고리 탭 */
.tab.tab-place {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0;
  margin-bottom: 32px;
}

.tab.tab-place li {
  cursor: pointer;
}

.tab.tab-place li a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px 8px 12px;
  border: 1.5px solid var(--fog-2);
  border-radius: 30px;
  background: var(--white);
  font-size: .78rem; font-weight: 500;
  color: var(--steel);
  transition: all var(--t);
  white-space: nowrap;
}
.tab.tab-place li a .img { width: 22px; height: 22px; flex-shrink: 0; }
.tab.tab-place li a .img img { width: 100%; height: 100%; object-fit: contain; }
.tab.tab-place li:hover a,
.tab.tab-place li.active a {
  background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 700;
}

/* 매거진형 그리드 */
.banner ul.tab-place-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

/* 첫 번째 아이템 스팬 */
.banner ul.tab-place-content li:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.banner ul.tab-place-content li:first-child .photo {
  aspect-ratio: 1 / 1.02;
}

.banner ul.tab-place-content li {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--fog-2);
  cursor: pointer;
}

.banner ul.tab-place-content li .photo {
  width: 100%;
  aspect-ratio: 2.9 / 3;
  overflow: hidden;
  position: relative;
}
.banner ul.tab-place-content li .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.banner ul.tab-place-content li:hover .photo img { transform: scale(1.07); }

/* 조회수 배지 */
.banner ul.tab-place-content li .photo .view_cnt {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  color: rgba(255,255,255,.9);
  font-size: .6rem; font-weight: 500;
  padding: 3px 8px; border-radius: 20px;
}

/* 텍스트 오버레이 */
.banner ul.tab-place-content li .desc {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 100%);
  opacity: 0; transition: opacity var(--t);
}
.banner ul.tab-place-content li:first-child .desc,
.banner ul.tab-place-content li:hover .desc { opacity: 1; }

.banner ul.tab-place-content li .desc h3 {
  font-size: .92rem; font-weight: 700; color: var(--white); line-height: 1.4; margin-bottom: 4px;
}
.banner ul.tab-place-content li .desc p {
  font-size: .72rem; color: rgba(255,255,255,.72); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 숨김 처리 */
.banner ul.tab-place-content li.hidden { display: none; }

/* ══════════════════════════════════════════════
   FOOD 섹션
══════════════════════════════════════════════ */
#food { background: var(--fog); }

#food .title .left { display: flex; flex-direction: column; }

#food .banner ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

#food .banner ul li {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform var(--t), box-shadow var(--t);
  counter-increment: food-counter;
  position: relative;
}
#food .banner ul { counter-reset: food-counter; }
#food .banner ul li:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

#food .banner ul li a { display: block; }

#food .banner ul li .photo {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative;
}
#food .banner ul li .photo img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .6s;
}
#food .banner ul li:hover .photo img { transform: scale(1.07); }

/* 순위 번호 */
#food .banner ul li .photo::before {
  content: counter(food-counter, decimal-leading-zero);
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--f-display);
  font-size: 1.3rem; letter-spacing: .02em;
  width: 34px; height: 34px;
  background: var(--red); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  padding-top: 3px;
}

#food .banner ul li .desc { padding: 16px 18px 20px; }
#food .banner ul li .desc h4 {
  font-size: .95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4;
}
#food .banner ul li .desc .desc_detail p {
  font-size: .78rem; color: var(--steel); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ══════════════════════════════════════════════
   [신규] 광고 배너 섹션 #ad-banner
══════════════════════════════════════════════ */
#ad-banner {
  background: linear-gradient(135deg, #0b3d5a 0%, #0d5278 50%, #0b3d5a 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* 배경 장식 패턴 */
#ad-banner::before {
  content: 'AD';
  position: absolute;
  top: -20px; right: 40px;
  font-family: var(--f-display);
  font-size: clamp(120px, 18vw, 220px);
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: .06em;
}

/* 상단 광고 헤더 */
.ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.ad-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--seafoam);
  text-transform: uppercase;
}
.ad-label::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--seafoam);
}

.ad-header-left h2 {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: .04em;
}

.ad-header-left p {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  font-weight: 300;
  margin-top: 4px;
}

/* 파트너 신청 CTA 버튼 */
.ad-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--seafoam);
  color: var(--ink) !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  border-radius: 6px;
  border: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 20px rgba(0,180,216,.35);
}
.ad-cta-btn:hover {
  background: #ffffff;
  color: var(--ocean) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,180,216,.45);
}
.ad-cta-btn .arrow {
  font-size: 1rem;
  transition: transform var(--t);
}
.ad-cta-btn:hover .arrow { transform: translateX(4px); }

/* 광고 슬라이더 영역 */
.ad-slider-wrap {
  padding: 24px 48px 36px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.adSwiper { overflow: visible !important; }

/* 광고 슬라이드 카드 */
.adSwiper .swiper-slide {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 5/2;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
}

.adSwiper .swiper-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.adSwiper .swiper-slide:hover img { transform: scale(1.04); }

/* 광고 슬라이드 오버레이 */
.adSwiper .swiper-slide .ad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.6) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  pointer-events: none;
}

.adSwiper .swiper-slide .ad-badge {
  display: inline-block;
  background: var(--seafoam);
  color: var(--ink);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  width: fit-content;
}

.adSwiper .swiper-slide .ad-slide-title {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.adSwiper .swiper-slide .ad-slide-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.72);
  font-weight: 300;
}

/* 슬라이드 네비게이션 도트 */
.ad-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

/* 아무 광고가 없을 때 플레이스홀더 */
.ad-placeholder {
  aspect-ratio: 5/2;
  border-radius: var(--r-lg);
  border: 2px dashed rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.35);
  font-size: .82rem;
  font-weight: 300;
}
.ad-placeholder .ph-icon {
  font-size: 2.4rem;
  opacity: .4;
}
.ad-placeholder .ph-label {
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.22);
}

/* 하단 파트너 유도 스트립 */
.ad-partner-strip {
  background: rgba(0,0,0,.28);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 48px;
}

.ad-partner-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ad-partner-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ad-partner-copy strong {
  font-size: clamp(.9rem, 1.6vw, 1.08rem);
  font-weight: 700;
  color: var(--white);
}

.ad-partner-copy span {
  font-size: .75rem;
  color: rgba(255,255,255,.48);
  font-weight: 300;
}

.ad-stats {
  display: flex;
  gap: 28px;
  align-items: center;
}

.ad-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ad-stat-item .num {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: var(--seafoam);
  letter-spacing: .04em;
  line-height: 1;
}

.ad-stat-item .lbl {
  font-size: .6rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  letter-spacing: .1em;
  white-space: nowrap;
}

.ad-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 6px;
  color: var(--white) !important;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none !important;
  transition: all var(--t);
  white-space: nowrap;
  flex-shrink: 0;
}
.ad-strip-cta:hover {
  background: var(--white);
  color: var(--ocean) !important;
  border-color: var(--white);
}

/* ══════════════════════════════════════════════
   ACCOMMODATION 섹션
══════════════════════════════════════════════ */
#accomodation {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* 배경 워터마크 */
#accomodation::before {
  content: 'STAY';
  position: absolute; top: -40px; right: -30px;
  font-family: var(--f-display);
  font-size: min(22vw, 280px);
  color: rgba(255,255,255,.03);
  line-height: 1; pointer-events: none; user-select: none;
  letter-spacing: .04em;
}

#accomodation .title { border-bottom-color: rgba(255,255,255,.12); }
#accomodation .title h2 { color: var(--white); }
#accomodation .title > span { color: rgba(255,255,255,.45); }

/* 네비게이션 화살표 */
#accomodation .title .right {
  display: flex; gap: 10px; align-items: center;
}
.left_button,
.right_button {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
  cursor: pointer;
}
.left_button:hover,
.right_button:hover { background: var(--white); border-color: var(--white); }
.left_button img  { transform: rotate(180deg); width: 16px; filter: invert(1) brightness(3); }
.right_button img { width: 16px; filter: invert(1) brightness(3); }
.left_button:hover img,
.right_button:hover img { filter: invert(0) brightness(0); }

/* Swiper overflow 해제 */
.accomSwiper { overflow: visible !important; }

/* 숙박 슬라이드 카드 */
.accom_swiper .swiper-slide {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  overflow: hidden;
  transition: background var(--t), transform var(--t);
}
.accom_swiper .swiper-slide:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-5px);
}

.accom_swiper .swiper-slide a { display: block; }

.accom_swiper .swiper-slide .photo {
  width: 100%; aspect-ratio: 3/2; overflow: hidden; position: relative;
}
.accom_swiper .swiper-slide .photo img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .6s;
}
.accom_swiper .swiper-slide:hover .photo img { transform: scale(1.06); }

/* BEST / HOT 배지 */
.accom_swiper .swiper-slide .photo .popular {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.accom_swiper .swiper-slide .photo .popular span {
  font-size: .58rem; font-weight: 700; letter-spacing: .12em;
  padding: 3px 9px; border-radius: 3px;
}
.accom_swiper .swiper-slide .photo .popular span:first-child {
  background: var(--red); color: var(--white);
}
.accom_swiper .swiper-slide .photo .popular span:last-child {
  background: #f59e0b; color: var(--white);
}

.accom_swiper .swiper-slide .desc { padding: 16px 18px 20px; }
.accom_swiper .swiper-slide .desc h4 {
  font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 6px; line-height: 1.4;
}
.accom_swiper .swiper-slide .desc .desc_detail p {
  font-size: .76rem; color: rgba(255,255,255,.46); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ══════════════════════════════════════════════
   TICKER 띠배너
══════════════════════════════════════════════ */
#line {
  background: var(--red);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}
#line p {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: .3em;
  color: var(--white);
  animation: tickerMove 20s linear infinite;
}
#line p::after {
  content: attr(data-txt);
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   LOCAL MARKET 섹션 — [수정] 모바일 레이아웃 개선
══════════════════════════════════════════════ */
#market {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 540px;
  background: var(--white);
  padding: 0;
}

/* 왼쪽 이미지 패널 */
#market .left {
  position: relative;
  background: var(--ocean);
  overflow: hidden;
  /* [수정] 모바일에서 min-height 보장 */
  min-height: 220px;
}
#market .left .photo {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}
#market .left .photo img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: .4;
  mix-blend-mode: luminosity;
  filter: grayscale(.3);
}
#market .left .title {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 44px 38px;
  border: none; margin: 0;
}
#market .left .market_title {
  position: relative; z-index: 2;
}
/* 장식 선 */
#market .left .title::before {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--seafoam);
  margin-bottom: 14px;
}
#market .left .market_title h2 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  color: var(--white); line-height: 1; letter-spacing: .04em; margin-bottom: 12px;
}
#market .left .market_title span {
  font-size: .82rem; color: rgba(255,255,255,.62); font-weight: 300; line-height: 1.7;
}

/* 오른쪽 상품 패널 */
#market .right {
  padding: 44px 40px;
  display: flex; flex-direction: column;
  background: var(--white);
  /* [수정] 모바일에서 min-width 제거 */
  min-width: 0;
}

/* 탭 버튼 */
.tab-market {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab-market li {
  cursor: pointer;
}
.tab-market li span {
  display: inline-block;
  padding: 7px 18px;
  border: 1.5px solid var(--fog-2);
  border-radius: 24px;
  font-size: .78rem; font-weight: 500;
  color: var(--steel);
  transition: all var(--t);
  white-space: nowrap;
}
.tab-market li:hover span,
.tab-market li.active span {
  background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 700;
}

/* 마켓 Swiper
   ★ overflow:hidden 필수 — AJAX 재초기화 시 슬라이드가 왼쪽으로 밀리는 현상 방지 */
.marketSwiper {
  flex: 1;
  overflow: hidden !important;  /* Swiper 자체 overflow visible 덮어쓰기 */
  width: 100%;
}

/* 슬라이드가 absolute 상태로 쌓이지 않도록 wrapper 최소 높이 보장 */
.marketSwiper .swiper-wrapper {
  align-items: stretch;
}

.marketSwiper .swiper-slide {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--fog);
  transition: transform var(--t), box-shadow var(--t);
  /* 높이 고정으로 카드 크기 일관성 유지 */
  height: auto;
  display: flex;
  flex-direction: column;
}
.marketSwiper .swiper-slide:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.marketSwiper .swiper-slide a { display: flex; flex-direction: column; flex: 1; }

.marketSwiper .swiper-slide .photo {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  flex-shrink: 0;
  position: relative; /* 배지 absolute 기준점 */
}
.marketSwiper .swiper-slide .photo img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .55s;
  background: var(--fog-2);
}
.marketSwiper .swiper-slide:hover .photo img { transform: scale(1.07); }

/* 할인율 배지 */
.marketSwiper .swiper-slide .photo .discount-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  color: var(--white);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 3px;
  line-height: 1.4;
  z-index: 2;
}

.marketSwiper .swiper-slide .desc {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.marketSwiper .swiper-slide .desc .inner {
  padding: 0 !important;
  max-width: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.marketSwiper .swiper-slide .desc h4 {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
  /* ★ 텍스트 깨짐 수정: word-break 추가 */
  word-break: keep-all;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.marketSwiper .swiper-slide .desc .desc_detail {
  /* 고정 높이로 카드 레이아웃 균일 유지 */
  height: 2.4rem;
  overflow: hidden;
  margin-bottom: 8px;
}
.marketSwiper .swiper-slide .desc .desc_detail p {
  font-size: .72rem;
  color: var(--steel);
  line-height: 1.5;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.marketSwiper .swiper-slide .desc .price {
  margin-top: auto;
}
.marketSwiper .swiper-slide .desc .price p {
  font-size: .92rem;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}
/* 정가 취소선 */
.marketSwiper .swiper-slide .desc .price .consumer_price {
  font-size: .72rem;
  font-weight: 400;
  color: var(--steel-lt);
  text-decoration: line-through;
  margin-bottom: 2px;
}

/* 로딩/빈 슬라이드 */
.market-loading,
.market-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: var(--fog);
  border-radius: var(--r);
  color: var(--steel);
  font-size: .8rem;
}

/* 스크롤바 */
.swiper-scrollbar {
  background: var(--fog-2) !important;
  height: 3px !important; margin-top: 16px;
}
.swiper-scrollbar-drag { background: var(--ink) !important; }

/* ══════════════════════════════════════════════
   스크롤 Reveal 애니메이션
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ══════════════════════════════════════════════
   반응형
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .inner, .sec-inner { padding: 0 28px; }
  .banner ul.tab-place-content { grid-template-columns: repeat(3, 1fr); }
  .banner ul.tab-place-content li:first-child { grid-column: 1/3; }
  #market { grid-template-columns: 280px 1fr; }

  .ad-header { padding: 24px 28px 0; }
  .ad-slider-wrap { padding: 20px 28px 28px; }
  .ad-partner-strip { padding: 20px 28px; }
}

@media (max-width: 860px) {
  section { padding: 60px 0; }
  .inner, .sec-inner { padding: 0 20px; }
  #food .banner ul { grid-template-columns: repeat(2, 1fr); }
  .banner ul.tab-place-content { grid-template-columns: repeat(2, 1fr); }
  .banner ul.tab-place-content li:first-child { grid-column: 1/3; }

  /* [수정] 마켓 모바일: 1열로 전환, 왼쪽 패널 상단 배치 */
  #market {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  #market .left {
    min-height: 200px;
    position: relative;
  }
  #market .left .title { padding: 28px 24px; }
  #market .right { padding: 28px 24px; }

  /* 광고 섹션 반응형 */
  .ad-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px 0;
  }
  .ad-slider-wrap { padding: 16px 20px 24px; }
  .ad-partner-strip { padding: 18px 20px; }
  .ad-partner-strip-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ad-stats { gap: 20px; }
  .adSwiper .swiper-slide { aspect-ratio: 3/2; }
}

@media (max-width: 600px) {
  .mainSwiper { max-height: 700px; }
  .swiper-slide .title { left: 5%; bottom: 11%; }
  .swiper-slide .title h1 { font-size: 2.5rem; }
  #food .banner ul { grid-template-columns: 1fr; }
  .banner ul.tab-place-content { grid-template-columns: 1fr; }
  .banner ul.tab-place-content li:first-child { grid-column: 1/2; grid-row: auto; }
  .banner ul.tab-place-content li:first-child .photo { aspect-ratio: 4/3; }

  /* [수정] 마켓 모바일 소형 */
  #market .right { padding: 20px 16px; }
  .tab-market { gap: 6px; }
  .tab-market li span { padding: 6px 12px; font-size: .72rem; }

  #place .title h2,
  #food .title h2,
  #accomodation .title h2 { font-size: 2.2rem; }

  /* 광고 섹션 소형 */
  .ad-header-left h2 { font-size: 1.6rem; }
  .ad-stats { gap: 14px; }
  .ad-stat-item .num { font-size: 1.1rem; }
  .adSwiper .swiper-slide { aspect-ratio: 4/3; }
  .adSwiper .swiper-slide .ad-overlay { padding: 16px 18px; }
  .adSwiper .swiper-slide .ad-slide-title { font-size: .92rem; }
}

/* ══════════════════════════════════════════════
   [충돌 격리] 그누보드 전역 .inner 가 마켓 카드 내부에
   max-width / margin / padding 을 강제 적용하지 못하도록 차단
   ※ main.marketAjax.php HTML에서 .inner를 제거했지만
      향후 재사용 혹은 다른 컴포넌트 보호용으로 유지
══════════════════════════════════════════════ */
.marketSwiper .swiper-slide .inner,
.marketSwiper .swiper-slide .desc .inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* 마켓 카드 — 그누보드 a 태그 전역 스타일 충돌 방지 */
.marketSwiper .swiper-slide a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit !important;
  text-decoration: none !important;
}