
/* ========== Visite virtuelle — Gen Z refresh ========== */

.tour-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.tour-hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../img/tour/20260707_081351_resized.jpg") center 40% / cover no-repeat;
}

.tour-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(45, 156, 219, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(232, 93, 4, 0.2), transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.tour-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 61, 92, 0.97) 0%,
    rgba(12, 61, 92, 0.55) 42%,
    rgba(12, 61, 92, 0.2) 100%
  );
}

.tour-hero .container {
  position: relative;
  z-index: 1;
  padding: 56px 0 60px;
  color: #fff;
}

.tour-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  margin: 12px 0 14px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.tour-hero-lead {
  max-width: 520px;
  opacity: 0.92;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.tour-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tour-stat-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tour-swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Viewer */
.tour-section {
  padding: 48px 0 88px;
  background: linear-gradient(180deg, var(--bg) 0%, #eef4f9 100%);
}

.tour-viewer-wrap {
  background: #0a1620;
  border: 1px solid rgba(26, 107, 156, 0.2);
  border-radius: 24px;
  box-shadow:
    0 24px 80px rgba(12, 61, 92, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}

.tour-viewer {
  position: relative;
  background: #0a1620;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  overflow: hidden;
}

.tour-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.35s ease;
}

.tour-viewer.is-portrait img {
  object-fit: contain;
  background: #0a1620;
}

.tour-viewer img.fade-out { opacity: 0; }

.tour-viewer img.tour-ken {
  animation: tourKen 5.5s ease-out forwards;
}

@keyframes tourKen {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.tour-viewer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 20, 32, 0.88) 0%,
    rgba(8, 20, 32, 0.35) 38%,
    transparent 68%
  );
}

.tour-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.tour-progress-fill {
  height: 100%;
  width: 6.67%;
  background: linear-gradient(90deg, var(--accent), #5ec8f5);
  border-radius: 0 2px 2px 0;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(45, 156, 219, 0.6);
}

.tour-slide-tag {
  position: absolute;
  top: 56px;
  left: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.tour-overlay-caption {
  padding: 20px 24px 24px;
  color: #fff;
  max-width: 640px;
}

.tour-caption-hook {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(94, 200, 245, 0.95);
}

.tour-overlay-caption h3 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tour-overlay-caption p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.88;
}

.tour-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}

.tour-nav-btn {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.tour-nav-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.tour-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.tour-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 16px;
  pointer-events: none;
}

.tour-counter {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 100px;
  pointer-events: auto;
  letter-spacing: 0.04em;
}

.tour-fullscreen {
  display: none;
}

.tour-caption-bar {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.tour-autoplay-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.tour-autoplay-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.03);
}

.tour-autoplay-btn.active {
  border-color: var(--accent);
  background: rgba(45, 156, 219, 0.25);
  box-shadow: 0 0 20px rgba(45, 156, 219, 0.25);
}

.tour-thumbs {
  display: flex;
  gap: 10px;
  padding: 18px 20px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.25);
}

.tour-thumbs::-webkit-scrollbar { height: 4px; }
.tour-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.tour-thumb {
  position: relative;
  flex: 0 0 88px;
  height: 62px;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
  background: none;
}

.tour-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-thumb-num {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.3;
}

.tour-thumb:hover {
  opacity: 0.85;
  transform: translateY(-3px) scale(1.02);
}

.tour-thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(45, 156, 219, 0.35), 0 8px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.tour-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.tour-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.tour-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tour-info-card svg {
  color: var(--blue);
  margin: 0 auto 12px;
}

.tour-info-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tour-info-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.tour-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

.tour-viewer:fullscreen {
  max-height: none;
  aspect-ratio: auto;
  height: 100vh;
  width: 100vw;
  border-radius: 0;
}

.tour-viewer:fullscreen img {
  object-fit: contain;
}

@media (max-width: 900px) {
  .tour-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .tour-hero { min-height: 52vh; }
  .tour-nav-btn { width: 42px; height: 42px; }
  .tour-thumb { flex: 0 0 72px; height: 52px; }
  .tour-overlay-caption { padding: 16px 18px 20px; }
  .tour-slide-tag { top: 48px; left: 14px; font-size: 0.68rem; }
  .tour-counter { font-size: 0.72rem; padding: 6px 12px; }
}
