@charset "UTF-8";

/*
===============================================================================
玹翔旅遊｜V43 Enterprise Production
正式商業版 CSS｜Luxury Black Gold Design System

SYSTEM_VERSION：V43_Enterprise_Production
SYSTEM_OWNER：玹翔旅遊 Xuan Xiang Travel
ENVIRONMENT：Production
===============================================================================
*/
/* FILE：carousel.css */

/* =========================================================
   玹翔旅遊
   Home Carousel Module
   V43_Enterprise_Production

   Modules:
   - Activity Carousel
   - News Carousel
   - Tour Carousel
   - Vehicle Carousel
   - Review Carousel
   - Navigation Dots
   - Navigation Arrows

   Version: V43_Enterprise_Production
   Environment: Production
========================================================= */

/* =========================================================
   01. Design Tokens
========================================================= */

:root {
  --V43_Enterprise_Production-carousel-gold: #d8b56d;
  --V43_Enterprise_Production-carousel-gold-light: #f7df9b;
  --V43_Enterprise_Production-carousel-gold-soft: #fff0b8;

  --V43_Enterprise_Production-carousel-bg: #07090d;
  --V43_Enterprise_Production-carousel-surface: #111827;
  --V43_Enterprise_Production-carousel-surface-deep: #090d14;

  --V43_Enterprise_Production-carousel-text: #f8fafc;
  --V43_Enterprise_Production-carousel-muted: #a9b2c1;

  --V43_Enterprise_Production-carousel-border: rgba(216, 181, 109, 0.2);

  --V43_Enterprise_Production-carousel-border-hover: rgba(255, 240, 184, 0.62);

  --V43_Enterprise_Production-carousel-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);

  --V43_Enterprise_Production-carousel-shadow-hover:
    0 30px 90px rgba(0, 0, 0, 0.46), 0 0 42px rgba(216, 181, 109, 0.16);

  --V43_Enterprise_Production-carousel-radius: 28px;
  --V43_Enterprise_Production-carousel-gap: 24px;

  --V43_Enterprise_Production-carousel-transition: 320ms
    cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   02. Base Wrapper
========================================================= */

.carousel-wrap,
.news-slider-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.carousel-wrap {
  overflow: hidden;
  isolation: isolate;
}

.carousel-wrap::before,
.carousel-wrap::after {
  position: absolute;
  top: 0;
  bottom: 0;

  width: 54px;

  z-index: 3;
  pointer-events: none;

  content: "";

  opacity: 0;

  transition: opacity var(--V43_Enterprise_Production-carousel-transition);
}

.carousel-wrap::before {
  left: 0;

  background: linear-gradient(90deg, rgba(7, 9, 13, 0.88), rgba(7, 9, 13, 0));
}

.carousel-wrap::after {
  right: 0;

  background: linear-gradient(270deg, rgba(7, 9, 13, 0.88), rgba(7, 9, 13, 0));
}

.carousel-wrap:hover::before,
.carousel-wrap:hover::after,
.carousel-wrap:focus-within::before,
.carousel-wrap:focus-within::after {
  opacity: 1;
}

/* =========================================================
   03. Shared Carousel Track
========================================================= */

.activity-carousel,
.news-carousel,
.tour-carousel,
.vehicle-carousel,
.review-carousel {
  display: flex;
  align-items: stretch;

  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;

  touch-action: pan-x pinch-zoom;
}

.activity-carousel::-webkit-scrollbar,
.news-carousel::-webkit-scrollbar,
.tour-carousel::-webkit-scrollbar,
.vehicle-carousel::-webkit-scrollbar,
.review-carousel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.activity-carousel:focus-visible,
.news-carousel:focus-visible,
.tour-carousel:focus-visible,
.vehicle-carousel:focus-visible,
.review-carousel:focus-visible {
  outline: 2px solid rgba(247, 223, 155, 0.9);

  outline-offset: 6px;

  border-radius: var(--V43_Enterprise_Production-carousel-radius);
}

/* =========================================================
   04. News Carousel
========================================================= */

.news-carousel {
  gap: 0;
}

