/* VERSION: 2026-03-02 FULL-CSS v2 (vacation PC button under address + mobile order info/photo/button) */

/* 기본 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: keep-all;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding-top: 68px;
}

/* 네비게이션 — 본문 폰트와 무관하게 동일 GNB (페스티벌 기준) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 72rem;
  width: calc(100% - 48px);
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    sans-serif;
}

.logo {
  display: flex;
  align-items: center;
}
.logo a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  display: inline-block;
  line-height: 1.2;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

/* 히어로 (기본: 기존 스타일 유지) */
.hero {
  height: 60vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("https://images.unsplash.com/photo-1499696010180-025ef6e1a8f9?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.3rem;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.hero-content p {
  max-width: 700px;
  font-size: 1.05rem;
  margin: 0 auto;
  opacity: 0.95;
}

/* =====================================================
   메인 히어로 배너
   ===================================================== */
.hero-main {
  position: relative;
  min-height: 380px;
  padding: 72px 0 28px;
  width: 100%;
  overflow: hidden;
}

.hero-main-bg {
  position: absolute;
  inset: 0;
}

.hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-main-overlay-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
}

.hero-main-overlay-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #fcfcfc 0%, transparent 40%);
  z-index: 2;
}

.hero-main-content {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-main-line {
  width: 48px;
  height: 1px;
  background: #d97706;
  margin-bottom: 1.5rem;
}

.hero-main-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b45309;
  margin: 0 0 1.5rem;
}

.hero-main-title {
  font-size: 3rem;
  line-height: 0.95;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

.hero-main-desc {
  font-size: 1.05rem;
  color: #475569;
  margin: 0;
  max-width: 40rem;
  line-height: 1.6;
}

.hero-main-desc--lead {
  font-size: 1.125rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.75rem;
}

/* =====================================================
   SEO 하이라이트 (페스티벌·스포츠 공통)
   ===================================================== */
.page-seo-highlights {
  padding: 2.5rem 5% 2.75rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.page-seo-highlights-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.page-seo-highlights-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page-seo-highlights-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  color: #334155;
  line-height: 1.55;
}

.page-seo-highlights-mark {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

.page-seo-highlights--sports .page-seo-highlights-mark {
  background: rgba(99, 102, 241, 0.2);
  color: #3730a3;
}

.hero-main-cta,
.hero-main-scroll-hint {
  display: none;
}

@media (max-width: 767px) {
  .hero-main {
    padding-top: 58px;
  }
  .hero-main-title {
    font-size: 2.35rem;
  }
}

/* =====================================================
   Discover Global Festivals (타이틀 + 상품 그리드)
   ===================================================== */
.discover-section {
  padding: 4rem 5% 5rem;
  background: #fff;
}

.discover-wrap {
  max-width: 72rem;
  margin: 0 auto;
}

.discover-header {
  margin-bottom: 3rem;
}

.discover-title {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.discover-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

.discover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (max-width: 767px) {
  .discover-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .discover-grid::-webkit-scrollbar {
    height: 6px;
  }
  .discover-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }
  .discover-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
}

@media (min-width: 768px) {
  .discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .discover-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.discover-card {
  cursor: pointer;
  transition: transform 0.3s;
}

@media (max-width: 767px) {
  .discover-card {
    flex: 0 0 260px;
    width: 260px;
    scroll-snap-align: start;
  }
}

.discover-card:hover {
  transform: translateY(-8px);
}

.discover-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 2rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
  margin-bottom: 1.5rem;
  background: #f1f5f9;
}
.discover-card:hover .discover-card-image-wrap {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.discover-card-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.discover-card:hover .discover-card-image-wrap img {
  transform: scale(1.08);
}

.discover-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.discover-card:hover .discover-card-image-overlay {
  opacity: 1;
}

.discover-card-image-text {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: #fff;
  transform: translateY(1rem);
  opacity: 0;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.discover-card:hover .discover-card-image-text {
  transform: translateY(0);
  opacity: 1;
}

.discover-card-city {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.discover-card-title-overlay {
  font-size: 1.5rem;
  font-weight: 900;
}

.discover-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #d97706;
}

.discover-card-meta svg {
  flex-shrink: 0;
}

.discover-card-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.discover-card-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.discover-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 컨테이너 */
.container {
  padding: 80px 5%;
}

.bg-light {
  background-color: #f9f9f9;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: left;
  font-weight: 900;
}

.section-divider {
  border: none;
  border-top: 1px solid #eee;
}

/* =====================================================
   다가오는 축제 탐험 (계절별 퀵 필터 + 카드 그리드)
   ===================================================== */
.upcoming-section {
  background: #fff;
  padding: 64px 5% 80px;
}

.upcoming-wrap {
  max-width: 72rem;
  margin: 0 auto;
}

.upcoming-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .upcoming-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.upcoming-header-text {
  flex-shrink: 0;
}

.upcoming-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}

.upcoming-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.upcoming-tabs {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 4px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
}

.upcoming-season-mobile {
  display: none;
}

@media (max-width: 1182px) {
  .upcoming-tabs {
    display: none;
  }
  .upcoming-season-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }
  .upcoming-season-mobile-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
  }
  .upcoming-season-select {
    flex: 1;
    max-width: 220px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: #fff;
    color: #111;
    cursor: pointer;
  }
}

.upcoming-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.upcoming-tab:hover {
  background: #f3f4f6;
  color: #111;
}

.upcoming-tab-active {
  background: #111;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .upcoming-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .upcoming-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.upcoming-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition:
    box-shadow 0.3s,
    transform 0.2s;
}

.upcoming-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.upcoming-card-img-wrap {
  position: relative;
  height: 256px;
  overflow: hidden;
}

.upcoming-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.upcoming-card:hover .upcoming-card-img {
  transform: scale(1.05);
}

.upcoming-card-badge {
  position: absolute;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.upcoming-card-badge-theme {
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #4f46e5;
}

.upcoming-card-badge-season {
  top: 1rem;
  right: 1rem;
  background: rgba(17, 17, 17, 0.7);
  color: #fff;
}

.upcoming-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.upcoming-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 8px;
}

.upcoming-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
  line-height: 1.3;
  transition: color 0.2s;
}

