/* ==========================================================================
   Eziban Christmas Theme (December 2026)
   Preserves Eziban's signature green (#4AC05E) while adding classy festive
   evergreen, holly crimson, warm gold, twinkling lights, and gentle snowfall.
   ========================================================================== */

:root {
  --xmas-pine-dark: #0f3d23;
  --xmas-pine: #14532d;
  --xmas-pine-mid: #166534;
  --xmas-red: #dc2626;
  --xmas-red-deep: #b91c1c;
  --xmas-gold: #f59e0b;
  --xmas-gold-light: #fde68a;
  --xmas-snow: #ffffff;
}

/* 1. Top Festive Holiday Ribbon */
#eziban-xmas-ribbon {
  position: relative;
  z-index: 1005;
  width: 100%;
  background: linear-gradient(90deg, #0b2e1a 0%, #14532d 30%, #166534 50%, #14532d 70%, #0b2e1a 100%);
  color: #ffffff;
  border-bottom: 1.5px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  font-family: 'Plus Jakarta Sans', 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 7px 16px;
}

.eziban-xmas-ribbon-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  min-height: 24px;
}

.eziban-xmas-ribbon-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #f8fafc;
  text-align: center;
  padding: 0 64px;
}

.eziban-xmas-ribbon-msg strong {
  color: #fde68a;
  font-weight: 800;
}

.eziban-xmas-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(253, 230, 138, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.eziban-xmas-controls {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eziban-xmas-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 999px;
  height: 24px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.eziban-xmas-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.eziban-xmas-btn-close {
  width: 24px;
  padding: 0;
  font-size: 0.95rem;
}

/* 2. Twinkling Christmas Fairy Lights String */
#eziban-xmas-lights {
  position: relative;
  z-index: 1004;
  width: 100%;
  height: 18px;
  margin-bottom: -18px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 6px;
}

#eziban-xmas-lights::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(20, 83, 45, 0.7) 0px,
    rgba(20, 83, 45, 0.7) 14px,
    rgba(251, 191, 36, 0.5) 14px,
    rgba(251, 191, 36, 0.5) 16px
  );
  opacity: 0.65;
}

.eziban-xmas-bulb {
  position: relative;
  width: 7px;
  height: 11px;
  border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
  margin-top: 2px;
  flex-shrink: 0;
  opacity: 0.92;
}

.eziban-xmas-bulb::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 3px;
  background: #14532d;
  border-radius: 1px;
}

.eziban-xmas-bulb.b-red {
  background: #ef4444;
  box-shadow: 0 2px 8px 1px rgba(239, 68, 68, 0.7);
  animation: xmas-twinkle-a 2.4s ease-in-out infinite;
}

.eziban-xmas-bulb.b-gold {
  background: #fbbf24;
  box-shadow: 0 2px 8px 1px rgba(251, 191, 36, 0.75);
  animation: xmas-twinkle-b 2.8s ease-in-out infinite;
}

.eziban-xmas-bulb.b-green {
  background: #4AC05E;
  box-shadow: 0 2px 8px 1px rgba(74, 192, 94, 0.75);
  animation: xmas-twinkle-a 2.6s ease-in-out infinite 0.6s;
}

.eziban-xmas-bulb.b-white {
  background: #f8fafc;
  box-shadow: 0 2px 8px 1px rgba(255, 255, 255, 0.85);
  animation: xmas-twinkle-b 3.1s ease-in-out infinite 0.3s;
}

@keyframes xmas-twinkle-a {
  0%, 100% { opacity: 0.95; filter: brightness(1.1); }
  50% { opacity: 0.42; filter: brightness(0.8); }
}

@keyframes xmas-twinkle-b {
  0%, 100% { opacity: 0.45; filter: brightness(0.85); }
  50% { opacity: 1; filter: brightness(1.15); }
}

/* 3. Gentle Non-Intrusive Snowfall */
#eziban-xmas-snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

#eziban-xmas-snow.xmas-snow-hidden {
  display: none;
}

