/**
 * Featured Vendors Section Styles
 * Matches Royal Navy Theme with Swiper Center Mode & 3D Glowing Active Card
 */

.mes-featured-wrap {
  position: relative;
  background-color: #07152b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 85px 0 95px;
  overflow: hidden;
  color: #ffffff;
}

/* Ambient light overlay */
.mes-featured-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(13, 27, 56, 0.15) 0%, rgba(7, 21, 43, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.mes-featured-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.mes-featured-header {
  text-align: center;
  margin-bottom: 35px;
}

.mes-featured-crown {
  display: inline-block;
  margin-bottom: 12px;
}

.mes-featured-crown svg {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(240, 194, 90, 0.5));
}

.mes-featured-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.mes-featured-title .mes-title-white {
  color: #ffffff;
}

.mes-featured-title .mes-title-gold {
  color: #e5b358;
  background: linear-gradient(135deg, #f5d47a 0%, #d89b34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mes-featured-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   SWIPER CAROUSEL WRAP & NAVIGATION BUTTONS
───────────────────────────────────────────── */
.mes-featured-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
  padding: 0 10px;
}

.mes-vendor-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  color: #0c192c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mes-vendor-nav-btn:hover {
  background: #ffffff;
  color: #c48a1c;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 24px rgba(240, 194, 90, 0.55);
}

.mes-vendor-nav-btn.mes-vendor-prev {
  left: -18px;
}

.mes-vendor-nav-btn.mes-vendor-next {
  right: -18px;
}

/* ─────────────────────────────────────────────
   SWIPER CONTAINER & SLIDES
───────────────────────────────────────────── */
.mes-featured-swiper {
  position: relative;
  width: 100%;
  padding-top: 45px !important;
  padding-bottom: 55px !important;
  overflow: hidden;
  list-style: none;
  display: block;
}

.mes-featured-swiper .swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  transition-property: transform;
  box-sizing: content-box;
  transform-style: preserve-3d;
}

.mes-featured-swiper .swiper-slide {
  flex-shrink: 0 !important;
  width: 224px !important;
  height: auto !important;
  position: relative;
  display: flex !important;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition-property: transform, opacity;
}

/* Base Card (Non-Center / Sibling State) */
.mes-vcard {
  width: 216px;
  background: #ffffff;
  border-radius: 20px;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px) scale(0.92) translateY(6px);
  opacity: 0.82;
  filter: brightness(0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.5s ease, 
              opacity 0.5s ease, 
              filter 0.5s ease, 
              border-color 0.5s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  cursor: default;
  user-select: none;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   ACTIVE CENTER SLIDE (3D Zoom & Golden Glow)
   Only active slide shows zoom — no hover/click zoom
───────────────────────────────────────────── */
.swiper-slide-active .mes-vcard {
  opacity: 1;
  filter: brightness(1.02);
  transform: perspective(1000px) scale(1.1) translateY(-14px) translateZ(40px);
  z-index: 10;
  border: 2.5px solid #f8c95e;
  box-shadow: 
    0 26px 52px -10px rgba(0, 0, 0, 0.75),
    0 14px 28px -6px rgba(0, 0, 0, 0.55),
    0 0 38px 4px rgba(245, 196, 91, 0.7),
    0 0 85px 12px rgba(245, 196, 91, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* 3D Glass Sheen on Top of Active Center Card */
.swiper-slide-active .mes-vcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 55%, transparent 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
  z-index: 3;
}

/* Card Image Area */
.mes-vcard-img-wrap {
  position: relative;
  height: 180px;
  width: 100%;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #111e2f;
}

.mes-vcard-img-wrap .mes-vcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Rating Pill */
.mes-vcard-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-radius: 14px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.swiper-slide-active .mes-vcard .mes-vcard-rating {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mes-vcard-star {
  color: #f59e0b;
  font-size: 11px;
  line-height: 1;
}

.mes-vcard-score {
  color: #0c192c;
  font-weight: 700;
  font-size: 11px;
}

.mes-vcard-count {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
}

/* Wishlist Heart Button */
.mes-vcard-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s ease;
  z-index: 4;
}

.mes-vcard-wishlist:hover {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.12);
}

/* Overlapping Category Circular Badge */
.mes-vcard-cat-badge {
  position: absolute;
  top: 158px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #eccf94;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.swiper-slide-active .mes-vcard .mes-vcard-cat-badge {
  border-color: #f5c45b;
  box-shadow: 0 6px 18px rgba(245, 196, 91, 0.5), 0 3px 8px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%) scale(1.1);
}

/* Card Body */
.mes-vcard-body {
  background: #ffffff;
  border-radius: 0 0 18px 18px;
  padding: 30px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.mes-vcard-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #0c192c;
  margin: 0 0 6px;
  line-height: 1.25;
}

.mes-vcard-name a {
  color: #0c192c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mes-vcard-name a:hover {
  color: #c48a1c;
}

.mes-vcard-city {
  font-size: 11.5px;
  color: #475467;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mes-vcard-city svg {
  flex-shrink: 0;
  fill: #475467;
}

/* Category Pill Tag */
.mes-vcard-pill {
  display: inline-block;
  background: linear-gradient(180deg, #fef9ef 0%, #faecd0 100%);
  border: 1px solid #ebd39c;
  border-radius: 16px;
  padding: 4px 13px;
  font-size: 10.5px;
  font-weight: 700;
  color: #9c6e1c;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

/* ─────────────────────────────────────────────
   VIEW ALL VENDORS CTA BUTTON
───────────────────────────────────────────── */
.mes-featured-cta {
  text-align: center;
  margin-top: 35px;
}

.mes-btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #07152b;
  border: 1.5px solid #d4a046;
  border-radius: 50px;
  padding: 12px 30px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(212, 160, 70, 0.15);
  transition: all 0.3s ease;
}

.mes-btn-view-all .mes-btn-arrow {
  color: #f5c45b;
  transition: transform 0.25s ease;
}

.mes-btn-view-all:hover {
  background: #0d2242;
  border-color: #f5c45b;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 196, 91, 0.35);
  color: #ffffff !important;
}

.mes-btn-view-all:hover .mes-btn-arrow {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────
   RESPONSIVE DESIGN
───────────────────────────────────────────── */
@media (max-width: 991px) {
  .mes-featured-wrap {
    padding: 60px 0 70px;
  }
  .mes-featured-title {
    font-size: 30px;
  }
  .mes-featured-swiper {
    padding: 35px 0 40px !important;
  }
  .mes-vendor-nav-btn {
    display: none; /* Smooth touch swipe on mobile/tablet */
  }
  .swiper-slide-active .mes-vcard {
    transform: perspective(1000px) scale(1.06) translateY(-8px) translateZ(25px);
  }
}

@media (max-width: 640px) {
  .mes-featured-wrap {
    padding: 50px 0 60px;
  }
  .mes-featured-title {
    font-size: 26px;
  }
  .mes-featured-desc {
    font-size: 13.5px;
  }
  .mes-vcard {
    width: 195px;
  }
  .mes-vcard-img-wrap {
    height: 160px;
  }
  .mes-vcard-cat-badge {
    top: 138px;
  }
}
