:root {
  --port-blue: #0466c8;
  --port-blue-dark: #023e7d;
  --wave-cyan: #00b4d8;
  --sun: #ffb703;
  --coral: #ff6b35;
  --leaf: #2a9d8f;
  --ink: #17202a;
  --muted: #5c6f82;
  --paper: #fffdf7;
  --mist: #eef9fb;
  --line: rgba(23, 32, 42, 0.1);
  --shadow: 0 18px 50px rgba(2, 62, 125, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
  background: var(--paper);
}

a {
  text-decoration: none;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 32px rgba(2, 62, 125, 0.1);
  backdrop-filter: blur(16px);
}

.app-navbar .container {
  gap: 0.9rem;
}

.navbar-brand {
  color: var(--port-blue-dark);
  line-height: 1;
}

.navbar-brand small {
  display: block;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--port-blue), var(--leaf));
  border-radius: 50%;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  padding-left: 10px;
  padding-right: 10px;
  letter-spacing: 0.3px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--port-blue);
  background-color: rgba(4, 102, 200, 0.08);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--port-blue) 0%, #0077b6 100%) !important;
  box-shadow: 0 4px 16px rgba(4, 102, 200, 0.38) !important;
  font-weight: 800;
  transform: none;
}

.nav-link.active:hover,
.nav-link.active:focus {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--port-blue-dark) 0%, var(--port-blue) 100%) !important;
  box-shadow: 0 6px 20px rgba(4, 102, 200, 0.45) !important;
  transform: none;
}

.language-select {
  width: 82px;
  border-color: rgba(4, 102, 200, 0.25);
  color: var(--port-blue-dark);
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 10px 14px;
    margin-top: 10px;
    box-shadow: 0 14px 34px rgba(2, 62, 125, 0.14);
    border: 1px solid rgba(4, 102, 200, 0.12);
  }

  .nav-link {
    padding: 10px 16px;
    margin: 4px 0;
    border-radius: 10px;
  }
}

@media (min-width: 992px) {
  .nav-link {
    font-size: 1.18rem;
    padding-left: 14px;
    padding-right: 14px;
    margin: 0 4px;
  }

  .nav-cta {
    margin-right: 1rem;
  }
}

.btn {
  border-radius: 999px;
  font-weight: 800;
}

.btn-sun {
  color: #2a1a00;
  background: var(--sun);
  border-color: var(--sun);
  box-shadow: 0 12px 26px rgba(255, 183, 3, 0.28);
}

.btn-sun:hover,
.btn-sun:focus {
  color: #2a1a00;
  background: #ffc72c;
  border-color: #ffc72c;
}

.btn-outline-port {
  color: var(--port-blue-dark);
  border-color: rgba(4, 102, 200, 0.35);
  background: #fff;
}

.btn-outline-port:hover,
.btn-outline-port:focus,
.btn-outline-port.active {
  color: #fff;
  background: var(--port-blue);
  border-color: var(--port-blue);
}

.hero-section {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../images/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: heroMediaDrift 22s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(4, 102, 200, 0.65) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 35%, rgba(255, 125, 45, 0.35) 0%, transparent 45%),
    linear-gradient(130deg, rgba(2, 62, 125, 0.92) 0%, rgba(4, 102, 200, 0.68) 45%, rgba(13, 148, 136, 0.45) 75%, rgba(255, 107, 53, 0.38) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.15) 50%, rgba(15, 23, 42, 0.6) 100%);
  background-size: 150% 150%, 160% 160%, 180% 180%, 100% 100%;
  animation: heroOverlayGlow 14s ease-in-out infinite alternate;
  overflow: hidden;
}

.hero-overlay::before,
.hero-overlay::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* Warm sunset amber orb */
.hero-overlay::before {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.45) 0%, rgba(255, 107, 53, 0.25) 50%, transparent 70%);
  top: 10%;
  right: -5%;
  animation: heroOrbSun 16s ease-in-out infinite alternate;
}

/* Ocean wave shimmer orb */
.hero-overlay::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(4, 102, 200, 0.2) 60%, transparent 75%);
  bottom: 0%;
  left: -5%;
  animation: heroOrbOcean 20s ease-in-out infinite alternate;
}

@keyframes heroMediaDrift {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(-1%, -0.8%);
  }
  100% {
    transform: scale(1.03) translate(0.8%, 0.5%);
  }
}

