/* ===================================================================
   🧭 GLOBAL NAVIGATION - CLEAN & CONSOLIDATED (UNIFIED THEME)
   =================================================================== */

/* === NAVBAR CONTAINER === */
.navbar {
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  font-family: 'Poppins', sans-serif !important;
}

/* === BRAND === */
.brand-text {
  background: linear-gradient(135deg, #2a7a4a, #d9b910);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1;
  font-family: 'Poppins', sans-serif !important;
}

/* === NAVIGATION LINKS === */
.luxury-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem !important;
  border-radius: 10px;
  font-weight: 500 !important;
  font-size: 0.925rem;
  transition: all 0.3s ease !important;
  min-height: 40px;
  font-family: 'Poppins', sans-serif !important;
}

.luxury-link, .luxury-link .link-text {
  color: #c9a84a !important;
}

.link-text {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  transition: color 0.4s ease !important;
  font-family: 'Poppins', sans-serif !important;
}

.link-underline {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2a7a4a, #c9a84a);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
}

.luxury-link:hover {
  background: rgba(201, 168, 74, 0.1) !important;
}

.luxury-link:hover .link-text {
  color: #e8c86a !important;
}

.luxury-link:hover .link-underline {
  width: 70%;
  opacity: 1;
}

.luxury-link.active .link-underline {
  width: 100%;
  opacity: 1;
  background: linear-gradient(90deg, #c9a84a, #e8c86a) !important;
}

/* === DROPDOWN MENU (Desktop & Mobile Base) === */
.nav-item.dropdown {
  position: relative !important;
}

.nav-item.dropdown > .dropdown-toggle {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.luxury-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  min-width: 280px;
  padding: 0.75rem;
  margin-top: 0.75rem !important;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(201, 168, 74, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(201, 168, 74, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  list-style: none;
}

.nav-item.dropdown.show .luxury-dropdown {
  display: block;
  animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.luxury-dropdown-item {
  display: flex !important;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  color: #1a2e1a !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 0.25rem;
  cursor: pointer;
}

.luxury-dropdown-item i {
  color: #2a7a4a;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.luxury-dropdown-item:hover {
  background: rgba(201, 168, 74, 0.1);
  color: #c9a84a !important;
  transform: translateX(4px);
}

.luxury-dropdown-item:hover i {
  transform: scale(1.2);
  color: #c9a84a;
}

.luxury-dropdown-item.featured-item {
  background: linear-gradient(135deg, rgba(201, 168, 74, 0.1), rgba(42, 122, 74, 0.05));
  border: 1px solid rgba(201, 168, 74, 0.3);
}

.luxury-dropdown-item.featured-item:hover {
  background: linear-gradient(135deg, rgba(201, 168, 74, 0.2), rgba(42, 122, 74, 0.1));
  border-color: rgba(201, 168, 74, 0.5);
}

.luxury-dropdown-item .badge {
  font-size: 0.65rem;
  padding: 0.3em 0.6em;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: auto;
}

.luxury-dropdown .dropdown-divider {
  margin: 0.5rem;
  border-color: rgba(201, 168, 74, 0.2);
  opacity: 0.5;
}

.nav-item.dropdown .dropdown-toggle::after {
  transition: transform 0.3s ease;
  margin-left: 0.4rem;
}

.nav-item.dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* === CTA BUTTONS (RESPONSIVE FIX) === */
.luxury-cta-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.0rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-height: 40px !important;
  width: auto !important; /* ✅ CHANGED: Removed fixed 180px width */
  max-width: 100%;
  white-space: nowrap;
  flex-shrink: 1; /* ✅ CHANGED: Allows button to shrink if needed */
  font-family: 'Poppins', sans-serif !important;
}

.luxury-cta-compact.btn-primary {
  background: linear-gradient(135deg, #e18633 0%, #efa81d 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  box-shadow: 0 4px 15px rgba(201,168,74,0.25) !important;
}

.luxury-cta-compact.btn-outline-primary {
  background: transparent !important;
  border: 1px solid #c9a84a !important;
  color: #5b5705 !important;
}

.luxury-cta-compact.btn-outline-danger {
  background: transparent !important;
  border: 1px solid #dc2626 !important;
  color: #dc2626 !important;
}

.luxury-cta-compact:hover {
  transform: translateY(-2px) !important;
}

/* === SOCIAL BUTTONS === */
.nav-social-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-family: 'Poppins', sans-serif !important;
}

.nav-social-btn svg {
  width: 1.2em !important;
  height: 1.2em !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.nav-social-btn:hover {
  transform: translateY(-3px) scale(1.08) !important;
}

.nav-social-youtube {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
  color: #ffffff !important;
}

.nav-social-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
}

/* === NAV ACTIONS LAYOUT === */
.nav-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif !important;
}

.nav-social-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: 'Poppins', sans-serif !important;
}

/* ===================================================================
   🚨 CRITICAL FIX: HAMBURGER MENU VISIBILITY
   =================================================================== */

.navbar-toggler {
  display: none !important;
  border: 1px solid rgba(201, 168, 74, 0.3) !important;
  background: rgba(201, 168, 74, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  font-family: 'Poppins', sans-serif !important;
}

.navbar-toggler:hover {
  background: rgba(201, 168, 74, 0.15) !important;
  border-color: rgba(201, 168, 74, 0.5) !important;
  transform: scale(1.05);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201, 168, 74, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  display: block !important;
  width: 1.5em !important;
  height: 1.5em !important;
  background-size: 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* ===================================================================
   📱 MOBILE MENU - JAMAICAN STYLE BLURRED BACKGROUND (Below 992px)
   =================================================================== */

@media (max-width: 991.98px) {
  .navbar-toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .navbar-collapse {
    border-radius: 20px !important;
    padding: 1.5rem !important;
    margin-top: 1rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 155, 58, 0.85) 30%, rgba(0, 155, 58, 0.85) 60%, rgba(254, 209, 0, 0.85) 60%, rgba(254, 209, 0, 0.85) 100% ) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 2px solid rgba(254, 209, 0, 0.4) !important;
    font-family: 'Poppins', sans-serif !important;
  }

  .navbar-collapse::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( 45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px );
    pointer-events: none;
    z-index: 0;
  }

  .navbar-collapse > * {
    position: relative;
    z-index: 1;
  }

  .luxury-nav-horizontal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 1rem;
  }

  .luxury-link {
    width: 100%;
    padding: 0.75rem 1rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease !important;
  }

  .luxury-link:last-child {
    margin-bottom: 0 !important;
  }

  .luxury-link .link-text {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .luxury-link:hover {
    background: transparent !important;
    transform: none !important;
  }

  .luxury-link:hover .link-text {
    color: #FED100 !important;
    text-shadow: 0 0 10px rgba(254, 209, 0, 0.5);
  }

  .luxury-link:hover .link-underline {
    width: 100%;
    opacity: 1;
  }

  .luxury-link.active {
    background: transparent !important;
  }

  .luxury-link.active .link-text {
    color: #FED100 !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(254, 209, 0, 0.5);
  }

  .luxury-link.active .link-underline {
    width: 100%;
    opacity: 1;
  }

  .link-underline {
    background: linear-gradient(90deg, #FED100, #ffffff) !important;
    box-shadow: 0 0 10px rgba(254, 209, 0, 0.5);
    height: 2px;
    bottom: 8px;
  }

  .nav-item.dropdown {
    width: 100%;
  }
  
  .luxury-dropdown {
    position: static !important;
    float: none;
    width: 100%;
    margin: 0.5rem 0 !important;
    padding: 0.5rem 0 0.5rem 1rem;
    background: transparent !important;
    border: none;
    box-shadow: none;
    border-radius: 8px;
  }
  
  .luxury-dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #ffffff !important;
  }
  
  .luxury-dropdown-item i {
    color: #FED100 !important;
  }
  
  .luxury-dropdown-item.featured-item {
    background: rgba(254, 209, 0, 0.1) !important;
    border: 1px solid rgba(254, 209, 0, 0.3);
  }

  .nav-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    justify-content: space-between;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .luxury-cta-compact {
    flex: 1;
    margin-top: 0 !important;
  }
}