.eziban-snowflake {
  position: absolute;
  top: -24px;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(15, 23, 42, 0.22);
  user-select: none;
  will-change: transform;
  animation-name: xmas-snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes xmas-snow-fall {
  0% {
    transform: translate3d(0, -10px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--xmas-drift, 18px), 52vh, 0) rotate(180deg);
  }
  100% {
    transform: translate3d(calc(var(--xmas-drift, 18px) * -0.5), 104vh, 0) rotate(360deg);
  }
}

/* 4. Festive Logo Holly Accent (Keeps Eziban Green Intact!) */
.eziban-xmas-holly-inline {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* 5. Homepage Festive Touches (Zero Tampering with #4AC05E Green) */
body.eziban-xmas-home .hero-section {
  background:
    radial-gradient(circle at 18% 22%, rgba(220, 38, 38, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(251, 191, 36, 0.12) 0%, transparent 45%),
    linear-gradient(135deg, #091512 0%, #0f2419 48%, #13222b 100%);
  border-bottom: 3px solid rgba(251, 191, 36, 0.35);
}

body.eziban-xmas-home .hero-pill {
  background: rgba(74, 192, 94, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 18px rgba(74, 192, 94, 0.18);
}

body.eziban-xmas-home .search-island {
  border-color: rgba(253, 230, 138, 0.32);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(74, 192, 94, 0.2);
}

body.eziban-xmas-home .featured-banner {
  border: 1px solid rgba(251, 191, 36, 0.35);
  position: relative;
}

body.eziban-xmas-home .restaurant-card:hover {
  border-color: rgba(74, 192, 94, 0.55);
  box-shadow: 0 12px 26px -6px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(251, 191, 36, 0.35);
}

/* 6. Locality Pages Festive Accents */
body.eziban-xmas-locality .hero-loc {
  background:
    radial-gradient(circle at 15% 25%, rgba(220, 38, 38, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(74, 192, 94, 0.22) 0%, transparent 48%),
    linear-gradient(135deg, #0b1f16 0%, #15202B 100%);
  border-bottom: 3px solid rgba(251, 191, 36, 0.45);
  position: relative;
}

body.eziban-xmas-locality .merchant-card:hover {
  border-color: rgba(74, 192, 94, 0.5);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(251, 191, 36, 0.35);
}

/* 7. Merchant Menu Pages Festive Accents */
body.eziban-xmas-merchant header,
body.eziban-xmas-merchant .menu-container > header {
  position: relative;
  border-top: 3px solid #dc2626 !important;
  border-bottom: 2px solid rgba(251, 191, 36, 0.65) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(251, 191, 36, 0.22);
}

.eziban-xmas-header-corner {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 61, 35, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

body.eziban-xmas-merchant .menu-item:hover,
body.eziban-xmas-merchant .item-card:hover {
  border-color: rgba(74, 192, 94, 0.45);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(251, 191, 36, 0.28);
}

body.eziban-xmas-merchant .category-section h2,
body.eziban-xmas-merchant .category-header {
  border-bottom-color: rgba(220, 38, 38, 0.22);
}

/* 8. Festive Footer Greeting */
.eziban-xmas-footer-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #fde68a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(20, 83, 45, 0.85);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(253, 230, 138, 0.35);
}

/* 9. Responsive & Reduced Motion */
@media (max-width: 640px) {
  #eziban-xmas-ribbon {
    padding: 6px 10px;
  }
  .eziban-xmas-ribbon-msg {
    font-size: 0.76rem;
    padding: 0 56px 0 4px;
    justify-content: flex-start;
    text-align: left;
    gap: 6px;
  }
  .eziban-xmas-pill-tag {
    font-size: 0.66rem;
    padding: 2px 7px;
  }
  .eziban-xmas-header-corner {
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eziban-xmas-bulb {
    animation: none !important;
    opacity: 0.9 !important;
  }
  #eziban-xmas-snow {
    display: none !important;
  }
}