@keyframes heroOverlayGlow {
  0% {
    background-position: 0% 20%, 80% 40%, 0% 50%, 0% 0%;
  }
  50% {
    background-position: 40% 60%, 30% 70%, 50% 100%, 0% 0%;
  }
  100% {
    background-position: 80% 80%, 20% 30%, 100% 50%, 0% 0%;
  }
}

@keyframes heroOrbSun {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-70px, 45px) scale(1.15);
    opacity: 0.95;
  }
  100% {
    transform: translate(-35px, -50px) scale(0.9);
    opacity: 0.65;
  }
}

@keyframes heroOrbOcean {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(80px, -45px) scale(1.2);
    opacity: 0.9;
  }
  100% {
    transform: translate(45px, 60px) scale(0.92);
    opacity: 0.55;
  }
}

/* Hero Ripple Waves */
.hero-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.25), inset 0 0 30px rgba(56, 189, 248, 0.15);
  z-index: 1;
}

.hero-ripple.r1 {
  width: 520px;
  height: 520px;
  top: 15%;
  left: 12%;
  animation: rippleSpread 8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.hero-ripple.r2 {
  width: 680px;
  height: 680px;
  top: 22%;
  right: 8%;
  animation: rippleSpread 11s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 3.5s;
}

@keyframes rippleSpread {
  0% {
    transform: scale(0.3);
    opacity: 0.85;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* Hero Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 215, 0, 0.5) 60%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(255, 183, 3, 0.85));
  animation: particleFloat 12s ease-in-out infinite;
}

.hero-particle.p1 {
  width: 8px;
  height: 8px;
  left: 12%;
  bottom: 25%;
  animation-duration: 9s;
  animation-delay: 0s;
}

.hero-particle.p2 {
  width: 13px;
  height: 13px;
  left: 32%;
  bottom: 18%;
  animation-duration: 14s;
  animation-delay: 2s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(56, 189, 248, 0.6) 60%, transparent 100%);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.85));
}

.hero-particle.p3 {
  width: 6px;
  height: 6px;
  left: 58%;
  bottom: 28%;
  animation-duration: 11s;
  animation-delay: 4s;
}

.hero-particle.p4 {
  width: 10px;
  height: 10px;
  left: 78%;
  bottom: 20%;
  animation-duration: 13s;
  animation-delay: 1s;
}

.hero-particle.p5 {
  width: 7px;
  height: 7px;
  left: 46%;
  bottom: 38%;
  animation-duration: 10s;
  animation-delay: 3s;
}

.hero-particle.p6 {
  width: 11px;
  height: 11px;
  left: 22%;
  bottom: 42%;
  animation-duration: 15s;
  animation-delay: 5s;
}

.hero-particle.p7 {
  width: 9px;
  height: 9px;
  left: 88%;
  bottom: 32%;
  animation-duration: 12s;
  animation-delay: 2.5s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 107, 53, 0.55) 60%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.8));
}

.hero-particle.p8 {
  width: 5px;
  height: 5px;
  left: 40%;
  bottom: 12%;
  animation-duration: 8s;
  animation-delay: 1.5s;
}

.hero-particle.p9 {
  width: 12px;
  height: 12px;
  left: 68%;
  bottom: 45%;
  animation-duration: 16s;
  animation-delay: 4.5s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(56, 189, 248, 0.6) 60%, transparent 100%);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.85));
}

.hero-particle.p10 {
  width: 7px;
  height: 7px;
  left: 5%;
  bottom: 35%;
  animation-duration: 10.5s;
  animation-delay: 3.5s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
    transform: translateY(-40px) translateX(15px) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-115px) translateX(-20px) scale(1.25);
  }
  80% {
    opacity: 0.75;
    transform: translateY(-185px) translateX(25px) scale(0.9);
  }
  100% {
    transform: translateY(-270px) translateX(-10px) scale(0.4);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 183, 3, 0.16);
  border: 1px solid rgba(255, 183, 3, 0.45);
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.22);
  backdrop-filter: blur(8px);
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: eyebrowPulse 3s ease-in-out infinite alternate;
}

.eyebrow i {
  display: inline-block;
  font-size: 1.05rem;
  animation: shipSway 3s ease-in-out infinite alternate;
}

