.route-breadcrumb {
  background: transparent;
  border: none;
  padding: 0 0 16px;
}

.route-feature-tags {
  margin-top: 16px;
}

.route-feature-badge {
  background: #fcece3;
  color: var(--primary);
}

.detail-route .route-header {
  background: #fff;
  border: 1px solid var(--line);
  border-width: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.detail-route .route-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--primary);
}

.detail-route .route-title-area h1 {
  margin: 0 0 12px;
}

.detail-route .route-meta {
  display: flex;
  gap: 20px;
  color: var(--text-soft);
  font-size: var(--font-sm);
}

.detail-route .route-price-area {
  text-align: right;
  border-left: 1px dashed var(--line);
  padding-left: 30px;
}

.detail-route .route-price-area .price {
  font-size: var(--font-4xl);
  color: var(--primary);
  font-weight: bold;
  line-height: 1;
  margin-bottom: 12px;
}

.detail-route .route-price-area .btn {
  padding: 10px 30px;
  border-radius: 999px;
  text-align: center;
}

.detail-route .route-timeline {
  position: relative;
  padding-left: 24px;
  margin: 24px 0 40px;
}

.detail-route .route-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffe3d5;
}

.detail-route .timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.detail-route .timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
}

.detail-route .timeline-day {
  font-weight: bold;
  font-size: var(--font-lg-plus);
  color: var(--primary);
  margin-bottom: 8px;
}

.detail-route .timeline-content {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 12px;
  font-size: var(--font-sm);
}

.route-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.route-video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.route-video-nav {
  display: none;
  gap: 8px;
}

.route-video-nav button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #fff3e8;
  color: var(--primary);
  font-size: var(--font-lg-plus);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.route-video-scroller {
  display: flex;
  gap: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.route-video-card {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  padding: 16px;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: calc((100% - 32px) / 3);
}

.route-side-note {
  background: #f9f9f9;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.route-note-text {
  font-size: var(--font-xs);
}

.route-gallery {
  grid-template-columns: repeat(2, 1fr);
}

.route-gallery .thumb {
  margin-bottom: 0;
}

.route-gallery-thumb {
  margin-bottom: 0;
}

.route-related-section {
  margin-top: 30px;
}

.route-related-heading {
  margin-bottom: 14px;
}

.route-related-list {
  display: grid;
  gap: 14px;
}

.route-related-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  align-items: center;
}

.route-related-thumb {
  width: 108px;
  aspect-ratio: 4 / 3;
  margin: 0;
  flex-shrink: 0;
}

.route-related-content {
  min-width: 0;
}

.route-related-type {
  margin: 0 0 6px;
}

.route-related-name {
  margin: 0 0 6px;
  font-size: var(--font-md);
  line-height: 1.45;
}

.route-related-name a:hover {
  color: var(--primary);
}

.route-related-meta {
  margin: 0 0 6px;
}

.route-related-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--font-xs);
  line-height: 1.7;
}

.route-recommend-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.route-recommend-thumb {
  width: 100px;
  aspect-ratio: 4 / 3;
  margin: 0;
  flex-shrink: 0;
}

.route-price-original {
  font-size: var(--font-md);
  color: #999;
  font-weight: 400;
}

.route-contact-actions {
  flex-direction: column;
  gap: 8px;
}

.route-contact-subbtn {
  padding: 8px 16px;
  font-size: var(--font-xs);
}

.route-video-title,
.route-side-note-title {
  margin-top: 0;
}

.route-intro {
  color: var(--text-soft);
  line-height: 1.8;
}

.route-itinerary-title {
  margin-top: 40px;
}

.route-recommend-title {
  margin: 0 0 6px;
}

.route-recommend-meta {
  margin: 0;
}

.route-price-emphasis {
  color: var(--primary);
  font-weight: bold;
}

@media (max-width: 1000px) {
  .detail-route .route-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .detail-route .route-meta {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .detail-route .route-price-area {
    width: 100%;
    text-align: left;
    border-left: none;
    border-top: 1px dashed var(--line);
    padding-left: 0;
    padding-top: 20px;
  }

  .route-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .route-video-card {
    flex-basis: calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 860px) {
  .route-video-toolbar {
    align-items: flex-start;
  }

  .route-video-card {
    flex-basis: 100%;
    min-width: 100%;
    height: 180px;
  }

  .route-side-note {
    padding: 18px;
  }

  .route-recommend-card {
    align-items: flex-start;
  }

  .route-related-card {
    align-items: flex-start;
  }

  .route-related-thumb {
    width: 92px;
  }

  .route-recommend-thumb {
    width: 88px;
  }
}

@media (max-width: 560px) {
  .route-gallery {
    grid-template-columns: 1fr;
  }

  .route-related-card {
    flex-direction: column;
  }

  .route-related-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

.route-video-card--media {
  padding: 0;
  overflow: hidden;
  background: #000;
}

.route-video-card--media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.route-gallery a {
  display: block;
}

.route-gallery-empty {
  color: var(--text-soft);
  grid-column: 1 / -1;
}

/* route.html page-specific styles moved from inline <style> */
.detail-route {
  background: #ffffff;
}

.detail-route .route-header {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(255, 106, 40, 0.15);
  box-shadow: 0 16px 40px rgba(255, 106, 40, 0.06);
  margin-bottom: 40px;
}

.route-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 340px);
  gap: 60px;
  margin-bottom: 56px;
  align-items: start;
}

.route-main-column,
.route-side-column {
  display: grid;
  gap: 48px;
  min-width: 0;
}

.route-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.route-card-header {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
}

.route-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #222;
  position: relative;
  padding-left: 14px;
}