.news-slide {
  position: relative;

  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.news-slide[aria-hidden="true"] {
  pointer-events: none;
}

.news-slider-wrap {
  overflow: hidden;

  border-radius: clamp(24px, 4vw, 42px);

  background: linear-gradient(
    145deg,
    rgba(17, 28, 39, 0.98),
    rgba(5, 5, 5, 0.98)
  );

  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

/* =========================================================
   05. Activity Carousel
========================================================= */

.activity-carousel {
  gap: var(--V43_Enterprise_Production-carousel-gap);

  padding: 8px 2px 18px;
}

.activity-carousel > * {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* =========================================================
   06. Tour Carousel
========================================================= */

.tour-carousel {
  gap: var(--V43_Enterprise_Production-carousel-gap);

  margin-top: 30px;

  padding: 10px 2px 22px;
}

.tour-card {
  position: relative;

  flex: 0 0 clamp(300px, 27vw, 360px);

  min-width: clamp(300px, 27vw, 360px);

  min-height: 100%;

  overflow: hidden;

  scroll-snap-align: start;
  scroll-snap-stop: normal;

  border: 1px solid var(--V43_Enterprise_Production-carousel-border);

  border-radius: var(--V43_Enterprise_Production-carousel-radius);

  background: linear-gradient(
    145deg,
    rgba(22, 30, 43, 0.98),
    rgba(10, 15, 24, 0.98)
  );

  box-shadow: var(--V43_Enterprise_Production-carousel-shadow);

  transform: translate3d(0, 0, 0);

  transform-origin: center center;

  transition:
    transform var(--V43_Enterprise_Production-carousel-transition),
    box-shadow var(--V43_Enterprise_Production-carousel-transition),
    border-color var(--V43_Enterprise_Production-carousel-transition),
    background-color var(--V43_Enterprise_Production-carousel-transition);
}

.tour-card::before {
  position: absolute;
  inset: 0;

  z-index: 0;
  pointer-events: none;

  content: "";

  border-radius: inherit;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    transparent 38%,
    transparent 72%,
    rgba(216, 181, 109, 0.08)
  );

  opacity: 0.55;

  transition: opacity var(--V43_Enterprise_Production-carousel-transition);
}

.tour-card::after {
  position: absolute;
  inset: -1px;

  z-index: 0;
  pointer-events: none;

  content: "";

  border-radius: inherit;

  background: radial-gradient(
    circle at 50% 0%,
    rgba(247, 223, 155, 0.16),
    transparent 42%
  );

  opacity: 0;

  transition: opacity var(--V43_Enterprise_Production-carousel-transition);
}

.tour-card > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .tour-card:hover {
    z-index: 2;

    transform: translate3d(0, -10px, 0) scale(1.02);

    border-color: var(--V43_Enterprise_Production-carousel-border-hover);

    box-shadow: var(--V43_Enterprise_Production-carousel-shadow-hover);
  }

  .tour-card:hover::before {
    opacity: 0.9;
  }

  .tour-card:hover::after {
    opacity: 1;
  }
}

.tour-card:focus-within {
  border-color: var(--V43_Enterprise_Production-carousel-border-hover);

  box-shadow: var(--V43_Enterprise_Production-carousel-shadow-hover);
}

/* =========================================================
   07. Vehicle Carousel
========================================================= */

.vehicle-carousel {
  gap: var(--V43_Enterprise_Production-carousel-gap);

  padding: 14px 4px 28px;

  perspective: 1600px;
  transform-style: preserve-3d;
}

.vehicle-carousel .tour-card {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
  .vehicle-carousel .tour-card:hover {
    transform: perspective(1600px) rotateY(7deg) translate3d(0, -12px, 16px)
      scale(1.025);
  }

  .vehicle-carousel .tour-card:nth-child(even):hover {
    transform: perspective(1600px) rotateY(-7deg) translate3d(0, -12px, 16px)
      scale(1.025);
  }
}

/* =========================================================
   08. Review Carousel
========================================================= */

.review-carousel {
  gap: var(--V43_Enterprise_Production-carousel-gap);

  padding: 8px 2px 22px;
}

.review-card {
  position: relative;

  flex: 0 0 clamp(340px, 36vw, 440px);

  min-width: clamp(340px, 36vw, 440px);

  scroll-snap-align: start;

  transition:
    transform var(--V43_Enterprise_Production-carousel-transition),
    border-color var(--V43_Enterprise_Production-carousel-transition),
    box-shadow var(--V43_Enterprise_Production-carousel-transition);
}

@media (hover: hover) and (pointer: fine) {
  .review-card:hover {
    transform: translateY(-6px);

    border-color: rgba(247, 223, 155, 0.5);

    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  }
}

/* =========================================================
   09. Carousel Navigation Dots
========================================================= */

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 10px;

  min-height: 28px;

  margin-top: 18px;
}