.upcoming-card:hover .upcoming-card-title {
  color: #4f46e5;
}

.upcoming-card-desc {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0 0 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upcoming-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.upcoming-card-date {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.upcoming-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  transition:
    background 0.2s,
    color 0.2s;
}

.upcoming-card-link:hover {
  background: #4f46e5;
  color: #fff;
}

.upcoming-empty {
  text-align: center;
  padding: 96px 24px;
  background: #fff;
  border-radius: 1rem;
  border: 1px dashed #e5e7eb;
}

.upcoming-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.upcoming-empty-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111;
  margin: 0 0 4px;
}

.upcoming-empty-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 24px;
}

.upcoming-reset-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4f46e5;
  background: transparent;
  cursor: pointer;
}

.upcoming-reset-btn:hover {
  text-decoration: underline;
}

/* =====================================================
   지도로 떠나는 축제 여행 (카드 + 핀 + 캐러셀)
   ===================================================== */
.map-section {
  background: #f9fafb;
  padding: 64px 5% 80px;
}

.map-section-wrap {
  max-width: 72rem;
  margin: 0 auto;
}

.map-section-header {
  margin-bottom: 40px;
}

.map-section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.map-section-desc {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}

/* 좌우 분할: 좌 지도(2칸) / 우 인기 축제 리스트(1칸) */
.map-split-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .map-split-wrap {
    grid-template-columns: 2fr 1fr;
  }
}

.map-split-left {
  position: relative;
  background: rgba(238, 242, 255, 0.5);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(199, 210, 254, 0.5);
  min-height: 400px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.map-country-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(199, 210, 254, 0.5);
  flex-shrink: 0;
}

.map-country-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.map-country-select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #fff;
  color: #111;
  min-width: 160px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .map-split-left {
    min-height: 600px;
  }
}

.map-inner {
  width: 100%;
  flex: 1;
  min-height: 340px;
  height: 400px;
  background: #e0e7ff;
}

@media (min-width: 1024px) {
  .map-inner {
    height: 600px;
  }
}

.map-split-right {
  display: flex;
  flex-direction: column;
  height: 400px;
  background: #fff;
  border-radius: 1.5rem;
  padding: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
  .map-split-right {
    height: 600px;
  }
}

.map-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.map-list-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.map-list-reset {
  font-size: 0.75rem;
  color: #4f46e5;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.map-list-reset:hover {
  text-decoration: none;
}

.map-festival-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.map-festival-list::-webkit-scrollbar {
  width: 6px;
}

.map-festival-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.map-list-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.map-list-item:hover {
  background: #f9fafb;
}

.map-list-item-thumb {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-list-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.map-list-item-thumb img.map-list-item-flag {
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.map-list-item:hover .map-list-item-thumb img {
  transform: scale(1.1);
}

.map-list-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  font-size: 1.5rem;
}

.map-list-item-info {
  min-width: 0;
  flex: 1;
}

.map-list-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  transition: color 0.2s;
}

.map-list-item:hover .map-list-item-title {
  color: #4f46e5;
}

.map-list-item-meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.map-list-item-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}

.map-list-item:hover .map-list-item-arrow {
  background: #4f46e5;
  color: #fff;
}

.map-list-item-date {
  font-size: 0.75rem;
  color: #4f46e5;
  font-weight: 500;
  margin: 4px 0 0;
}

