/* components.css — 공통 UI 컴포넌트 */

/* 1. Section Title & List Nav */
.section-title {
  color: #242424;
}
.yz-h1 {  /* 목록 제목 줄 안의 h1 — 줄(.section-title .h4)의 글자 그대로 */
  font: inherit;
  color: inherit;
  margin: 0;
}
.section-title .breadcrumb-arrow {
  font-size: 1.25rem;
  position: relative;
  top: -2px;
  margin: 0 2px;
}
@media (max-width: 767px) {
  .section-title {
    font-size: 20px;
  }
  .section-title .breadcrumb-arrow {
    font-size: 1rem;
  }
}
.list-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ebebeb;
  border: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #242424;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
.list-nav-btn i {
  -webkit-text-stroke: 0.8px currentColor;
  display: flex;
}
.list-nav-btn:not(.swiper-button-disabled):hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.list-nav-btn.swiper-button-disabled {
  background-color: #fff;
  border-color: #f1f1f1;
  color: #ccc;
  cursor: default;
  pointer-events: none;
}
/* 2. Cards */
.card-img-box {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 26px;
  overflow: hidden;
  background-color: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 1;
}
.card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  transition: transform 0.4s;
}
.design-card:hover .card-bg {
  transform: scale(1.1);
}
.card-img-box .card-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ebebeb;
  border: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #242424;
  z-index: 5;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}
.card-img-box .card-slide-btn i {
  -webkit-text-stroke: 0.8px currentColor;
  display: flex;
}
.card-img-box:hover .card-slide-btn {
  opacity: 1;
  visibility: visible;
}
.card-img-box:hover .card-slide-btn.swiper-button-disabled {
  opacity: 0;
  visibility: hidden;
}
.card-img-box .card-slide-btn.prev { left: 10px; }
.card-img-box .card-slide-btn.next { right: 10px; }
/* Heart Icon */
.icon-heart {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 20px;
  height: 20px;
  z-index: 10;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.icon-heart i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease;
}
.icon-heart .icon-border { color: #ffffff; z-index: 2; }
.icon-heart .icon-fill   { color: rgba(0, 0, 0, 0.5); z-index: 1; }
.icon-heart.active .icon-fill { color: rgba(255, 0, 255, 0.8); }
/* Badges */
.badge-discount {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(var(--primary-rgb), 0.7);
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 0 0 16px;
  font-weight: 700;
  z-index: 10;
}
.badge-vendor {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 16px 0 0;
  z-index: 10;
}
.badge-distance {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: var(--trip-color);
  color: #fff;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 10;
}
.card-title {
  color: #242424;
  font-size: 16px;
  font-weight: 500;
}
.card-cate {
  font-size: 12px;
  background-color: var(--stay-color);
  border-radius: 12px;
}
.item-basic-list {
  font-size: 14px;
  font-weight: 400;
  color: #242424;
}
.item-basic-list i {
  color: var(--trip-color);
  margin-right: 4px;
}
.item-notice {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}
.multi-line-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 3em;
}
/* 3. Map UI & Overlays */
#nearMeMenu .offcanvas-body {
  display: block;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
