/* Google Fonts Import (Exclusively Open Sans & ZCOOL XiaoWei) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=ZCOOL+XiaoWei&display=swap');


:root {
  /* Brand Colors */
  --color-primary: #8a3b89;
  --color-primary-hover: #702e6f;
  --color-primary-light: #f7e3f7;
  --color-primary-dark: #582257;

  --color-secondary: #702e6f;
  --color-secondary-hover: #582257;
  --color-secondary-light: #edc9ed;
  --color-secondary-dark: #431942;
  --color-accent: #8a3b89;    
  --color-accent-hover: #ad48ab;
  --color-accent-light: #fcf3fc;
  --color-accent-gold: #8a3b89;

  --color-bg-main: #0c0f14;
  --color-bg-card: #141820;
  --color-bg-subtle: #1c222e;
  
  /* Text */
  --color-text-main: #ffffff;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.15);

  /* Fonts */
  --font-sans: 'Open Sans', sans-serif;
  --font-serif: 'ZCOOL XiaoWei', serif;
}

/* ==========================================================================
   Global Reset & Base Rules
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'ZCOOL XiaoWei', serif;
}

/* ==========================================================================
   Utility Helpers
   ========================================================================== */
.font-serif { font-family: 'ZCOOL XiaoWei', serif; }
.font-sans, .font-work { font-family: 'Open Sans', sans-serif; }

.bg-primary { background: #8a3b89 !important; background-color: #8a3b89 !important; }
.bg-primary:hover, .hover\:bg-primary-hover:hover { background: #702e6f !important; background-color: #702e6f !important; }
.bg-secondary { background-color: var(--color-secondary); }
.text-primary { color: #8a3b89 !important; }
.text-secondary { color: var(--color-secondary); }
.text-luxury-gold { color: var(--color-accent); }
.bg-luxury-gold { background-color: var(--color-accent); }
.border-luxury-gold { border-color: var(--color-accent); }

/* Testimonials Carousel & Cards (Mobile-Optimized & Anti-Flicker Hardware Accelerated) */
#testimonials {
  position: relative;
  background-color: #faf8fa !important;
  isolation: isolate;
  contain: paint;
}

#testimonial-slider-container {
  position: relative;
  overflow: hidden;
  background-color: #faf8fa;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-perspective: 1000px;
  perspective: 1000px;
  touch-action: pan-y;
}

#testimonial-track {
  display: flex;
  width: 100%;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  background-color: transparent;
  box-sizing: border-box;
}

.testimonial-card > div {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.luxury-card-glow {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 20px 40px -15px rgba(138, 59, 137, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.luxury-card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08), 0 25px 50px -15px rgba(138, 59, 137, 0.25);
  border-color: rgba(138, 59, 137, 0.6);
}


.testimonial-card .luxury-card-glow {
  padding: 1.15rem 1.25rem !important;
  border-radius: 1rem !important;
}

.testimonial-card blockquote {
  font-size: 0.8125rem !important;
  line-height: 1.55 !important;
  margin-bottom: 0.75rem !important;
}

/* Custom Datepicker Indicator */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Hero Section Overlay - Soft Dark Left-Vignette for Crystal-Clear Text Legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10 !important;
  pointer-events: none;
  background: 
    linear-gradient(
      to right,
      rgba(7, 9, 15, 0.78) 0%,
      rgba(7, 9, 15, 0.58) 35%,
      rgba(7, 9, 15, 0.32) 65%,
      rgba(7, 9, 15, 0.18) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(7, 9, 15, 0.55) 0%,
      rgba(7, 9, 15, 0.08) 35%,
      rgba(7, 9, 15, 0.25) 70%,
      rgba(7, 9, 15, 0.80) 100%
    ) !important;
}

/* Hide scrollbar for clean horizontal chip scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0f14;
}
::-webkit-scrollbar-thumb {
  background: #252d3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4759;
}

/* ==========================================================================
   Availability / Vendor Search Bar (Very Dark Glassmorphism, Rounded MD)
   ========================================================================== */
#availability-bar {
  background: rgba(10, 13, 20, 0.78) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  border-radius: 0.375rem !important; /* rounded-md */
}

#vendor-service-dropdown,
#vendor-location-dropdown {
  z-index: 100 !important;
  bottom: calc(100% + 8px) !important;
  top: auto !important;
  background: rgba(13, 18, 31, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 0.5rem !important;
}

#vendor-service-dropdown::-webkit-scrollbar,
#vendor-location-dropdown::-webkit-scrollbar {
  width: 5px;
  display: block !important;
}
#vendor-service-dropdown::-webkit-scrollbar-track,
#vendor-location-dropdown::-webkit-scrollbar-track {
  background: rgba(13, 18, 31, 0.6);
  border-radius: 9999px;
}
#vendor-service-dropdown::-webkit-scrollbar-thumb,
#vendor-location-dropdown::-webkit-scrollbar-thumb {
  background: rgba(138, 59, 137, 0.65);
  border-radius: 9999px;
}
#vendor-service-dropdown::-webkit-scrollbar-thumb:hover,
#vendor-location-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 59, 137, 0.95);
}