/* Google InfoWindow 툴팁 스타일 (마커 호버 시 축제명) */
.map-pin-infowindow {
  padding: 6px 12px;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  white-space: nowrap;
}

.map-carousel-block {
  margin-top: 0;
}

.map-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 8px;
}

.map-carousel-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-reset-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  border: none;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}

.map-reset-btn:hover {
  color: #4f46e5;
}

/* 푸터 */
.footer {
  background: #111;
  color: #9ca3af;
  padding: 48px 5% 40px;
  font-size: 12px;
  line-height: 1.7;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin-bottom: 20px;
}
.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-privacy {
  font-weight: 700;
  color: #fff !important;
}
.footer-bar {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #4b5563;
  margin: 0 12px;
}
.footer-company {
  margin-bottom: 16px;
}
.footer-toggle {
  display: none;
  background: none;
  border: 1px solid #4b5563;
  color: #d1d5db;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 12px;
}
.footer-toggle:hover {
  border-color: #9ca3af;
  color: #fff;
}
.footer-info {
  margin: 0 0 16px;
}
.footer-info-line {
  margin-bottom: 4px;
}
.footer-sep {
  color: #4b5563;
  margin: 0 8px;
}
@media (max-width: 768px) {
  .footer-toggle {
    display: inline-block;
  }
  .footer-info {
    display: none;
  }
  .footer-info.open {
    display: block;
  }
  .footer-sep {
    display: none;
  }
  .footer-info-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
  }
}
.footer-info li {
  margin-bottom: 2px;
}
.footer-info strong {
  color: #d1d5db;
  margin-right: 6px;
}
.footer-biz-link {
  color: #60a5fa;
  text-decoration: underline;
  margin-left: 4px;
}
.footer-biz-link:hover {
  color: #93bbfd;
}
.footer-notice {
  color: #6b7280;
  margin: 16px 0 12px;
  font-size: 11px;
}
.footer-copy {
  color: #6b7280;
  font-size: 11px;
  margin: 0;
}

/* =====================================================
   축제 상세 — 스포츠와 동일: #view-main ↔ #view-detail 전환 + 고정 패널
   ===================================================== */
#festival-detail.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Scroll area extends to bottom; footer overlays on top */
.festival-detail .detail-scroll,
#festival-detail .detail-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 280px; /* fallback until JS sets height from footer */
}
.festival-detail .detail-booking-footer,
#festival-detail .detail-booking-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
/* sports(test) 상세도 동일한 항공 푸터 UI 사용 */
.detail-overlay .detail-booking-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* 상단 바 — 본문과 동일 72rem(1152) 컬럼 왼쪽 정렬 */
.detail-top-bar {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.detail-top-bar-inner {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-top-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
  text-align: center;
}
.detail-back-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border: none;
  padding: 0;
}
.detail-back-btn:hover {
  background: #e5e7eb;
}

/* 스크롤 영역 — full width so scrollbar sits at overlay edge */
.detail-scroll {
  flex: 1;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
/* Content inside scroll area is constrained */
.detail-scroll > * {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

/* Always show scrollbar on desktop (macOS hides by default) */
@media (min-width: 768px) {
  .detail-scroll {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
  }
  .detail-scroll::-webkit-scrollbar {
    width: 6px;
  }
  .detail-scroll::-webkit-scrollbar-track {
    background: transparent;
  }
  .detail-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
  }
  .detail-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
  }
}

