/* =========================================================
   NAV.CSS — mobile slide-in menu + filter drawer overlay
   ========================================================= */

/* ---------- MOBILE MENU OVERLAY (dim background) ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,24,22,.45);
  z-index: var(--z-mobile-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- MOBILE MENU PANEL (slide from right) ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: #fff;
  z-index: var(--z-mobile-panel);
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.3,.9,.4,1);
  box-shadow: -10px 0 40px rgba(0,0,0,.2);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { transform: none; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.mobile-menu-header .logo { font-size: 17px; }

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  transition: .15s;
}
.mobile-menu-close:hover { background: #f4f8f7; }
.mobile-menu-close svg { width: 16px; height: 16px; }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.mobile-menu-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.mobile-menu-nav a:hover {
  background: #eef3f2;
  color: var(--ink);
}
.mobile-menu-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.mobile-menu-nav .divider {
  height: 1px;
  background: var(--line);
  margin: 12px 4px;
}

.mobile-menu-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu-footer .saved-btn {
  justify-content: center;
  width: 100%;
}
.mobile-menu-footer .btn-primary {
  width: 100%;
  text-align: center;
  padding: 12px;
}

/* ---------- FILTER DRAWER OVERLAY (mobile only) ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,24,22,.45);
  z-index: var(--z-drawer);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  display: none; /* only shown on mobile via responsive.css */
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}