/* Google Fonts - Pretendard fallback */
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

    /* CSS Variables for consistent theming */
    :root {
      --primary-color: #6366f1;
      --primary-hover: #4f46e5;
      --secondary-color: #8b5cf6;
      --text-primary: #111827;
      --text-secondary: #6b7280;
      --text-muted: #9ca3af;
      --bg-primary: #ffffff;
      --bg-secondary: #f8fafc;
      --bg-tertiary: #f1f5f9;
      --border-color: #e5e7eb;
      --border-light: #f3f4f6;
      --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
      --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
      --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      --radius-sm: 6px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --radius-xl: 16px;
    }



    /* Container with subtle backdrop */
    .container {
      max-width: 80%;
      margin: 0 auto;
      padding: 5rem 1rem;
    }

    .itinerary-layout {
      display: grid;
      grid-template-columns: 1fr 400px;
      gap: 2rem;
      align-items: start;
    }

    /* Modern card styling */
    .card {
      background: var(--bg-primary);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border-light);
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    }

    .left-content {
      padding: 2.5rem;
    }

    .right-summary {
      position: sticky;
      top: 120px;
      padding: 2rem;
    }

    /* Modern typography */
    .course-title {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 1rem;
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

.course-main-image {
  position: relative;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.course-main-image .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.course-main-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

.course-main-image:hover img {
  transform: scale(1.02);
}

.course-main-image .swiper-button-prev,
.course-main-image .swiper-button-next {
  color: #333;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.course-main-image .swiper-button-prev::after,
.course-main-image .swiper-button-next::after {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

    /* Overview section */
    .course-overview h3 {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .course-overview h3::before {
      content: "✨";
      font-size: 1.25rem;
    }

    .course-overview p {
      font-size: 1.1rem;
      color: var(--text-secondary);
      margin-bottom: 2.5rem;
      line-height: 1.7;
    }

    /* Modern accordion styling */
    .day-section {
      margin-bottom: 1.5rem;
      border-radius: var(--radius-lg);
      background: var(--bg-secondary);
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .day-section:hover {
      background: var(--bg-tertiary);
    }

    .day-section h4 {
      background: transparent;
      color: var(--text-primary);
      padding: 1.5rem 2rem;
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
      cursor: pointer;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.3s ease;
      border: none;
    }

    .day-section h4:hover {
      color: var(--primary-color);
    }

    .day-section h4 .arrow {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--primary-color);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      transition: all 0.3s ease;
      transform: rotate(0deg);
    }

    .day-section.open h4 .arrow {
      transform: rotate(90deg);
      background: var(--primary-hover);
    }

    .day-section .day-content {
      max-height: 0;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      opacity: 0;
      padding: 0 2rem;
    }

    .day-section.open .day-content {
      max-height: 4000px;
      opacity: 1;
      padding: 0 2rem 2rem;
    }

    /* Modern place item cards */
    .place-item {
      background: var(--bg-primary);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      margin-top: 1rem;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-color);
      transition: all 0.3s ease;
    }

    .place-item:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary-color);
    }

    .place-images {
      display: grid;
      grid-template-columns: 1fr; /* 항상 한 장 기준 */
      width: 100%;
      margin-bottom: 1.25rem;
    }

    .place-images img {
      width: 100%;
      height: 300px;         /* 원하는 높이로 조절 (예: 250~400px) */
      object-fit: cover;     /* 이미지 비율 유지하며 영역 꽉 채움 */
      border-radius: 8px;    /* 모서리 둥글게 (선택) */
    }

    .place-images img:hover {
      transform: scale(1.05);
    }

    .place-description h5 {
      font-size: 1.25rem;
      margin: 0 0 0.75rem 0;
      color: var(--text-primary);
      font-weight: 600;
    }

    .place-description p {
      margin: 0.5rem 0;
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .place-description p strong {
      color: var(--text-primary);
      font-weight: 500;
    }

     .place-description p img {
          vertical-align:-4px;
        }

    /* Modern button styling */
    .course-buttons {
      margin-top: 3rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
    }

    .course-buttons button {
      background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
      color: white;
      border: none;
      border-radius: var(--radius-md);
      padding: 1rem 1.5rem;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
    }

    .course-buttons button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.5s;
    }

    .course-buttons button:hover::before {
      left: 100%;
    }

    .course-buttons button:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
    }

    .course-buttons button:nth-child(2) {
      background: linear-gradient(135deg, var(--secondary-color), #7c3aed);
    }

    .course-buttons button:nth-child(3) {
      background: linear-gradient(135deg, #10b981, #059669);
    }

    /* Modern AI badge */
    .ai-label {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      text-align: center;
      padding: 1rem;
      margin-bottom: 2rem;
      border-radius: var(--radius-lg);
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.025em;
      position: relative;
      overflow: hidden;
    }

    .ai-label::before {
      content: '🤖';
      margin-right: 0.5rem;
    }

    /* Modern info styling */
    .info-box {
      padding: 0;
      margin: 0 0 2rem 0;
      background: var(--bg-secondary);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
    }

    .info-box li {
      list-style: none;
      margin-bottom: 1rem;
      font-size: 0.95rem;
      color: var(--text-secondary);
      padding: 0.75rem;
      background: var(--bg-primary);
      border-radius: var(--radius-md);
      border-left: 4px solid var(--primary-color);
      transition: all 0.3s ease;
    }

    .info-box li:hover {
      transform: translateX(4px);
      box-shadow: var(--shadow-sm);
    }

    .info-box li:last-child {
      margin-bottom: 0;
    }

    .info-box li strong {
      color: var(--text-primary);
      font-weight: 600;
    }

    /* Modern map styling */
    .map-area {
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
    }

    .map-area iframe {
      width: 100%;
      height: 320px;
      border: none;
    }


    @media (max-width: 1024px) {

    .container {
      max-width: 95%;
    }

    .itinerary-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .right-summary {
        position: static;
      }

      .container {
        padding: 1rem;
      }

      .left-content,
      .right-summary {
        padding: 1.5rem;
      }

      .course-title {
        font-size: 2rem;
      }

      .place-images {
        grid-template-columns: 1fr;
        gap: 0.5rem;
      }

      .place-images img {
        aspect-ratio: 16 / 9;
      }

      .course-buttons {
        grid-template-columns: 1fr;
      }

      .day-section .day-content {
        padding: 0 1rem;
      }

      .day-section.open .day-content {
        padding: 0 1rem 1.5rem;
      }

      .day-section h4 {
        padding: 1.25rem 1rem;
        font-size: 1.1rem;
      }

      .map-area iframe {
        height: 250px;
      }
    }