@keyframes shipSway {
  0% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-3px) rotate(4deg);
  }
  100% {
    transform: translateY(1px) rotate(-2deg);
  }
}

@keyframes eyebrowPulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.2);
  }
  100% {
    box-shadow: 0 0 24px rgba(255, 183, 3, 0.55);
    border-color: rgba(255, 183, 3, 0.8);
  }
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(8px);
  color: #a7f3d0;
  font-size: 0.8rem;
  font-weight: 800;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: liveDotPulse 1.8s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
    box-shadow: 0 0 14px #34d399;
  }
}

/* Floating Badges */
.hero-float-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.float-badge-tag {
  background: rgba(4, 102, 200, 0.32);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  animation: floatBadge1 4.5s ease-in-out infinite alternate;
}

.float-badge-panel {
  position: absolute;
  top: -16px;
  right: 18px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 183, 3, 0.7);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 183, 3, 0.25);
  color: #fef08a;
  animation: floatBadge2 5s ease-in-out infinite alternate;
}

@keyframes floatBadge1 {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-6px);
  }
}

@keyframes floatBadge2 {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-7px) scale(1.04);
  }
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-section h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 1.04;
  font-weight: 950;
  margin: 1rem 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(2, 62, 125, 0.55), 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-title-highlight {
  color: #ffffff;
  display: inline;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.18rem;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-actions .btn-sun {
  position: relative;
  overflow: hidden;
  animation: heroButtonPulse 3.5s ease-in-out infinite;
}

.hero-actions .btn-sun::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  animation: buttonShine 4s ease-in-out infinite;
}

.hero-actions .btn-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-actions .btn-light:hover {
  background: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(2, 62, 125, 0.28);
}

@keyframes buttonShine {
  0%, 65% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

@keyframes heroButtonPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(255, 183, 3, 0.35);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 14px 36px rgba(255, 183, 3, 0.68);
    transform: translateY(-3px);
  }
}

.arrival-panel {
  position: relative;
  margin-left: auto;
  max-width: 430px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(2, 62, 125, 0.32), 0 0 35px rgba(255, 183, 3, 0.12);
  backdrop-filter: blur(20px);
  animation: arrivalFloat 6s ease-in-out infinite alternate;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.arrival-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.35), transparent 50%, rgba(56, 189, 248, 0.35));
  z-index: -1;
  animation: panelAura 8s ease-in-out infinite alternate;
  opacity: 0.7;
}

@keyframes panelAura {
  0% {
    opacity: 0.5;
    filter: blur(4px);
  }
  100% {
    opacity: 0.9;
    filter: blur(8px);
  }
}

.arrival-panel:hover {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 30px 70px rgba(2, 62, 125, 0.4), 0 0 45px rgba(255, 183, 3, 0.22);
}

@keyframes arrivalFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

.arrival-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}

.arrival-head i {
  color: var(--sun);
  font-size: 1.35rem;
  animation: iconFlicker 2.5s ease-in-out infinite;
}

@keyframes iconFlicker {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(255, 183, 3, 0.4));
  }
  50% {
    transform: scale(1.26);
    filter: drop-shadow(0 0 12px rgba(255, 183, 3, 0.95));
  }
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quick-tile {
  display: grid;
  gap: 0.5rem;
  min-height: 118px;
  place-items: center;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.quick-tile:hover,
.quick-tile:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 28px rgba(2, 62, 125, 0.3), 0 0 16px rgba(255, 183, 3, 0.25);
}