/* 이미지 갤러리 */
.detail-gallery-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.detail-gallery-wrapper::-webkit-scrollbar {
  display: none;
}
.detail-gallery-track {
  display: inline-flex;
  gap: 8px;
  padding: 4px 18px;
}
.detail-gallery-img {
  width: 380px;
  height: 270px;
  background: #f3f4f6;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}
@media (min-width: 768px) {
  .detail-gallery-img {
    width: 500px;
    height: 400px;
  }
}

/* 축제 정보 */
.detail-title-section {
  padding: 14px 18px 0;
}
.detail-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.detail-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.detail-tag-type {
  background: #111;
  color: #fff;
}
.detail-tag-country {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.detail-fest-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px;
}
@media (min-width: 768px) {
  .detail-fest-name {
    font-size: 1.75rem;
  }
}
.detail-fest-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 12px;
}
.detail-fest-meta {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* 콘텐츠 스트림 */
.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-content .content-headline {
  padding: 18px 18px 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  line-height: 1.4;
}

.detail-content .content-text {
  padding: 14px 18px 0;
  font-size: 14.5px;
  color: #6b7280;
  line-height: 1.75;
}
.detail-content .content-text p {
  margin-bottom: 10px;
}
.detail-content .content-text p:last-child {
  margin-bottom: 0;
}

.detail-content .content-image {
  margin: 14px 18px 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.detail-content .content-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.detail-content .content-image .img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.detail-content .content-summary {
  padding: 18px;
}
.detail-content .summary-block {
  background: #f9fafb;
  border-radius: 14px;
  padding: 16px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.detail-content .summary-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}
.detail-content .summary-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.detail-content .summary-block li {
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.detail-content .summary-block li:last-child {
  border-bottom: none;
}
.detail-content .summary-block .label {
  font-weight: 600;
  color: #374151;
}
.detail-content .summary-block a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.detail-content .summary-block a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .detail-content .content-image img {
    height: 500px;
  }
}

/* =========================
   Hotel Section
   ========================= */
.hotel-section {
  padding: 18px;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.hotel-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.hotel-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hotel-section-meta {
  font-size: 0.8125rem;
  color: #6b7280;
}
.hotel-section-status {
  font-size: 0.8125rem;
  color: #6b7280;
}
.hotel-section-nights {
  display: inline-flex;
  gap: 8px;
}
.hotel-section-night-pill {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #fff;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.hotel-section-night-pill.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.hotel-section-night-pill:hover {
  border-color: #9ca3af;
  color: #111;
}
.hotel-section-body {
  display: flex;
  gap: 16px;
}
.hotel-map-wrap {
  flex: 1;
  height: 500px;
  position: relative;
}
.detail-hotel-map {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #f0f0f0;
}
.hotel-list-wrap {
  width: 320px;
  height: 500px;
  overflow-y: auto;
  background: #f8f9fa;
  border-radius: 14px;
  padding: 8px;
  box-sizing: border-box;
}
.hotel-section-body.no-hotels .hotel-list-wrap {
  display: none;
}
.hotel-map-fallback {
  position: absolute;
  inset: 12px;
  border-radius: 10px;
  border: 1px dashed #d1d5db;
  background: #f8fafc;
  padding: 12px;
  color: #4b5563;
}
.hotel-map-fallback[hidden] {
  display: none !important;
}

/* Hotel cards */
.hotel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
}
.hotel-card:first-child {
  padding-top: 12px;
  padding-bottom: 14px;
}
.hotel-card:last-child {
  padding-top: 14px;
  padding-bottom: 12px;
  border-bottom: none;
}
.hotel-card:hover {
  background: #f0f1f3;
}
.hotel-card-active {
  background: #eff6ff;
}
.hotel-card-img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 10px;
}
.hotel-card-info {
  flex: 1;
  min-width: 0;
}
.hotel-card-category {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  line-height: 1;
}
.hotel-card-name {
  font-size: 14px;
  font-weight: 700;
  margin: 1px 0 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}
.hotel-card-price {
  font-size: 15px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}
.hotel-card-book {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 4px 10px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hotel-card-book:hover {
  background: #1d4ed8;
}
.hotel-back-btn {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  text-align: left;
}
.hotel-back-btn:hover {
  color: #374151;
}
.hotel-loading,
.hotel-empty {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Mobile hotel card overlay */
.hotel-mobile-overlay {
  display: none;
}

@media (max-width: 768px) {
  .hotel-section-body {
    flex-direction: column;
    position: relative;
  }
  .hotel-map-wrap {
    flex: none;
    height: 400px;
    width: 100%;
    position: relative;
  }
  .hotel-list-wrap {
    display: none !important;
  }
  .hotel-mobile-overlay {
    display: flex;
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }
  .hotel-mobile-overlay.hidden {
    display: none;
  }
  .hotel-mobile-track {
    display: flex;
    transition: transform 0.25s ease;
    width: 100%;
  }
  .hotel-mobile-card {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 14px 12px 16px;
    box-sizing: border-box;
    gap: 10px;
  }
  .hotel-mobile-card .hotel-card-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    margin-right: 0;
  }
  .hotel-mobile-card .hotel-card-name {
    font-size: 15px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hotel-mobile-card .hotel-card-price {
    font-size: 16px;
  }
  .hotel-mobile-card .hotel-card-info {
    flex: 1;
    min-width: 0;
  }
  .hotel-mobile-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
  }
  .hotel-mobile-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    z-index: 11;
    line-height: 1;
    padding: 2px 4px;
  }
  .hotel-mobile-dots {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
  }
  .hotel-mobile-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d1d5db;
  }
  .hotel-mobile-dot.active {
    background: #2563eb;
  }
}

/* 고정 하단: 항공권 예약 */
.detail-booking-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 14px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}
/* 접힘: 하단 peek 바만 (스크롤 내릴 때) */
.detail-booking-footer-peek {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  border: none;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-sizing: border-box;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.detail-booking-footer-peek:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}
.detail-booking-footer-peek-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  flex-shrink: 0;
  align-self: center;
}
.detail-booking-footer-peek-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-booking-footer-peek-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.detail-booking-footer-peek-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.detail-booking-footer-peek-price {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -0.02em;
  text-align: right;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-booking-footer-peek-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}