.carousel-dot {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 12px;
  height: 12px;

  flex: 0 0 auto;

  padding: 0;

  appearance: none;
  -webkit-appearance: none;

  border: 1px solid rgba(216, 181, 109, 0.22);

  border-radius: 999px;

  background: rgba(216, 181, 109, 0.24);

  box-shadow: none;

  cursor: pointer;

  transform: translateZ(0);

  transition:
    width var(--V43_Enterprise_Production-carousel-transition),
    transform var(--V43_Enterprise_Production-carousel-transition),
    background-color var(--V43_Enterprise_Production-carousel-transition),
    border-color var(--V43_Enterprise_Production-carousel-transition),
    box-shadow var(--V43_Enterprise_Production-carousel-transition);
}

.carousel-dot::before {
  position: absolute;
  inset: -8px;

  content: "";
}

.carousel-dot:hover {
  transform: scale(1.14);

  border-color: rgba(247, 223, 155, 0.7);

  background: rgba(247, 223, 155, 0.54);
}

.carousel-dot.active,
.carousel-dot[aria-current="true"] {
  width: 32px;

  border-color: rgba(247, 223, 155, 0.88);

  background: linear-gradient(
    90deg,
    var(--V43_Enterprise_Production-carousel-gold),
    var(--V43_Enterprise_Production-carousel-gold-light)
  );

  box-shadow: 0 0 16px rgba(247, 223, 155, 0.58);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--V43_Enterprise_Production-carousel-gold-light);

  outline-offset: 4px;
}

/* =========================================================
   10. Carousel Arrows
========================================================= */

.carousel-arrow {
  position: absolute;
  top: 50%;

  z-index: 6;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  padding: 0;

  appearance: none;
  -webkit-appearance: none;

  border: 1px solid rgba(216, 181, 109, 0.38);

  border-radius: 50%;

  color: var(--V43_Enterprise_Production-carousel-gold-light);

  background: rgba(8, 10, 14, 0.84);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(16px) saturate(130%);

  -webkit-backdrop-filter: blur(16px) saturate(130%);

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    transform var(--V43_Enterprise_Production-carousel-transition),
    color var(--V43_Enterprise_Production-carousel-transition),
    border-color var(--V43_Enterprise_Production-carousel-transition),
    background-color var(--V43_Enterprise_Production-carousel-transition),
    box-shadow var(--V43_Enterprise_Production-carousel-transition),
    opacity var(--V43_Enterprise_Production-carousel-transition);
}

.carousel-arrow::before {
  font-size: 24px;
  line-height: 1;
}

.carousel-arrow:hover {
  color: #fff8d9;

  border-color: rgba(247, 223, 155, 0.7);

  background: rgba(216, 181, 109, 0.2);

  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(216, 181, 109, 0.16);

  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-arrow:focus-visible {
  outline: 2px solid var(--V43_Enterprise_Production-carousel-gold-light);

  outline-offset: 4px;
}

.carousel-arrow:disabled,
.carousel-arrow.is-disabled,
.carousel-arrow[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.carousel-prev {
  left: clamp(8px, 1.5vw, 18px);
}

.carousel-next {
  right: clamp(8px, 1.5vw, 18px);
}

/* =========================================================
   11. Carousel Status
========================================================= */

.carousel-status {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;

  margin-top: 8px;

  color: var(--V43_Enterprise_Production-carousel-muted);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.carousel-status strong {
  color: var(--V43_Enterprise_Production-carousel-gold-light);
}

/* =========================================================
   12. Dragging State
========================================================= */

.activity-carousel.is-dragging,
.news-carousel.is-dragging,
.tour-carousel.is-dragging,
.vehicle-carousel.is-dragging,
.review-carousel.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;

  cursor: grabbing;
  user-select: none;
}

.activity-carousel.is-draggable,
.news-carousel.is-draggable,
.tour-carousel.is-draggable,
.vehicle-carousel.is-draggable,
.review-carousel.is-draggable {
  cursor: grab;
}

.is-dragging a,
.is-dragging button {
  pointer-events: none;
}

/* =========================================================
   13. Loading State
========================================================= */

.carousel-wrap.is-loading {
  min-height: 240px;
}

.carousel-wrap.is-loading::before {
  position: absolute;
  inset: 0;

  z-index: 10;

  width: auto;

  content: "";

  opacity: 1;

  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.02) 8%,
    rgba(255, 255, 255, 0.09) 18%,
    rgba(255, 255, 255, 0.02) 33%
  );

  background-size: 220% 100%;

  animation: V43_Enterprise_ProductionCarouselLoading 1.5s linear infinite;
}

@keyframes V43_Enterprise_ProductionCarouselLoading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* =========================================================
   14. Empty State
========================================================= */

.carousel-empty {
  display: grid;
  place-items: center;

  width: 100%;
  min-height: 220px;

  padding: 32px;

  border: 1px dashed rgba(216, 181, 109, 0.28);

  border-radius: var(--V43_Enterprise_Production-carousel-radius);

  color: var(--V43_Enterprise_Production-carousel-muted);

  background: rgba(17, 24, 39, 0.48);

  text-align: center;
}