.quick-tile i {
  color: var(--sun);
  font-size: 1.8rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.quick-tile:hover i {
  transform: scale(1.22) translateY(-2px);
  color: #ffe066;
}

/* Base Wave Strip for Hero */
.hero-wave-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 52px;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-wave {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-layer-1 {
  fill: rgba(4, 102, 200, 0.35);
  animation: waveMotion1 12s ease-in-out infinite alternate;
}

.wave-layer-2 {
  fill: rgba(14, 116, 144, 0.5);
  animation: waveMotion2 8s ease-in-out infinite alternate;
}

.wave-layer-3 {
  fill: var(--port-blue-dark);
  animation: waveMotion3 10s ease-in-out infinite alternate;
}

@keyframes waveMotion1 {
  0% {
    transform: translateX(0) scaleY(0.9);
  }
  100% {
    transform: translateX(-40px) scaleY(1.2);
  }
}

@keyframes waveMotion2 {
  0% {
    transform: translateX(0) scaleY(1);
  }
  100% {
    transform: translateX(30px) scaleY(1.15);
  }
}

@keyframes waveMotion3 {
  0% {
    transform: translateX(0) scaleY(1.05);
  }
  100% {
    transform: translateX(-20px) scaleY(1.25);
  }
}

.section-band {
  padding: 1.35rem 0;
}

.stats-band {
  background: var(--port-blue-dark);
}

.stat-item {
  display: grid;
  gap: 0.2rem;
  min-height: 94px;
  place-items: center;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-item strong {
  color: var(--sun);
  font-size: 2rem;
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.section-padding {
  padding: 6rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.detail-panel h2,
.media-section h2,
.feedback-section h2 {
  color: var(--port-blue-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
  margin: 0.45rem 0 0.65rem;
}

.section-heading p,
.detail-panel p,
.media-section p,
.feedback-section p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.6rem;
  overflow-anchor: none;
}

.shop-scale-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(4, 102, 200, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(2, 62, 125, 0.08);
}

.shop-scale-panel strong {
  display: block;
  color: var(--port-blue-dark);
  font-size: 1.08rem;
  font-weight: 950;
}

.shop-scale-panel p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0.25rem 0 0;
}

.shop-scale-meter {
  display: grid;
  min-width: 152px;
  padding: 0.75rem 1rem;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--port-blue-dark), var(--leaf));
}

.shop-scale-meter span {
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.shop-scale-meter small {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.shop-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.filter-box,
.feedback-form,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-box {
  padding: 1.2rem;
}

.filter-box h3 {
  color: var(--port-blue-dark);
  font-size: 1.2rem;
  font-weight: 950;
  margin-bottom: 1rem;
}

.filter-group {
  display: grid;
  gap: 0.65rem;
}

.filter-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.9rem;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(4, 102, 200, 0.16);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.filter-pill i {
  color: var(--port-blue);
}

.filter-pill.active {
  color: #fff;
  background: var(--port-blue);
  border-color: var(--port-blue);
}

.filter-pill.active i {
  color: var(--sun);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.result-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--port-blue-dark);
  font-weight: 900;
}

.search-box {
  max-width: 360px;
}

.search-box .input-group-text,
.search-box .form-control {
  border-color: rgba(4, 102, 200, 0.16);
}

.shop-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(2, 62, 125, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.shop-card:hover {
  box-shadow: 0 22px 52px rgba(2, 62, 125, 0.18);
  transform: translateY(-5px);
}

.shop-card-stats {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  user-select: none;
}

.shop-card-stats .stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.shop-card-stats .stat-tag.views i {
  color: #38bdf8;
}

.shop-card-stats .stat-tag.clicks i {
  color: #ff6b35;
}

.detail-live-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.detail-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--muted);
  position: relative;
}

.detail-stat-pill strong {
  color: var(--ink);
  font-weight: 900;
}

.detail-stat-btn {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible;
  user-select: none;
}

.detail-stat-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--brand-coral);
  box-shadow: 0 4px 12px rgba(224, 86, 36, 0.16);
  color: var(--brand-coral);
}

.detail-stat-btn:active {
  transform: scale(0.95);
}

.floating-stat-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-weight: 900;
  font-size: 0.85rem;
  z-index: 99;
  white-space: nowrap;
  animation: floatStatUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatStatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.6);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -14px) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -36px) scale(0.95);
  }
}

.shop-image {
  position: relative;
  min-height: 196px;
  background-position: center;
  background-size: cover;
}

.shop-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.02) 58%);
}