.detail-booking-footer-peek-chevron {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
  color: #9ca3af;
}
.detail-booking-footer:not(.detail-booking-footer--collapsed)
  .detail-booking-footer-peek {
  display: none;
}
.detail-booking-footer--collapsed {
  padding: 0;
  gap: 0;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
}
.detail-booking-footer--collapsed .detail-booking-footer-peek {
  display: flex;
}
.detail-booking-footer-body {
  overflow: hidden;
  transition:
    max-height 0.34s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.22s ease;
  max-height: 3200px;
  opacity: 1;
}
/* 맨 아래 자동 펼침 시: 레이아웃 깜빡임으로 scrollHeight가 잠깐 줄었다 늘어나 스크롤이 튀는 것 방지 */
.detail-booking-footer-body.detail-booking-footer-body--instant {
  transition: none;
}
.detail-booking-footer--collapsed .detail-booking-footer-body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.detail-booking-footer-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -6px 0 4px;
  padding: 0 0 6px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.detail-booking-footer-toolbar-drag {
  flex: 1;
  height: 4px;
  max-width: 40px;
  border-radius: 999px;
  background: #e5e7eb;
  margin-right: auto;
}
.detail-booking-footer-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 8px;
  min-width: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.detail-booking-footer-collapse-btn:hover {
  background: transparent;
  color: #374151;
}
.detail-booking-footer-collapse-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.detail-booking-footer-collapse-chevron {
  font-size: 1rem;
  line-height: 1;
  color: #6b7280;
}

