/* ═══════════════════════════════════════════════════════════
   DEAL CONVERSION BOOST — Gallery + Trust + Lightbox
   v1.0 — Magazine-grade travel UI
   ═══════════════════════════════════════════════════════════ */

/* ─── Trust Banner ─── */
.deal-trust-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem auto;
  max-width: 1200px;
  background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(232,93,58,0.04) 100%);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 16px;
  align-items: center;
}

.deal-trust-banner .trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 250px;
  min-width: 0;
}

.deal-trust-banner .trust-badge svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.deal-trust-banner .trust-badge span {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text, #1a1a2e);
}

.deal-trust-banner .trust-badge strong {
  font-weight: 700;
  color: var(--text, #1a1a2e);
}

/* ─── Bildergalerie ─── */
.deal-gallery {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.gallery-main {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--bg-soft, #f5f5f7);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main::after {
  content: "🔍 Vergrößern";
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex: 0 0 80px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

.gallery-thumb.active {
  border-color: var(--brand, rgb(232,93,58));
}

/* ─── Lightbox ─── */
.deal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,12,0.95);
  backdrop-filter: blur(8px);
}

.deal-lightbox.open {
  display: flex;
}

.deal-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.deal-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.deal-lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.deal-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.deal-lightbox__nav:hover {
  background: rgba(255,255,255,0.2);
}

.deal-lightbox__nav--prev { left: 1rem; }
.deal-lightbox__nav--next { right: 1rem; }

.deal-lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 20px;
}

/* ─── Mobile Trust Banner ─── */
@media (max-width: 768px) {
  .deal-trust-banner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    margin: 1rem;
    border-radius: 12px;
  }

  .deal-trust-banner .trust-badge {
    flex: 1 1 auto;
    width: 100%;
  }

  .deal-trust-banner .trust-badge span {
    font-size: 0.8125rem;
  }

  .deal-gallery {
    margin: 1rem auto;
    padding: 0 1rem;
  }

  .gallery-main {
    aspect-ratio: 4/3;
    border-radius: 12px;
  }

  .gallery-main::after {
    font-size: 0.8125rem;
    padding: 3px 8px;
  }

  .gallery-thumb {
    flex: 0 0 64px;
    height: 48px;
  }

  .deal-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .deal-lightbox__nav--prev { left: 0.5rem; }
  .deal-lightbox__nav--next { right: 0.5rem; }
}

/* ─── Loading skeleton for gallery ─── */
.gallery-main img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.5s infinite;
}

.gallery-main img.loaded {
  animation: none;
  background: none;
}

@keyframes gallery-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Visual Breadcrumbs ─── */
.deal-breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.deal-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}

.deal-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.deal-breadcrumbs li::after {
  content: "›";
  margin-left: 0.25rem;
  color: var(--text-muted, #6b7280);
}

.deal-breadcrumbs li:last-child::after {
  display: none;
}

.deal-breadcrumbs a {
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  transition: color 0.15s ease;
}

.deal-breadcrumbs a:hover {
  color: var(--brand, rgb(232,93,58));
}

.deal-breadcrumbs li:last-child a,
.deal-breadcrumbs li:last-child {
  color: var(--text, #1a1a2e);
  font-weight: 600;
}

/* ─── Savings Badge (prominent) ─── */
.deal-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
  white-space: nowrap;
}

.deal-savings-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Mobile savings badge */
@media (max-width: 768px) {
  .deal-savings-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.875rem;
  }
}

/* ─── Social Proof Counter (animated) ─── */
.deal-viewers {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #6b7280);
}

.deal-viewers__dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