.shop-distance {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 1;
  color: #fff;
  background: rgba(4, 102, 200, 0.92);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.shop-body {
  padding: 1.1rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--port-blue-dark);
  background: var(--mist);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.shop-body h3 {
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 950;
  margin: 0.9rem 0 0.4rem;
}

.offer-line {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: #9a4a00;
  font-weight: 900;
  line-height: 1.5;
  margin: 0.65rem 0 0.6rem;
}

.shop-addr-line,
.shop-hours-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.shop-addr-line i,
.shop-hours-line i {
  color: var(--port-blue);
  flex-shrink: 0;
}

.shop-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--port-blue);
  background: var(--mist);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.video-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 32px;
  color: var(--port-blue-dark);
  border: 1px solid rgba(4, 102, 200, 0.14);
  border-radius: 999px;
  background: #f8fdff;
  padding: 0.24rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.shop-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.map-section {
  background:
    linear-gradient(180deg, #eef9fb 0%, #fffdf7 100%);
}

.map-heading {
  align-items: center;
}

.map-actions,
.map-toolbar,
.map-layer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.location-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  color: var(--port-blue-dark);
  border: 1px solid rgba(4, 102, 200, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.location-status.success {
  color: #116149;
  border-color: rgba(42, 157, 143, 0.28);
  background: rgba(42, 157, 143, 0.12);
}

.location-status.warning {
  color: #8a4b00;
  border-color: rgba(255, 183, 3, 0.36);
  background: rgba(255, 183, 3, 0.18);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.3rem;
  align-items: stretch;
}

.map-shell,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-shell {
  overflow: hidden;
}

.map-toolbar {
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.map-layer-btn {
  min-height: 38px;
  color: var(--port-blue-dark);
  border: 1px solid rgba(4, 102, 200, 0.16);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.78rem;
  font-weight: 900;
}

.map-layer-btn.active {
  color: #fff;
  background: var(--port-blue);
  border-color: var(--port-blue);
}

.interactive-map {
  min-height: 560px;
  width: 100%;
  background: #dff3f8;
}

.leaflet-container {
  font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
}

.leaflet-control-layers {
  border-radius: 12px !important;
  border: 1px solid rgba(4, 102, 200, 0.22) !important;
  box-shadow: 0 10px 28px rgba(2, 62, 125, 0.18) !important;
  padding: 8px 14px !important;
  color: var(--port-blue-dark) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  margin-top: 12px !important;
  margin-right: 12px !important;
}

.leaflet-control-layers-toggle {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.leaflet-control-layers label {
  margin: 4px 0 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaflet-control-layers input[type="radio"] {
  accent-color: var(--port-blue);
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin: 0;
}

.map-layer-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--port-blue-dark);
  user-select: none;
}

.map-marker-pin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.28);
  transform: rotate(-45deg);
}

.map-marker-pin i {
  transform: rotate(45deg);
}

.map-marker-count {
  transform: rotate(45deg);
  font-size: 0.95rem;
  font-weight: 800;
}

.language-suggestion {
  position: fixed;
  top: 88px;
  right: max(12px, env(safe-area-inset-right));
  z-index: 1020;
  width: min(380px, calc(100% - 24px));
  padding: 18px;
  border: 1px solid rgba(4, 102, 200, 0.2);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.language-suggestion[hidden] { display: none; }
.language-suggestion-title { margin: 0 0 4px; color: var(--port-blue-dark); font-weight: 800; }
.language-suggestion-note { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.language-suggestion-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.language-suggestion .btn { min-height: 44px; white-space: normal; }

.map-shop-picker strong {
  display: block;
  margin-bottom: 0.5rem;
}

.map-shop-picker-list {
  display: grid;
  gap: 0.35rem;
}

.map-shop-picker-list button {
  padding: 0.55rem 0.65rem;
  color: var(--port-blue-dark);
  background: #f3f7fa;
  border: 1px solid #dbe5ec;
  border-radius: 6px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.map-shop-picker-list button:hover,
.map-shop-picker-list button:focus-visible {
  background: #e2eef6;
}

.selected-location-note {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.map-marker-pin.shop {
  background: var(--coral);
}

.map-marker-pin.attraction {
  background: var(--port-blue);
}

.map-marker-pin.user {
  background: var(--leaf);
}

.map-marker-pin.active {
  background: var(--sun);
  color: #2a1a00;
  transform: rotate(-45deg) scale(1.14);
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  min-height: 560px;
}

.selected-place-card {
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2, 62, 125, 0.95), rgba(42, 157, 143, 0.88));
}

.selected-place-card h3 {
  font-size: 1.35rem;
  font-weight: 950;
  margin: 0.45rem 0;
}

.selected-place-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.selected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.selected-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.nearby-panel-head h3 {
  color: var(--port-blue-dark);
  font-size: 1.28rem;
  font-weight: 950;
  margin: 0.4rem 0 0;
}

.nearby-list {
  display: grid;
  gap: 0.75rem;
  overflow: auto;
}

.nearby-item {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(4, 102, 200, 0.12);
  border-radius: 8px;
  background: #f8fdff;
}

.nearby-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.nearby-item h4 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  margin: 0;
}

.nearby-distance {
  color: var(--coral);
  white-space: nowrap;
  font-weight: 950;
}

.nearby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-section {
  padding: 5rem 0;
  background:
    linear-gradient(90deg, rgba(238, 249, 251, 0.95), rgba(255, 253, 247, 0.92)),
    url("../images/attraction-liuhe.jpg") center/cover fixed;
}

.detail-photo {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  height: 100%;
  border-radius: 8px;
  background-image: url("../images/attraction-liuhe.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.detail-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(2, 62, 125, 0.66), rgba(2, 62, 125, 0.08) 58%);
}

.detail-photo-overlay {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.detail-photo-overlay strong {
  color: #fff;
  border-radius: 999px;
  background: rgba(4, 102, 200, 0.92);
  padding: 0.42rem 0.75rem;
  font-weight: 950;
}

.detail-panel {
  height: 100%;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.detail-summary {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.detail-summary div {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(4, 102, 200, 0.12);
  border-radius: 8px;
  background: #f8fdff;
}

.detail-summary .offer-card {
  border-color: rgba(255, 183, 3, 0.45);
  background: linear-gradient(135deg, #fffcf0, #fff7e6);
}

.detail-summary .offer-card span {
  color: #c05621;
}

.detail-summary .offer-card strong {
  color: #9c4221;
  font-weight: 900;
}

.detail-summary span,
.detail-info-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-summary strong,
.detail-info-card strong {
  display: block;
  color: var(--ink);
  line-height: 1.6;
  margin-top: 0.2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.detail-info-card {
  min-height: 126px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-info-card i {
  color: var(--coral);
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.detail-list div {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--ink);
  font-weight: 850;
}

.detail-list i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #fff;
  border-radius: 50%;
  background: var(--coral);
}

.attractions-section,
.popular-shops-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafd 50%, #ffffff 100%);
  position: relative;
}

.section-note {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
  color: var(--port-blue-dark);
  border: 1px solid rgba(4, 102, 200, 0.16);
  border-radius: 8px;
  background: var(--mist);
  font-weight: 850;
}

.merchant-directory {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(4, 102, 200, 0.16);
  border-radius: 18px;
  background: #fff;
}

.merchant-directory summary {
  color: var(--port-blue);
  font-weight: 800;
  cursor: pointer;
}

.directory-count {
  margin-left: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.merchant-directory > p {
  margin: 1rem 0;
  color: var(--muted);
}

.merchant-directory-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merchant-directory-item {
  padding: 1rem;
  border-radius: 12px;
  background: var(--mist);
  overflow-wrap: anywhere;
}

.merchant-directory-item h3 { font-size: 1rem; font-weight: 750; }
.merchant-directory-category { color: var(--port-blue); font-size: 0.85rem; }
.merchant-directory-item p { margin: 0.5rem 0; font-size: 0.9rem; }
.merchant-directory-item a { font-size: 0.9rem; }
.footer-languages { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }

/* LIVE Beacon Animation */
.live-ranking-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.32);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  color: var(--coral);
  letter-spacing: 0.04em;
}

.live-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

/* Popular Tab Filter */
.popular-tab-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: rgba(4, 102, 200, 0.06);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 102, 200, 0.1);
}

.popular-tab-btn {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.popular-tab-btn:hover {
  color: var(--port-blue-dark);
  background: rgba(255, 255, 255, 0.75);
}

.popular-tab-btn.active {
  background: #ffffff;
  color: var(--coral);
  box-shadow: 0 4px 14px rgba(4, 102, 200, 0.12);
}

/* Popular Shop Card */
.popular-shop-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid rgba(4, 102, 200, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2, 62, 125, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.popular-shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(2, 62, 125, 0.15);
}

/* Rank 1 Champion Card */
.popular-shop-card.rank-card-1 {
  border: 2px solid #ffb703;
  box-shadow: 0 10px 28px rgba(255, 183, 3, 0.2);
  background: linear-gradient(180deg, #fffdf2 0%, #ffffff 35%);
}

.popular-shop-card.rank-card-1:hover {
  box-shadow: 0 24px 50px rgba(255, 183, 3, 0.35);
  border-color: #ffa200;
}

.popular-shop-card.rank-card-2 {
  border: 2px solid #94a3b8;
}

.popular-shop-card.rank-card-3 {
  border: 2px solid #d97706;
}

/* Rank Badges */
.popular-rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.popular-rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: goldGlow 2.5s infinite alternate;
}

@keyframes goldGlow {
  from {
    box-shadow: 0 4px 14px rgba(255, 128, 8, 0.35);
  }
  to {
    box-shadow: 0 6px 24px rgba(255, 200, 55, 0.75);
  }
}

.popular-rank-badge.rank-2 {
  background: linear-gradient(135deg, #64748b 0%, #334155 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.popular-rank-badge.rank-3 {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.popular-rank-badge.rank-other {
  background: rgba(2, 62, 125, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.crown-icon, .rank-medal {
  font-size: 0.95rem;
  line-height: 1;
}

.rank-tag {
  font-size: 0.72rem;
  opacity: 0.92;
  font-weight: 750;
  padding-left: 0.15rem;
}

/* Card Photo & Zoom */
.popular-photo-wrap {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: #e2e8f0;
}

.popular-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.popular-shop-card:hover .popular-photo {
  transform: scale(1.08);
}

.popular-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.popular-distance-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Card Body & Heat Meter */
.popular-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.popular-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.popular-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(4, 102, 200, 0.08);
  color: var(--port-blue);
}

.popular-like-btn {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255, 107, 53, 0.3);
  background: #ffffff;
  color: var(--coral);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.popular-like-btn:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--coral);
  transform: scale(1.06);
}

.popular-like-btn:active {
  transform: scale(0.92);
}

.popular-like-btn.liked {
  background: var(--coral);
  color: #ffffff;
  border-color: var(--coral);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.popular-like-btn.heart-pop i {
  animation: heartBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBounce {
  0% { transform: scale(1); }
  45% { transform: scale(1.5); }
  75% { transform: scale(0.88); }
  100% { transform: scale(1); }
}

.popular-heat-box {
  margin: 0.5rem 0 0.8rem;
  padding: 0.55rem 0.75rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #eef2f6;
}

.popular-heat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.heat-title {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.heat-title i {
  color: var(--coral);
  animation: flameFlicker 1.5s infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.2) rotate(3deg); }
}

.heat-percent {
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.popular-heat-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.popular-heat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb703 0%, #ff6b35 100%);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.popular-heat-fill.fill-1 {
  background: linear-gradient(90deg, #ffc837 0%, #ff3b30 100%);
}

.popular-stats-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted);
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  position: relative;
}

.stat-pill-btn {
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  user-select: none;
}

.stat-pill-btn:hover {
  transform: translateY(-1px) scale(1.06);
  background: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.stat-pill-btn:active {
  transform: scale(0.96);
}

.stat-pill.views i {
  color: var(--port-blue);
}

.stat-pill.clicks i {
  color: var(--coral);
}

.popular-title {
  font-size: 1.15rem;
  font-weight: 950;
  color: var(--port-blue-dark);
  margin: 0.3rem 0 0.45rem;
  line-height: 1.35;
}

.popular-offer {
  font-size: 0.82rem;
  color: #92400e;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 0.45rem 0.65rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.7rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.popular-address {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.popular-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

.popular-actions .btn {
  flex: 1;
  font-weight: 750;
  font-size: 0.82rem;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Floating Heart Particles */
.floating-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  z-index: 999;
  font-size: 1.3rem;
  user-select: none;
  line-height: 1;
  animation: floatUpFade 0.85s cubic-bezier(0.18, 0.89, 0.32, 1.1) forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6);
  }
  50% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx, 0px)), -40px) scale(1.35);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), -80px) scale(1.6);
  }
}