/* =========================================================
   15. Desktop and Tablet
========================================================= */

@media (max-width: 1180px) {
  .tour-card {
    flex-basis: clamp(300px, 36vw, 350px);

    min-width: clamp(300px, 36vw, 350px);
  }

  .review-card {
    flex-basis: clamp(330px, 46vw, 410px);

    min-width: clamp(330px, 46vw, 410px);
  }
}

/* =========================================================
   16. Tablet
========================================================= */

@media (max-width: 980px) {
  .carousel-wrap {
    overflow: visible;
  }

  .carousel-wrap::before,
  .carousel-wrap::after {
    display: none;
  }

  .carousel-arrow {
    display: none;
  }

  .activity-carousel,
  .tour-carousel,
  .vehicle-carousel,
  .review-carousel {
    scroll-padding-inline: clamp(16px, 4vw, 28px);

    padding-left: clamp(16px, 4vw, 28px);

    padding-right: clamp(16px, 4vw, 28px);

    margin-left: calc(clamp(16px, 4vw, 28px) * -1);

    width: calc(100% + clamp(16px, 4vw, 28px) * 2);
  }

  .tour-card:hover,
  .vehicle-carousel .tour-card:hover,
  .vehicle-carousel .tour-card:nth-child(even):hover {
    transform: none;
  }
}

/* =========================================================
   17. Mobile
========================================================= */

@media (max-width: 640px) {
  :root {
    --V43_Enterprise_Production-carousel-gap: 16px;
    --V43_Enterprise_Production-carousel-radius: 22px;
  }

  .tour-carousel {
    margin-top: 22px;
  }

  .tour-card {
    flex: 0 0 min(85vw, 340px);

    min-width: min(85vw, 340px);

    border-radius: 22px;
  }

  .vehicle-carousel .tour-card {
    flex-basis: min(86vw, 350px);

    min-width: min(86vw, 350px);
  }

  .review-card {
    flex: 0 0 min(88vw, 380px);

    min-width: min(88vw, 380px);
  }

  .carousel-nav {
    gap: 8px;
    margin-top: 14px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-dot.active,
  .carousel-dot[aria-current="true"] {
    width: 26px;
  }
}

/* =========================================================
   18. Small Mobile
========================================================= */

@media (max-width: 420px) {
  .activity-carousel,
  .tour-carousel,
  .vehicle-carousel,
  .review-carousel {
    scroll-padding-inline: 14px;

    padding-left: 14px;
    padding-right: 14px;

    margin-left: -14px;

    width: calc(100% + 28px);
  }

  .tour-card {
    flex-basis: 88vw;
    min-width: 88vw;
  }

  .vehicle-carousel .tour-card {
    flex-basis: 89vw;
    min-width: 89vw;
  }

  .review-card {
    flex-basis: 90vw;
    min-width: 90vw;
  }
}

/* =========================================================
   19. Reduced Motion Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .activity-carousel,
  .news-carousel,
  .tour-carousel,
  .vehicle-carousel,
  .review-carousel {
    scroll-behavior: auto;
  }

  .tour-card,
  .review-card,
  .carousel-arrow,
  .carousel-dot,
  .carousel-wrap::before,
  .carousel-wrap::after {
    transition: none;
  }

  .tour-card:hover,
  .vehicle-carousel .tour-card:hover,
  .vehicle-carousel .tour-card:nth-child(even):hover,
  .review-card:hover,
  .carousel-arrow:hover {
    transform: none;
  }

  .carousel-wrap.is-loading::before {
    animation: none;
  }
}

/* =========================================================
   20. High Contrast Accessibility
========================================================= */

@media (prefers-contrast: more) {
  .tour-card,
  .review-card,
  .carousel-arrow,
  .carousel-dot {
    border-color: rgba(247, 223, 155, 0.78);
  }

  .carousel-dot.active,
  .carousel-dot[aria-current="true"] {
    background: var(--V43_Enterprise_Production-carousel-gold-light);

    box-shadow: none;
  }
}

/* =========================================================
   21. Print
========================================================= */

@media print {
  .activity-carousel,
  .news-carousel,
  .tour-carousel,
  .vehicle-carousel,
  .review-carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    overflow: visible;
  }

  .news-slide,
  .tour-card,
  .review-card {
    width: auto;
    min-width: 0;
    max-width: none;

    break-inside: avoid;

    transform: none !important;
    box-shadow: none;
  }

  .carousel-arrow,
  .carousel-nav,
  .carousel-status {
    display: none !important;
  }
}
