﻿/* ============================================================
   TRENDING SLIDER + BOOKINGS TICKER
   ============================================================ */

/* ===== TRENDING SLIDER ===== */
.trend-section {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fdfbf6 0%, #f8f5ec 100%);
  position: relative;
  overflow: hidden;
}
.trend-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.trend-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(201,169,97,.14);
  border: 1px solid rgba(201,169,97,.4);
  color: #b08f42;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.trend-eyebrow i { color: #c9a961; font-size: 12px; }
.trend-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #0d1117;
  margin: 0 0 12px;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.trend-title em {
  font-style: italic;
  font-weight: 500;
  color: #b08f42;
}
.trend-sub {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 520px;
}

/* Slider wrapper */
.trend-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0 30px;
}
.trend-slider {
  display: flex;
  gap: 20px;
  animation: trendScroll 60s linear infinite;
  will-change: transform;
}
.trend-slider:hover {
  animation-play-state: paused;
}
@keyframes trendScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Card */
.trend-card {
  flex-shrink: 0;
  width: 300px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px -8px rgba(0,0,0,.1);
  border: 1px solid #f0f1f3;
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.trend-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -16px rgba(201,169,97,.35);
  border-color: rgba(201,169,97,.5);
}
.trend-media {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.trend-card:hover .trend-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a961, #b08f42);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(201,169,97,.4);
  z-index: 2;
}
.trend-badge i { font-size: 10px; }
.trend-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #0d1117;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 2;
}
.trend-rating i { color: #fbbf24; font-size: 10px; }
.trend-body {
  padding: 16px 18px 18px;
}
.trend-cat {
  font-size: 11px;
  color: #b08f42;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.trend-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #0d1117;
  margin: 0 0 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trend-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f0f1f3;
}
.trend-price {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #b08f42;
  letter-spacing: -.02em;
}
.trend-price small {
  font-size: 10px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0;
}
.trend-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f6f7f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a961;
  font-size: 13px;
  transition: all .25s ease;
}
.trend-card:hover .trend-arrow {
  background: linear-gradient(135deg, #c9a961, #b08f42);
  color: #fff;
  transform: translateX(3px);
}

/* Edge fade */
.trend-slider-wrap::before,
.trend-slider-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.trend-slider-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fdfbf6, transparent);
}
.trend-slider-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #fdfbf6, transparent);
}

/* ===== BOOKINGS TICKER ===== */
.bookings-ticker {
  position: fixed;
  left: 20px;
  bottom: 20px;
  max-width: 320px;
  z-index: 9980;
  transform: translateX(-420px);
  opacity: 0;
  transition: all .5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.bookings-ticker.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.bk-tick-inner {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.25);
  border: 1px solid rgba(201,169,97,.25);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.bk-tick-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #c9a961, #b08f42);
}
.bk-tick-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a961, #b08f42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(201,169,97,.35);
}
.bk-tick-body { flex: 1; min-width: 0; }
.bk-tick-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0d1117;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.bk-tick-name .bk-tick-verified {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bk-tick-text {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}
.bk-tick-text strong { color: #b08f42; font-weight: 700; }
.bk-tick-time {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.bk-tick-time i { font-size: 9px; }
.bk-tick-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
  border: none;
  color: #6b7280;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  z-index: 2;
}
.bk-tick-close:hover { background: rgba(0,0,0,.12); color: #0d1117; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .trend-section { padding: 50px 0 40px; }
  .trend-head { margin-bottom: 30px; }
  .trend-card { width: 260px; }
  .trend-media { height: 150px; }
  .trend-name { font-size: 15px; }
  .trend-price { font-size: 18px; }

  .bookings-ticker {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    transform: translateY(150px);
  }
  .bookings-ticker.show {
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .trend-card { width: 240px; }
  .trend-media { height: 140px; }
}
/* ===== Trending image improvements ===== */
.trend-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.trend-card:hover .trend-media::after {
  opacity: 1;
}

/* ============================================================
   FIX — Trending image via background-image (reliable)
   ============================================================ */

.trend-media {
  position: relative;
  height: 180px;
  width: 100%;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #f0f1f3;
  transition: transform .5s ease;
}
.trend-card:hover .trend-media {
  transform: scale(1.08);
}
/* Ensure overlay gradient still works */
.trend-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
}
.trend-card:hover .trend-media::after {
  opacity: 1;
}

/* Keep badges above overlay */
.trend-badge, .trend-rating {
  z-index: 2;
}