@media (max-width: 639px) {
  #availability-bar {
    border-radius: 0.375rem !important; /* rounded-md */
  }
}

/* ==========================================================================
   Vendor Cards Unified Alignment & Compact Height (Reference Image Layout)
   ========================================================================== */
.vendor-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  border-radius: 1.5rem !important;
  background-color: #ffffff;
  overflow: hidden;
}

.vendor-card h3 {
  font-size: 0.925rem !important;
  line-height: 1.35 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vendor-card p {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4;
}

/* ==========================================================================
   Blog Cards Unified Alignment & Compact Height
   ========================================================================== */
.blog-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border-radius: 1.75rem !important;
}

.blog-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vendor-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-inquire-vendor {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Custom Smooth Scrollbar for Category Filter */
.category-filter-scroll {
  scrollbar-width: thin;
  scrollbar-color: #d6d3d1 transparent;
}

.category-filter-scroll::-webkit-scrollbar {
  width: 5px;
}

.category-filter-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.category-filter-scroll::-webkit-scrollbar-thumb {
  background-color: #e7e5e4;
  border-radius: 9999px;
}

.category-filter-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #8a3b89;
}

/* Custom Sleek Scrollbar for Vendor Details Vertical Thumbnail Rail */
#gallery-thumbnails-strip {
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 59, 137, 0.3) transparent;
}

#gallery-thumbnails-strip::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

#gallery-thumbnails-strip::-webkit-scrollbar-track {
  background: transparent;
}

#gallery-thumbnails-strip::-webkit-scrollbar-thumb {
  background-color: rgba(138, 59, 137, 0.35);
  border-radius: 9999px;
}

#gallery-thumbnails-strip::-webkit-scrollbar-thumb:hover {
  background-color: rgba(138, 59, 137, 0.7);
}

#custom-datepicker, #guests-dropdown, #modal-custom-datepicker, #modal-guests-dropdown-menu, #sort-dropdown-menu {
  background-color: #0e141f !important;
  background-image: linear-gradient(180deg, #131a28 0%, #0c111a 100%) !important;
  border: 1px solid rgba(138, 59, 137, 0.45) !important;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 100 !important;
}

#scroll-to-top {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

/* ==========================================================================
   Mobile Navigation Fullscreen Overlay & Mobile Navbar Bar
   ========================================================================== */
#mobile-menu {
  background-color: #090d15 !important;
  background-image: radial-gradient(circle at 50% 10%, #131c2b 0%, #070a10 95%) !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

#mobile-menu.menu-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* Mobile Header Navbar Bar (Subtle luxury dark pill ONLY for the top nav row on small screens) */
@media (max-width: 767px) {
  header .max-w-7xl.flex.items-center.justify-between,
  header .mobile-navbar-pill,
  .mobile-navbar-pill {
    background: rgba(10, 14, 22, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 1.25rem !important;
    padding: 0.75rem 1.25rem !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6) !important;
  }

  header .text-center.max-w-7xl,
  header .text-center {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* =========================================================================
   Vendor Cart & Checkout Modal Helpers
   ========================================================================= */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Navbar Minimal Cart Icon Button (Icon Only, No Background or Border) */
.header-cart-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.in-cart-active {
  background-color: rgba(138, 59, 137, 0.12) !important;
  color: #8a3b89 !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: 0.5rem !important;
}

/* =========================================================================
   Blog Editorial Content & Details Page Styles
   ========================================================================= */
.blog-detail-content h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-detail-content h3 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-weight: 700;
  color: #292524;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-detail-content p {
  line-height: 1.8;
  color: #44403c;
  margin-bottom: 1.25rem;
}

.blog-detail-content blockquote {
  position: relative;
  background: #141820;
  color: #ffffff;
  border-left: 4px solid #8a3b89;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.blog-detail-content blockquote p {
  color: #f5f5f4 !important;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.75rem !important;
}

.blog-detail-content blockquote cite {
  display: block;
  font-size: 0.8rem;
  color: #db9fda;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.blog-detail-content ul:not([class*="space-y"]) {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 1.25rem 0;
  color: #44403c;
}

.blog-detail-content ul:not([class*="space-y"]) li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.blog-detail-content ol:not([class*="space-y"]) {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 1.25rem 0;
  color: #44403c;
}

.blog-detail-content ol:not([class*="space-y"]) li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.blog-detail-content a {
  color: #8a3b89;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.blog-detail-content a:hover {
  color: #702e6f;
}