.route-card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.route-card-subtitle {
  margin-left: 16px;
  font-size: 14px;
  color: #888;
}

.route-note-card {
  background: #f5f5f5;
  border-radius: 24px;
  padding: 28px 32px;
}

.route-note-card .route-card-header {
  margin-bottom: 18px;
}

.route-note-card .route-card-title {
  padding-left: 0;
  font-size: 18px;
  color: #1f1f1f;
}

.route-note-card .route-card-title::before {
  display: none;
}

.route-intro-rich {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
}

.route-itinerary-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: start;
}

.route-day-nav-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 100px;
}

.route-day-tab-v {
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.route-day-tab-v:hover {
  color: var(--primary);
  background: #fff9f5;
}

.route-day-tab-v.is-active {
  color: var(--primary);
  background: #fff3ea;
}

.route-day-panels {
  min-width: 0;
}

.route-day-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.route-day-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.route-stage-desc-block {
  margin-bottom: 32px;
}

.route-stage-day-title {
  font-size: 20px;
  font-weight: 800;
  color: #222;
  margin: 0 0 12px 0;
}

.route-stage-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
}

.route-day-media-block {
  margin-top: 32px;
}

.route-media-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px 0;
}

.route-video-carousel {
  position: relative;
}

.route-video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.42);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.route-video-nav[data-video-nav="prev"] {
  left: 16px;
}

.route-video-nav[data-video-nav="next"] {
  right: 16px;
}

.route-video-nav:hover {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 106, 40, 0.82);
}

.route-video-nav:disabled {
  cursor: not-allowed;
  opacity: 0.28;
  color: #fff;
  background: rgba(15, 15, 15, 0.26);
}

.route-video-viewport {
  overflow: hidden;
  min-width: 0;
}

.route-video-track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}

.route-video-item {
  flex: 0 0 100%;
  min-width: 0;
}

.route-video-feature {
  background: #000;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 100%;
}

.route-video-feature-title {
  font-weight: normal;
}

.route-video-mini {
  background: #111;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 13px;
  width: 100%;
}

.route-gallery-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.route-gallery-grid::-webkit-scrollbar {
  height: 6px;
}

.route-gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.route-gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  flex: 0 0 calc((100% - 36px) / 4);
  scroll-snap-align: start;
}

.route-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.route-gallery-item:hover img {
  transform: scale(1.05);
}

.route-note-text {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.95;
}

.route-related-section .route-card-header {
  margin-bottom: 16px;
}

.route-related-section .route-card-title {
  padding-left: 0;
  font-size: 18px;
  color: #1f1f1f;
}

.route-related-section .route-card-title::before {
  display: none;
}

.route-related-card-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.route-related-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.route-related-card:hover {
  transform: none !important;
}

.route-related-thumb {
  width: 108px;
  height: 80px;
  border-radius: 12px;
  flex: 0 0 108px;
  margin: 0 !important;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.route-related-content {
  min-width: 0;
}

.route-related-type {
  margin: 0 0 8px 0;
  line-height: 1;
}

.route-related-type .badge {
  background: #fff1e6;
  color: var(--primary);
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  margin-right: 0;
  font-size: 13px;
}

.route-related-name {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.route-related-meta {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.route-related-desc {
  display: none;
}

.route-recommend-thumb {
  border-radius: 12px;
}

@media (max-width: 992px) {
  .route-page-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .route-day-nav-vertical {
    position: static;
  }

  .route-related-card-grid {
    flex-direction: row;
  }

  .route-related-card {
    flex: 1;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .route-itinerary-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .route-day-nav-vertical {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .route-day-tab-v {
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    padding: 10px 16px;
  }

  .route-day-tab-v.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }

  .route-related-card-grid {
    flex-direction: column;
  }

  .route-related-card {
    align-items: center;
  }

  .route-gallery-item {
    flex-basis: calc((100% - 12px) / 2);
  }

  .route-video-carousel {
    position: relative;
  }

  .route-video-nav {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .route-video-nav[data-video-nav="prev"] {
    left: 10px;
  }

  .route-video-nav[data-video-nav="next"] {
    right: 10px;
  }
}
