/* =============================================
   BUSINESS MEGA MENU — two-level flyout
   Level 1: .biz-rail — the 5 business categories, always visible
            once the "Businesses" nav item is hovered.
   Level 2: .biz-stage / .biz-panel — each category's own panel,
            styled like the Overview mega menu (link list + short
            description on the left, large image on the right).
            Hovering a rail item swaps which panel is active
            (assets/js/main.js — .biz-rail-item mouseenter).
   Outer open/close (fade + slide) is handled by the existing
   .mega-parent.show / .mega-menu rules in style.css — this file
   only styles what's *inside* the panel.
   ============================================= */

.mega-menu.biz-mega {
  width: 960px;
  padding: 0;
  gap: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden; /* clips the rail's rounded corner to the panel */
}

/* ---- Level 1: category rail ----
   One line per item (name only — the old subtitle line under each
   name was removed so the whole menu sits shorter). */
.biz-rail {
  flex: 0 0 250px;
  background: linear-gradient(180deg, #fbf7f4 0%, #f7eef2 100%);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-right: 1px solid rgba(139, 26, 74, 0.08);
}

.biz-rail-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s ease;
}
.biz-rail-item:hover,
.biz-rail-item.is-active {
  background: #fff;
  box-shadow: 0 8px 20px rgba(40, 12, 26, 0.08);
}

.biz-rail-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon-tint);
  color: var(--maroon);
  font-size: 16px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.biz-rail-item:hover .biz-rail-ico,
.biz-rail-item.is-active .biz-rail-ico {
  background: var(--maroon);
  color: #fff;
  transform: scale(1.05);
}

.biz-rail-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.biz-rail-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}

.biz-rail-chev {
  font-size: 18px;
  color: #cfcfcf;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}
.biz-rail-item:hover .biz-rail-chev,
.biz-rail-item.is-active .biz-rail-chev {
  color: var(--gold-dark);
  transform: translateX(3px);
}

/* ---- Level 2: active category's Overview-style panel ---- */
.biz-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 22px 30px;
}

.biz-panel {
  display: none;
  gap: 30px;
  align-items: stretch;
}
.biz-panel.is-active {
  display: flex;
  animation: bizPanelIn 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes bizPanelIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .biz-panel.is-active { animation: none; }
}

/* Left: link list (reuses .menu-tag / .menu-item from style.css so the
   typography matches the Overview mega menu exactly) */
.biz-panel-links {
  flex: 0 0 226px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.biz-panel-links .menu-tag {
  align-self: flex-start;
  margin-bottom: 12px;
}
.biz-panel-links .menu-tag a {
  color: inherit;
  text-decoration: none;
}

/* Right: large representative image */
.biz-panel-media {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(150deg, #fdf3e7, #f8f0f4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 196px;
}
.biz-panel-media img {
  max-width: 76%;
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 18px 26px rgba(40, 12, 26, 0.18));
}
.biz-panel-media:hover img {
  transform: scale(1.05) translateY(-4px);
}
.biz-panel-cta {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--maroon);
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(40, 12, 26, 0.15);
  transition: gap 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.biz-panel-media:hover .biz-panel-cta {
  gap: 10px;
  background: var(--maroon);
  color: #fff;
}

/* ---- Mobile: accordion version of the same 2-level structure ---- */
.biz-m-list {
  list-style: none;
}
.biz-m-cat {
  border-bottom: 1px solid #eee;
}
.biz-m-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
}
.biz-m-cat-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon-tint);
  color: var(--maroon);
  font-size: 16px;
}
.biz-m-cat-name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}
.biz-m-cat-chev {
  font-size: 20px;
  color: #999;
  transition: transform 0.3s ease;
}
.biz-m-cat.is-open .biz-m-cat-chev {
  transform: rotate(90deg);
  color: var(--gold-dark);
}
.biz-m-cat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.biz-m-cat.is-open .biz-m-cat-body {
  max-height: 320px;
}
.biz-m-cat-body a {
  display: block;
  padding: 10px 0 10px 46px;
  font-size: 14.5px;
  color: #555;
  text-decoration: none;
}
.biz-m-cat-body span.biz-m-plain {
  display: block;
  padding: 10px 0 10px 46px;
  font-size: 14.5px;
  color: #999;
}
.biz-m-cat-body a.biz-m-view-all {
  color: var(--maroon);
  font-weight: 600;
}
