@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：google-reviews-v43.css */

/* =========================================================
   玹翔旅遊｜Google Reviews
   V43_Enterprise_Production
========================================================= */

:root {
  --xx-review-gold: #d8b56d;
  --xx-review-gold-light: #fff0b8;
  --xx-review-gold-bright: #fff3c2;

  --xx-review-bg: #05070b;
  --xx-review-panel: rgba(13, 20, 28, 0.88);
  --xx-review-panel-strong: rgba(8, 12, 18, 0.96);

  --xx-review-text: #f7f1e7;
  --xx-review-muted: #b9c1cc;
  --xx-review-soft: #d6dbe3;

  --xx-review-line: rgba(216, 181, 109, 0.24);
  --xx-review-line-strong: rgba(255, 240, 184, 0.48);

  --xx-review-success: #63d698;
  --xx-review-danger: #ff9292;

  --xx-review-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42), 0 8px 28px rgba(0, 0, 0, 0.22);

  --xx-review-radius-xl: 32px;
  --xx-review-radius-lg: 26px;
  --xx-review-radius-md: 20px;

  --xx-review-card-width: 400px;
  --xx-review-gap: 24px;
}

/* =========================================================
   Reviews Section
========================================================= */

.home-reviews {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 8vw, 96px) 0;
}

.home-reviews::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -2;

  width: min(1100px, 92vw);
  height: 460px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(216, 181, 109, 0.15),
    transparent 68%
  );

  transform: translateX(-50%);
  pointer-events: none;
}

.home-reviews::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(216, 181, 109, 0.025) 48%,
    transparent
  );

  pointer-events: none;
}

.home-reviews .section-title {
  position: relative;
  z-index: 2;

  max-width: 860px;
  margin: 0 auto clamp(30px, 5vw, 48px);

  text-align: center;
}

.home-reviews .section-title small,
.home-reviews .section-title .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-bottom: 12px;
  padding: 8px 14px;

  border: 1px solid var(--xx-review-line);
  border-radius: 999px;

  color: var(--xx-review-gold-light);
  background: rgba(216, 181, 109, 0.08);

  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-reviews .section-title h2 {
  margin: 0;

  color: var(--xx-review-gold-bright);

  font-family: "Noto Serif TC", "Noto Sans TC", serif;

  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.035em;

  text-wrap: balance;
}

.home-reviews .section-title p {
  max-width: 760px;
  margin: 14px auto 0;

  color: #cfc3a8;

  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.95;

  text-wrap: pretty;
}

/* =========================================================
   Carousel Shell
========================================================= */

.review-carousel-shell {
  position: relative;
}

.review-carousel-shell::before,
.review-carousel-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 6;

  width: clamp(24px, 5vw, 76px);

  pointer-events: none;
}

.review-carousel-shell::before {
  left: 0;

  background: linear-gradient(90deg, var(--xx-review-bg), rgba(5, 7, 11, 0));
}

.review-carousel-shell::after {
  right: 0;

  background: linear-gradient(270deg, var(--xx-review-bg), rgba(5, 7, 11, 0));
}

/* =========================================================
   Review Carousel
========================================================= */

.review-carousel {
  display: flex;
  gap: var(--xx-review-gap);

  width: 100%;

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

  padding: 12px max(20px, calc((100vw - 1180px) / 2)) 28px;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100vw - 1180px) / 2));

  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: var(--xx-review-gold) rgba(255, 255, 255, 0.06);

  cursor: grab;
}

.review-carousel:active {
  cursor: grabbing;
}

.review-carousel::-webkit-scrollbar {
  height: 9px;
}

.review-carousel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.review-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;

  background: linear-gradient(90deg, #b88935, var(--xx-review-gold-light));
}

.review-carousel:focus-visible {
  outline: 3px solid rgba(255, 240, 184, 0.46);
  outline-offset: 5px;
  border-radius: 18px;
}

/* =========================================================
   Carousel Controls
========================================================= */

.review-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-top: 18px;
}

.review-carousel-btn {
  display: inline-grid;
  width: 48px;
  height: 48px;

  place-items: center;

  border: 1px solid var(--xx-review-line);
  border-radius: 50%;

  color: var(--xx-review-gold-light);
  background: linear-gradient(
    145deg,
    rgba(20, 27, 37, 0.96),
    rgba(8, 12, 18, 0.96)
  );

  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);

  font-size: 1.2rem;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    opacity 0.25s ease;
}

