/* ============================================================
   MEGA MENU STYLES – Global Expeditions
   Add this to main.css (or load as a separate stylesheet)
   ============================================================ */

/* --- Mega Menu Container --- */

@media (min-width: 992px) {
  .megamenu-parent.position-static {
    position: static !important;
  }
  .megamenu-dropdown {
    left: 0;
    right: 0;
    width: 100% !important;
    border-radius: 0;
    margin-top: 0 !important;
    border-top: 3px solid #C19A43;
    background: #fff;
    animation: megamenuFadeIn 0.25s ease-out;
  }
}

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

/* Mobile: stack the mega menu naturally */
@media (max-width: 991.98px) {
  .megamenu-dropdown {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent;
    padding: 0 !important;
  }
  .megamenu-dropdown .container-fluid {
    padding: 0;
  }
  .megamenu-dropdown .row.g-3 {
    margin: 0;
  }
}

/* --- Trip Cards --- */

.megamenu-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none !important;
  height: 100%;
}
.megamenu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.megamenu-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Region Tag */
.megamenu-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 47, 95, 0.85);
  color: #fff;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  line-height: 1.4;
}

/* Card Body */
.megamenu-card-body {
  padding: 10px 12px 12px;
}
.megamenu-card-title {
  display: block;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #002F5F !important;
  line-height: 1.3;
}
.megamenu-card-subtitle {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
  line-height: 1.4;
}

/* Hover state for text */
.megamenu-card:hover .megamenu-card-title {
  color: #3bbbe6 !important;
}

/* --- VIEW ALL Button --- */

.megamenu-dropdown .btn-outline-primary {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  padding: 0.5rem 1.6rem;
  transition: all 0.25s ease;
}

/* --- Mobile adjustments --- */

@media (max-width: 991.98px) {
  .megamenu-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 6px;
    background: #f4f6f8;
  }
  .megamenu-card-img {
    width: 80px;
    min-width: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 6px 0 0 6px;
  }
  .megamenu-card-body {
    padding: 8px 12px;
  }
  .megamenu-card-tag {
    display: none;
  }
  .megamenu-card-title {
    font-size: 0.9rem;
  }
  .megamenu-card-subtitle {
    font-size: 0.7rem;
  }
}