/* Legacy fallback styles */
.attraction-card {
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.attraction-photo {
  min-height: 230px;
  background-position: center;
  background-size: cover;
}

.attraction-body {
  padding: 1.15rem;
}

.attraction-body h3 {
  color: var(--port-blue-dark);
  font-size: 1.25rem;
  font-weight: 950;
}

.nearby-shop {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed rgba(255, 107, 53, 0.42);
}

.nearby-shop strong {
  display: block;
  color: var(--coral);
}

.routes-section {
  background:
    linear-gradient(180deg, #eef9fb 0%, #fffdf7 100%);
}

.route-card {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.route-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--port-blue-dark);
  border-radius: 999px;
  background: var(--mist);
  padding: 0.45rem 0.75rem;
  font-weight: 900;
}

.route-card h3 {
  color: var(--port-blue-dark);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 950;
  margin: 1rem 0 0.65rem;
}

.route-card p {
  color: var(--muted);
  line-height: 1.8;
}

.route-points {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.4rem;
  padding-left: 1.2rem;
  color: var(--ink);
  font-weight: 800;
}

.media-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2, 62, 125, 0.95), rgba(42, 157, 143, 0.9)),
    url("../images/attraction-sizihwan.jpg") center/cover;
}

.media-section h2,
.media-section p {
  color: #fff;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.video-tags span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feedback-section {
  background: linear-gradient(180deg, #fffdf7 0%, #eef9fb 100%);
}

.reward-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  color: #2a1a00;
  border-radius: 8px;
  background: rgba(255, 183, 3, 0.34);
  font-weight: 900;
}