.review-carousel-btn:hover {
  transform: translateY(-3px);
  border-color: var(--xx-review-line-strong);
}

.review-carousel-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  transform: none;
}

.review-carousel-btn:focus-visible {
  outline: 3px solid rgba(255, 240, 184, 0.5);
  outline-offset: 4px;
}

/* =========================================================
   Review Card
========================================================= */

.review-card {
  position: relative;

  min-width: min(var(--xx-review-card-width), calc(100vw - 40px));

  flex: 0 0 min(var(--xx-review-card-width), calc(100vw - 40px));

  overflow: hidden;

  padding: 28px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--xx-review-radius-xl);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(216, 181, 109, 0.12),
      transparent 33%
    ),
    linear-gradient(145deg, rgba(22, 28, 37, 0.82), rgba(9, 13, 19, 0.92));

  box-shadow: var(--xx-review-shadow);

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

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.review-card:hover {
  transform: translateY(-9px) scale(1.012);

  border-color: var(--xx-review-line-strong);

  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(216, 181, 109, 0.13);
}

.review-card:focus-within {
  border-color: var(--xx-review-line-strong);

  box-shadow:
    0 0 0 3px rgba(216, 181, 109, 0.12),
    var(--xx-review-shadow);
}

.review-card::before {
  content: "";

  position: absolute;
  top: -86px;
  right: -86px;

  width: 190px;
  height: 190px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(216, 181, 109, 0.27),
    transparent 68%
  );

  pointer-events: none;
}

.review-card::after {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 240, 184, 0.48),
    transparent
  );

  pointer-events: none;
}

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

/* =========================================================
   Review Image
========================================================= */

.review-card-image {
  position: relative;
  overflow: hidden;

  margin-bottom: 20px;

  border-radius: 22px;

  background: linear-gradient(
    145deg,
    rgba(216, 181, 109, 0.12),
    rgba(255, 255, 255, 0.035)
  );

  aspect-ratio: 16 / 10;
}

.review-card img {
  width: 100%;
  height: 100%;

  min-height: 240px;

  object-fit: cover;
  object-position: center;

  border-radius: inherit;

  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.review-card:hover img {
  transform: scale(1.035);
  filter: contrast(1.03) saturate(1.04);
}

.review-card-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.38));

  pointer-events: none;
}

/* 舊 HTML 未包 review-card-image 時仍保持相容 */

.review-card > img {
  height: 260px;
  margin-bottom: 18px;
  object-fit: cover;
}

/* =========================================================
   Reviewer Header
========================================================= */

.review-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;

  margin-bottom: 14px;
}

.review-avatar {
  display: grid;

  width: 48px;
  height: 48px;

  place-items: center;

  overflow: hidden;

  border: 1px solid var(--xx-review-line);
  border-radius: 50%;

  color: #17120a;
  background: linear-gradient(
    135deg,
    var(--xx-review-gold-light),
    var(--xx-review-gold)
  );

  font-weight: 900;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;

  border-radius: 50%;

  object-fit: cover;
}

.review-author-info {
  min-width: 0;
}

.review-author-name {
  display: block;

  overflow: hidden;

  color: var(--xx-review-gold-bright);

  font-weight: 900;
  line-height: 1.45;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-author-source {
  display: block;

  margin-top: 2px;

  color: var(--xx-review-muted);

  font-size: 0.78rem;
  line-height: 1.4;
}

/* =========================================================
   Review Meta
========================================================= */

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;

  margin-bottom: 12px;

  color: var(--xx-review-gold-light);

  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.6;
}

.review-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  min-width: 0;
}

.review-meta time {
  color: var(--xx-review-muted);
}

.review-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 5px 10px;

  border: 1px solid rgba(216, 181, 109, 0.2);
  border-radius: 999px;

  color: var(--xx-review-gold-light);
  background: rgba(216, 181, 109, 0.07);

  font-size: 0.74rem;
  font-weight: 900;
}

/* =========================================================
   Review Rating
========================================================= */

.stars,
.review-stars {
  display: inline-flex;
  align-items: center;

  margin-bottom: 12px;

  color: var(--xx-review-gold-light);

  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.16em;

  text-shadow: 0 0 18px rgba(255, 240, 184, 0.24);
}

.review-rating-number {
  margin-left: 10px;

  color: var(--xx-review-muted);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: normal;
}

/* =========================================================
   Review Content
========================================================= */

.review-card h3 {
  margin: 0 0 12px;

  color: var(--xx-review-gold-bright);

  font-size: clamp(1.2rem, 2vw, 1.48rem);
  font-weight: 900;
  line-height: 1.45;

  overflow-wrap: anywhere;
}