/* 노선 */
.detail-route {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-route-code {
  text-align: center;
}
.detail-route-code .code {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}
.detail-route-code .city {
  font-size: 11px;
  color: #6b7280;
}
.detail-route-line {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 30px;
}
.detail-route-line .line {
  flex: 1;
  height: 1px;
  background: #d1d5db;
}
.detail-route-line .plane {
  color: #9ca3af;
  font-size: 14px;
}

/* 날짜 */
.detail-date-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.detail-dates-group {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.detail-date-block {
}
.detail-date-label {
  font-size: 11px;
  color: #6b7280;
}
.detail-date-value {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.detail-date-separator {
  color: #d1d5db;
  font-size: 12px;
}
.detail-night-pills {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}
.detail-night-pill {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: #f3f4f6;
  color: #6b7280;
}
.detail-night-pill:hover {
  background: #e5e7eb;
}
.detail-night-pill.active {
  background: #2563eb;
  color: #fff;
}

/* 직항/경유 + 박수 토글 행 */
.detail-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.detail-stop-pills {
  display: flex;
  gap: 5px;
}
.detail-stop-pill {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: #f3f4f6;
  color: #6b7280;
}
.detail-stop-pill:hover {
  background: #e5e7eb;
}
.detail-stop-pill.active {
  background: #2563eb;
  color: #fff;
}
.detail-stop-pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.detail-stop-pill.disabled:hover {
  background: #f3f4f6;
}
.detail-stop-pill .savings-hint {
  font-size: 11px;
  color: #16a34a;
  margin-left: 2px;
}

/* 비행 소요시간 */
.detail-flight-duration {
  font-size: 10px;
  color: #6b7280;
  margin-top: 2px;
}
.detail-flight-duration.stopover {
  color: #d97706;
}

/* 경유 선택 시 가격 — 직항과 동일한 파란색 */
.detail-price-amount.stopover-price {
  color: #2563eb;
}

/* 가격 + 검색 */
.detail-price-search {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-price-info {
  flex: 1;
}
.detail-price-label {
  font-size: 12px;
  color: #6b7280;
}
.detail-price-amount {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
}
.detail-search-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.detail-search-btn:hover {
  background: #1d4ed8;
}

/* =====================================================
   AI 채팅 플로팅 버튼 & 패널
   ===================================================== */
.ai-chat-fab {
  position: fixed;
  right: 18px;
  bottom: 24px;
  transform: none;
  z-index: 2400;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.ai-chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2390;
}

.ai-chat-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ai-chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  max-width: 100%;
  height: 100%;
  background: #fafafa;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 2401;
  display: flex;
  flex-direction: column;
}

.ai-chat-panel.is-open {
  transform: translateX(0);
}

.ai-chat-header {
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-title {
  font-weight: 900;
  font-size: 18px;
}

.ai-chat-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}

.ai-chat-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
}

.ai-chat-reset {
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  background: #fafafa;
  color: #333;
  cursor: pointer;
}

.ai-chat-messages {
  flex: 2;
  padding: 16px 18px 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f9fafb;
}

.ai-chat-message {
  display: flex;
  margin-bottom: 8px;
}

.ai-chat-message-user {
  justify-content: flex-end;
}

.ai-chat-message-assistant {
  justify-content: flex-start;
}

.ai-chat-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.ai-chat-friendly {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
}

.ai-chat-section-title {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #666;
}

/* 답변 내 가로 스와이프(캐러셀) 영역 */
.ai-chat-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.ai-chat-rail::-webkit-scrollbar {
  height: 10px;
}

.ai-chat-rail::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

.ai-chat-rail::-webkit-scrollbar-track {
  background: transparent;
}

.ai-chat-card {
  flex: 0 0 auto;
  width: min(280px, 100%);
  scroll-snap-align: start;
  background: radial-gradient(circle at top left, #fff7e6, #ffffff);
  border: 1px solid #f3e2c4;
  border-radius: 16px;
  padding: 11px 13px 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.ai-chat-card-title {
  font-weight: 900;
  font-size: 14px;
  color: #111;
  line-height: 1.25;
}

.ai-chat-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.ai-chat-card-desc {
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ai-chat-card-cta {
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 0;
  font-size: 12px;
  font-weight: 900;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.ai-chat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-chat-chip {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ai-chat-message-user .ai-chat-bubble {
  background: #111;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.ai-chat-message-assistant .ai-chat-bubble {
  background: #ffffff;
  color: #111827;
  border-bottom-left-radius: 4px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.ai-chat-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.ai-chat-reco {
  flex: 1.3;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  background: #f3f4f6;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.ai-chat-section-title-reco {
  padding-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b7280;
}

.ai-chat-input-row {
  display: flex;
  padding: 8px;
  border-top: 1px solid #eee;
  background: #fff;
  gap: 6px;
}

.ai-chat-input-row input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 8px 12px;
  font-size: 14px;
}

.ai-chat-input-row button {
  border-radius: 999px;
  border: none;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  background: #00b7ff;
  color: #fff;
  cursor: pointer;
}

/* 타이핑 인디케이터 */
.ai-chat-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-chat-typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #999;
  animation: ai-dot 1s infinite ease-in-out;
}

.ai-chat-typing-bubble span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-chat-typing-bubble span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ai-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* 모바일: 패널이 전체 화면 레이어처럼 보이도록 */
@media (max-width: 768px) {
  .ai-chat-fab {
    bottom: 24px;
    transform: none;
  }

  .ai-chat-panel {
    width: 100%;
  }

  .ai-chat-body {
    flex-direction: column;
  }

  .ai-chat-reco {
    border-left: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
  }
}

/* 모바일 */
@media (max-width: 768px) {
  .container {
    padding: 50px 5%;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .carousel-item img {
    height: 320px;
  }
}

/* =====================================================
   스포츠 페이지 (다크 테마 - 리그/월/팀 필터 + 일자별 일정)
   ===================================================== */
.hero-sports {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.sports-page-wrap {
  background: #1e2330;
  color: #e8eaed;
  padding: 0 5% 60px;
  min-height: 60vh;
}

.sports-league-bar {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sports-league-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sports-tag {
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.sports-tag:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sports-tag-active {
  background: #5b9bd5;
  color: #0d2137;
}

.sports-season-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
}

.sports-season-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.sports-season-year {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sports-year-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sports-year-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#sports-year-display {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 80px;
  text-align: center;
}

.sports-calendar-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.sports-month-bar {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  overflow-x: auto;
}

.sports-month-tags {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  padding-right: 8px;
}

.sports-month-tag {
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.sports-month-tag:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sports-month-tag-active {
  background: #5b9bd5;
  color: #0d2137;
}

.sports-month-more {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sports-team-bar {
  display: flex;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sports-team-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  padding-right: 8px;
}

.sports-team-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.sports-team-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sports-team-chip-active {
  background: #5b9bd5;
  color: #0d2137;
}

.sports-team-chip-badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.sports-team-more {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sports-schedule {
  padding: 24px 0;
}

.sports-date-group {
  margin-bottom: 24px;
}

.sports-date-header {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  margin-bottom: 2px;
}

.sports-match-row {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sports-match-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sports-match-time {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.sports-match-stadium {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.sports-match-center {
  display: grid;
  grid-template-columns: 1fr 32px 140px 32px 1fr;
  align-items: center;
  justify-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.sports-match-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.sports-match-team:first-of-type {
  justify-content: flex-end;
}

.sports-match-team:last-of-type {
  justify-content: flex-start;
}

.sports-match-badge {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.sports-match-team-name {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.sports-match-score {
  width: 32px;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  color: #fff;
}

.sports-match-status {
  width: 130px;
  min-height: 24px;
  padding: 0 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
}

.sports-match-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.sports-match-round {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.sports-match-actions {
  display: flex;
  gap: 6px;
}

.sports-match-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.sports-match-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.sports-loading,
.sports-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

.nav-links a.active {
  color: #111;
  border-bottom-color: #111;
}

@media (max-width: 768px) {
  .sports-league-bar {
    padding: 12px 0;
    margin: 0 -5%;
    padding-left: 5%;
    padding-right: 5%;
  }
  .sports-league-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sports-league-tags::-webkit-scrollbar {
    display: none;
  }
  .sports-tag {
    flex-shrink: 0;
  }

  .sports-match-row {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 12px 10px;
    min-height: auto;
  }
  .sports-match-left {
    order: 1;
  }
  .sports-match-right {
    grid-column: 2;
    order: 2;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }
  .sports-match-center {
    grid-column: 1 / -1;
    order: 3;
    grid-template-columns: minmax(0, 1fr) 28px 90px 28px minmax(0, 1fr);
    gap: 6px;
    max-width: 100%;
    padding: 8px 0;
  }
  .sports-match-team {
    min-width: 0;
  }
  .sports-match-team-name {
    max-width: 100%;
    font-size: 0.85rem;
  }
  .sports-match-status {
    width: 88px;
    font-size: 0.7rem;
  }
  .sports-match-badge {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
}

/* Festival detail hotels (parity with sports) */
#festival-detail .hotel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
#festival-detail .hotel-section-head-start {
  display: flex;
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
#festival-detail .hotel-section-head .hotel-section-title {
  margin-bottom: 0;
  flex-shrink: 0;
  align-self: center;
}
#festival-detail .hotel-section-head .hotel-source-tabs {
  flex-shrink: 0;
  align-self: center;
}
/* 호텔 리스트 박스(.hotel-list-wrap 320px)와 같은 너비·우측 정렬로 끝선 일치 */
#festival-detail .hotel-date-range-row--head {
  flex: 0 1 320px;
  width: 320px;
  max-width: 100%;
  margin-left: auto;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}
#festival-detail .hotel-date-range-row--head .hotel-date-field {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}
#festival-detail .hotel-map-wrap {
  display: flex;
  flex-direction: column;
  height: 500px;
}
#festival-detail .hotel-map-progress-slot {
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 0;
}
#festival-detail .hotel-map-progress-slot:has(.hotel-source-progress--visible),
#festival-detail .hotel-map-progress-slot:has(.hotel-source-progress--hiding) {
  margin-bottom: 10px;
}
#festival-detail .hotel-map-progress-slot .hotel-source-progress {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#festival-detail .detail-hotel-map {
  flex: 1;
  min-height: 0;
  height: auto !important;
}
@media (max-width: 768px) {
  #festival-detail .hotel-map-wrap {
    height: 400px;
  }
  #festival-detail .hotel-section-head-start {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #festival-detail .hotel-section-head .hotel-section-title {
    align-self: flex-start;
  }
  #festival-detail .hotel-section-head .hotel-source-tabs {
    align-self: flex-start;
  }
  #festival-detail .hotel-date-range-row--head {
    flex: none;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  #festival-detail .hotel-date-range-row--head .hotel-date-field {
    max-width: none;
  }
}
#festival-detail .hotel-source-progress.hotel-source-progress--visible {
  opacity: 1;
}
#festival-detail .hotel-source-progress.hotel-source-progress--hiding {
  opacity: 0;
}
#festival-detail .hotel-source-progress-track {
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
#festival-detail .hotel-source-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.22s ease-out;
}
#festival-detail .hotel-date-range-row:not(.hotel-date-range-row--head) {
  flex-shrink: 0;
  padding: 0 2px 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid #e8eaed;
}
#festival-detail .hotel-date-range-fields {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
#festival-detail .hotel-date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
}
#festival-detail .hotel-date-field-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: -0.02em;
}
#festival-detail .hotel-date-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111;
  font-family: inherit;
  background: #fff;
  min-height: 40px;
}
#festival-detail .hotel-date-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
#festival-detail .hotel-date-range-tilde {
  flex-shrink: 0;
  font-weight: 800;
  color: #9ca3af;
  padding-bottom: 10px;
  font-size: 0.875rem;
}
#festival-detail .hotel-date-trigger {
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
#festival-detail .hotel-date-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  visibility: hidden;
}
#festival-detail .hotel-date-sheet-root.is-open {
  pointer-events: auto;
  visibility: visible;
}
#festival-detail .hotel-date-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}
#festival-detail .hotel-date-sheet-root.is-open .hotel-date-sheet-backdrop {
  opacity: 1;
}
#festival-detail .hotel-date-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(85vh, 560px);
  height: min(85vh, 560px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.16);
  padding: 10px 16px 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  #festival-detail .hotel-date-sheet-panel {
    max-height: 96vh;
    height: 96vh;
    border-radius: 14px 14px 0 0;
    padding-left: 14px;
    padding-right: 14px;
  }
}
#festival-detail .hotel-date-sheet-root.is-open .hotel-date-sheet-panel {
  transform: translateY(0);
}
#festival-detail .hotel-date-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 0 auto 2px;
  flex-shrink: 0;
}
#festival-detail .hotel-date-sheet-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: #111;
  letter-spacing: -0.02em;
}
#festival-detail .hotel-date-sheet-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 -4px;
}
#festival-detail .hotel-date-sheet-calendar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 8px;
  background: #fff;
}
#festival-detail .hotel-cal-month {
  margin-bottom: 8px;
}
#festival-detail .hotel-cal-month-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  padding: 18px 6px 14px;
}
#festival-detail .hotel-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 0 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
}
#festival-detail .hotel-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 2px;
  padding: 0 2px 20px;
}
#festival-detail .hotel-cal-pad {
  min-height: 52px;
  pointer-events: none;
}
#festival-detail .hotel-cal-cell {
  position: relative;
  border: none;
  background: transparent;
  margin: 0;
  padding: 8px 2px 10px;
  min-height: 52px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}