#kakaoMap {
  width: 100% !important;
  height: 100% !important;
  background-color: #eee;
  z-index: 0;
}
.map-overlay-buttons {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 90%;
  max-width: 420px;
}
#nearCategoryGroup {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 8px;
  border-radius: 50px !important;
}
.map-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 50;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
.map-warning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
.warning-box {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  width: 85%;
  max-width: 320px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.warning-box .bi-exclamation-circle-fill { font-size: 2rem; }
.warning-box p { font-size: 16px; line-height: 1.5; }
.loading-box {
  background-color: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}
.loading-box .spinner-border { width: 1.5rem; height: 1.5rem; }
.btn-near-cat {
  border: 1px solid transparent;
  font-size: 14px;
  border-radius: 50px;
  margin: 0 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  font-weight: 500;
}
.btn-near-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn-near-cat.cat-all  { border-color: var(--primary-color); color: var(--primary-color); }
.btn-near-cat.cat-trip { border-color: var(--trip-color);    color: var(--trip-color);    }
.btn-near-cat.cat-stay { border-color: var(--stay-color);    color: var(--stay-color);    }
.btn-near-cat.cat-dish { border-color: var(--dish-color);    color: var(--dish-color);    }
.btn-near-cat.cat-all:hover,  .btn-near-cat.cat-all.active  { background-color: var(--primary-color); color: #fff; }
.btn-near-cat.cat-trip:hover, .btn-near-cat.cat-trip.active { background-color: var(--trip-color);    color: #fff; }
.btn-near-cat.cat-stay:hover, .btn-near-cat.cat-stay.active { background-color: var(--stay-color);    color: #fff; }
.btn-near-cat.cat-dish:hover, .btn-near-cat.cat-dish.active { background-color: var(--dish-color);    color: #fff; }
#mapMsg {
  z-index: 9999;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
#nearMeSwiper .card-img-box {
  height: 135px;
  border-radius: 0;
}
#nearMeSwiper .card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
#nearMeSwiper .card-title { flex: 1; }
/* 4. Wishlist / Grid & Coupon */
.wishlist-section {
  position: relative;
}
.wishlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 576px) {
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .wishlist-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1280px) {
  .wishlist-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.wishlist-login-icon        { font-size: 48px; opacity: 0.4; }
.wishlist-login-btn         { background-color: var(--primary-color); }
.wishlist-login-btn:hover   { background-color: #0099d6; color: #fff; }
.wishlist-section-title     { font-size: 18px; color: #242424; border-bottom: var(--bs-border-width) solid var(--bs-border-color); }
.wishlist-grid .design-card { min-width: 0; }
.empty-wishlist {
  background-color: #f8f9fa;
  border-radius: 20px;
  border: 1px dashed #d4d4d4;
  padding: 60px 20px;
}
.wishlist-empty-icon        { font-size: 36px; opacity: 0.5; }
.wishlist-empty-text        { font-size: 15px; }
.wishlist-spacer            { height: 60px; }
/* SweetAlert */
.alert-icon  { font-size: 11px; }
.swal2-icon  { font-size: 13px; }
.swal2-title { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 0; }
/* 지도 말풍선 */
.map-info-bubble {
  background-color: #fff;
  border: 1px solid var(--trip-color);
  border-radius: 20px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  bottom: 36px;
  z-index: 5 !important;
}
.map-info-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--trip-color);
}
/* 쿠폰함 리스트 그리드 */
#couponListWrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}
#couponListWrap .product-grid-item {
  width: 100%;
  min-width: 0;
  border-radius: 26px;
  background-color: #fff;
  overflow: hidden;
}
@media (max-width: 767px) {
  #couponListWrap { gap: 16px; }
}
/* 쿠폰 상세 뷰 */
#couponDetailContent .view-wrap        { padding-top: 1rem; padding-bottom: 4rem; }
#couponDetailContent .gallery-wrapper  { width: 100%; height: 546px; }
#couponDetailContent .cp-gallery-main  { width: 970px; height: 100%; flex-shrink: 0; }
#couponDetailContent .cp-gallery-main .swiper-pagination {
  position: absolute;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
#couponDetailContent .cp-gallery-main .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: #fff; opacity: 0.4;
  border-radius: 4px; transition: all 0.4s;
  margin: 0 !important;
}
#couponDetailContent .cp-gallery-main .swiper-pagination-bullet-active {
  width: 24px; opacity: 1;
}
#couponDetailContent .cp-gallery-thumbs {
  width: calc(100% - 960px - 20px);
  height: 100%;
  box-sizing: border-box;
}
#couponDetailContent .cp-gallery-thumbs .swiper-slide {
  height: calc((100% - 50px) / 6) !important;
  cursor: pointer;
}
#couponDetailContent .cp-gallery-thumbs .thumb-img {
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.5;
  filter: grayscale(30%);
}
#couponDetailContent .cp-gallery-thumbs .swiper-slide-thumb-active .thumb-img,
#couponDetailContent .cp-gallery-thumbs .swiper-slide:hover .thumb-img {
  border-color: var(--primary-color);
  opacity: 1;
  filter: grayscale(0%);
}
#cpDetailMap .map-info-bubble {
  padding: 6px 16px; font-size: 13px; font-weight: 700; color: #333;
  background-color: #fff; border: 1px solid var(--trip-color);
  border-radius: 20px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative; bottom: 45px; white-space: nowrap;
}
#cpDetailMap .map-info-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--trip-color);
}
/* Detail Page — Shared Components (상점 상세 · 쿠폰 창 공통) */
.alert {
  line-height: 1.6;
  font-weight: 500;
  border-radius: 12px !important;
  padding: 24px !important;
}
.detail-sections section { margin-bottom: 3rem; }
.detail-sections .text-secondary {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.6;
}
.section-head {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.view-img-box {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}
.view-img-box img { display: block; width: 100%; height: auto; border-radius: 0; }
.price-table th { background-color: #f8f9fa; font-weight: 600; font-size: 14px; color: #495057; }
.price-table td { font-size: 14px; }
.facility-simple-list .facility-icon { width: 24px; height: 24px; object-fit: contain; opacity: 0.8; }
.facility-simple-list .facility-text { font-size: 15px; color: #333; font-weight: 500; line-height: 1; }
.btn-circle-action {
  width: 34px;
  height: 34px;
  background-color: #f5f5f5 !important;
  transition: all 0.2s ease;
}
.btn-circle-action i { font-size: 14px; line-height: 1; }
.btn-circle-action:hover { background-color: #e0e0e0 !important; transform: translateY(-2px); }
.btn-circle-action .heart-icon { color: #ccc; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-circle-action:hover .heart-icon,
.btn-wishlist.active .heart-icon { color: #ff4081; transform: scale(1.1); }
.blog-review-item {
  display: flex;
  align-items: stretch;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.blog-review-item:hover { opacity: 0.7; }
.blog-review-item .blog-thumb {
  width: 120px; height: 120px;
  flex-shrink: 0; border-radius: 12px;
  overflow: hidden; background-color: #f0f0f0;
  margin-right: 20px;
}
.blog-review-item .blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-review-item .blog-content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  justify-content: flex-start;
  padding-top: 2px; padding-bottom: 2px;
}
.blog-review-item .blog-title {
  font-size: 16px; font-weight: 700; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 4px; margin-bottom: 6px; color: #222;
}
.blog-review-item .blog-desc {
  font-size: 14px; line-height: 1.5; color: #666;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 0;
}
.blog-review-item .blog-meta { font-size: 12px; color: #999 !important; margin-top: auto; margin-bottom: 4px; }
@media (max-width: 767px) {
  .blog-review-item .blog-thumb  { width: 100px; height: 100px; margin-right: 15px; }
  .blog-review-item .blog-title  { font-size: 15px; }
  .blog-review-item .blog-desc   { font-size: 13px; }
  .facility-simple-list .facility-text { font-size: 14px; }
}
/* 쿠폰 티켓 컴포넌트 */
.coupon-box {
  background-color: #fff8e1;
  border-radius: 16px;
  padding: 6px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.coupon-box::before,
.coupon-box::after {
  content: "";
  position: absolute;
  left: 106px;
  width: 24px; height: 24px;
  background-color: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  border: none;
}
.coupon-box::before { top: -10px; }
.coupon-box::after  { bottom: -10px; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.05); }
.coupon-inner {
  border: 1px dashed var(--trip-color);
  border-radius: 12px;
  height: 100%;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #fff8e1;
}
.coupon-vertical-line {
  position: absolute;
  top: 0; bottom: 0; left: 100px;
  width: 0;
  border-left: 1px dashed rgba(255, 152, 0, 0.5);
  transform: translateX(-1px);
  z-index: 1;
}
.coupon-hor-line {
  width: 100%;
  border-top: 1px dashed #ccc;
  margin: 8px 0;
  opacity: 0.7;
}
.coupon-left,
.coupon-right { position: relative; z-index: 2; }
.coupon-left { width: 100px; }
.coupon-left .badge {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.coupon-right p.text-primary { letter-spacing: -0.5px; }
.coupon-right .fw-medium { font-size: 15px; }
/* Flatpickr 커스텀 */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: var(--coupon-color) !important;
  border-color: var(--coupon-color) !important;
  color: #fff !important;
}
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
  background: #ffe6ff !important;
  border-color: #ffe6ff !important;
}
/* 쿠폰북 신청 화면 달력도 .yz-trip-picker 를 쓴다 — #cpDateRangeWrapper 에 따로 규칙을 걸면 id 라 우선순위가 높아 공통 규칙을 누른다 */
.flatpickr-calendar.multiMonth { width: 100% !important; max-width: 100% !important; }
.flatpickr-calendar::before,
.flatpickr-calendar::after { display: none !important; }
.flatpickr-innerContainer,
.flatpickr-rContainer { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
.flatpickr-weekdays,
.flatpickr-days { display: flex !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
@media (min-width: 768px) {
  .flatpickr-weekdays .flatpickr-weekdaycontainer,
  .flatpickr-days .dayContainer { width: 50% !important; min-width: 50% !important; max-width: 50% !important; }
}
@media (max-width: 767px) {
  .flatpickr-weekdays .flatpickr-weekdaycontainer,
  .flatpickr-days .dayContainer { width: 100% !important; min-width: 100% !important; max-width: 100% !important; }
}
.flatpickr-day {
  width: 14.285% !important; max-width: 14.285% !important;
  flex-basis: 14.285% !important;
  height: 46px !important; line-height: 46px !important;
  box-sizing: border-box;
}
.flatpickr-months .flatpickr-month { height: 50px; }
.flatpickr-current-month { padding-top: 15px; font-weight: 600; font-size: 110%; }
/* 여행 일정 달력 — 가입 약관 화면과 내 쿠폰북이 같은 모양을 쓴다.
   두 곳 모두 본문이 자체 스크롤 영역이라, 떠 있는 달력은 문서 기준으로 좌표를 잡아
   입력칸에서 한참 떨어진 화면 밖에 그려진다. 흐름 안에 펼쳐 항상 닿게 한다. */
/* 쿠폰북 신청 화면 — 제목과 기간 선택 칸(휴대폰에서는 조금 작게) */
.cp-apply-title { font-size: 20px; }
#cpDateRange { padding-top: 1rem; padding-bottom: 1rem; }
@media (max-width: 767px) {
  .cp-apply-title { font-size: 16px; }
  #cpDateRange { padding: 10px 14px; font-size: 15px; }
}
.yz-trip-picker .flatpickr-wrapper { display: block; width: 100%; }
.yz-trip-picker .flatpickr-calendar.static.open {
  position: relative !important; top: 0 !important; left: 0 !important;
  width: 100% !important; max-width: 100% !important; box-sizing: border-box;
  margin: 8px 0 0 !important; border-radius: 14px !important;
  font-family: inherit; border: 1px solid #f1f1f1 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
/* 위 테마는 2개월 달력(.dayContainer 50%) 기준이라 1개월이면 절반만 채워진다 */
.yz-trip-picker .flatpickr-weekdays .flatpickr-weekdaycontainer,
.yz-trip-picker .flatpickr-days .dayContainer {
  width: 100% !important; min-width: 100% !important; max-width: 100% !important;
}
/* 폭 제한은 쿠폰북 쪽(.yz-trip-picker-narrow)에만 건다.
   쿠폰북은 PC 에서 화면이 넓어 꽉 채우면 달력이 지나치게 길어진다.
   반면 회원가입은 모달 자체가 좁아 꽉 채우는 편이 보기 좋다. (대표 판단)
   입력칸과 달력을 함께 묶어 제한하므로 두 요소의 폭이 정확히 맞는다.
   좁은 화면에서는 어느 쪽도 제한하지 않는다. */
@media (min-width: 768px) {
  .yz-trip-picker-narrow { max-width: 320px; }
}

/* 달력 머리말 (년 · 월 선택) */
.yz-trip-picker .flatpickr-months { padding: 6px 6px 0; }
.yz-trip-picker .flatpickr-months .flatpickr-month { height: 46px; color: #242424; }
.yz-trip-picker .flatpickr-current-month {
  padding-top: 0; height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  font-size: 16px; font-weight: 700;
}
/* 월 선택 — 브라우저 기본 select 모양을 지우고 caret 을 직접 그린다 */
.yz-trip-picker .flatpickr-current-month .flatpickr-monthDropdown-months {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  height: auto; padding: 4px 22px 4px 8px;
  border: 0; border-radius: 8px; outline: none;
  font-size: 16px; font-weight: 700; line-height: 1.2; color: inherit;
  cursor: pointer; transition: background-color 0.15s;
  background-color: transparent;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23888'%3E%3Cpath d='M4.5 6.5L8 10l3.5-3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 5px center; background-size: 11px;
}
.yz-trip-picker .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background-color: #f4f4f4;
}
/* 연도 — 위아래 화살표를 없애고 숫자만 남긴다.
   폭을 정해주지 않으면 입력칸이 남은 자리를 다 차지해 월과 연도 사이가 크게 벌어진다. */
.yz-trip-picker .flatpickr-current-month .numInputWrapper {
  width: 52px; flex: 0 0 52px;
}
.yz-trip-picker .flatpickr-current-month .numInputWrapper span { display: none; }
.yz-trip-picker .flatpickr-current-month .numInputWrapper:hover { background: transparent; }
.yz-trip-picker .flatpickr-current-month input.cur-year {
  width: 100%; padding: 0; text-align: center;
  font-size: 16px; font-weight: 700; color: inherit;
}
/* 이전 · 다음 달 버튼 */
.yz-trip-picker .flatpickr-months .flatpickr-prev-month,
.yz-trip-picker .flatpickr-months .flatpickr-next-month {
  top: 6px; width: 34px; height: 34px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background-color 0.15s;
}
.yz-trip-picker .flatpickr-months .flatpickr-prev-month { left: 8px; }
.yz-trip-picker .flatpickr-months .flatpickr-next-month { right: 8px; }
.yz-trip-picker .flatpickr-months .flatpickr-prev-month:hover,
.yz-trip-picker .flatpickr-months .flatpickr-next-month:hover { background: #f4f4f4; }
.yz-trip-picker .flatpickr-months .flatpickr-prev-month svg,
.yz-trip-picker .flatpickr-months .flatpickr-next-month svg { width: 11px; height: 11px; }
.yz-trip-picker .flatpickr-months .flatpickr-prev-month:hover svg,
.yz-trip-picker .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--coupon-color); }
/* 요일 줄 */
.yz-trip-picker .flatpickr-weekdays { height: 30px; }
.yz-trip-picker .flatpickr-weekday {
  font-size: 12px; font-weight: 600; color: #9a9a9a;
}
/* 쿠폰 미디어 쿼리 */
@media (max-width: 1399px) {
  #couponDetailContent .cp-gallery-main   { width: 75%; }
  #couponDetailContent .cp-gallery-thumbs { width: 25%; }
}
@media (min-width: 992px) {
  #couponDetailContent .cp-sticky-sidebar { position: sticky; top: 24px; z-index: 90; transition: top 0.3s ease; }
}
@media (max-width: 991px) {
  #couponDetailContent .gallery-wrapper   { height: 540px !important; margin-bottom: 30px !important; }
  #couponDetailContent .cp-gallery-main   { width: 100% !important; height: 100% !important; max-height: none !important; }
  #couponDetailContent .cp-gallery-thumbs { display: none !important; }
}
@media (max-width: 767px) {
  #couponDetailContent .gallery-wrapper {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    height: 360px !important;
    margin-bottom: 24px !important;
  }
  #couponDetailContent .cp-gallery-main { border-radius: 0 !important; box-shadow: none !important; }
  #couponDetailContent .cp-gallery-main .swiper-pagination { bottom: 20px !important; }
}
/* 타이머 */
.coupon-timer-font {
  font-variant-numeric: tabular-nums;
  font-family: monospace, sans-serif;
  letter-spacing: -2px;
}
/* 쿠폰 창 — 목록 제목 줄: 왼쪽 지금 보는 분류 · 오른쪽 두 줄(기다리는 동안만 「00:00 후 쿠폰사용가능」 / 유효기간)
   구분선은 줄 전체 아래에 긋는다(제목 h5 의 선 — common.css #couponSectionTitle — 은 이 줄 안에서 뺀다) */
.coupon-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}
.coupon-title-row > #couponSectionTitle { flex: 0 0 auto; border-bottom: 0; }
.global-coupon-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
  text-align: right;
  line-height: 1.35;
}
.global-coupon-timer .timer-time  { font-size: 14px; font-weight: 700; color: #d9480f; white-space: nowrap; }
.global-coupon-timer .timer-time:empty { display: none; }
.global-coupon-timer .timer-label { font-size: 14px; font-weight: 700; color: var(--stay-color); letter-spacing: -0.3px; white-space: nowrap; }
/* PIN 키패드 */
.pin-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: #f1f3f5;
  border: 2px solid #dee2e6;
  transition: all 0.2s ease;
}
.pin-dot.filled { background-color: var(--coupon-color); border-color: var(--coupon-color); transform: scale(1.1); }
.pin-btn {
  width: 72px; height: 72px;
  border-radius: 50% !important;
  font-size: 28px !important; font-weight: 600 !important;
  display: flex; align-items: center; justify-content: center;
  border: none !important;
  color: #212529; background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.1s ease, background-color 0.1s ease, box-shadow 0.1s ease;
  margin: 0 auto;
}
.pin-btn:active { background-color: #e9ecef !important; transform: scale(0.92); box-shadow: none; }
.pin-display.pin-error { animation: pinShake 0.4s ease-in-out; }
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-10px); }
  40%, 80%  { transform: translateX(10px); }
}
/* 자동완성 드롭다운 */
.suggest-dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 12px);
  right: 0; left: auto;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  padding: 15px 0;
  animation: fadeInDown 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.suggest-dropdown:empty { display: none; }
.suggest-scroll-box { max-height: 360px; overflow-y: auto; }
.suggest-scroll-box::-webkit-scrollbar       { width: 4px; }
.suggest-scroll-box::-webkit-scrollbar-thumb { background-color: #bbb; border-radius: 4px; }
.suggest-item {
  display: flex; align-items: center;
  padding: 12px 18px; font-size: 14px; color: #333;
  cursor: pointer; border-bottom: 1px solid #f5f5f5;
  outline: none; gap: 10px;
  white-space: nowrap; overflow: hidden;
}
.suggest-item::before {
  content: "\F52A";
  font-family: "bootstrap-icons";
  font-size: 13px; color: #bbb; flex-shrink: 0;
}
.suggest-item-text   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover,
.suggest-item:focus  { background-color: #f8f9fa; }
.suggest-item-sub    { font-size: 12px; color: #aaa; }
.suggest-item mark   { background: none; color: var(--primary-color); font-weight: 700; padding: 0; }
@media (max-width: 767px) {
  .suggest-dropdown { border-radius: 12px; width: 200px; }
}
/* 검색 결과 없음 */
.search-empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center; color: #aaa;
  grid-column: 1 / -1; width: 100%;
}
.search-empty-state i { font-size: 48px; margin-bottom: 16px; color: #ccc; }
.search-empty-state p { font-size: 15px; line-height: 1.7; margin: 0; color: #888; }
/* 사용완료 워터마크 */
.product-grid-item.is-used { position: relative; }
.product-grid-item.is-used::after {
  content: "사용완료";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 2px;
  z-index: 10;
  border-radius: inherit;
  backdrop-filter: blur(1px);
  pointer-events: none;
}
.product-grid-item.is-used .badge-discount {
  background-color: #6c757d !important;
  color: #fff !important;
  border-color: #6c757d !important;
}
/* 5. Detail Page Layout — 상점 상세 · 스토리 글 */
.page-view .search-bar {
  display: none !important;
}
.page-view .view-wrap {
  width: 100%;
  padding-top: calc(var(--header-h-default) + 56px);
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: calc(var(--header-h-default) + 20px);
    z-index: 90;
    transition: top 0.3s ease;
  }
}
@media (max-width: 991px) {
  .page-view .view-wrap {
    padding-top: calc(var(--header-h-default) + 24px);
    padding-bottom: 8px;
  }
  .sticky-sidebar {
    position: static;
  }
}
@media (max-width: 767px) {
  .page-view .view-wrap {
    padding-top: calc(var(--header-h-scroll) + 24px);
  }
}

/* 6. Mobile Floating Button Group */
.floating-btn-group {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 1055;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.floating-btn-group.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-btn {
  font-size: 14px !important;
  padding: 10px 18px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .floating-btn-group {
    display: none !important;
  }
}

/* 7. Share Modal */
.share-icon-green {
  font-size: 22px !important;
  color: #2db400 !important;
}
.share-icon-blue {
  font-size: 22px !important;
  color: #0d6efd !important;
}

/* 8. Sub Page Common */
.sub-page-title { font-size: 32px; letter-spacing: -1px; }

/* 9. Custom Utilities */
.bg-cover-base {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
}
.bg-cover-zminus {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
  z-index: -1;
}

/* 10. 쿠폰 창 · 가입 창 · 내정보 창이 함께 쓰는 모양 */
/* 색 — 쿠폰북 안내 주황 */
.yz-orange { color: #e8590c; }
.note-orange { background: #fff8f4; border: 1px solid #fed7aa; }
.note-orange-bd { background: #fff8f4; border-color: #fed7aa !important; }
.note-orange-band { background: #fff8f4; border-top: 1px solid #fed7aa; border-bottom: 1px solid #fed7aa; }
.bg-f8 { background-color: #f8f9fa; }
/* 업종 색 표시(카드의 분류 표) */
.kind-bg-trip { background-color: var(--trip-color); }
.kind-bg-stay { background-color: var(--stay-color); }
.kind-bg-dish { background-color: var(--dish-color); }

/* 단추 — 눌림·올림·잠김에서도 같은 색(부트스트랩 .btn 의 상태 규칙보다 앞서게 .btn 과 함께 적는다). 스크립트가 바탕색을 직접 바꾸는 단추가 있어 !important 는 쓰지 않는다 */
.btn.btn-orange, .btn.btn-orange:hover, .btn.btn-orange:focus-visible, .btn.btn-orange:active, .btn.btn-orange:disabled { background: #e8590c; }
.btn.cp-btn-pink, .btn.cp-btn-pink:hover, .btn.cp-btn-pink:focus-visible, .btn.cp-btn-pink:active, .btn.cp-btn-pink:disabled { background-color: #ff00ff; font-size: 16px; border: none; }
.btn.cp-btn-pink-f, .btn.cp-btn-pink-f:hover, .btn.cp-btn-pink-f:focus-visible, .btn.cp-btn-pink-f:active, .btn.cp-btn-pink-f:disabled { background-color: #ff00ff; border: none; }
.btn.cp-btn-gray, .btn.cp-btn-gray:hover, .btn.cp-btn-gray:focus-visible, .btn.cp-btn-gray:active, .btn.cp-btn-gray:disabled { background-color: #6c757d; font-size: 16px; border: none; }
.btn.cp-btn-blue, .btn.cp-btn-blue:hover, .btn.cp-btn-blue:focus-visible, .btn.cp-btn-blue:active, .btn.cp-btn-blue:disabled { background-color: #00b1ff; padding: 12px 0; border: none; font-size: 16px; font-weight: 600; }
/* 기다리는 동안의 쿠폰 단추(본문 · 떠 있는 단추) */
.btn.cp-btn-wait { opacity: 0.75; line-height: 1.4; }
.btn.cp-btn-wait-f { opacity: 0.75; line-height: 1.2; }
.cp-sub-12 { font-size: 12px; font-weight: 400; opacity: 0.9; }
.cp-sub-11 { font-size: 11px; font-weight: 400; opacity: 0.9; }

/* 쿠폰 창의 안내 화면(로그인 전 · 쿠폰북 없음 · 만료 · 신청) */
.cp-narrow-600 { max-width: 600px; margin: 0 auto; }
.cp-lead { font-size: 18px; color: #242424; }
.cp-h-22 { font-size: 22px; letter-spacing: -0.5px; }
.cp-q-title { color: #222; word-break: keep-all; line-height: 1.4; }
.cp-ico-72 { font-size: 72px; opacity: 0.3; }
.cp-ico-64 { font-size: 64px; opacity: 0.4; }
.cp-ico-36 { font-size: 36px; opacity: 0.5; }
.cp-spacer-60 { height: 60px; }
.cp-use-card { max-width: 500px; border-radius: 24px; padding: 1rem; }
.cp-cover { object-fit: cover; position: absolute; top: 0; left: 0; }
.cpd-title { word-break: keep-all; padding-right: 10px; font-size: 24px !important; }
.cp-error { padding: 40px; color: red; }
.cp-title-sep { font-size: 12px; margin: 0 2px; opacity: 0.5; }
/* 여행 일정 상자(쿠폰 창) */
.trip-box .trip-label { font-size: 14px; }
.trip-box .trip-value { font-size: 15px; font-weight: 700; color: #242424; letter-spacing: -0.3px; }
.trip-box .trip-empty { font-size: 14px; line-height: 1.5; }
.trip-box .trip-date  { font-size: 14px; }
@media (min-width: 992px) {
  .trip-box .trip-value { font-size: 16px; }
  .trip-box .trip-empty { font-size: 14.5px; }
  .trip-box .trip-date  { font-size: 15px; }
}
/* 안내 창(Alert) 안의 글 */
.cp-wait-label { font-size: 13px; color: #888; }
.cp-wait-time { font-size: 22px; color: #e33; }
.cp-done-msg { font-size: 17px; font-weight: 600; line-height: 1.6; color: #222; }
.cp-block-msg { font-size: 15px; line-height: 1.7; color: #222; white-space: pre-line; }
.yz-loc-note { font-size: 13px; color: #444; line-height: 1.7; }
.yz-coupon-qr { width: 180px; margin: 16px auto 8px; }
.yz-qr-note { font-size: 13px; color: #888; word-break: keep-all; }
.yz-qr-text { word-break: keep-all; }
/* 확인코드 입력 */
.cp-lock-circle { width: 56px; height: 56px; }
.btn.pin-btn.pin-btn-clear { background: #fff2f2; color: #dc3545; }
/* 지도 아래 카드 줄 */
.swiper-slide.map-slide { width: 280px; }
/* 내정보 — 가입 수단 표시 */
.profile-sns-badge.sns-kakao { background-color: #FEE500; }
.profile-sns-badge.sns-naver, .profile-sns-badge.sns-google, .profile-sns-badge.sns-phone { background-color: #ffffff; }
.profile-sns-badge.sns-kakao img, .profile-sns-badge.sns-google img { width: 12px; }
.profile-sns-badge.sns-naver img { width: 10px; }
.profile-sns-badge.sns-phone img { width: 11px; }

/* 11. 알약 탭 · 글 상자 — 요즘뉴스 · 약관 화면이 함께 쓴다 */
.news-tabs,
.policy-tabs {
  background-color: #f8f9fa;
  padding: 6px;
  border-radius: 50px;
  border: 1px solid #e9ecef;
}
.news-tabs .nav-link,
.policy-tabs .nav-link {
  color: #666;
  font-weight: 500;
  border-radius: 40px;
  padding: 12px 20px;
  transition: all 0.2s ease;
}
.news-tabs .nav-link:hover,
.policy-tabs .nav-link:hover {
  color: #222;
}
.news-tabs .nav-link.active,
.policy-tabs .nav-link.active {
  background-color: #444;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}
.news-content-box,
.policy-content-box {
  background-color: #fff;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
@media (max-width: 767px) {
  .news-tabs,
  .policy-tabs {
    border-radius: 16px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
  }
  .news-tabs .nav-link,
  .policy-tabs .nav-link {
    border-radius: 12px;
    padding: 12px;
    text-align: left;
  }
}

/* 상세 화면의 쿠폰 단추(옆 칸 · 떠 있는 단추) — 상점 상세와 스토리 상세가 함께 쓴다(yz-coupon-button.js) */
.timer-text-small {
  font-size: 12px !important;
  font-weight: 400 !important;
  opacity: 0.9 !important;
}
.float-timer-text {
  font-size: 11px !important;
  font-weight: 400 !important;
  opacity: 0.9 !important;
}
.btn-action-primary {
  background-color: var(--coupon-color) !important;
  font-size: 16px !important;
  border: none !important;
}
.btn-action-secondary {
  background-color: #6c757d !important;
  font-size: 16px !important;
  border: none !important;
}
.btn-action-primary-wait {
  background-color: var(--coupon-color) !important;
  font-size: 16px !important;
  border: none !important;
  opacity: 0.75 !important;
  line-height: 1.4 !important;
}
.btn-float-primary {
  background-color: var(--coupon-color) !important;
  border: none !important;
}
.btn-float-secondary {
  background-color: #6c757d !important;
  border: none !important;
}
.btn-float-primary-wait {
  background-color: var(--coupon-color) !important;
  border: none !important;
  opacity: 0.75 !important;
  line-height: 1.2 !important;
}