.feedback-form {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.form-control,
.form-select {
  min-height: 46px;
  border-radius: 8px;
}

.form-label {
  font-weight: 900;
}

.survey-group-card {
  padding: 1rem 1.1rem;
  background: rgba(4, 102, 200, 0.03);
  border: 1px solid rgba(4, 102, 200, 0.1);
  border-radius: 8px;
}

.rating-stars-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.star-rating-option {
  cursor: pointer;
  margin: 0;
}

.star-rating-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.star-box i {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.star-rating-option input[type="radio"]:focus-visible + .star-box {
  outline: 2px solid var(--wave-cyan);
  outline-offset: 2px;
}

.star-rating-option:hover .star-box {
  border-color: var(--sun);
  color: var(--ink);
}

.star-rating-option:hover .star-box i {
  color: var(--sun);
}

.star-rating-option input[type="radio"]:checked + .star-box {
  background: rgba(255, 183, 3, 0.16);
  border-color: var(--sun);
  color: #854d0e;
}

.star-rating-option input[type="radio"]:checked + .star-box i {
  color: #f59e0b;
}

.feedback-message {
  padding: 0.8rem 1rem;
  color: #116149;
  border: 1px solid rgba(42, 157, 143, 0.26);
  border-radius: 8px;
  background: rgba(42, 157, 143, 0.12);
  font-weight: 850;
}

.feedback-message[hidden] {
  display: none;
}

.site-footer {
  padding: 2.2rem 0;
  color: #fff;
  background: var(--port-blue-dark);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0.35rem 0 0;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.7);
}

.scroll-top-button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: var(--port-blue-dark);
  box-shadow: 0 14px 34px rgba(2, 62, 125, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover,
.scroll-top-button:focus {
  background: var(--port-blue);
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding-top: 7.5rem;
  }

  .hero-section h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1.12;
    word-break: break-all;
  }

  .arrival-panel {
    max-width: none;
    margin-top: 2.2rem;
  }

  .shop-layout {
    display: block;
  }

  .shop-scale-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-scale-meter {
    min-width: 0;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    max-width: none;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-actions {
    width: 100%;
  }

  .map-actions .btn {
    flex: 1 1 210px;
  }

  .interactive-map,
  .map-panel {
    min-height: 460px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand strong {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .language-select {
    width: 70px;
  }

  .hero-actions .btn,
  .shop-actions .btn {
    width: 100%;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .map-layer-controls,
  .map-toolbar .btn,
  .nearby-actions .btn {
    width: 100%;
  }

  .map-layer-btn {
    flex: 1 1 auto;
  }

  .interactive-map {
    min-height: 380px;
  }

  .detail-photo {
    min-height: 320px;
  }
}
:root .stats-sync-status {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1080;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 12px;
  background: #173c4b;
  color: #fff;
  box-shadow: 0 6px 24px #0002;
  font-size: 14px;
  line-height: 1.6;
  pointer-events: none;
}

.stats-sync-status.is-error { background: #83411f; }
.stats-sync-status[hidden] { display: none; }