#festival-detail .hotel-cal-cell:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
#festival-detail .hotel-cal-cell--disabled {
  cursor: default;
  pointer-events: none;
}
#festival-detail .hotel-cal-cell--disabled .hotel-cal-daynum {
  color: #e5e7eb !important;
  font-weight: 500;
}
#festival-detail
  .hotel-cal-cell--sun:not(.hotel-cal-cell--disabled)
  .hotel-cal-daynum {
  color: #dc2626;
}
#festival-detail
  .hotel-cal-cell--sat:not(.hotel-cal-cell--disabled)
  .hotel-cal-daynum {
  color: #2563eb;
}
#festival-detail
  .hotel-cal-cell--holiday:not(.hotel-cal-cell--disabled)
  .hotel-cal-daynum {
  color: #dc2626;
  font-weight: 800;
}
#festival-detail .hotel-cal-daynum {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}
#festival-detail .hotel-cal-cell--today .hotel-cal-daynum {
  font-weight: 800;
  color: #111;
}
#festival-detail .hotel-cal-today {
  margin-top: 2px;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #db2777;
  line-height: 1;
}
#festival-detail .hotel-cal-cell.is-selected:not(.hotel-cal-cell--disabled) {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 2px #2563eb;
}
#festival-detail .hotel-cal-cell.is-range:not(.hotel-cal-cell--disabled) {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px;
}
#festival-detail .hotel-date-sheet-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 2px;
  flex-shrink: 0;
}
#festival-detail .hotel-date-sheet-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
#festival-detail .hotel-date-sheet-btn--ghost {
  background: #f3f4f6;
  color: #374151;
}
#festival-detail .hotel-date-sheet-btn--primary {
  background: #2563eb;
  color: #fff;
}
#festival-detail .hotel-date-sheet-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#festival-detail .hotel-list-wrap {
  display: flex;
  flex-direction: column;
}
#festival-detail .hotel-list-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
  margin: 0 2px 4px;
  border-bottom: 1px solid #e8eaed;
}
#festival-detail .hotel-list-nights-label {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}
#festival-detail .hotel-sort-wrap {
  flex-shrink: 0;
}
#festival-detail .hotel-sort-select {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 30px 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  max-width: 9.5rem;
}
#festival-detail .hotel-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -2px;
  padding: 0 2px;
}
#festival-detail .hotel-card-meta {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  line-height: 1.25;
  display: block;
}
#festival-detail .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#festival-detail .hotel-source-tabs {
  display: inline-flex;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
#festival-detail .hotel-source-tab {
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    color 0.15s;
}
#festival-detail .hotel-source-tab + .hotel-source-tab {
  border-left: 1px solid #e5e7eb;
}
#festival-detail .hotel-source-tab:hover {
  color: #111;
  background: #f9fafb;
}
#festival-detail .hotel-source-tab.active {
  background: #111;
  color: #fff;
}
#festival-detail .hotel-live-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  padding: 24px 12px;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
#festival-detail .hotel-live-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  animation: hotel-spin 0.75s linear infinite;
}
@keyframes hotel-spin {
  to {
    transform: rotate(360deg);
  }
}
#festival-detail .hotel-card--no-room {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.2);
}
#festival-detail .hotel-card--no-room .hotel-card-book--disabled {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: not-allowed;
  user-select: none;
}
#festival-detail .hotel-card-price--loading {
  display: inline-flex;
  align-items: center;
  min-height: 1.4em;
  vertical-align: middle;
}
#festival-detail .hotel-card-price-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  border-top-color: #2563eb;
  animation: hotel-spin 0.75s linear infinite;
}
#festival-detail .hotel-card-price--na {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 700;
}