/* ===================================================================
   📱 MOBILE SMALL: JAMAICA GRADIENT ON ACTIONS & ICON-ONLY BUTTONS
   =================================================================== */
@media (max-width: 767.98px) {
  .nav-actions {
    background: linear-gradient(90deg, #000000 0%, #009B3A 60%, #FED100 100%) !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 155, 58, 0.25) !important;
    gap: 8px !important;
    margin-top: 10px !important;
    border: none !important;
    flex-wrap: wrap !important; /* ✅ CHANGED: Allows safe wrapping on tiny screens */
    justify-content: center !important;
  }

  .nav-social-group {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
  }

  .nav-social-btn svg {
    width: 1em !important;
    height: 1em !important;
  }

  /* ✅ CRITICAL FIX: Force buttons to shrink to icon size on mobile */
  .luxury-cta-compact {
    width: auto !important;
    min-width: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    flex: 0 1 auto !important;
  }

  /* White button pops against Jamaica gradient */
  .luxury-cta-compact.btn-primary {
    background: #ffffff !important;
    color: #009B3A !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  }

  /* Ghost button for Log In / Log Out */
  .luxury-cta-compact.btn-outline-primary,
  .luxury-cta-compact.btn-outline-danger {
    background: transparent !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
  }

  .luxury-cta-compact.btn-outline-primary:hover,
  .luxury-cta-compact.btn-outline-danger:hover {
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* ✅ Ensure "My Account" dropdown doesn't break with long names */
  .nav-actions .dropdown-toggle.luxury-cta-compact {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}