.review-card p {
  margin: 0;

  color: var(--xx-review-soft);

  font-size: 0.96rem;
  line-height: 1.9;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-text {
  display: -webkit-box;
  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;

  line-clamp: 7;
}

.review-card.is-expanded .review-text {
  display: block;
  overflow: visible;

  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.review-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  margin-top: 14px;
  padding: 0;

  border: 0;

  color: var(--xx-review-gold-light);
  background: transparent;

  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;

  cursor: pointer;
}

.review-more-btn:hover {
  color: var(--xx-review-gold-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   Review Badge Card
========================================================= */

.review-badge-card {
  position: relative;

  display: grid;
  min-height: 360px;

  place-items: center;

  overflow: hidden;

  padding: 30px;

  border: 1px solid var(--xx-review-line);
  border-radius: 28px;

  background:
    radial-gradient(
      circle at center,
      rgba(247, 223, 155, 0.18),
      transparent 54%
    ),
    linear-gradient(
      180deg,
      rgba(216, 181, 109, 0.12),
      rgba(255, 255, 255, 0.035)
    );

  text-align: center;
}

.review-badge-card::before {
  content: "★★★★★";

  display: block;

  margin-bottom: 12px;

  color: var(--xx-review-gold-light);

  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.18em;

  text-shadow: 0 0 24px rgba(255, 240, 184, 0.26);
}

.review-badge-card::after {
  content: "";

  position: absolute;
  inset: 0 0 auto;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--xx-review-line-strong),
    transparent
  );
}

.review-badge-card strong {
  display: block;

  color: var(--xx-review-gold-bright);

  font-family: "Noto Serif TC", "Noto Sans TC", serif;

  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.18;

  text-shadow: 0 0 34px rgba(216, 181, 109, 0.28);
}

.review-badge-card span {
  display: block;

  max-width: 620px;
  margin-top: 16px;

  color: #e8dcc2;

  font-weight: 800;
  line-height: 1.85;
}

/* =========================================================
   Review Summary
========================================================= */

.review-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: center;

  margin-bottom: 34px;
  padding: clamp(24px, 4vw, 38px);

  border: 1px solid var(--xx-review-line);
  border-radius: 30px;

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(216, 181, 109, 0.17),
      transparent 34%
    ),
    linear-gradient(145deg, rgba(14, 20, 28, 0.94), rgba(7, 10, 15, 0.96));

  box-shadow: var(--xx-review-shadow);
}

.review-summary-score {
  min-width: 160px;
  text-align: center;
}

.review-summary-score strong {
  display: block;

  color: var(--xx-review-gold-bright);

  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1;
}

.review-summary-score span {
  display: block;

  margin-top: 10px;

  color: var(--xx-review-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.review-summary-details {
  min-width: 0;
}

.review-summary-details h3 {
  margin: 0 0 10px;

  color: var(--xx-review-gold-light);

  font-size: clamp(1.35rem, 3vw, 2rem);
}

.review-summary-details p {
  margin: 0;

  color: var(--xx-review-muted);
  line-height: 1.85;
}

/* =========================================================
   Review Steps
========================================================= */

.review-steps {
  display: grid;
  gap: 14px;

  margin: 22px 0;
}

.review-step {
  padding: 16px 18px;

  border: 1px solid rgba(216, 181, 109, 0.18);
  border-radius: var(--xx-review-radius-md);

  color: #d5dde8;
  background: rgba(255, 255, 255, 0.045);

  line-height: 1.8;
}

.review-step b {
  color: var(--xx-review-gold-light);
}

.review-note {
  margin-top: 14px;
  padding: 14px 16px;

  border: 1px dashed rgba(216, 181, 109, 0.34);
  border-radius: 18px;

  color: #cfc3a8;
  background: rgba(216, 181, 109, 0.08);

  font-weight: 800;
  line-height: 1.8;
}

/* =========================================================
   Loading / Empty / Error States
========================================================= */

.review-state {
  display: grid;
  min-height: 240px;

  place-items: center;

  padding: 28px;

  border: 1px solid var(--xx-review-line);
  border-radius: 28px;

  color: var(--xx-review-muted);
  background: rgba(255, 255, 255, 0.035);

  text-align: center;
}

.review-state strong {
  display: block;

  margin-bottom: 8px;

  color: var(--xx-review-gold-light);
  font-size: 1.2rem;
}

.review-state p {
  max-width: 620px;
  margin: 0;

  line-height: 1.85;
}

.review-state--error {
  border-color: rgba(255, 146, 146, 0.28);
  color: #ffd7d7;
  background: rgba(255, 146, 146, 0.06);
}

.review-state--error strong {
  color: var(--xx-review-danger);
}

.review-state--success {
  border-color: rgba(99, 214, 152, 0.26);
  background: rgba(99, 214, 152, 0.06);
}

.review-state--success strong {
  color: var(--xx-review-success);
}

/* =========================================================
   Skeleton Loading
========================================================= */

.review-card.is-loading {
  pointer-events: none;
}

.review-skeleton {
  position: relative;
  overflow: hidden;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.065);
}

.review-skeleton::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );

  transform: translateX(-100%);
  animation: xxReviewSkeleton 1.5s ease-in-out infinite;
}

.review-skeleton--image {
  width: 100%;
  height: 240px;

  margin-bottom: 18px;
}

.review-skeleton--title {
  width: 68%;
  height: 22px;

  margin-bottom: 14px;
}

.review-skeleton--line {
  width: 100%;
  height: 14px;

  margin-bottom: 10px;
}

.review-skeleton--line:last-child {
  width: 72%;
}

@keyframes xxReviewSkeleton {
  100% {
    transform: translateX(100%);
  }
}

/* =========================================================
   Backdrop Filter Fallback
========================================================= */

@supports (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .review-card {
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .review-card {
    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(216, 181, 109, 0.13),
        transparent 34%
      ),
      var(--xx-review-panel-strong);
  }
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 980px) {
  :root {
    --xx-review-card-width: min(78vw, 420px);
    --xx-review-gap: 18px;
  }

  .review-carousel {
    padding-inline: 7vw;
    scroll-padding-inline: 7vw;
  }

  .review-carousel-shell::before,
  .review-carousel-shell::after {
    width: 38px;
  }

  .review-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .review-summary-score {
    min-width: 0;
  }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 640px) {
  :root {
    --xx-review-card-width: calc(100vw - 42px);
    --xx-review-gap: 14px;
    --xx-review-radius-xl: 26px;
  }

  .home-reviews {
    padding: 48px 0;
  }

  .home-reviews .section-title {
    width: min(100% - 28px, 760px);
    margin-bottom: 24px;
  }

  .review-carousel {
    padding: 8px 14px 24px;

    scroll-padding-inline: 14px;
  }

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

  .review-card {
    padding: 22px;
  }

  .review-card > img {
    height: 220px;
  }

  .review-card-image {
    aspect-ratio: 4 / 3;
  }

  .review-card-image img {
    min-height: 210px;
  }

  .review-card h3 {
    font-size: 1.22rem;
  }

  .review-badge-card {
    min-height: 280px;
    padding: 24px;
  }

  .review-summary {
    margin-inline: 14px;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .review-carousel-controls {
    margin-top: 12px;
  }

  .review-carousel-btn {
    width: 44px;
    height: 44px;
  }
}

/* =========================================================
   Extra Small Devices
========================================================= */

@media (max-width: 380px) {
  :root {
    --xx-review-card-width: calc(100vw - 28px);
  }

  .review-carousel {
    padding-inline: 8px;
    scroll-padding-inline: 8px;
  }

  .review-card {
    padding: 19px;
  }

  .review-meta {
    display: grid;
    gap: 5px;
  }

  .review-author {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .review-avatar {
    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .review-carousel {
    scroll-behavior: auto;
  }

  .review-card,
  .review-card img,
  .review-carousel-btn {
    transition: none !important;
  }

  .review-card:hover {
    transform: none;
  }

  .review-card:hover img {
    transform: none;
  }

  .review-skeleton::after {
    animation: none;
  }
}

/* =========================================================
   Print
========================================================= */

@media print {
  .home-reviews {
    padding: 24px 0;
  }

  .review-carousel-shell::before,
  .review-carousel-shell::after,
  .review-carousel-controls {
    display: none !important;
  }

  .review-carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    overflow: visible;

    padding: 0;
  }

  .review-card {
    min-width: 0;
    break-inside: avoid;

    color: #111;
    background: #fff;
    border-color: #aaa;
    box-shadow: none;
  }

  .review-card h3,
  .review-author-name,
  .home-reviews .section-title h2 {
    color: #111;
  }

  .review-card p,
  .review-meta,
  .review-author-source,
  .home-reviews .section-title p {
    color: #333;
  }
}
